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 restoreState(QSettings &_settings)
restores the state
QWidget const * widget()
returns the pointer to the plugin tool widget
void detachPressed(bool _checked)
Called if the detach button was pressed.
SideElement(SideArea *_parent, QWidget *_w, QString _name, QIcon *_icon, QWidget *_headerAreaWidget)
~SideElement()
Destructor.
void setActive(bool _active)
Set the element as active.
const QString & name()
return the name
void labelPress()
Called on mouse press.
void saveState(QSettings &_settings)
saves the current state
bool active()
returns if the SideElement is active
Clickable area inside of the side element.
void dialogClosed()
Called if a detached dialog was closed.