VPTissue Reference Manual
SimShell::Gui::ViewerDockWidget Class Reference

A dock widget containing visual output of a viewer. More...

#include <ViewerDockWidget.h>

Inheritance diagram for SimShell::Gui::ViewerDockWidget:
Inheritance graph
Collaboration diagram for SimShell::Gui::ViewerDockWidget:
Collaboration graph

Public Member Functions

 ViewerDockWidget (Qt::DockWidgetArea, const std::shared_ptr< Ws::MergedPreferences > &, QWidget *parent=nullptr, std::function< void()> on_close=std::function< void()>())

Protected Member Functions

virtual void closeEvent (QCloseEvent *)
 overrides QWidget::closeEvent More...

Protected Attributes

std::shared_ptr< Ws::MergedPreferencesm_preferences

Detailed Description

A dock widget containing visual output of a viewer.

(e.g. LOG viewer) A callback can be performed when the window is closed.

Definition at line 34 of file ViewerDockWidget.h.

Constructor & Destructor Documentation

SimShell::Gui::ViewerDockWidget::ViewerDockWidget ( Qt::DockWidgetArea  ,
const std::shared_ptr< Ws::MergedPreferences > &  ,
QWidget parent = nullptr,
std::function< void()>  on_close = std::function<void()>() 
parentParent widget.
on_closeCallback to be performed when widget is closed.

Definition at line 31 of file ViewerDockWidget.cpp.

Member Function Documentation

void SimShell::Gui::ViewerDockWidget::closeEvent ( QCloseEvent *  )

overrides QWidget::closeEvent

See also

Definition at line 54 of file ViewerDockWidget.cpp.

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