OpenStructure
Public Member Functions | Data Fields
ComboOptionsWidget Class Reference

Inherits QWidget.

Inherited by ColorOptionsWidget, and RenderOptionsWidget.

Public Member Functions

def __init__ (self, parent=None)
 
def Update (self)
 
def AddWidget (self, ident, widget)
 
def RemoveWidget (self, ident)
 
def OnComboChange (self, item)
 
def OnActivate (self, item)
 
def ChangeSelectedItem (self, ident)
 
def GetCurrentWidget (self)
 
def DoResize (self)
 
def setEnabled (self, bool)
 

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

◆ __init__()

def __init__ (   self,
  parent = None 
)

Reimplemented in RenderOptionsWidget, and ColorOptionsWidget.

Definition at line 33 of file combo_options_widget.py.

Member Function Documentation

◆ AddWidget()

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.

◆ ChangeSelectedItem()

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

◆ DoResize()

def DoResize (   self)

Definition at line 118 of file combo_options_widget.py.

◆ GetCurrentWidget()

def GetCurrentWidget (   self)

Definition at line 113 of file combo_options_widget.py.

◆ OnActivate()

def OnActivate (   self,
  item 
)

Reimplemented in RenderOptionsWidget.

Definition at line 95 of file combo_options_widget.py.

◆ OnComboChange()

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.

Reimplemented in RenderOptionsWidget, and ColorOptionsWidget.

Definition at line 87 of file combo_options_widget.py.

◆ RemoveWidget()

def RemoveWidget (   self,
  ident 
)

Definition at line 81 of file combo_options_widget.py.

◆ setEnabled()

def setEnabled (   self,
  bool 
)

Definition at line 149 of file combo_options_widget.py.

◆ Update()

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

 This method calls the Update method of the active widget. 

Reimplemented in RenderOptionsWidget, and ColorOptionsWidget.

Definition at line 54 of file combo_options_widget.py.

Field Documentation

◆ combo_box_

combo_box_

Definition at line 41 of file combo_options_widget.py.

◆ grid_layout_

grid_layout_

Definition at line 37 of file combo_options_widget.py.

◆ parent_

parent_

Definition at line 36 of file combo_options_widget.py.

◆ stacked_widget_

stacked_widget_

Definition at line 43 of file combo_options_widget.py.


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