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