Inviwo  0.9.10.1
Inviwo documentation
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 <inviwodockwidget.h>

+ Inheritance diagram for inviwo::InviwoDockWidget:

Signals

void stickyFlagChanged (bool sticky)
 

Public Member Functions

 InviwoDockWidget (QString title, QWidget *parent)
 
 InviwoDockWidget (QString title, QWidget *parent, QString objname)
 
virtual void showEvent (QShowEvent *showEvent) override
 
virtual void keyPressEvent (QKeyEvent *keyEvent) override
 
void setSticky (bool sticky)
 
bool isSticky () const
 
void setContents (QWidget *widget)
 
void setContents (QLayout *layout)
 
virtual void saveState ()
 
virtual void loadState ()
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event) 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()

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()

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::PropertyEditorWidgetQt.


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