ComboOptionsWidget Class Reference


Public Member Functions

def __init__
def Update
def AddWidget
def RemoveWidget
def DoSomething
def ChangeSelectedItem
def GetCurrentWidget
def DoResize
def setEnabled

Data Fields

 parent_
 grid_layout_
 combo_box_
 stacked_widget_

Detailed Description

QWidget with a Combobox and a show area.
  
 This abstract QWidget has a Combobox and a show area. Whenever the value of 
 the Combobox changes, the Widget corresponding to the Combobox's value is 
 shown in the show area.  

Definition at line 26 of file combo_options_widget.py.


Member Function Documentation

def __init__ (   self,
  parent = None 
)

Definition at line 33 of file combo_options_widget.py.

def AddWidget (   self,
  ident,
  widget 
)

Adds a Widget to this Options Widget.

 The Widget must have a identifier. If another Widget has the same identifier,
 the old widget will be removed and the new widget gets the identifier.
 Returns True, if widget is added. Otherwise it returns False

Definition at line 61 of file combo_options_widget.py.

def ChangeSelectedItem (   self,
  ident 
)

Change Current Selected Item.

 Shows the widget which corresponds to the ident in the show area. If ident is not valid, nothing happens.

Definition at line 95 of file combo_options_widget.py.

def DoResize (   self  ) 

Definition at line 110 of file combo_options_widget.py.

def DoSomething (   self,
  item 
)

This abstract method is called whenever the View is updated.

 This abstract method must be implemented by all subclasses. 
 It can be used to do something ;-) whenever the combobox changes its value.

Definition at line 87 of file combo_options_widget.py.

def GetCurrentWidget (   self  ) 

Definition at line 105 of file combo_options_widget.py.

def RemoveWidget (   self,
  ident 
)

Definition at line 81 of file combo_options_widget.py.

def setEnabled (   self,
  bool 
)

Definition at line 141 of file combo_options_widget.py.

def Update (   self  ) 

Updates the ComboOptionsWidget and the active widget of the show area.

 This method calls the Update method of the active widget. 

Definition at line 54 of file combo_options_widget.py.


Field Documentation

Definition at line 41 of file combo_options_widget.py.

Definition at line 37 of file combo_options_widget.py.

Definition at line 36 of file combo_options_widget.py.

Definition at line 43 of file combo_options_widget.py.


The documentation for this class was generated from the following file:

Generated on Fri Jul 2 14:23:06 2010 for OpenStructure by  doxygen 1.5.8