/**************************************************************************** Copyright (C) 2014 by Eike Hein <hein@kde.org> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the ** Free Software Foundation, Inc., ** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . ****************************************************************************/import QtQuick 2.0import QtQuick.Controls 1.0import QtQuick.Layouts 1.0import org.kde.plasma.private.kicker 0.1 as KickerItem {id: configGeneralwidth: childrenRect.widthheight: childrenRect.heightproperty alias cfg_useCustomButtonImage: useCustomButtonImage.checkedproperty alias cfg_customButtonImage: customButtonImage.textproperty alias cfg_appNameFormat: appNameFormat.currentIndexproperty alias cfg_limitDepth: limitDepth.checkedproperty alias cfg_useExtraRunners: useExtraRunners.checkedproperty alias cfg_alignResultsToBottom: alignResultsToBottom.checkedColumnLayout {GroupBox {Layout.fillWidth: truetitle: i18n("Icon")flat: trueRowLayout {CheckBox {id: useCustomButtonImagetext: i18n("Use custom image:")}TextField {id: customButtonImageenabled: useCustomButtonImage.checkedLayout.fillWidth: true}Button {iconName: "document-open"enabled: useCustomButtonImage.checkedonClicked: {imagePicker.open();}}Kicker.ImagePicker {id: imagePickerLayout.fillWidth: trueonUrlChanged: {customButtonImage.text = url;}}}}GroupBox {Layout.fillWidth: truetitle: i18n("Behavior")flat: trueColumnLayout {RowLayout {Label {text: i18n("Show applications as:")}ComboBox {id: appNameFormatLayout.fillWidth: truemodel: [i18n("Name only"), i18n("Description only"), i18n("Name (Description)"), i18n("Description (Name)")]}}CheckBox {id: limitDepthtext: i18n("Flatten menu to a single level")}}}GroupBox {Layout.fillWidth: truetitle: i18n("Search")flat: trueColumnLayout {CheckBox {id: useExtraRunnerstext: i18n("Expand search to bookmarks, files and emails")}CheckBox {id: alignResultsToBottomtext: i18n("Align search results to bottom")}}}}}