packetMonitorPrefsImpl Class Reference

Class for managing Packet Monitor user's preferences. More...

Inheritance diagram for packetMonitorPrefsImpl:

Inheritance graph
[legend]
Collaboration diagram for packetMonitorPrefsImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

def __init__
def loadConfigFile
def loadConfig
def __defaults
def setSysDefaults
def setMonDefaults
def selectStyle
def selectFont
def saveMainWindowSize
def savePrefs

Private Attributes

 __gui
 __confParser
 __configFile

Detailed Description

Class for managing Packet Monitor user's preferences.

The Packet Monitor keeps a user's preferences information in a file that is called .pktmonrc when os.name returns 'posix', and pktmon.cfg otherwise, e.g. Windows. If the file doesn't exist, a set of defaults are used. These will be written to a file in the packet monitor source directory if it is writable. Packet Monitor searches for the preferences file in the following directories in the order specified: the current directory, the directory pointed to by the HOME environment variable, and the Packet Monitor source directory.

Definition at line 28 of file packetMonitorPrefsImpl.py.


Member Function Documentation

def __defaults   self  ) 
 

Load default values into configuration file. OBSOLETE.

Definition at line 117 of file packetMonitorPrefsImpl.py.

def __init__   self,
  confParser,
  parent = None,
  name = None,
  modal = 0,
  fl = 0
 

Definition at line 31 of file packetMonitorPrefsImpl.py.

def loadConfig   self  ) 
 

Loads configuration from file if configuration file exists.

Definition at line 70 of file packetMonitorPrefsImpl.py.

def loadConfigFile   self  ) 
 

Definition at line 49 of file packetMonitorPrefsImpl.py.

def saveMainWindowSize   self  ) 
 

Saves Main Window Size when it is closed.

Definition at line 186 of file packetMonitorPrefsImpl.py.

def savePrefs   self  ) 
 

Saves preferences when pressing the OK button of the
Preferences Dialog.

Definition at line 199 of file packetMonitorPrefsImpl.py.

def selectFont   self  ) 
 

Calls a select font dialog and sets the application font
to the selected font value.

Definition at line 172 of file packetMonitorPrefsImpl.py.

def selectStyle   self,
  style
 

Sets the application style to the selected style.

Definition at line 165 of file packetMonitorPrefsImpl.py.

def setMonDefaults   self  ) 
 

Sets Monitors' default maximum number of rows and
number of rows deleted when this number is reached.

Definition at line 158 of file packetMonitorPrefsImpl.py.

def setSysDefaults   self  ) 
 

Load default GUI values.

Definition at line 128 of file packetMonitorPrefsImpl.py.


Member Data Documentation

__configFile [private]
 

Definition at line 68 of file packetMonitorPrefsImpl.py.

__confParser [private]
 

Definition at line 35 of file packetMonitorPrefsImpl.py.

__gui [private]
 

Definition at line 34 of file packetMonitorPrefsImpl.py.


The documentation for this class was generated from the following file:
Generated on Thu Apr 27 20:54:03 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO