import QtQuick 2.0 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.plasmoid 2.0 import org.kde.latte 0.1 as Latte PlasmaCore.FrameSvgItem { imagePath: "dialogs/background" width: Math.max(420,noneShadow.width + lockedAppletsShadow.width + allAppletsShadow.width) height: mainColumn.height+2*windowSpace property bool panelIsVertical: plasmoid.formFactor === PlasmaCore.Types.Vertical property int windowSpace:8 signal updateThickness(); Column{ id:mainColumn anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter spacing: 1.5*theme.defaultFont.pointSize width: parent.width - 2*windowSpace //////////// Location //////////////// Column{ width:parent.width spacing: 0.8*theme.defaultFont.pointSize RowLayout{ width: parent.width PlasmaComponents.Label{ text: i18n("Location") font.pointSize: 1.5 * theme.defaultFont.pointSize Layout.alignment: Qt.AlignLeft } PlasmaComponents.Label{ font.pointSize: theme.defaultFont.pointSize font.italic: true opacity: 0.6 Layout.alignment: Qt.AlignRight horizontalAlignment: Text.AlignRight text: i18n("ver: ") +"@VERSION@" } } Flow{ width: parent.width spacing: 2 property bool inStartup: true property int dockLocation: dock.location onDockLocationChanged: updateDockLocationVisual(); Component.onCompleted: { lockReservedEdges(); updateDockLocationVisual(); inStartup = false; } function lockReservedEdges() { var edges = dock.freeEdges(); firstLocation.enabled = false; secondLocation.enabled = false; thirdLocation.enabled = false; fourthLocation.enabled = false; for (var i=0; i