v2.0.0
Loading...
Searching...
No Matches
DISPLIB::AbstractView Class Referenceabstract

Base widget for every dockable settings panel in DISPLIB; centralises GUI / processing mode and settings persistence. More...

#include <abstractview.h>

Public Types

enum  StyleMode { Default , Dark }
enum  GuiMode { Clinical , Research }
enum  ProcessingMode { RealTime , Offline }
typedef QSharedPointer< AbstractViewSPtr
typedef QSharedPointer< const AbstractViewConstSPtr

Signals

void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)

Public Member Functions

 AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
virtual void setGuiMode (GuiMode mode)
virtual void setProcessingMode (ProcessingMode mode)
virtual void saveSettings ()=0
virtual void loadSettings ()=0
virtual void updateGuiMode (GuiMode mode)=0
virtual void updateProcessingMode (ProcessingMode mode)=0
virtual void clearView ()=0

Protected Attributes

bool m_bResearchModeIsActive
bool m_bOfflineModeIsActive
QString m_sSettingsPath

Detailed Description

Base widget for every dockable settings panel in DISPLIB; centralises GUI / processing mode and settings persistence.

Subclasses override updateGuiMode, updateProcessingMode and saveSettings / loadSettings to react to mode changes and to round-trip their state through QSettings. The class deliberately exposes no domain-specific API.

Definition at line 69 of file abstractview.h.

Inheritance diagram for DISPLIB::AbstractView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for AbstractView.

Definition at line 75 of file abstractview.h.

◆ SPtr

typedef QSharedPointer<AbstractView> DISPLIB::AbstractView::SPtr

Shared pointer type for AbstractView.

Definition at line 74 of file abstractview.h.

Member Enumeration Documentation

◆ GuiMode

Enumerator
Clinical 
Research 

Definition at line 82 of file abstractview.h.

◆ ProcessingMode

Enumerator
RealTime 
Offline 

Definition at line 87 of file abstractview.h.

◆ StyleMode

Enumerator
Default 
Dark 

Definition at line 77 of file abstractview.h.

Constructor & Destructor Documentation

◆ AbstractView()

AbstractView::AbstractView ( QWidget * parent = 0,
Qt::WindowFlags f = Qt::Widget )

Constructs a AbstractView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 40 of file abstractview.cpp.

Member Function Documentation

◆ clearView()

◆ guiStyleChanged

void DISPLIB::AbstractView::guiStyleChanged ( DISPLIB::AbstractView::StyleMode style)
signal

Signal emited whenever the gui style mode changes.

◆ loadSettings()

◆ saveSettings()

◆ setGuiMode()

void AbstractView::setGuiMode ( GuiMode mode)
virtual

Sets the GUI of this view to a specific mode. Clinical = 0, Research = 0.

Parameters
modeThe new mode.

Definition at line 48 of file abstractview.cpp.

◆ setProcessingMode()

void AbstractView::setProcessingMode ( ProcessingMode mode)
virtual

Sets the GUI of this view to a specific mode. RealTime = 0, Offline = 0.

Parameters
modeThe new mode.

Definition at line 55 of file abstractview.cpp.

◆ updateGuiMode()

◆ updateProcessingMode()

Member Data Documentation

◆ m_bOfflineModeIsActive

bool DISPLIB::AbstractView::m_bOfflineModeIsActive
protected

The flag describing whether offline mode of the view is active or not.

Definition at line 161 of file abstractview.h.

◆ m_bResearchModeIsActive

bool DISPLIB::AbstractView::m_bResearchModeIsActive
protected

The flag describing whether the research mode of the view is active or not.

Definition at line 160 of file abstractview.h.

◆ m_sSettingsPath

QString DISPLIB::AbstractView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 163 of file abstractview.h.


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