98 QWidget *_headerAreaWidget);
113 const QString&
name();
122 void toggleActive(
bool);
132 virtual void mousePressEvent (QMouseEvent *_event);
154 QWidget *widget_, *headerAreaWidget_;
163 QVBoxLayout *mainLayout_;
173 QToolButton *detachButton_;
174 QAction *detachAction_;
182 #endif // SIDE_ELEMENT_ defined
void labelPress()
Called on mouse press.
void restoreState(QSettings &_settings)
restores the state
const QString & name()
return the name
void setActive(bool _active)
Set the element as active.
QWidget const * widget()
returns the pointer to the plugin tool widget
void saveState(QSettings &_settings)
saves the current state
bool active()
returns if the SideElement is active
void dialogClosed()
Called if a detached dialog was closed.
~SideElement()
Destructor.
Clickable area inside of the side element.
SideElement(SideArea *_parent, QWidget *_w, QString _name, QIcon *_icon, QWidget *_headerAreaWidget)
void detachPressed(bool _checked)
Called if the detach button was pressed.