Module pisigui :: Class Base
[hide private]
[frames] | no frames]

Class Base

source code

pisiprogress.AbstractCallback --+
                                |
                               Base

The one and only Main frame

Made up mainly by a notebook; one side for each type of PIM data, and by a progress bar and some buttons.

Instance Methods [hide private]
 
__init__(self)
Constructor - the whole assembling of the window is performed in here
source code
 
_createContactsPanel(self, sources)
Creates one side in the notebook - the one for setting up contacts synchronization
source code
 
_createCalendarPanel(self, sources)
Creates one side in the notebook - the one for setting up calendar synchronization
source code
 
main(self)
Starts up the application ('Main-Loop')
source code
 
destroy(self, widget, data=None)
Shuts down the application
source code
 
delete_event(self, widget, event, data=None)
Event handler
source code
 
showAbout(self, target)
Pops up an 'About'-dialog, which displays all the application meta information from module pisiconstants.
source code
 
startSync(self, target)
Passes control on to PISI core and starts up synchronization process
source code
 
message(self, st, messageType=<enum GTK_MESSAGE_INFO of type GtkMessageType>)
Output a message to the user - a message dialog is popped up
source code
 
verbose(self, st)
Output a message (of lower interest) to the user - output is directed to text based console.
source code
 
error(self, st)
Redirect to message with special dialog type
source code
 
promptGenericConfirmation(self, prompt)
Ask user for a single confirmation (OK / Cancel)
source code
 
promptGeneric(self, prompt, default)
Prompt the user for a single entry to type in - not implemented in GUI
source code
 
promptFilename(self, prompt, default)
Prompt the user for providing a file name - the standard file selection dialog of GTK is used for this
source code
 
askConfirmation(self, source, idList)
Use interaction for choosing which contact entry to keep in case of a conflict
source code
 
update(self, status)
This function should be called whenever new information has been made available and the UI should be updates somehow.
source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructor - the whole assembling of the window is performed in here

Overrides: pisiprogress.AbstractCallback.__init__

startSync(self, target)

source code 

Passes control on to PISI core and starts up synchronization process

Updates on the GUI are from now on only performed on request of the core by calling the callback functions.

message(self, st, messageType=<enum GTK_MESSAGE_INFO of type GtkMessageType>)

source code 

Output a message to the user - a message dialog is popped up

Overrides: pisiprogress.AbstractCallback.message

verbose(self, st)

source code 

Output a message (of lower interest) to the user - output is directed to text based console.

Overrides: pisiprogress.AbstractCallback.verbose

error(self, st)

source code 

Redirect to message with special dialog type

Overrides: pisiprogress.AbstractCallback.error

promptGenericConfirmation(self, prompt)

source code 

Ask user for a single confirmation (OK / Cancel)

Overrides: pisiprogress.AbstractCallback.promptGenericConfirmation

promptGeneric(self, prompt, default)

source code 

Prompt the user for a single entry to type in - not implemented in GUI

Overrides: pisiprogress.AbstractCallback.promptGeneric

promptFilename(self, prompt, default)

source code 

Prompt the user for providing a file name - the standard file selection dialog of GTK is used for this

Overrides: pisiprogress.AbstractCallback.promptFilename

askConfirmation(self, source, idList)

source code 

Use interaction for choosing which contact entry to keep in case of a conflict

An instance of ConflictsDialog is started up with the information in question.

Returns:
A dictionary which contains the action for each conflict entry; the key is the id of the contact entry, the value one out of a - keep entry from first source, b - keep value from second source and s - skip this entry (no change on either side)
Overrides: pisiprogress.AbstractCallback.askConfirmation

update(self, status)

source code 

This function should be called whenever new information has been made available and the UI should be updates somehow.

The progress bar is updated and the messages is put insight the progress bar. Finally, the GUI is forced to update all components.

Overrides: pisiprogress.AbstractCallback.update