armarx::gui Namespace Reference

Classes

class  LeadingZeroSpinBox
 
class  LifecycleClient
 
class  LifecycleServer
 

Functions

void clearItem (QTreeWidgetItem *item)
 Clear a tree widget item. More...
 
void clearLayout (QLayout *layout)
 Clear a layout. More...
 
void clearSplitter (QSplitter *splitter)
 
void connectLifecycle (LifecycleServer *server, LifecycleClient *client)
 
template<class WidgetT >
void replaceWidget (WidgetT *&old, QWidget *neu, QLayout *parentLayout)
 
template<class WidgetT >
void replaceWidget (WidgetT *&old, QWidget *neu, QSplitter *&parentLayout)
 
QSplitter * useSplitter (QLayout *layout)
 Let items in layout be children of a splitter. More...
 

Function Documentation

◆ clearItem()

void clearItem ( QTreeWidgetItem *  item)

Clear a tree widget item.

Take and delete all children of item.

Parameters
itemThe tree widget item.

Definition at line 34 of file gui_utils.cpp.

+ Here is the caller graph for this function:

◆ clearLayout()

void clearLayout ( QLayout *  layout)

Clear a layout.

Recursively take and delete all items in layout.

Parameters
layoutThe layout.

Definition at line 12 of file gui_utils.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearSplitter()

void clearSplitter ( QSplitter *  splitter)

Definition at line 103 of file gui_utils.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ connectLifecycle()

void connectLifecycle ( LifecycleServer server,
LifecycleClient client 
)

Definition at line 90 of file lifecycle.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ replaceWidget() [1/2]

void replaceWidget ( WidgetT *&  old,
QWidget *  neu,
QLayout *  parentLayout 
)

Definition at line 36 of file gui_utils.h.

+ Here is the caller graph for this function:

◆ replaceWidget() [2/2]

void armarx::gui::replaceWidget ( WidgetT *&  old,
QWidget *  neu,
QSplitter *&  parentLayout 
)

Definition at line 56 of file gui_utils.h.

◆ useSplitter()

QSplitter * useSplitter ( QLayout *  layout)

Let items in layout be children of a splitter.

Items in layout are moved to a new QSplitter, which will be the only child of layout. If layout is a Q{H,V}BoxLayout, the respective orientation will be adopted.

Parameters
Theparent layout.
Returns
The splitter item.

Definition at line 43 of file gui_utils.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: