TwiceAsNice  2019-02-18
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
TreeWidgetItem Class Reference

#include <WidgetItem.h>

Inheritance diagram for TreeWidgetItem:
Inheritance graph
Collaboration diagram for TreeWidgetItem:
Collaboration graph

Public Member Functions

 TreeWidgetItem (QTreeWidget *_widget)
 
 TreeWidgetItem (QTreeWidgetItem *_parent)
 
 TreeWidgetItem ()
 
virtual ~TreeWidgetItem ()
 
virtual void setDisabled (bool _disable)
 
virtual void createMdiSubWindow (bool _rec)
 
virtual void updateGUI (const Nice::Any &_val)
 
virtual void setState (Nice::CompletionState _state)
 
virtual void select (bool _sel)
 
TreeWidgetItemgetChild (const QString &_name)
 
QString getPath ()
 
int level ()
 
void setConnectInfo (const QString &_tooltip)
 
void getSessionData (Nice::JointPtr &_data)
 Get the session data of this widget. More...
 
void setSessionData (Nice::JointPtr _data)
 Set the internal session data from thge passed Joint. More...
 
virtual void setLock (bool _locked)
 
void slot_heartbeat (Nice::Int)
 
- Public Member Functions inherited from AbstractWidgetItem
void recursiveTreeDisable (const TreeWidgetItem *_t, bool _disabled)
 
 AbstractWidgetItem ()
 
virtual ~AbstractWidgetItem ()
 
MdiSubWindowgetMdiSubWindow ()
 
void setMdiSubWindow (MdiSubWindow *_sub)
 
virtual void connect (const Nice::JointPtr &_a)
 
void createExtraWidget ()
 
template<typename T >
void addExtraWidget (T _widget)
 
void showAttributes ()
 
void setSubwindow (MdiSubWindow *_sub)
 
- Public Member Functions inherited from Nice::BridgeItem
void detach (QWidget *_widget)
 
bool getSynchStatus () const
 Get the sync status. More...
 
const QString & getNodeName ()
 
virtual void updateGUI (const ::Nice::Any &)
 Update the widgets data field from the connected Property. More...
 
virtual void setLabels (std::vector< std::string > _vec)
 Set the Labels This function has to be implemented in the derived widget class. More...
 
void setLabel (const QString &_text="")
 Set the text label of this widget. More...
 
QString getLabel ()
 
template<typename E >
std::vector< E * > getBridgeItems ()
 Get all widgets which are connected to the same Property like this one. More...
 
virtual void setShowLabels (bool _show)
 Enables to Labels. More...
 
Nice::JointgetNode () const
 Get the connected Joint node. More...
 
Nice::PropertygetProperty () const
 Get the connected Property. More...
 
virtual void connect (const ::Nice::PropertyPtr _p)
 Connects the widget to a Joint or Property. More...
 
void applyReadOnlyActor ()
 
virtual void connect (const ::Nice::JointPtr _j)
 Connects the widget to a Joint or Property. More...
 
void applyBridge ()
 
QString getPropertyNode () const
 Get the path to the connected Joint. More...
 
virtual bool isReadOnly ()
 Checks if an attribute RO (read only) is set to true. More...
 
virtual void setPropertyNode (QString _nodeName)
 Set the relative path to the displayed Property from the connected Joint. More...
 
void setSynchStatus (bool _on)
 Set the current sync state. More...
 
void setUserConfirmationStatus (bool _on)
 
virtual void setLock (const bool &_locked)
 
void disconnect ()
 Disconnects the widget from the connected Joint or Property. More...
 
void detach (QWidget *_widget)
 
bool getSynchStatus () const
 Get the sync status. More...
 
const QString & getNodeName ()
 
virtual void updateGUI (const ::Nice::Any &)
 Update the widgets data field from the connected Property. More...
 
virtual void setLabels (std::vector< std::string > _vec)
 Set the Labels This function has to be implemented in the derived widget class. More...
 
void setLabel (const QString &_text="")
 Set the text label of this widget. More...
 
QString getLabel ()
 
template<typename E >
std::vector< E * > getBridgeItems ()
 Get all widgets which are connected to the same Property like this one. More...
 
virtual void setShowLabels (bool _show)
 Enables to Labels. More...
 
Nice::JointgetNode () const
 Get the connected Joint node. More...
 
Nice::PropertygetProperty () const
 Get the connected Property. More...
 
virtual void connect (const ::Nice::PropertyPtr _p)
 Connects the widget to a Joint or Property. More...
 
void applyReadOnlyActor ()
 
virtual void connect (const ::Nice::JointPtr _j)
 Connects the widget to a Joint or Property. More...
 
void applyBridge ()
 
QString getPropertyNode () const
 Get the path to the connected Joint. More...
 
virtual bool isReadOnly ()
 Checks if an attribute RO (read only) is set to true. More...
 
virtual void setPropertyNode (QString _nodeName)
 Set the relative path to the displayed Property from the connected Joint. More...
 
void setSynchStatus (bool _on)
 Set the current sync state. More...
 
void setUserConfirmationStatus (bool _on)
 
virtual void setLock (const bool &_locked)
 
void disconnect ()
 Disconnects the widget from the connected Joint or Property. More...
 
void detach (QWidget *_widget)
 
bool getSynchStatus () const
 Get the sync status. More...
 
const QString & getNodeName ()
 
virtual void updateGUI (const ::Nice::Any &)
 Update the widgets data field from the connected Property. More...
 
virtual void setLabels (std::vector< std::string > _vec)
 Set the Labels This function has to be implemented in the derived widget class. More...
 
void setLabel (const QString &_text="")
 Set the text label of this widget. More...
 
QString getLabel ()
 
template<typename E >
std::vector< E * > getBridgeItems ()
 Get all widgets which are connected to the same Property like this one. More...
 
virtual void setShowLabels (bool _show)
 Enables to Labels. More...
 
Nice::JointgetNode () const
 Get the connected Joint node. More...
 
Nice::PropertygetProperty () const
 Get the connected Property. More...
 
virtual void connect (const ::Nice::PropertyPtr _p)
 Connects the widget to a Joint or Property. More...
 
void applyReadOnlyActor ()
 
virtual void connect (const ::Nice::JointPtr _j)
 Connects the widget to a Joint or Property. More...
 
void applyBridge ()
 
QString getPropertyNode () const
 Get the path to the connected Joint. More...
 
virtual bool isReadOnly ()
 Checks if an attribute RO (read only) is set to true. More...
 
virtual void setPropertyNode (QString _nodeName)
 Set the relative path to the displayed Property from the connected Joint. More...
 
void setSynchStatus (bool _on)
 Set the current sync state. More...
 
void setUserConfirmationStatus (bool _on)
 
virtual void setLock (const bool &_locked)
 
void disconnect ()
 Disconnects the widget from the connected Joint or Property. More...
 

Private Slots

void slot_timeout ()
 

Private Member Functions

virtual void setUiIcon ()
 
virtual void trySetFocus ()
 

Private Attributes

QTimer * m_timer
 

Friends

class TreeWidget
 

Additional Inherited Members

- Public Attributes inherited from Nice::BridgeItem
QGroupBox * m_container
 
bool m_locked
 
- Static Public Attributes inherited from Nice::BridgeItem
static std::map< CompletionState, QString > * s_palette = 0
 
- Protected Member Functions inherited from AbstractWidgetItem
bool canBeBuffered ()
 
- Protected Member Functions inherited from Nice::BridgeItem
virtual void initSlots ()
 
template<typename E >
void set (const E &_value)
 Set the value from the derived widget to the Property. More...
 
void init (QWidget *_widget)
 Initialize the widget. More...
 
 BridgeItem ()
 Constructor. More...
 
virtual ~BridgeItem ()
 Destructor. More...
 
void setWidgetName ()
 
virtual void initAttributes ()
 virtual function is called after connecting to a property. More...
 
CompletionState getState ()
 Get the current state of the widget. More...
 
void resetGUI ()
 Update the widgets data field from the connected Property. More...
 
virtual int requestUserConfirmation ()
 
void setBuffered (bool _buf)
 
virtual void set ()
 Slot is called when the date of the widget is changed. More...
 
virtual void updateProperty ()
 Set the gui value to the Property. More...
 
virtual void initSlots ()
 
template<typename E >
void set (const E &_value)
 Set the value from the derived widget to the Property. More...
 
void init (QWidget *_widget)
 Initialize the widget. More...
 
 BridgeItem ()
 Constructor. More...
 
virtual ~BridgeItem ()
 Destructor. More...
 
void setWidgetName ()
 
virtual void initAttributes ()
 virtual function is called after connecting to a property. More...
 
CompletionState getState ()
 Get the current state of the widget. More...
 
void resetGUI ()
 Update the widgets data field from the connected Property. More...
 
virtual int requestUserConfirmation ()
 
void setBuffered (bool _buf)
 
virtual void set ()
 Slot is called when the date of the widget is changed. More...
 
virtual void updateProperty ()
 Set the gui value to the Property. More...
 
virtual void initSlots ()
 
template<typename E >
void set (const E &_value)
 Set the value from the derived widget to the Property. More...
 
void init (QWidget *_widget)
 Initialize the widget. More...
 
 BridgeItem ()
 Constructor. More...
 
virtual ~BridgeItem ()
 Destructor. More...
 
void setWidgetName ()
 
virtual void initAttributes ()
 virtual function is called after connecting to a property. More...
 
CompletionState getState ()
 Get the current state of the widget. More...
 
void resetGUI ()
 Update the widgets data field from the connected Property. More...
 
virtual int requestUserConfirmation ()
 
void setBuffered (bool _buf)
 
virtual void set ()
 Slot is called when the date of the widget is changed. More...
 
virtual void updateProperty ()
 Set the gui value to the Property. More...
 
- Protected Attributes inherited from AbstractWidgetItem
MdiSubWindowm_subWindow
 
QString m_name
 
bool m_hasExtra
 
- Protected Attributes inherited from Nice::BridgeItem
bool m_inited
 
CompletionState m_state
 
bool m_autoSynch
 
bool m_isUserConfirmationNeeded
 
Nice::Jointm_root
 
Nice::Propertym_prop
 
WaveBreakerPtr m_breaker
 
bool m_showLabels
 
Nice::I64 m_id
 
QString m_nodeName
 
std::vector< Nice::PropertyPtrm_connectedProps
 
- Static Protected Attributes inherited from AbstractWidgetItem
static std::map< Nice::CompletionState, QPalette > * s_palette = 0
 

Constructor & Destructor Documentation

◆ TreeWidgetItem() [1/3]

TreeWidgetItem::TreeWidgetItem ( QTreeWidget *  _widget)

Parameters

◆ TreeWidgetItem() [2/3]

TreeWidgetItem::TreeWidgetItem ( QTreeWidgetItem *  _parent)
Parameters

◆ TreeWidgetItem() [3/3]

TreeWidgetItem::TreeWidgetItem ( )
Parameters

◆ ~TreeWidgetItem()

TreeWidgetItem::~TreeWidgetItem ( )
virtual
Parameters

Member Function Documentation

◆ createMdiSubWindow()

void TreeWidgetItem::createMdiSubWindow ( bool  _rec)
virtual
Parameters

Implements AbstractWidgetItem.

◆ getChild()

TreeWidgetItem * TreeWidgetItem::getChild ( const QString &  _name)
Parameters

◆ getPath()

QString TreeWidgetItem::getPath ( )
Parameters

◆ getSessionData()

void TreeWidgetItem::getSessionData ( Nice::JointPtr _data)
virtual

Get the session data of this widget.

The session data will also be collected and added to the session data node.

Parameters
_dataData node to add the session data to.

Reimplemented from Nice::BridgeItem.

◆ level()

int TreeWidgetItem::level ( )
Parameters

◆ select()

void TreeWidgetItem::select ( bool  _sel)
virtual
Parameters

Implements AbstractWidgetItem.

◆ setConnectInfo()

void TreeWidgetItem::setConnectInfo ( const QString &  _tooltip)
Parameters

◆ setDisabled()

void TreeWidgetItem::setDisabled ( bool  _disable)
virtual
Parameters

◆ setLock()

void TreeWidgetItem::setLock ( bool  _locked)
virtual

◆ setSessionData()

void TreeWidgetItem::setSessionData ( Nice::JointPtr  )
virtual

Set the internal session data from thge passed Joint.

The function can be implemented in the derived widgets.

Parameters
_dataData node to read the session data from.

Reimplemented from Nice::BridgeItem.

◆ setState()

void TreeWidgetItem::setState ( Nice::CompletionState  _state)
virtual
Parameters

Reimplemented from Nice::BridgeItem.

◆ setUiIcon()

void TreeWidgetItem::setUiIcon ( )
privatevirtual
Parameters

Reimplemented from AbstractWidgetItem.

◆ slot_heartbeat()

void TreeWidgetItem::slot_heartbeat ( Nice::Int  )
Parameters

◆ slot_timeout

void TreeWidgetItem::slot_timeout ( )
privateslot
Parameters

◆ trySetFocus()

virtual void TreeWidgetItem::trySetFocus ( )
inlineprivatevirtual
Parameters

Reimplemented from Nice::BridgeItem.

◆ updateGUI()

void TreeWidgetItem::updateGUI ( const Nice::Any _val)
virtual
Parameters

Implements AbstractWidgetItem.

Friends And Related Function Documentation

◆ TreeWidget

friend class TreeWidget
friend

Member Data Documentation

◆ m_timer

QTimer* TreeWidgetItem::m_timer
private

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