Abstract class for GUI components.
More...
#include <GUIWidget.h>
Abstract class for GUI components.
◆ layoutType
Enumerator |
---|
noLayout | |
hboxLayout | |
vboxLayout | |
gridLayout | |
◆ GUIWidget()
create a new GUIWidget ( this constructor must be called by all subclasses )
- Parameters
-
def | GUIDefinition instance |
minParamCount | minimum count of expected parameters |
maxParamCount | maximum count of expected parameters (if -1, this is also minParamCount) |
lt | layout-type to use |
defMinSize | default minimum size constraint for the widget |
◆ ~GUIWidget()
virtual icl::qt::GUIWidget::~GUIWidget |
( |
| ) |
|
|
virtual |
◆ addToGrid
void icl::qt::GUIWidget::addToGrid |
( |
QWidget * |
c, |
|
|
int |
x = 0 , |
|
|
int |
y = 0 , |
|
|
int |
width = 1 , |
|
|
int |
height = 1 |
|
) |
| |
|
slot |
help function to add new sub components
This function does only work as long the underlying layout manamer is a QGridLayout
◆ cb
void icl::qt::GUIWidget::cb |
( |
| ) |
|
|
slot |
Callback execution.
this function must be called by each special component when registered callbacks should be executed
◆ getGUI
GUI* icl::qt::GUIWidget::getGUI |
( |
| ) |
|
|
inlineslot |
returns the underlying GUI structure
◆ getGUIWidgetLayout
virtual QLayout* icl::qt::GUIWidget::getGUIWidgetLayout |
( |
| ) |
|
|
inlinevirtualslot |
this function must be reimplemented for other layouts the hbox, vbox or grid
◆ getProxyLayout
virtual ProxyLayout* icl::qt::GUIWidget::getProxyLayout |
( |
| ) |
|
|
inlinevirtualslot |
this shall help to add containes that dont work with layouts (such as tab-widgets)
◆ ioSlot
void icl::qt::GUIWidget::ioSlot |
( |
| ) |
|
|
slot |
imediately calls processIO
This slot must be connected to the custom widgets "somethis-has-changed"-signal e.g. A button's "clicked" or a sliders "moved" function
◆ processIO
virtual void icl::qt::GUIWidget::processIO |
( |
| ) |
|
|
inlinevirtualslot |
virtual function which must be implemented for a components custom "new-data"-event
◆ registerCallback [1/2]
void icl::qt::GUIWidget::registerCallback |
( |
const GUI::Callback & |
cb | ) |
|
|
inlineslot |
registers a callback on this gui widget
◆ registerCallback [2/2]
registers a callback on this gui widget
◆ removeCallbacks
void icl::qt::GUIWidget::removeCallbacks |
( |
| ) |
|
|
inlineslot |
remove all callbacks from this widget
◆ sizeHint
virtual QSize icl::qt::GUIWidget::sizeHint |
( |
| ) |
const |
|
virtualslot |
returns the widgets preferres size
◆ m_handle
std::string* icl::qt::GUIWidget::m_handle |
|
private |
◆ m_poGridLayout
QGridLayout* icl::qt::GUIWidget::m_poGridLayout |
|
private |
◆ m_poGUI
GUI* icl::qt::GUIWidget::m_poGUI |
|
private |
◆ m_poOtherLayout
QLayout* icl::qt::GUIWidget::m_poOtherLayout |
|
private |
◆ m_preferredSize
◆ m_vecCallbacks
◆ m_vecComplexCallbacks
The documentation for this class was generated from the following file: