stack/code/dboxswitch.git
11 years agofix merge
stack [Sun, 16 Jun 2013 17:36:56 +0000 (19:36 +0200)]
fix merge

11 years agofix path in settings.py also for windows
stack [Sat, 20 Apr 2013 18:08:23 +0000 (20:08 +0200)]
fix path in settings.py also for windows

11 years agolaunch without installing in README
stack [Sat, 20 Apr 2013 13:27:47 +0000 (15:27 +0200)]
launch without installing in README

11 years agoicons path from installed package or script dir
stack [Sat, 20 Apr 2013 12:43:30 +0000 (14:43 +0200)]
icons path from installed package or script dir

11 years agomanifest modified
stack [Sat, 20 Apr 2013 12:43:08 +0000 (14:43 +0200)]
manifest modified

11 years agocorrected readme with setuptools
stack [Fri, 19 Apr 2013 02:14:32 +0000 (04:14 +0200)]
corrected readme with setuptools

11 years agoimplemented an installer with distribute
stack [Fri, 19 Apr 2013 02:07:35 +0000 (04:07 +0200)]
implemented an installer with distribute

11 years agofixed guy indend typo
stack [Fri, 19 Apr 2013 01:57:25 +0000 (03:57 +0200)]
fixed guy indend typo

11 years agofixed indentation typo in gui.py
stack [Mon, 1 Apr 2013 18:07:36 +0000 (20:07 +0200)]
fixed indentation typo in gui.py

11 years agowait some time for systray to appear
stack [Mon, 4 Mar 2013 17:13:36 +0000 (18:13 +0100)]
wait some time for systray to appear

11 years agomodified COSE fatte
stack [Sat, 16 Feb 2013 17:21:38 +0000 (18:21 +0100)]
modified COSE fatte

11 years agoMakefile to clean pyc
stack [Wed, 11 Jul 2012 18:03:49 +0000 (20:03 +0200)]
Makefile to clean pyc

11 years agomoved icons in a subdirectory
stack [Wed, 11 Jul 2012 18:02:00 +0000 (20:02 +0200)]
moved icons in a subdirectory

11 years agoBetter delProfile gui implementation
stack [Wed, 11 Jul 2012 17:57:26 +0000 (19:57 +0200)]
Better delProfile gui implementation

now the gui resizes on Dialog reopening and a button to add a profile is
none is present has been added, the deleteprofile action is not more
commented

11 years agochanged deleteprofile icon
stack [Wed, 11 Jul 2012 17:57:21 +0000 (19:57 +0200)]
changed deleteprofile icon

11 years agoadded addprofile icon
stack [Wed, 11 Jul 2012 17:57:02 +0000 (19:57 +0200)]
added addprofile icon

11 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.

11 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

11 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.

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

11 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

11 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

11 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

11 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]

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

11 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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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())

11 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

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

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

11 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)

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

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

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