OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Data Fields
ComboOptionsWidget Class Reference

Inherits QWidget.

Public Member Functions

def __init__
 
def Update
 
def AddWidget
 
def RemoveWidget
 
def OnComboChange
 
def OnActivate
 
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.

Constructor & Destructor Documentation

def __init__ (   self,
  parent = None 
)

Definition at line 33 of file combo_options_widget.py.

Member Function Documentation

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 62 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 99 of file combo_options_widget.py.

def DoResize (   self)

Definition at line 119 of file combo_options_widget.py.

def GetCurrentWidget (   self)

Definition at line 114 of file combo_options_widget.py.

def OnActivate (   self,
  item 
)

Definition at line 96 of file combo_options_widget.py.

def OnComboChange (   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 88 of file combo_options_widget.py.

def RemoveWidget (   self,
  ident 
)

Definition at line 82 of file combo_options_widget.py.

def setEnabled (   self,
  bool 
)

Definition at line 150 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 55 of file combo_options_widget.py.

Field Documentation

combo_box_

Definition at line 41 of file combo_options_widget.py.

grid_layout_

Definition at line 37 of file combo_options_widget.py.

parent_

Definition at line 36 of file combo_options_widget.py.

stacked_widget_

Definition at line 43 of file combo_options_widget.py.


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