MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | List of all members
DISPLIB::MultiView Class Reference

The MultiView class inherits from QMainWindow and provides a view which supports dock widgets. More...

#include <multiview.h>

Public Types

typedef QSharedPointer< MultiViewSPtr
 
typedef QSharedPointer< const MultiViewConstSPtr
 

Signals

void dockLocationChanged (QWidget *pWidget)
 

Public Member Functions

 MultiView (const QString &sSettingsPath="", QWidget *parent=Q_NULLPTR, Qt::WindowFlags flags=Qt::Widget)
 
 ~MultiView ()
 
MultiViewWindowaddWidgetTop (QWidget *pWidget, const QString &sName)
 
MultiViewWindowaddWidgetBottom (QWidget *pWidget, const QString &sName)
 
void saveSettings ()
 
void loadSettings ()
 

Detailed Description

The MultiView class inherits from QMainWindow and provides a view which supports dock widgets.

Definition at line 73 of file multiview.h.

Inheritance diagram for DISPLIB::MultiView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const MultiView> DISPLIB::MultiView::ConstSPtr

Const shared pointer type for MultiView.

Definition at line 79 of file multiview.h.

◆ SPtr

typedef QSharedPointer<MultiView> DISPLIB::MultiView::SPtr

Shared pointer type for MultiView.

Definition at line 78 of file multiview.h.

Constructor & Destructor Documentation

◆ MultiView()

MultiView::MultiView ( const QString &  sSettingsPath = "",
QWidget *  parent = Q_NULLPTR,
Qt::WindowFlags  flags = Qt::Widget 
)
explicit

Constructs an MultiView.

Definition at line 62 of file multiview.cpp.

◆ ~MultiView()

MultiView::~MultiView ( )

Destructs an MultiView.

Definition at line 76 of file multiview.cpp.

Member Function Documentation

◆ addWidgetBottom()

MultiViewWindow * MultiView::addWidgetBottom ( QWidget *  pWidget,
const QString &  sName 
)

Adds a QWidget to the bottom docking area. Please note that all bottom dock widgets are tabbified by default.

Parameters
[in]pWidgetThe widget to be added.
[in]sNameThe window title shown in the QSplitter.
Returns
Returns a pointer to the added widget in form of a MultiViewWindow.

Definition at line 111 of file multiview.cpp.

◆ addWidgetTop()

MultiViewWindow * MultiView::addWidgetTop ( QWidget *  pWidget,
const QString &  sName 
)

Adds a QWidget to the top docking area.

Parameters
[in]pWidgetThe widget to be added.
[in]sNameThe window title shown in the QSplitter.
Returns
Returns a pointer to the added widget in form of a MultiViewWindow.

Definition at line 82 of file multiview.cpp.

◆ loadSettings()

void MultiView::loadSettings ( )

Restores geometry and state as saved by saveSettings()

Definition at line 167 of file multiview.cpp.

◆ saveSettings()

void MultiView::saveSettings ( )

Saves geometry and state of GUI dock widgets that have given a name with setObjectName()

Definition at line 150 of file multiview.cpp.


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