[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/applets/plasmaboard
From:       Björn Ruberg <bjoern () ruberg-wegener ! de>
Date:       2009-04-13 9:11:45
Message-ID: 1239613905.108748.24294.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 953032 by ruberg:

Arrow for the Capslock key



 M  +1 -1      CMakeLists.txt  
 A             CapsKey.cpp   [License: GPL (v2+)]
 A             CapsKey.h   [License: GPL (v2+)]
 M  +1 -1      ShiftKey.cpp  
 M  +2 -2      widget.cpp  


--- trunk/playground/base/plasma/applets/plasmaboard/CMakeLists.txt #953031:953032
@@ -13,7 +13,7 @@
    )
  
 # We add our source code here
-set(plasmaboard_SRCS widget.cpp BoardKey.cpp PanelIcon.cpp AlphaNumKey.cpp \
FuncKey.cpp EnterKey.cpp BackspaceKey.cpp TabKey.cpp ShiftKey.cpp) \
+set(plasmaboard_SRCS widget.cpp BoardKey.cpp PanelIcon.cpp AlphaNumKey.cpp \
FuncKey.cpp EnterKey.cpp BackspaceKey.cpp TabKey.cpp ShiftKey.cpp CapsKey.cpp)  
 # Now make sure all files get to the right place
 kde4_add_plugin(plasma_applet_plasmaboard ${plasmaboard_SRCS})
--- trunk/playground/base/plasma/applets/plasmaboard/ShiftKey.cpp #953031:953032
@@ -23,7 +23,7 @@
 #include <plasma/theme.h>
 
 ShiftKey::ShiftKey(PlasmaboardWidget *parent) : FuncKey::FuncKey(parent){
-	setKeycode(XK_Shift_L, true);
+	setKeycode(XK_Shift_L, false);
 }
 
 ShiftKey::~ShiftKey() {
--- trunk/playground/base/plasma/applets/plasmaboard/widget.cpp #953031:953032
@@ -26,6 +26,7 @@
 #include "BackspaceKey.h"
 #include "TabKey.h"
 #include "ShiftKey.h"
+#include "CapsKey.h"
 #include <QPainter>
 #include <QGraphicsGridLayout>
 #include <X11/Xlib.h>
@@ -222,6 +223,7 @@
 	funcKeys[0] = new BackspaceKey(this);
 	funcKeys[1] = new TabKey(this);
 	funcKeys[2] = new EnterKey(this);
+	funcKeys[3] = new CapsKey(this);
 	funcKeys[4] = new ShiftKey(this);
 	funcKeys[5] = new ShiftKey(this);
 
@@ -352,8 +354,6 @@
 	alphaKeys[46]->setKeycode(60);
 	alphaKeys[47]->setKeycode(61);
 
-	funcKeys[3]->setKeycode(XK_Caps_Lock, true);
-	funcKeys[3]->setText("CAPS");
 	funcKeys[6]->setKeycode(XK_Control_L, false);
 	funcKeys[6]->setText("CTL");
 	funcKeys[7]->setKeycode(XK_Meta_L, false);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic