keystate:keystate.git
8 years agoadd an icon, add a better comment, rename the plasmoid, fix the author's name and... v0.1
xdarklight [Fri, 26 Mar 2010 18:53:31 +0000 (19:53 +0100)]
add an icon, add a better comment, rename the plasmoid, fix the author's name and fix the license

8 years agosimplify layout painting by introducing a 'RectangleLayout' class which provides...
xdarklight [Thu, 25 Mar 2010 22:36:19 +0000 (23:36 +0100)]
simplify layout painting by introducing a 'RectangleLayout' class which provides generic calculations for rectangle layouts

8 years agofixed a few bugs in the vertical layout which resulted in some unnecessary gaps
xdarklight [Thu, 25 Mar 2010 21:59:08 +0000 (22:59 +0100)]
fixed a few bugs in the vertical layout which resulted in some unnecessary gaps

8 years agofixed a bug in the horizontal layout where the spacing was added too often (which...
xdarklight [Thu, 25 Mar 2010 21:56:09 +0000 (22:56 +0100)]
fixed a bug in the horizontal layout where the spacing was added too often (which resulted in a gap)

8 years agofixed a bug where the guessed layout settings in simple configuration mode were not...
xdarklight [Thu, 25 Mar 2010 21:42:54 +0000 (22:42 +0100)]
fixed a bug where the guessed layout settings in simple configuration mode were not re-calculated

8 years agobetter cast when parsing the config file instead
xdarklight [Wed, 24 Mar 2010 20:41:39 +0000 (21:41 +0100)]
better cast when parsing the config file instead

8 years agocast the return value of the getKeyColor method to QColor (this fixes a bug where...
xdarklight [Wed, 24 Mar 2010 20:40:06 +0000 (21:40 +0100)]
cast the return value of the getKeyColor method to QColor (this fixes a bug where settings a color did not work)

8 years agouser documentation++ (for the config dialog)
xdarklight [Wed, 24 Mar 2010 20:32:31 +0000 (21:32 +0100)]
user documentation++ (for the config dialog)

8 years agoremove some unneeded casts
xdarklight [Mon, 22 Mar 2010 21:47:55 +0000 (22:47 +0100)]
remove some unneeded casts

8 years agodo not prefer a layout by default
xdarklight [Mon, 22 Mar 2010 21:10:14 +0000 (22:10 +0100)]
do not prefer a layout by default

8 years agoadd a 'Coding Style' section in the HACKING file
xdarklight [Sun, 21 Mar 2010 23:23:40 +0000 (00:23 +0100)]
add a 'Coding Style' section in the HACKING file

8 years agosmall coding style changes
xdarklight [Sun, 21 Mar 2010 23:23:29 +0000 (00:23 +0100)]
small coding style changes

8 years agotiny performance improvement by adding a isNumeric method to 'Number' also
xdarklight [Sun, 21 Mar 2010 21:23:43 +0000 (22:23 +0100)]
tiny performance improvement by adding a isNumeric method to 'Number' also

8 years agosmall improvements to the main script file
xdarklight [Sun, 21 Mar 2010 21:18:32 +0000 (22:18 +0100)]
small improvements to the main script file

8 years agouse our array prototype in 'KeyConfiguration' instead of some duplicated code
xdarklight [Sun, 21 Mar 2010 21:15:43 +0000 (22:15 +0100)]
use our array prototype in 'KeyConfiguration' instead of some duplicated code

8 years agomove plasmoid initialization code to the main script file
xdarklight [Sun, 21 Mar 2010 21:12:10 +0000 (22:12 +0100)]
move plasmoid initialization code to the main script file

8 years agosmall code design changes
xdarklight [Sun, 21 Mar 2010 21:10:16 +0000 (22:10 +0100)]
small code design changes

8 years agosmall layout changes to the config UI
xdarklight [Sun, 21 Mar 2010 21:04:47 +0000 (22:04 +0100)]
small layout changes to the config UI

8 years agoremove the keyCount from the 'KeyInformation' object (use the array's length instead)
xdarklight [Sun, 21 Mar 2010 20:58:15 +0000 (21:58 +0100)]
remove the keyCount from the 'KeyInformation' object (use the array's length instead)

8 years agofix a bug where the size of the 'keys' array was calculated wrong
xdarklight [Sun, 21 Mar 2010 20:57:34 +0000 (21:57 +0100)]
fix a bug where the size of the 'keys' array was calculated wrong

8 years agoimplement a 'use advanced layout' option (which implies we'll offer a simple layout...
xdarklight [Sun, 21 Mar 2010 20:40:46 +0000 (21:40 +0100)]
implement a 'use advanced layout' option (which implies we'll offer a simple layout configuration where the plasmoid tries to calculate good looking settings on it's own)

8 years agomove some array specific methods from 'KeyInformation' to our 'Array' prototype class
xdarklight [Sun, 21 Mar 2010 17:31:18 +0000 (18:31 +0100)]
move some array specific methods from 'KeyInformation' to our 'Array' prototype class

8 years agomove isNumeric to it's own prototype
xdarklight [Sun, 21 Mar 2010 17:16:05 +0000 (18:16 +0100)]
move isNumeric to it's own prototype

8 years agofix a bug where the plasmoid could not be started (only happened when running it...
xdarklight [Sun, 21 Mar 2010 17:09:59 +0000 (18:09 +0100)]
fix a bug where the plasmoid could not be started (only happened when running it for the first time)

8 years agoadd a 'preferred size' setting
xdarklight [Sun, 21 Mar 2010 17:05:03 +0000 (18:05 +0100)]
add a 'preferred size' setting

8 years agorefactor some code
xdarklight [Sun, 21 Mar 2010 00:21:51 +0000 (01:21 +0100)]
refactor some code

8 years agosimplify layout configuration parsing
xdarklight [Sat, 20 Mar 2010 22:17:56 +0000 (23:17 +0100)]
simplify layout configuration parsing

8 years agoadd more information to the 'HACKING' file
xdarklight [Sat, 20 Mar 2010 22:02:40 +0000 (23:02 +0100)]
add more information to the 'HACKING' file

8 years agoimprove our Array.findIndex prototype
xdarklight [Sat, 20 Mar 2010 20:45:35 +0000 (21:45 +0100)]
improve our Array.findIndex prototype

8 years agoremove the 'findIndex' method into a class which extends 'Array'
xdarklight [Sat, 20 Mar 2010 20:34:55 +0000 (21:34 +0100)]
remove the 'findIndex' method into a class which extends 'Array'

8 years agoremove even more useless code
xdarklight [Sat, 20 Mar 2010 20:19:09 +0000 (21:19 +0100)]
remove even more useless code

8 years agoremove some useless code
xdarklight [Sat, 20 Mar 2010 20:17:16 +0000 (21:17 +0100)]
remove some useless code

8 years agomove the initialization code of the 'PlasmoidHandler' into it's own static method
xdarklight [Sat, 20 Mar 2010 19:57:34 +0000 (20:57 +0100)]
move the initialization code of the 'PlasmoidHandler' into it's own static method

8 years agomove global initialization into it's own static method
xdarklight [Sat, 20 Mar 2010 19:55:03 +0000 (20:55 +0100)]
move global initialization into it's own static method

8 years agorename our 'Globals' object to 'Global'
xdarklight [Sat, 20 Mar 2010 19:48:37 +0000 (20:48 +0100)]
rename our 'Globals' object to 'Global'

8 years agomove some code from 'KeyInformation' to the 'KeyInformationContainer'
xdarklight [Sat, 20 Mar 2010 19:42:56 +0000 (20:42 +0100)]
move some code from 'KeyInformation' to the 'KeyInformationContainer'

8 years agorefactor layout handling: refactor the 'Layout' object and put all layout related...
xdarklight [Sat, 20 Mar 2010 19:32:47 +0000 (20:32 +0100)]
refactor layout handling: refactor the 'Layout' object and put all layout related configuration into a 'LayoutConfiguration' object

8 years agorename 'keyObjectNames' to 'keyNames' so it's clear what that array contains
xdarklight [Sat, 20 Mar 2010 19:01:06 +0000 (20:01 +0100)]
rename 'keyObjectNames' to 'keyNames' so it's clear what that array contains

8 years agoseparate all localization information from the KeyInformation object
xdarklight [Sat, 20 Mar 2010 18:59:29 +0000 (19:59 +0100)]
separate all localization information from the KeyInformation object

8 years agoimprove status change handling (now we're using a more generic way to get data from...
xdarklight [Sat, 20 Mar 2010 18:43:42 +0000 (19:43 +0100)]
improve status change handling (now we're using a more generic way to get data from the data array)

8 years agorename getColorByStatus to resolveColor
xdarklight [Sat, 20 Mar 2010 17:07:12 +0000 (18:07 +0100)]
rename getColorByStatus to resolveColor

8 years agorename 'DataValueObjectName' to 'DataStatusPropertyname'
xdarklight [Sat, 20 Mar 2010 17:03:21 +0000 (18:03 +0100)]
rename 'DataValueObjectName' to 'DataStatusPropertyname'

8 years agoadd some 'whats this' information
xdarklight [Sat, 20 Mar 2010 17:03:05 +0000 (18:03 +0100)]
add some 'whats this' information

8 years agoalso disable the color selection when disabling a checkbox in the config ui
xdarklight [Wed, 17 Mar 2010 22:31:46 +0000 (23:31 +0100)]
also disable the color selection when disabling a checkbox in the config ui

8 years agosmall layout changes to the config ui
xdarklight [Wed, 17 Mar 2010 21:36:58 +0000 (22:36 +0100)]
small layout changes to the config ui

8 years agoadd some inline documentation
xdarklight [Wed, 17 Mar 2010 21:33:20 +0000 (22:33 +0100)]
add some inline documentation

8 years agoupdate the HACKING file since it's now easier to add new keys
xdarklight [Wed, 17 Mar 2010 21:29:08 +0000 (22:29 +0100)]
update the HACKING file since it's now easier to add new keys

8 years agointroduce a KeyInformationContainer which holds all data of a key
xdarklight [Wed, 17 Mar 2010 21:24:32 +0000 (22:24 +0100)]
introduce a KeyInformationContainer which holds all data of a key

8 years agofix a bug in the configuration which made it impossible to change layouts
xdarklight [Wed, 17 Mar 2010 21:03:48 +0000 (22:03 +0100)]
fix a bug in the configuration which made it impossible to change layouts

8 years agomake the 'data updated' event more flexible by moving some information)
xdarklight [Wed, 17 Mar 2010 20:54:25 +0000 (21:54 +0100)]
make the 'data updated' event more flexible by moving some information)

8 years agosimplify the key object names handling
xdarklight [Wed, 17 Mar 2010 20:38:33 +0000 (21:38 +0100)]
simplify the key object names handling

8 years agosimplify configuration parsing
xdarklight [Wed, 17 Mar 2010 20:11:53 +0000 (21:11 +0100)]
simplify configuration parsing

8 years agoadd more keys (AltGr, Meta, Super, Hyper)
xdarklight [Wed, 17 Mar 2010 19:43:14 +0000 (20:43 +0100)]
add more keys (AltGr, Meta, Super, Hyper)

8 years agosimplify the handling of data updates
xdarklight [Wed, 17 Mar 2010 19:34:08 +0000 (20:34 +0100)]
simplify the handling of data updates

8 years agoshrink the height of the config ui a bit
xdarklight [Tue, 16 Mar 2010 20:26:53 +0000 (21:26 +0100)]
shrink the height of the config ui a bit

8 years agoadd tooltips in the config ui
xdarklight [Tue, 16 Mar 2010 20:25:35 +0000 (21:25 +0100)]
add tooltips in the config ui

8 years agoadd a "single" layout
xdarklight [Tue, 16 Mar 2010 20:17:28 +0000 (21:17 +0100)]
add a "single" layout

8 years agoimprove the config ui
xdarklight [Tue, 16 Mar 2010 20:05:06 +0000 (21:05 +0100)]
improve the config ui

8 years agofix the height calculation of the HorizontalLayout
xdarklight [Mon, 15 Mar 2010 23:24:15 +0000 (00:24 +0100)]
fix the height calculation of the HorizontalLayout

8 years agosmall code cleanup (mainly documentation)
xdarklight [Mon, 15 Mar 2010 22:44:11 +0000 (23:44 +0100)]
small code cleanup (mainly documentation)

8 years agoonly set the key color when updating the keys (this also fixes a bug where the key...
xdarklight [Mon, 15 Mar 2010 22:39:36 +0000 (23:39 +0100)]
only set the key color when updating the keys (this also fixes a bug where the key color was not updated when the user changed it in the config)

8 years agoadd an indicator for 'alt pressed'
xdarklight [Mon, 15 Mar 2010 22:31:35 +0000 (23:31 +0100)]
add an indicator for 'alt pressed'

8 years agomake the key information list scrollable
xdarklight [Mon, 15 Mar 2010 22:21:55 +0000 (23:21 +0100)]
make the key information list scrollable

8 years agoimprove config dialog (aadd contraints and small cleanups)
xdarklight [Mon, 15 Mar 2010 22:15:13 +0000 (23:15 +0100)]
improve config dialog (aadd contraints and small cleanups)

8 years agoadd a HACKING file with FAQ
xdarklight [Mon, 15 Mar 2010 21:45:58 +0000 (22:45 +0100)]
add a HACKING file with FAQ

8 years agorename text constants and add constants/translations for 'shift' and 'control' pressed
xdarklight [Mon, 15 Mar 2010 21:35:05 +0000 (22:35 +0100)]
rename text constants and add constants/translations for 'shift' and 'control' pressed

8 years agoadd indicators for 'shift pressed' and 'control pressed'
xdarklight [Mon, 15 Mar 2010 21:23:28 +0000 (22:23 +0100)]
add indicators for 'shift pressed' and 'control pressed'

8 years agomove x position to a variable
xdarklight [Mon, 15 Mar 2010 21:00:30 +0000 (22:00 +0100)]
move x position to a variable

8 years agomove getText to KeyInformation (so the text is available for all layouts)
xdarklight [Mon, 15 Mar 2010 20:58:19 +0000 (21:58 +0100)]
move getText to KeyInformation (so the text is available for all layouts)

8 years agorename KeyInformationList to KeyInformation
xdarklight [Mon, 15 Mar 2010 20:56:17 +0000 (21:56 +0100)]
rename KeyInformationList to KeyInformation

8 years agomore fine-tuning: we don't need the KeyInformation container
xdarklight [Mon, 15 Mar 2010 20:51:48 +0000 (21:51 +0100)]
more fine-tuning: we don't need the KeyInformation container

8 years agoextend the key information concept
xdarklight [Mon, 15 Mar 2010 20:38:38 +0000 (21:38 +0100)]
extend the key information concept

8 years agomake the config ui more user-friendly
xdarklight [Sun, 14 Mar 2010 21:42:52 +0000 (22:42 +0100)]
make the config ui more user-friendly

8 years agoimplemented a new 'key information' concept which makes the plasmoid more flexible
xdarklight [Sun, 14 Mar 2010 19:13:50 +0000 (20:13 +0100)]
implemented a new 'key information' concept which makes the plasmoid more flexible

8 years agoremove unused method
xdarklight [Sun, 14 Mar 2010 18:49:51 +0000 (19:49 +0100)]
remove unused method

8 years agosimplify the default font hack
xdarklight [Sat, 6 Mar 2010 23:05:57 +0000 (00:05 +0100)]
simplify the default font hack

8 years agomake the font (for the text layout) configurable
xdarklight [Sat, 6 Mar 2010 23:02:20 +0000 (00:02 +0100)]
make the font (for the text layout) configurable

8 years agoplasmoid.size is a property now
xdarklight [Sat, 6 Mar 2010 17:33:20 +0000 (18:33 +0100)]
plasmoid.size is a property now

8 years agofix documentation of the layout object
xdarklight [Sat, 27 Feb 2010 22:16:25 +0000 (23:16 +0100)]
fix documentation of the layout object

8 years agorename 'contentLayout' to 'layout' since it's in our Globals object now and thus...
xdarklight [Sat, 27 Feb 2010 22:15:29 +0000 (23:15 +0100)]
rename 'contentLayout' to 'layout' since it's in our Globals object now and thus it does not conflict with the plasmoid's (reserved) 'layout'

8 years agoadd apidoc where it's missing
xdarklight [Sat, 27 Feb 2010 22:14:58 +0000 (23:14 +0100)]
add apidoc where it's missing

8 years agorefactor most of the code to use our new globals object and the new plasmoid handler
xdarklight [Sat, 27 Feb 2010 22:08:21 +0000 (23:08 +0100)]
refactor most of the code to use our new globals object and the new plasmoid handler

8 years agomove fullyTransparentColor to our constant class
xdarklight [Sat, 27 Feb 2010 21:15:34 +0000 (22:15 +0100)]
move fullyTransparentColor to our constant class

8 years agosmall design changes: do not supply the colors in the paint() method
xdarklight [Sun, 21 Feb 2010 22:50:34 +0000 (23:50 +0100)]
small design changes: do not supply the colors in the paint() method

8 years agosmall code cleanup in the vertical layout
xdarklight [Sun, 21 Feb 2010 20:56:15 +0000 (21:56 +0100)]
small code cleanup in the vertical layout

8 years agofix a bug in the vertical layout where the padding was displayed wrong
xdarklight [Sun, 21 Feb 2010 20:54:41 +0000 (21:54 +0100)]
fix a bug in the vertical layout where the padding was displayed wrong

8 years agosmall ui changes in the config dialog
xdarklight [Sun, 21 Feb 2010 20:46:11 +0000 (21:46 +0100)]
small ui changes in the config dialog

8 years agochange wording in the config dialog
xdarklight [Sun, 21 Feb 2010 20:30:52 +0000 (21:30 +0100)]
change wording in the config dialog

8 years agoadd a configurable padding
xdarklight [Sun, 21 Feb 2010 20:27:53 +0000 (21:27 +0100)]
add a configurable padding

8 years agosimplify the text layout
xdarklight [Sun, 21 Feb 2010 20:12:10 +0000 (21:12 +0100)]
simplify the text layout

8 years agofix position calculation for the text layout - plus use a smaller font
xdarklight [Sun, 21 Feb 2010 20:10:22 +0000 (21:10 +0100)]
fix position calculation for the text layout - plus use a smaller font

8 years agoadd a text-layout
xdarklight [Sun, 21 Feb 2010 20:07:59 +0000 (21:07 +0100)]
add a text-layout

8 years agodo not use reserved variables for our own stuff
xdarklight [Sat, 20 Feb 2010 21:12:09 +0000 (22:12 +0100)]
do not use reserved variables for our own stuff

8 years agomore improvments for the config dialog
xdarklight [Sat, 20 Feb 2010 16:55:55 +0000 (17:55 +0100)]
more improvments for the config dialog

8 years agoimprove config dialog
xdarklight [Sat, 20 Feb 2010 16:54:07 +0000 (17:54 +0100)]
improve config dialog

8 years agoadd apidoc to the horizontal layout
xdarklight [Sat, 20 Feb 2010 16:40:25 +0000 (17:40 +0100)]
add apidoc to the horizontal layout

8 years agoadd the vertical layout
xdarklight [Sat, 20 Feb 2010 16:40:12 +0000 (17:40 +0100)]
add the vertical layout

8 years agoset the default size to 24x24
xdarklight [Sat, 20 Feb 2010 16:39:47 +0000 (17:39 +0100)]
set the default size to 24x24

8 years agoremove image padding (this is not needed anymore)
xdarklight [Sat, 20 Feb 2010 16:30:53 +0000 (17:30 +0100)]
remove image padding (this is not needed anymore)

8 years agostart at index 0 (this removes the 1px space on the left)
xdarklight [Sat, 20 Feb 2010 16:24:29 +0000 (17:24 +0100)]
start at index 0 (this removes the 1px space on the left)