TwiceAsNice
2019-02-18
|
#include <UILoaderWidget.h>
Public Member Functions | |
void | openUiWidgets (Nice::JointPtr source, Nice::JointPtr target, bool _recursive) |
Opens all UI/Class of a node. More... | |
UILoaderWidget (Nice::JointPtr source, Nice::JointPtr connectTo, bool _recursive=false, QWidget *parent=0) | |
UILoaderWidget (QString _path, QWidget *parent=0) | |
virtual | ~UILoaderWidget () |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
void | setSessionData (Nice::JointPtr _j) |
void | getSessionData (Nice::JointPtr &_j) |
void | connect (Nice::JointPtr _j) |
void | openUiWidgets (Nice::JointPtr source, Nice::JointPtr target, bool _recursive) |
Opens all UI/Class of a node. More... | |
UILoaderWidget (Nice::JointPtr source, Nice::JointPtr connectTo, bool _recursive=false, QWidget *parent=0) | |
UILoaderWidget (QString _path, QWidget *parent=0) | |
virtual | ~UILoaderWidget () |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
void | setSessionData (Nice::JointPtr _j) |
void | getSessionData (Nice::JointPtr &_j) |
void | connect (Nice::JointPtr _j) |
void | openUiWidgets (Nice::JointPtr source, Nice::JointPtr target, bool _recursive) |
Opens all UI/Class of a node. More... | |
UILoaderWidget (Nice::JointPtr source, Nice::JointPtr connectTo, bool _recursive=false, QWidget *parent=0) | |
UILoaderWidget (QString _path, QWidget *parent=0) | |
virtual | ~UILoaderWidget () |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
void | setSessionData (Nice::JointPtr _j) |
void | getSessionData (Nice::JointPtr &_j) |
void | connect (Nice::JointPtr _j) |
Private Member Functions | |
std::vector< Nice::BridgeItem * > | getAllBridgeItemsRec (QObject *_obj) |
void | loadAllWidgetsRec (Nice::JointPtr _node, Ui::WidgetCollector *widgetCollector, bool _all=false) |
void | getAbsPath (QString &_path) |
QWidget * | loadUIWidget (QString _path) |
Loades a UI-File. More... | |
QWidget * | loadUIWidget (Nice::PropertyPtr _p) |
QWidget * | addClassWidget (const QString &_name) |
Instatiate a class and returns the top widget of this class. More... | |
void | addAllUIWidgets (Nice::JointPtr _node, bool _all=false) |
Process all subnodes and opens/instatiates all guis. More... | |
void | connect (Nice::JointPtr _j, QWidget *_w) |
Connect a widgets sub objects (Elements of type BridgeItem) to the node. More... | |
std::vector< Nice::BridgeItem * > | getAllBridgeItemsRec (QObject *_obj) |
void | loadAllWidgetsRec (Nice::JointPtr _node, Ui::WidgetCollector *widgetCollector, bool _all=false) |
void | getAbsPath (QString &_path) |
QWidget * | loadUIWidget (QString _path) |
Loades a UI-File. More... | |
QWidget * | loadUIWidget (Nice::PropertyPtr _p) |
QWidget * | addClassWidget (const QString &_name) |
Instatiate a class and returns the top widget of this class. More... | |
void | addAllUIWidgets (Nice::JointPtr _node, bool _all=false) |
Process all subnodes and opens/instatiates all guis. More... | |
void | connect (Nice::JointPtr _j, QWidget *_w) |
Connect a widgets sub objects (Elements of type BridgeItem) to the node. More... | |
std::vector< Nice::BridgeItem * > | getAllBridgeItemsRec (QObject *_obj) |
void | loadAllWidgetsRec (Nice::JointPtr _node, Ui::WidgetCollector *widgetCollector, bool _all=false) |
void | getAbsPath (QString &_path) |
QWidget * | loadUIWidget (QString _path) |
Loades a UI-File. More... | |
QWidget * | loadUIWidget (Nice::PropertyPtr _p) |
QWidget * | addClassWidget (const QString &_name) |
Instatiate a class and returns the top widget of this class. More... | |
void | addAllUIWidgets (Nice::JointPtr _node, bool _all=false) |
Process all subnodes and opens/instatiates all guis. More... | |
void | connect (Nice::JointPtr _j, QWidget *_w) |
Connect a widgets sub objects (Elements of type BridgeItem) to the node. More... | |
Private Attributes | |
Nice::JointPtr | m_source |
Nice::JointPtr | m_connectTo |
bool | m_recursive |
QHBoxLayout * | m_layout |
QString | m_path |
Ui::WidgetCollector * | m_widgetCollector |
QFormBuilder * | m_loader |
UILoaderWidget::UILoaderWidget | ( | Nice::JointPtr | source, |
Nice::JointPtr | connectTo, | ||
bool | _recursive = false , |
||
QWidget * | parent = 0 |
||
) |
UILoaderWidget::UILoaderWidget | ( | QString | _path, |
QWidget * | parent = 0 |
||
) |
|
virtual |
UILoaderWidget::UILoaderWidget | ( | Nice::JointPtr | source, |
Nice::JointPtr | connectTo, | ||
bool | _recursive = false , |
||
QWidget * | parent = 0 |
||
) |
UILoaderWidget::UILoaderWidget | ( | QString | _path, |
QWidget * | parent = 0 |
||
) |
|
virtual |
UILoaderWidget::UILoaderWidget | ( | Nice::JointPtr | source, |
Nice::JointPtr | connectTo, | ||
bool | _recursive = false , |
||
QWidget * | parent = 0 |
||
) |
UILoaderWidget::UILoaderWidget | ( | QString | _path, |
QWidget * | parent = 0 |
||
) |
|
virtual |
|
private |
Process all subnodes and opens/instatiates all guis.
If a gui is created it will be lautonatically connected to its node.
_node | Node to start open sub node guis from. |
_all | If true all sub guis will be opened. Otherwise only until the fist level of sub guis. |
|
private |
Process all subnodes and opens/instatiates all guis.
If a gui is created it will be lautonatically connected to its node.
_node | Node to start open sub node guis from. |
_all | If true all sub guis will be opened. Otherwise only until the fist level of sub guis. |
|
private |
Process all subnodes and opens/instatiates all guis.
If a gui is created it will be lautonatically connected to its node.
_node | Node to start open sub node guis from. |
_all | If true all sub guis will be opened. Otherwise only until the fist level of sub guis. |
|
private |
Instatiate a class and returns the top widget of this class.
_name | Name of the class to instatiate. |
|
private |
Instatiate a class and returns the top widget of this class.
_name | Name of the class to instatiate. |
|
private |
Instatiate a class and returns the top widget of this class.
_name | Name of the class to instatiate. |
|
private |
Connect a widgets sub objects (Elements of type BridgeItem) to the node.
_w | Widget to connect. |
_j | Node to connect the widget to. |
|
private |
Connect a widgets sub objects (Elements of type BridgeItem) to the node.
_w | Widget to connect. |
_j | Node to connect the widget to. |
|
private |
Connect a widgets sub objects (Elements of type BridgeItem) to the node.
_w | Widget to connect. |
_j | Node to connect the widget to. |
void UILoaderWidget::connect | ( | Nice::JointPtr | _j | ) |
void UILoaderWidget::connect | ( | Nice::JointPtr | _j | ) |
void UILoaderWidget::connect | ( | Nice::JointPtr | _j | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void UILoaderWidget::getSessionData | ( | Nice::JointPtr & | _j | ) |
void UILoaderWidget::getSessionData | ( | Nice::JointPtr & | _j | ) |
void UILoaderWidget::getSessionData | ( | Nice::JointPtr & | _j | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void UILoaderWidget::openUiWidgets | ( | Nice::JointPtr | source, |
Nice::JointPtr | target, | ||
bool | _recursive | ||
) |
Opens all UI/Class of a node.
Three cases can happen. First, the source node has a "UI" attribute. In this case the UI-File which is defined in the UI attribute is loaded and connected to the target node. Second, the source node has a "CLASS" attribute. In this case the CLASS which is defined in the CLASS attribute is instatitated and connected to the target node. If no UI and no CLASS attribute is set, all sub nodes of source are analyzed and handeled like in the first or second case is described.
source | Node to open unterlaying guis from. |
target | Node to connect unterlaying guis from. |
_recursive | If true all sub guis will be opened. If false only the first layer of guis will be opened. |
void UILoaderWidget::openUiWidgets | ( | Nice::JointPtr | source, |
Nice::JointPtr | target, | ||
bool | _recursive | ||
) |
Opens all UI/Class of a node.
Three cases can happen. First, the source node has a "UI" attribute. In this case the UI-File which is defined in the UI attribute is loaded and connected to the target node. Second, the source node has a "CLASS" attribute. In this case the CLASS which is defined in the CLASS attribute is instatitated and connected to the target node. If no UI and no CLASS attribute is set, all sub nodes of source are analyzed and handeled like in the first or second case is described.
source | Node to open unterlaying guis from. |
target | Node to connect unterlaying guis from. |
_recursive | If true all sub guis will be opened. If false only the first layer of guis will be opened. |
void UILoaderWidget::openUiWidgets | ( | Nice::JointPtr | source, |
Nice::JointPtr | target, | ||
bool | _recursive | ||
) |
Opens all UI/Class of a node.
Three cases can happen. First, the source node has a "UI" attribute. In this case the UI-File which is defined in the UI attribute is loaded and connected to the target node. Second, the source node has a "CLASS" attribute. In this case the CLASS which is defined in the CLASS attribute is instatitated and connected to the target node. If no UI and no CLASS attribute is set, all sub nodes of source are analyzed and handeled like in the first or second case is described.
source | Node to open unterlaying guis from. |
target | Node to connect unterlaying guis from. |
_recursive | If true all sub guis will be opened. If false only the first layer of guis will be opened. |
void UILoaderWidget::setSessionData | ( | Nice::JointPtr | _j | ) |
void UILoaderWidget::setSessionData | ( | Nice::JointPtr | _j | ) |
void UILoaderWidget::setSessionData | ( | Nice::JointPtr | _j | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |