Preferences.Preferences Class Reference

Menu closes the app. More...

List of all members.

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)


Detailed Description

Menu closes the app.

Shows a menu with a button to close the main app.


Member Function Documentation

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.

Parameters:
self The object pointer.
widget The type of the window.

def Preferences.Preferences.Save (   self,
  widget 
)

Saves the preferences choosen in this menu

Parameters:
self The object pointer.
widget The type of the window.
Returns:
writes the preferences into a file named "prueba.cfg"

def Preferences.Preferences.DestroyWind (   self,
  widget 
)

Destroy method of the window.

Parameters:
self The object pointer.
widget The type of the window.
Author:
Roberto Cano Fernandez

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.

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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)

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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.

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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.

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Carlos Agra-Roberto Cano

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.

Parameters:
self the object pointer
widget the widget for take the value
Author:
Carlos Agra-Roberto Cano

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Carlos Agra-Roberto Cano

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.

Parameters:
self the object pointer
widget the widget for take the value
Author:
Carlos Agra-Roberto Cano

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández

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

Parameters:
self the object pointer
widget the widget for take the value
Author:
Roberto Cano Fernández


Member Data Documentation

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]

Preferences.Preferences::gladefile

Variable wich contains the .glade file.

Preferences.Preferences::wTree

Contains the XML info of the .glade

Preferences.Preferences.__treeviewInclude [private]

Treeviews initializations Prepare the renderers

Preferences.Preferences.__treeviewExclude [private]

Preferences.Preferences.window

Preferences.Preferences.__re_whitelist [private]

Preferences.Preferences.__re_blacklist [private]

Preferences.Preferences.__whitelist [private]

Preferences.Preferences.__blacklist [private]

Preferences.Preferences.__sizeValue [private]

Preferences.Preferences.__modBackEveryVal [private]

Preferences.Preferences.__chooseDir [private]

Preferences.Preferences.__lang [private]

Preferences.Preferences.__spaceLimit [private]

Preferences.Preferences.__timeLimit [private]


Generated on Wed Dec 19 19:25:04 2007 for HdLorean by  doxygen 1.5.4