ToolBarOptionsWidget Class Reference

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.


Member Function Documentation

def __init__ (   self,
  parent = None 
)

Definition at line 31 of file toolbar_options_widget.py.

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 70 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 118 of file toolbar_options_widget.py.

def DoResize (   self  ) 

Definition at line 106 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 98 of file toolbar_options_widget.py.

def setEnabled (   self,
  bool 
)

Definition at line 141 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 59 of file toolbar_options_widget.py.


Field Documentation

Definition at line 51 of file toolbar_options_widget.py.

Definition at line 50 of file toolbar_options_widget.py.

Definition at line 38 of file toolbar_options_widget.py.

Definition at line 35 of file toolbar_options_widget.py.

Definition at line 47 of file toolbar_options_widget.py.

Definition at line 44 of file toolbar_options_widget.py.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1