Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::InviwoDockWidget Class Reference

dock widget with a custom title bar and sticky status. Docking while dragging the widget is prevented if the sticky flag is false. In case the window title of the dock widget contains the string "[*]", this string will be replaced with either "*" or nothing based on the isWindowModified() state of the widget. More...

#include <modules/qtwidgets/inviwodockwidget.h>

+ Inheritance diagram for inviwo::InviwoDockWidget:

Signals

void stateChanged ()
 
void stickyFlagChanged (bool sticky)
 

Public Member Functions

 InviwoDockWidget (QString title, QWidget *parent)
 
 InviwoDockWidget (QString title, QWidget *parent, QString objname)
 
bool isSticky () const
 
virtual void loadState ()
 
virtual void saveState ()
 
void setContents (QLayout *layout)
 
void setContents (QWidget *widget)
 
void setSticky (bool sticky)
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event) override
 
virtual void getState (UnorderedStringMap< QVariant > &state) const
 
virtual void hideEvent (QHideEvent *event) override
 
virtual void keyPressEvent (QKeyEvent *keyEvent) override
 
void loadStateDefault (UnorderedStringMap< QVariant > &state) const
 
virtual void moveEvent (QMoveEvent *event) override
 
virtual void resizeEvent (QResizeEvent *event) override
 
void saveStateDefault (const UnorderedStringMap< QVariant > &state)
 
virtual void setState (const UnorderedStringMap< QVariant > &state)
 
virtual void showEvent (QShowEvent *showEvent) override
 

Detailed Description

dock widget with a custom title bar and sticky status. Docking while dragging the widget is prevented if the sticky flag is false. In case the window title of the dock widget contains the string "[*]", this string will be replaced with either "*" or nothing based on the isWindowModified() state of the widget.

See also
QWidget::setWindowTitle

Member Function Documentation

◆ loadState()

virtual void inviwo::InviwoDockWidget::loadState ( )
virtual

Load state related to the dock widget, called in the constructor. If you overload this function you must also call it in your constructor. Uses the objectName as settings group

Reimplemented in inviwo::PythonEditorWidget, and inviwo::PropertyEditorWidgetQt.

◆ saveState()

virtual void inviwo::InviwoDockWidget::saveState ( )
virtual

Save state related to the dock widget, called in the close event. Uses the objectName as settings group

Reimplemented in inviwo::PythonEditorWidget, and inviwo::PropertyEditorWidgetQt.


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