stack/code/dboxswitch.git
12 years agomakes the Qt application quit upong sigint
stack [Sun, 8 Jul 2012 18:19:50 +0000 (20:19 +0200)]
makes the Qt application quit upong sigint

12 years agoRewrite files header , with copyright and bang
stack [Sun, 8 Jul 2012 18:06:16 +0000 (20:06 +0200)]
Rewrite files header , with copyright and bang

12 years agoProfile menu tooltips
stack [Sun, 8 Jul 2012 17:59:45 +0000 (19:59 +0200)]
Profile menu tooltips

for enabling QMenu to display tooltips I subclassed QMenu and overloaded
    event with a method that actually displays the tooltip, this is done
    in the class QMenuToolTip in the new added file qmenutooltip.py

12 years agoMoved addProfile action in createActions
stack [Sun, 8 Jul 2012 16:54:38 +0000 (18:54 +0200)]
Moved addProfile action in createActions

in gui it is best to build all "static" actions on init, using the
method createActions, and attach them where needed

12 years agogui.py better function documentation
stack [Sun, 8 Jul 2012 16:44:27 +0000 (18:44 +0200)]
gui.py better function documentation

added more function documentation in Gui and also documented some
passage

12 years agoadded initial profiles switch implementation
stack [Sun, 8 Jul 2012 16:17:48 +0000 (18:17 +0200)]
added initial profiles switch implementation

when left clicking on the systray a list of profiles is shown, clicking
on a profile a "activateProfile" is called and an action to create a new
profile is displayed.
This is handled through a QMenu and lambda functions to pass additional
paramenters to the receiver, also interesting are the functions:
            self.menuProfiles.activateWindow()
            self.menuProfiles.popup(QtGui.QCursor.pos())

12 years agoshowError in Gui
stack [Sun, 8 Jul 2012 16:16:58 +0000 (18:16 +0200)]
showError in Gui

showError displays a QErrorMessage, usually when catchin a AppError
containing an errorstring to display

12 years agorenamed error message in profhandler
stack [Sun, 8 Jul 2012 16:14:49 +0000 (18:14 +0200)]
renamed error message in profhandler

12 years agorenamed newProfile to addProfile
stack [Sun, 8 Jul 2012 16:14:26 +0000 (18:14 +0200)]
renamed newProfile to addProfile

12 years agocorrected profile list generation
stack [Sun, 8 Jul 2012 16:13:31 +0000 (18:13 +0200)]
corrected profile list generation

Profiles generation at runtime was picking up a nonexistant attribute
(self. was missing)

12 years agoadded dumb icon to tray
stack [Sun, 8 Jul 2012 16:12:59 +0000 (18:12 +0200)]
added dumb icon to tray

12 years agotooltip in systray
stack [Sun, 8 Jul 2012 00:54:01 +0000 (02:54 +0200)]
tooltip in systray

12 years agoinitial draft app implementation code
stack [Sun, 8 Jul 2012 00:17:21 +0000 (02:17 +0200)]
initial draft app implementation code