TwiceAsNice  2019-02-18
Public Types | Public Slots | Signals | Public Member Functions | Protected Attributes | Properties | Private Slots | Private Member Functions | Friends | List of all members
Led Class Reference

#include <Led.h>

Inheritance diagram for Led:
Inheritance graph
Collaboration diagram for Led:
Collaboration graph

Public Types

enum  Mode {
  RedGreen, GreyRed, GreyGreen, RedGreen,
  GreyRed, GreyGreen, RedGreen, GreyRed,
  GreyGreen
}
 
enum  Mode {
  RedGreen, GreyRed, GreyGreen, RedGreen,
  GreyRed, GreyGreen, RedGreen, GreyRed,
  GreyGreen
}
 
enum  Mode {
  RedGreen, GreyRed, GreyGreen, RedGreen,
  GreyRed, GreyGreen, RedGreen, GreyRed,
  GreyGreen
}
 

Public Slots

void setIcon (QIcon _icon)
 
void setIcon (QIcon _icon)
 
void setIcon (QIcon _icon)
 

Signals

void valueChanged ()
 
void valueChanged ()
 
void valueChanged ()
 

Public Member Functions

 Led (QWidget *parent, bool _connect=false)
 
QIcon icon ()
 
QSize size ()
 
bool tristate ()
 
Mode mode ()
 
bool value ()
 
void mousePressEvent (QMouseEvent *event)
 
bool clickable ()
 
void setSize (QSize _size)
 
void setTristate (bool _tristate)
 
void setClickable (bool _clickable)
 
void setMode (Mode _mode)
 
 Led (QWidget *parent, bool _connect=false)
 
QIcon icon ()
 
QSize size ()
 
bool tristate ()
 
Mode mode ()
 
bool value ()
 
void mousePressEvent (QMouseEvent *event)
 
bool clickable ()
 
void setSize (QSize _size)
 
void setTristate (bool _tristate)
 
void setClickable (bool _clickable)
 
void setMode (Mode _mode)
 
 Led (QWidget *parent, bool _connect=false)
 
QIcon icon ()
 
QSize size ()
 
bool tristate ()
 
Mode mode ()
 
bool value ()
 
void mousePressEvent (QMouseEvent *event)
 
bool clickable ()
 
void setSize (QSize _size)
 
void setTristate (bool _tristate)
 
void setClickable (bool _clickable)
 
void setMode (Mode _mode)
 
- Public Member Functions inherited from Nice::BridgeItem
void detach (QWidget *_widget)
 
bool getSynchStatus () const
 Get the sync status. More...
 
const QString & getNodeName ()
 
virtual void setState (CompletionState _state)
 Set the state of the widget (either Nice::OK or Nice::Unsynched ). More...
 
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 getSessionData (Nice::JointPtr &)
 Fills the passed Joint with the internal session data. More...
 
virtual void setSessionData (Nice::JointPtr)
 Set the internal session data from thge passed Joint. 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 setState (CompletionState _state)
 Set the state of the widget (either Nice::OK or Nice::Unsynched ). More...
 
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 getSessionData (Nice::JointPtr &)
 Fills the passed Joint with the internal session data. More...
 
virtual void setSessionData (Nice::JointPtr)
 Set the internal session data from thge passed Joint. 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 setState (CompletionState _state)
 Set the state of the widget (either Nice::OK or Nice::Unsynched ). More...
 
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 getSessionData (Nice::JointPtr &)
 Fills the passed Joint with the internal session data. More...
 
virtual void setSessionData (Nice::JointPtr)
 Set the internal session data from thge passed Joint. 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...
 

Protected Attributes

Mode m_boolMode
 
Qt::CheckState m_state
 
QIcon m_icon
 
QSize m_size
 
bool m_tristate
 
bool m_clickable
 
- 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
 

Properties

QString PropertyNode
 
bool AutoSynch
 
QIcon Icon
 
QSize Size
 
bool Tristate
 
bool Clickable
 
Mode ModeBool
 

Private Slots

void set ()
 
void set ()
 
void set ()
 

Private Member Functions

virtual void updateGUI (const Nice::Any &_val)
 
virtual void initSlots ()
 
virtual void updateGUI (const Nice::Any &_val)
 
virtual void initSlots ()
 
virtual void updateGUI (const Nice::Any &_val)
 
virtual void initSlots ()
 

Friends

template<typename T , typename E >
class AbstractVectorBox
 
class LedBitSetVector
 
template<typename T , typename E >
class AbstractVectorBox
 
template<typename T , typename E >
class AbstractVectorBox
 

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 Nice::BridgeItem
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 ()
 
virtual void trySetFocus ()
 
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...
 
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 ()
 
virtual void trySetFocus ()
 
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...
 
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 ()
 
virtual void trySetFocus ()
 
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...
 

Member Enumeration Documentation

◆ Mode [1/3]

enum Led::Mode
Enumerator
RedGreen 
GreyRed 
GreyGreen 
RedGreen 
GreyRed 
GreyGreen 
RedGreen 
GreyRed 
GreyGreen 

◆ Mode [2/3]

enum Led::Mode
Enumerator
RedGreen 
GreyRed 
GreyGreen 
RedGreen 
GreyRed 
GreyGreen 
RedGreen 
GreyRed 
GreyGreen 

◆ Mode [3/3]

enum Led::Mode
Enumerator
RedGreen 
GreyRed 
GreyGreen 
RedGreen 
GreyRed 
GreyGreen 
RedGreen 
GreyRed 
GreyGreen 

Constructor & Destructor Documentation

◆ Led() [1/3]

Led::Led ( QWidget *  parent,
bool  _connect = false 
)

◆ Led() [2/3]

Led::Led ( QWidget *  parent,
bool  _connect = false 
)

◆ Led() [3/3]

Led::Led ( QWidget *  parent,
bool  _connect = false 
)

Member Function Documentation

◆ clickable() [1/3]

bool Led::clickable ( )
inline

◆ clickable() [2/3]

bool Led::clickable ( )
inline

◆ clickable() [3/3]

bool Led::clickable ( )
inline

◆ icon() [1/3]

QIcon Led::icon ( )
inline

◆ icon() [2/3]

QIcon Led::icon ( )
inline

◆ icon() [3/3]

QIcon Led::icon ( )
inline

◆ initSlots() [1/3]

virtual void Led::initSlots ( )
privatevirtual

Reimplemented from Nice::BridgeItem.

◆ initSlots() [2/3]

virtual void Led::initSlots ( )
privatevirtual

Reimplemented from Nice::BridgeItem.

◆ initSlots() [3/3]

void Led::initSlots ( )
privatevirtual

Reimplemented from Nice::BridgeItem.

◆ mode() [1/3]

Mode Led::mode ( )
inline

◆ mode() [2/3]

Mode Led::mode ( )
inline

◆ mode() [3/3]

Mode Led::mode ( )
inline

◆ mousePressEvent() [1/3]

void Led::mousePressEvent ( QMouseEvent *  event)

◆ mousePressEvent() [2/3]

void Led::mousePressEvent ( QMouseEvent *  event)

◆ mousePressEvent() [3/3]

void Led::mousePressEvent ( QMouseEvent *  event)

◆ set [1/3]

void Led::set ( )
privateslot

◆ set [2/3]

void Led::set ( )
privateslot

◆ set [3/3]

void Led::set ( )
privateslot

◆ setClickable() [1/3]

void Led::setClickable ( bool  _clickable)
inline

◆ setClickable() [2/3]

void Led::setClickable ( bool  _clickable)
inline

◆ setClickable() [3/3]

void Led::setClickable ( bool  _clickable)
inline

◆ setIcon [1/3]

void Led::setIcon ( QIcon  _icon)
inlineslot

◆ setIcon [2/3]

void Led::setIcon ( QIcon  _icon)
inlineslot

◆ setIcon [3/3]

void Led::setIcon ( QIcon  _icon)
inlineslot

◆ setMode() [1/3]

void Led::setMode ( Mode  _mode)
inline

◆ setMode() [2/3]

void Led::setMode ( Mode  _mode)
inline

◆ setMode() [3/3]

void Led::setMode ( Mode  _mode)
inline

◆ setSize() [1/3]

void Led::setSize ( QSize  _size)
inline

◆ setSize() [2/3]

void Led::setSize ( QSize  _size)
inline

◆ setSize() [3/3]

void Led::setSize ( QSize  _size)
inline

◆ setTristate() [1/3]

void Led::setTristate ( bool  _tristate)
inline

◆ setTristate() [2/3]

void Led::setTristate ( bool  _tristate)
inline

◆ setTristate() [3/3]

void Led::setTristate ( bool  _tristate)
inline

◆ size() [1/3]

QSize Led::size ( )
inline

◆ size() [2/3]

QSize Led::size ( )
inline

◆ size() [3/3]

QSize Led::size ( )
inline

◆ tristate() [1/3]

bool Led::tristate ( )
inline

◆ tristate() [2/3]

bool Led::tristate ( )
inline

◆ tristate() [3/3]

bool Led::tristate ( )
inline

◆ updateGUI() [1/3]

virtual void Led::updateGUI ( const Nice::Any _val)
privatevirtual

◆ updateGUI() [2/3]

virtual void Led::updateGUI ( const Nice::Any _val)
privatevirtual

◆ updateGUI() [3/3]

void Led::updateGUI ( const Nice::Any _val)
privatevirtual

◆ value() [1/3]

bool Led::value ( )
inline

◆ value() [2/3]

bool Led::value ( )
inline

◆ value() [3/3]

bool Led::value ( )
inline

◆ valueChanged [1/3]

void Led::valueChanged ( )
signal

◆ valueChanged [2/3]

void Led::valueChanged ( )
signal

◆ valueChanged [3/3]

void Led::valueChanged ( )
signal

Friends And Related Function Documentation

◆ AbstractVectorBox [1/3]

template<typename T , typename E >
friend class AbstractVectorBox
friend

◆ AbstractVectorBox [2/3]

template<typename T , typename E >
class AbstractVectorBox ( )
friend

◆ AbstractVectorBox [3/3]

template<typename T , typename E >
class AbstractVectorBox ( )
friend

◆ LedBitSetVector

LedBitSetVector
friend

Member Data Documentation

◆ m_boolMode

Mode Led::m_boolMode
protected

◆ m_clickable

bool Led::m_clickable
protected

◆ m_icon

QIcon Led::m_icon
protected

◆ m_size

QSize Led::m_size
protected

◆ m_state

Qt::CheckState Led::m_state
protected

◆ m_tristate

bool Led::m_tristate
protected

Property Documentation

◆ AutoSynch

bool Led::AutoSynch
readwrite

◆ Clickable

bool Led::Clickable
readwrite

◆ Icon

QIcon Led::Icon
readwrite

◆ ModeBool

Mode Led::ModeBool
readwrite

◆ PropertyNode

QString Led::PropertyNode
readwrite

◆ Size

QSize Led::Size
readwrite

◆ Tristate

bool Led::Tristate
readwrite

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