stack/code/dboxswitch.git
12 years agoadded addprofile icon
stack [Wed, 11 Jul 2012 17:57:02 +0000 (19:57 +0200)]
added addprofile icon

12 years agoFirstImplementation of main dialog profile manager
stack [Wed, 11 Jul 2012 16:44:36 +0000 (18:44 +0200)]
FirstImplementation of main dialog profile manager

Profiles could be deleted from a main dialog with a layout that has
still some resizong problem.
The layout builds a label and a qtoolbutton that calls the action that
hides those widgets and deletes the profile.
The actual call to profHandler.delProfile is commented out.

12 years agoget profile names worted by name
stack [Wed, 11 Jul 2012 16:44:13 +0000 (18:44 +0200)]
get profile names worted by name

12 years agotells if a profile already exists
stack [Wed, 11 Jul 2012 16:41:32 +0000 (18:41 +0200)]
tells if a profile already exists

catch OSError in profhandler.addProfile to know if some error is catched
and pass that as AppError to the gui, properly formatted on common
error, for example if the file already exists.

12 years agotypo in delete profile fixed
stack [Wed, 11 Jul 2012 01:25:23 +0000 (03:25 +0200)]
typo in delete profile fixed

12 years agoadded profhandler.getProfileBaseName
stack [Tue, 10 Jul 2012 23:10:34 +0000 (01:10 +0200)]
added profhandler.getProfileBaseName

now the path story is somewhat more abstracted

12 years agochmod -x to apperror gui and profhandler
stack [Mon, 9 Jul 2012 12:08:02 +0000 (14:08 +0200)]
chmod -x to apperror gui and profhandler

12 years agomoved main.py to __main__.py
stack [Mon, 9 Jul 2012 12:06:56 +0000 (14:06 +0200)]
moved main.py to __main__.py

this lets us to execute the program with python dirname where
dirname contains all the python source files

12 years agoabsolute icon dir
stack [Mon, 9 Jul 2012 01:04:48 +0000 (03:04 +0200)]
absolute icon dir

in case of willing to use py2exe read this
http://stackoverflow.com/questions/2292703/how-can-i-get-the-executables-current-directory-in-py2exe
It is already implemented using sys.argv[0]

12 years agodeleted some debugging print
stack [Mon, 9 Jul 2012 00:19:49 +0000 (02:19 +0200)]
deleted some debugging print

12 years agostop sync in linux before killing daemon
stack [Mon, 9 Jul 2012 00:18:25 +0000 (02:18 +0200)]
stop sync in linux before killing daemon

12 years agocurrent profile icon
stack [Mon, 9 Jul 2012 00:16:13 +0000 (02:16 +0200)]
current profile icon

12 years agoprofiling switching works on linux and maybe on osx, not yet tested
stack [Sun, 8 Jul 2012 23:33:20 +0000 (01:33 +0200)]
profiling switching works on linux and maybe on osx, not yet tested

12 years agoGui showTrayprofiles showing path and not profile name, fixed
stack [Sun, 8 Jul 2012 23:32:53 +0000 (01:32 +0200)]
Gui showTrayprofiles showing path and not profile name, fixed

12 years agoget dropbox directory in an os dependant way in ProfHandler
stack [Sun, 8 Jul 2012 19:36:42 +0000 (21:36 +0200)]
get dropbox directory in an os dependant way in ProfHandler

12 years agorefactored activateProfile to pass a path instead of a profile name
stack [Sun, 8 Jul 2012 18:58:05 +0000 (20:58 +0200)]
refactored activateProfile to pass a path instead of a profile name

12 years agoGui activate profile action
stack [Sun, 8 Jul 2012 18:46:20 +0000 (20:46 +0200)]
Gui activate profile action

this now handles the displaying of errors, using a function compiled to
activate the right profile and catching AppError exceptions and
displaying QErrorMessages with Gui.showError

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