Public Member Functions | |
def | __init__ |
def | Cancel |
def | Save |
def | DestroyWind |
Destroy method of the window. | |
def | setSizeValue |
Takes the value of spin button to determinate the maximun size of a file. | |
def | actNautInt |
Takes the value of check button to determinate integration with nautilus browser. | |
def | modBackIntChan |
Takes the value of check button to determinate the maximun size of a file. | |
def | modBackIntEvery |
Takes the value of check button to determinate if a period time is considered. | |
def | setBackIntEvery |
Takes the value of spin button to determinate how long is the period of time. | |
def | setChoosDir |
Takes the value of directory button to determinate how long is the period of time. | |
def | setLang |
Takes the value of combo button to determinate what is the language. | |
def | spaceExceed |
Takes the value of check button to determinate if backups will automatically be deleted. | |
def | setSpaceLimit |
Takes the value of spin button to determinate the max size of backups to be deleted. | |
def | timeExceed |
Takes the value of check button to determinate if caducity of backups will be considerated. | |
def | setTimeLimit |
Takes the value of spin button to determinate the max time of backups to be deleted. | |
def | addFolderIncButton |
Includes in the treeview a folder url. | |
def | removeIncButton |
Removes in the treeview a folder url. | |
def | addFolderExcButton |
Includes in the treeview a folder url. | |
def | removeExcButton |
Removes in the treeview a folder url. | |
def | includeHidden |
Takes the value of check button to determinate if hidden files will be watched. | |
def | includeBak |
Takes the value of check button to determinate if bak files will be watched. | |
def | includeTemp |
Takes the value of check button to determinate if *.temp files will be watched. | |
def | includeTildeFiles |
Takes the value of check button to determinate if .~ files will be watched. | |
def | excludeHidden |
Takes the value of check button to determinate if hidden files will be excluded. | |
def | excludeBak |
Takes the value of check button to determinate if bak files will be excluded. | |
def | excludeTemp |
Takes the value of spin button to determinate if *.temp files will be excluded. | |
def | excludeTildeFiles |
Takes the value of check button to determinate if temporal files will be excluded. | |
Public Attributes | |
gladefile | |
wTree | |
window | |
Private Attributes | |
__treeviewInclude | |
__treeviewExclude | |
__re_whitelist | |
__re_blacklist | |
__whitelist | |
__blacklist | |
__sizeValue | |
__modBackEveryVal | |
__chooseDir | |
__lang | |
__spaceLimit | |
__timeLimit | |
Static Private Attributes | |
int | __sizeValue = 0 |
__nautInt = False | |
__modBackChange = True | |
__modBackEvery = False | |
int | __modBackEveryVal = 0 |
tuple | __chooseDir = os.getenv('PWD') |
string | __lang = "English(Default)" |
__spaceExceeded = True | |
int | __spaceLimit = 0 |
__timeExceeded = False | |
int | __timeLimit = 0 |
__incHidden = False | |
__incBak = False | |
__incTemp = False | |
__incTilde = False | |
__excHidden = False | |
__excBak = False | |
__excTemp = False | |
__excTilde = False | |
string | __blacklist = "" |
string | __whitelist = "" |
string | __re_blacklist = "" |
string | __re_whitelist = "" |
tuple | __cfm = ConfigFileManager.ConfigFileManager() |
list | __dirsAdded = [] |
list | __dirsExcluded = [] |
tuple | __liststoreInclude = gtk.ListStore(str) |
tuple | __treeviewInclude = gtk.TreeView(__liststoreInclude) |
tuple | __liststoreExclude = gtk.ListStore(str) |
tuple | __treeviewExclude = gtk.TreeView(__liststoreExclude) |
Shows a menu with a button to close the main app.
def Preferences.Preferences.__init__ | ( | self | ) |
The constructor. The first is load in self->wTree. The dictionaty connects the widget's signals with class functions.
def Preferences.Preferences.Cancel | ( | self, | ||
widget | ||||
) |
Cancels the changes of the preferences.
self | The object pointer. | |
widget | The type of the window. |
def Preferences.Preferences.Save | ( | self, | ||
widget | ||||
) |
Saves the preferences choosen in this menu
self | The object pointer. | |
widget | The type of the window. |
def Preferences.Preferences.DestroyWind | ( | self, | ||
widget | ||||
) |
Destroy method of the window.
self | The object pointer. | |
widget | The type of the window. |
def Preferences.Preferences.setSizeValue | ( | self, | ||
widget | ||||
) |
Takes the value of spin button to determinate the maximun size of a file.
This method takes the value in the preferences window and determinates the maximun size of a file.
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.actNautInt | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate integration with nautilus browser.
This method takes the value in the preferences window and determinates if the nautilus integration is enabled or disabled, possible values are True, False(0)
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.modBackIntChan | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate the maximun size of a file.
This method takes the value in the preferences window and determinates if the files are watched when changes are found in them
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.modBackIntEvery | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if a period time is considered.
This method takes the value in the preferences window and determinates if the files are watched periodically
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.setBackIntEvery | ( | self, | ||
widget | ||||
) |
Takes the value of spin button to determinate how long is the period of time.
This method takes the value in the preferences window and determinates the period of time for watching files
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.setChoosDir | ( | self, | ||
widget | ||||
) |
Takes the value of directory button to determinate how long is the period of time.
This method takes the value in the preferences window and determinates the period of time for watching files
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.setLang | ( | self, | ||
widget | ||||
) |
Takes the value of combo button to determinate what is the language.
This method takes the value in the preferences window and determinates the language of HD Lorean
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.spaceExceed | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if backups will automatically be deleted.
This method takes the value in the preferences window and determinates if the backups greater than a max size will be deleted
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.setSpaceLimit | ( | self, | ||
widget | ||||
) |
Takes the value of spin button to determinate the max size of backups to be deleted.
This method takes the value in the preferences window and determinates the maximun size of the backups that users permits the backups greater than this size will be deleted
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.timeExceed | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if caducity of backups will be considerated.
This method takes the value in the preferences window and determinates if backups older than a specified time of caducity will be deleted.
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.setTimeLimit | ( | self, | ||
widget | ||||
) |
Takes the value of spin button to determinate the max time of backups to be deleted.
This method takes the value in the preferences window and determinates the maximun time that a backup can stay in PC without be deleted.
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.addFolderIncButton | ( | self, | ||
widget | ||||
) |
Includes in the treeview a folder url.
This method shows in the tree view an included url from a choose folder dialog. This folder will be watching
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.removeIncButton | ( | self, | ||
widget | ||||
) |
Removes in the treeview a folder url.
This method removes in the tree view an removed url folder selected.
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.addFolderExcButton | ( | self, | ||
widget | ||||
) |
Includes in the treeview a folder url.
This method shows in the tree view an included url from a choose folder dialog. This folder will be exclude from watching
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.removeExcButton | ( | self, | ||
widget | ||||
) |
Removes in the treeview a folder url.
This method removes in the tree view an removed url folder selected.
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.includeHidden | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if hidden files will be watched.
This method takes the value in the preferences window and determinates if hidden files will be watched
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.includeBak | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if bak files will be watched.
This method takes the value in the preferences window and determinates if bak files will be watched
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.includeTemp | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if *.temp files will be watched.
This method takes the value in the preferences window and determinates if *.temp files will be watched
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.includeTildeFiles | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if .~ files will be watched.
This method takes the value in the preferences window and determinates if temporal files (.~) will be watched
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.excludeHidden | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if hidden files will be excluded.
This method takes the value in the preferences window and determinates if hidden files will be excluded to be watching
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.excludeBak | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if bak files will be excluded.
This method takes the value in the preferences window and determinates if bak files will be excluded to be watching
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.excludeTemp | ( | self, | ||
widget | ||||
) |
Takes the value of spin button to determinate if *.temp files will be excluded.
This method takes the value in the preferences window and determinates if *.temp files will be exclude to be watched
self | the object pointer | |
widget | the widget for take the value |
def Preferences.Preferences.excludeTildeFiles | ( | self, | ||
widget | ||||
) |
Takes the value of check button to determinate if temporal files will be excluded.
This method takes the value in the preferences window and determinates if temporal files will be excluded to be watched
self | the object pointer | |
widget | the widget for take the value |
int Preferences.Preferences.__sizeValue = 0 [static, private] |
Class variables
they hace been used to capture all events from glade widgets
Preferences.Preferences.__nautInt = False [static, private] |
Preferences.Preferences.__modBackChange = True [static, private] |
Preferences.Preferences.__modBackEvery = False [static, private] |
int Preferences.Preferences.__modBackEveryVal = 0 [static, private] |
tuple Preferences.Preferences.__chooseDir = os.getenv('PWD') [static, private] |
string Preferences.Preferences.__lang = "English(Default)" [static, private] |
Preferences.Preferences.__spaceExceeded = True [static, private] |
int Preferences.Preferences.__spaceLimit = 0 [static, private] |
Preferences.Preferences.__timeExceeded = False [static, private] |
int Preferences.Preferences.__timeLimit = 0 [static, private] |
Preferences.Preferences.__incHidden = False [static, private] |
Preferences.Preferences.__incBak = False [static, private] |
Preferences.Preferences.__incTemp = False [static, private] |
Preferences.Preferences.__incTilde = False [static, private] |
Preferences.Preferences.__excHidden = False [static, private] |
Preferences.Preferences.__excBak = False [static, private] |
Preferences.Preferences.__excTemp = False [static, private] |
Preferences.Preferences.__excTilde = False [static, private] |
string Preferences.Preferences.__blacklist = "" [static, private] |
string Preferences.Preferences.__whitelist = "" [static, private] |
string Preferences.Preferences.__re_blacklist = "" [static, private] |
string Preferences.Preferences.__re_whitelist = "" [static, private] |
tuple Preferences.Preferences.__cfm = ConfigFileManager.ConfigFileManager() [static, private] |
list Preferences.Preferences.__dirsAdded = [] [static, private] |
Treeview atributes List of indexed directories
list Preferences.Preferences.__dirsExcluded = [] [static, private] |
tuple Preferences.Preferences.__liststoreInclude = gtk.ListStore(str) [static, private] |
tuple Preferences.Preferences.__treeviewInclude = gtk.TreeView(__liststoreInclude) [static, private] |
tuple Preferences.Preferences.__liststoreExclude = gtk.ListStore(str) [static, private] |
tuple Preferences.Preferences.__treeviewExclude = gtk.TreeView(__liststoreExclude) [static, private] |
Variable wich contains the .glade file.
Contains the XML info of the .glade
Treeviews initializations Prepare the renderers
Preferences.Preferences.__re_whitelist [private] |
Preferences.Preferences.__re_blacklist [private] |
Preferences.Preferences.__whitelist [private] |
Preferences.Preferences.__blacklist [private] |
Preferences.Preferences.__sizeValue [private] |
Preferences.Preferences.__chooseDir [private] |
Preferences.Preferences.__lang [private] |
Preferences.Preferences.__spaceLimit [private] |
Preferences.Preferences.__timeLimit [private] |