[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace/heenamahour/gsoc] plasma/desktop/applets/window-list/contents/ui: cascade /unclutter
From: heena mahour <heena393 () gmail ! com>
Date: 2013-06-30 17:24:47
Message-ID: E1UtLMl-0000eF-F6 () scm ! kde ! org
[Download RAW message or body]
Git commit 047d49111080a88203ce6fa287713156436269bb by heena mahour.
Committed on 30/06/2013 at 17:24.
Pushed by heenamahour into branch 'heenamahour/gsoc'.
cascade /unclutter action added serivces for active window ,not working :/
M +29 -14 plasma/desktop/applets/window-list/contents/ui/main.qml
http://commits.kde.org/kde-workspace/047d49111080a88203ce6fa287713156436269bb
diff --git a/plasma/desktop/applets/window-list/contents/ui/main.qml \
b/plasma/desktop/applets/window-list/contents/ui/main.qml index ac7842d..1cb48859 100644
--- a/plasma/desktop/applets/window-list/contents/ui/main.qml
+++ b/plasma/desktop/applets/window-list/contents/ui/main.qml
@@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 1.1
+import Qt 4.7
import org.kde.plasma.core 0.1 as PlasmaCore
import org.kde.plasma.components 0.1 as PlasmaComponents
@@ -24,6 +25,8 @@ Item {
property int minimumHeight: Math.max(100, windowListMenu.implicitHeight)
property int maximumWidth
property int maximumHeight
+ property alias data: tasksSource.data;
+ property int k
property variant desktopList: []
property int iconSize: theme.smallMediumIconSize
property int defaultMargin:0
@@ -41,17 +44,6 @@ Item {
operation.desktop = desktop;
service.startOperationCall(operation);
}
-
- Keys.onDownPressed: windowListMenu.incrementCurrentIndex();
- Keys.onUpPressed: windowListMenu.decrementCurrentIndex();
- Keys.onReturnPressed: windowListMenu.selectCurrentItem();
- Keys.onEnterPressed: windowListMenu.selectCurrentItem();
- Keys.onPressed: {
- if (event.key == Qt.Key_PageUp)
- windowListMenu.pageUp();
- else if (event.key == Qt.Key_PageDown)
- windowListMenu.pageDown();
- }
Component.onCompleted: {
var toolTipData = new Object;
toolTipData["image"] = "preferences-system-window";
@@ -101,9 +93,18 @@ Item {
}
iconSize: main.iconSize
showDesktop: main.showDesktop
- onItemSelected: main.executeJob("activate", source);
+ onItemSelected: {main.executeJob("activate", source);k:1;}
onExecuteJob: main.executeJob(jobName, source);
onSetOnDesktop: main.setOnDesktop(source, desktop);
+ highlight: PlasmaComponents.Highlight {
+ PlasmaCore.FrameSvgItem {
+ id:background4
+ imagePath:"widgets/viewitem"
+ prefix:"selected+hover"
+ height:50
+ width: windowListMenu.width - 2 * windowListMenu.anchors.leftMargin
+ }
+ }
Column {
spacing:0
Rectangle {
@@ -142,7 +143,14 @@ Item {
MouseArea {
id: mouse
hoverEnabled: true
- onClicked:main.executeJob("activate",tasksSource);
+ onClicked: {
+ if (data['active']) {
+ var unclutterId = tasksSource["DataEngineSource"]
+ var service = tasksSource.serviceForSource("unclutterId")
+ var operation = service.operationDescription("restore")
+ service.startOperationCall(operation)
+ }
+ }
anchors.fill:parent
onEntered: {
unclutter.opacity = 0.5
@@ -166,7 +174,14 @@ Item {
MouseArea {
id: mouseArea
hoverEnabled: true
- \
onReleased:menuListView.currentItem.clicked();//menu.itemSelected(menuListView.currentItem.source); \
// onReleased:active_win.maximizeClicked() + onClicked: {
+ if (data['active']) {
+ var cascadeId = tasksSource["DataEngineSource"]
+ var service = tasksSource.serviceForSource("cascadeId")
+ var operation = service.operationDescription("raise")
+ service.startOperationCall(operation)
+ }
+ }
anchors.fill:parent
onEntered: {
cascade.opacity = 0.5
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic