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