expose interaction values from plasmoid

pull/1/head
Michail Vourlakos 8 years ago
parent 3723a2fd08
commit e54cbb7213

@ -75,5 +75,17 @@
</choices>
<default>2</default>
</entry>
<entry name="smartLaunchersEnabled" type="Bool">
<default>true</default>
</entry>
<entry name="highlightWindows" type="Bool">
<default>false</default>
</entry>
<entry name="showToolTips" type="Bool">
<default>false</default>
</entry>
<entry name="showWindowActions" type="Bool">
<default>false</default>
</entry>
</group>
</kcfg>

@ -101,8 +101,12 @@ DragDrop.DropArea {
///BEGIN properties provided to Latte Plasmoid
property bool enableShadows: plasmoid.configuration.shadows
property bool dotsOnActive: plasmoid.configuration.dotsOnActive
property bool highlightWindows: plasmoid.configuration.highlightWindows
property bool reverseLinesPosition: plasmoid.configuration.reverseLinesPosition// nowDock ? nowDock.reverseLinesPosition : false
property bool showGlow: plasmoid.configuration.showGlow
property bool showToolTips: plasmoid.configuration.showToolTips
property bool showWindowActions: plasmoid.configuration.showWindowActions
property bool smartLaunchersEnabled: plasmoid.configuration.smartLaunchersEnabled
property bool threeColorsWindows: plasmoid.configuration.threeColorsWindows
property int durationTime: plasmoid.configuration.durationTime

@ -393,7 +393,7 @@ PlasmaComponents.ContextMenu {
visible: (visualParent
&& visualParent.m.IsLauncher !== true
&& visualParent.m.IsStartup !== true
&& plasmoid.configuration.showWindowActions)
&& root.showWindowActions)
enabled: visualParent && visualParent.m.IsMinimizable === true
@ -409,7 +409,7 @@ PlasmaComponents.ContextMenu {
visible: (visualParent
&& visualParent.m.IsLauncher !== true
&& visualParent.m.IsStartup !== true
&& plasmoid.configuration.showWindowActions)
&& root.showWindowActions)
enabled: visualParent && visualParent.m.IsMaximizable === true
@ -427,7 +427,7 @@ PlasmaComponents.ContextMenu {
visible: (visualParent
&& visualParent.m.IsLauncher !== true
&& visualParent.m.IsStartup !== true
&& plasmoid.configuration.showWindowActions)
&& root.showWindowActions)
enabled: visible
@ -531,7 +531,7 @@ PlasmaComponents.ContextMenu {
visible: (visualParent
&& visualParent.m.IsLauncher !== true
&& visualParent.m.IsStartup !== true
&& plasmoid.configuration.showWindowActions)
&& root.showWindowActions)
}
PlasmaComponents.MenuItem {

@ -54,7 +54,7 @@ Item{
property int shadowSize : Math.ceil(root.iconSize / 10)
readonly property bool smartLauncherEnabled: ((mainItemContainer.isStartup === false) && (plasmoid.configuration.smartLaunchersEnabled))
readonly property bool smartLauncherEnabled: ((mainItemContainer.isStartup === false) && (root.smartLaunchersEnabled))
readonly property variant iconDecoration: decoration
property QtObject buffers: null
property QtObject smartLauncherItem: null

@ -199,7 +199,7 @@ MouseArea{
spacing: units.largeSpacing
Repeater {
model: (plasmoid.configuration.showToolTips && !albumArtImage.available)
model: (root.showPreviews && !albumArtImage.available)
|| !windowSystem.compositingActive ? windows : null
Column{

@ -57,7 +57,6 @@ Item {
property bool initializatedBuffers: noInitCreatedBuffers >= tasksStarting ? true : false
property bool isHovered: false
property bool showBarLine: plasmoid.configuration.showBarLine
property bool showPreviews: plasmoid.configuration.showToolTips
property bool useThemePanel: plasmoid.configuration.useThemePanel
property bool taskInAnimation: noTasksInAnimation > 0 ? true : false
property bool transparentPanel: plasmoid.configuration.transparentPanel
@ -95,9 +94,13 @@ Item {
property bool forceHidePanel: false
property bool disableLeftSpacer: false
property bool disableRightSpacer: false
property bool highlightWindows: nowDockPanel ? nowDockPanel.highlightWindows: plasmoid.configuration.highlightWindows
property bool reverseLinesPosition: nowDockPanel ? nowDockPanel.reverseLinesPosition : plasmoid.configuration.reverseLinesPosition
property bool dotsOnActive: nowDockPanel ? nowDockPanel.dotsOnActive : plasmoid.configuration.dotsOnActive
property bool showGlow: nowDockPanel ? nowDockPanel.showGlow : plasmoid.configuration.showGlow
property bool showPreviews: nowDockPanel ? nowDockPanel.showToolTips : plasmoid.configuration.showToolTips
property bool showWindowActions: nowDockPanel ? nowDockPanel.showWindowActions : plasmoid.configuration.showWindowActions
property bool smartLaunchersEnabled: nowDockPanel ? nowDockPanel.smartLaunchersEnabled : plasmoid.configuration.smartLaunchersEnabled
property bool threeColorsWindows: nowDockPanel ? nowDockPanel.threeColorsWindows : plasmoid.configuration.threeColorsWindows
property int durationTime: nowDockPanel ? nowDockPanel.durationTime : plasmoid.configuration.durationTime
@ -327,7 +330,7 @@ Item {
taskManagerItem: root
toolTipItem: toolTipDelegate
highlightWindows: plasmoid.configuration.highlightWindows
highlightWindows:root.highlightWindows
onAddLauncher: {
tasksModel.requestAddLauncher(url);

@ -16,6 +16,8 @@ PlasmaComponents.Page{
Column{
spacing: 1.5*theme.defaultFont.pointSize
width: parent.width
/******Appearance******/
Column{
width:parent.width
spacing: 0.8*theme.defaultFont.pointSize
@ -24,6 +26,8 @@ PlasmaComponents.Page{
text: i18n("Appearance")
}
PlasmaComponents.CheckBox {
id: showGlow
text: i18n("Show glow around windows points")
@ -68,5 +72,60 @@ PlasmaComponents.Page{
Component.onCompleted: checked = plasmoid.configuration.reverseLinesPosition;
}
}
/*********Behavior************/
Column{
width:parent.width
spacing: 0.8*theme.defaultFont.pointSize
Header{
text: i18n("Behavior")
}
PlasmaComponents.CheckBox {
id: showPreviewsChk
text: i18n("Preview windows on hovering")
onCheckedChanged: {
plasmoid.configuration.showToolTips = checked;
}
Component.onCompleted: checked = plasmoid.configuration.showToolTips;
}
PlasmaComponents.CheckBox {
id: highlightWindowsChk
text: i18n("Highlight windows on hovering")
onCheckedChanged: {
plasmoid.configuration.highlightWindows = checked;
}
Component.onCompleted: checked = plasmoid.configuration.highlightWindows;
}
PlasmaComponents.CheckBox {
id: windowActionsChk
text: i18n("Show window actions in the context menu")
onCheckedChanged: {
plasmoid.configuration.showWindowActions = checked;
}
Component.onCompleted: checked = plasmoid.configuration.showWindowActions;
}
PlasmaComponents.CheckBox {
id: smartLaunchersChk
text: i18n("Show progress information in task buttons")
onCheckedChanged: {
plasmoid.configuration.smartLaunchersEnabled = checked;
}
Component.onCompleted: checked = plasmoid.configuration.smartLaunchersEnabled;
}
}
}
}

Loading…
Cancel
Save