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

Inherits QWidget.

Public Member Functions

def __init__
 
def Update
 
def AddWidget
 
def OnComboChange
 
def DoResize
 
def ChangeSelectedItem
 
def setEnabled
 

Data Fields

 parent_
 
 gridLayout
 
 tool_bar_
 
 stackedWidget
 
 current_action_
 
 actions_
 

Detailed Description

QWidget with a ToolBar and a show area.
  
 This abstract QWidget has a toolbar and a show area. Whenever a button of the tool bar is pressed, the Widget corresponding to the button's value is shown in the show area.  

Definition at line 26 of file toolbar_options_widget.py.

Constructor & Destructor Documentation

def __init__ (   self,
  parent = None 
)

Definition at line 31 of file toolbar_options_widget.py.

Member Function Documentation

def AddWidget (   self,
  ident,
  widget,
  text = None 
)
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 69 of file toolbar_options_widget.py.

def ChangeSelectedItem (   self,
  action 
)
Change Current Selected Item.

 Shows the widget which corresponds to the action in the show area.

Definition at line 117 of file toolbar_options_widget.py.

def DoResize (   self)

Definition at line 105 of file toolbar_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 97 of file toolbar_options_widget.py.

def setEnabled (   self,
  bool 
)

Definition at line 140 of file toolbar_options_widget.py.

def Update (   self)
Updates the active widget of the show area.

 This method calls the Update method of the active widget.

Definition at line 58 of file toolbar_options_widget.py.

Field Documentation

actions_

Definition at line 50 of file toolbar_options_widget.py.

current_action_

Definition at line 49 of file toolbar_options_widget.py.

gridLayout

Definition at line 38 of file toolbar_options_widget.py.

parent_

Definition at line 35 of file toolbar_options_widget.py.

stackedWidget

Definition at line 46 of file toolbar_options_widget.py.

tool_bar_

Definition at line 43 of file toolbar_options_widget.py.


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