VPTissue Reference Manual
SimShell::Gui::ViewerWindow Class Reference

A window containing visual output of a viewer. More...

#include <ViewerWindow.h>

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

Public Member Functions

 ViewerWindow (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 window containing visual output of a viewer.

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

Definition at line 34 of file ViewerWindow.h.

Constructor & Destructor Documentation

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

Definition at line 30 of file ViewerWindow.cpp.

Member Function Documentation

void SimShell::Gui::ViewerWindow::closeEvent ( QCloseEvent *  )
protectedvirtual

overrides QWidget::closeEvent

See also
QWidget::closeEvent

Definition at line 51 of file ViewerWindow.cpp.


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