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

The QuickControlView class provides a quick control view for scaling, filtering, projector and other control options. More...

#include <quickcontrolview.h>

Public Types

typedef QSharedPointer< QuickControlViewSPtr
 
typedef QSharedPointer< const QuickControlViewConstSPtr
 
- Public Types inherited from DISPLIB::DraggableFramelessWidget
typedef QSharedPointer< DraggableFramelessWidgetSPtr
 
typedef QSharedPointer< const DraggableFramelessWidgetConstSPtr
 

Public Member Functions

 QuickControlView (const QString &sSettingsPath="", const QString &name="", Qt::WindowFlags flags=Qt::Window|Qt::WindowStaysOnTopHint, QWidget *parent=Q_NULLPTR, bool bDraggable=true)
 
 ~QuickControlView ()
 
void clear ()
 
QVBoxLayout * findTabWidgetLayout (const QString &sTabName)
 
void addWidgets (const QList< QWidget * > &lWidgets, const QString &sTabName, bool bAddToEnd=false)
 
void addWidget (QWidget *pWidget, const QString &sTabName, bool bAddToEnd=false)
 
void addGroupBox (QWidget *pWidget, const QString &sGroupBoxName, const QString &sTabName, bool bAddToEnd=false)
 
void addGroupBoxWithTabs (QWidget *pWidget, const QString &sGroupBoxName, const QString &sTabNameGroupBox, const QString &sTabName, bool bAddToEnd=false)
 
void setOpacityValue (int opactiy)
 
int getOpacityValue ()
 
void setVisiblityHideOpacityClose (bool bVisibility)
 
void saveSettings ()
 
void loadSettings ()
 
- Public Member Functions inherited from DISPLIB::DraggableFramelessWidget
 DraggableFramelessWidget (QWidget *parent=0, Qt::WindowFlags flags=Qt::Window, bool bRoundEdges=false, bool bDraggable=true, bool bFrameless=true)
 
 ~DraggableFramelessWidget ()
 
void setDraggable (bool bFlag)
 

Protected Member Functions

void onOpacityChange (qint32 value)
 
- Protected Member Functions inherited from DISPLIB::DraggableFramelessWidget
void mouseMoveEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void resizeEvent (QResizeEvent *event)
 
QRegion roundedRect (const QRect &rect, int r)
 

Detailed Description

The QuickControlView class provides a quick control view for scaling, filtering, projector and other control options.

DECLARE CLASS QuickControlView

Definition at line 82 of file quickcontrolview.h.

Inheritance diagram for DISPLIB::QuickControlView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for QuickControlView.

Definition at line 88 of file quickcontrolview.h.

◆ SPtr

Shared pointer type for QuickControlView.

Definition at line 87 of file quickcontrolview.h.

Constructor & Destructor Documentation

◆ QuickControlView()

QuickControlView::QuickControlView ( const QString &  sSettingsPath = "",
const QString &  name = "",
Qt::WindowFlags  flags = Qt::Window | Qt::WindowStaysOnTopHint,
QWidget *  parent = Q_NULLPTR,
bool  bDraggable = true 
)

Constructs a QuickControlView which is a child of parent.

Parameters
[in]nameThe name to be displayed on the minimize button.
[in]flagsThe window flags.
[in]parentThe parent of widget.
[in]bDraggableFlag specifying whether this widget is draggable.

Definition at line 64 of file quickcontrolview.cpp.

◆ ~QuickControlView()

QuickControlView::~QuickControlView ( )

Destructs a QuickControlView

Definition at line 99 of file quickcontrolview.cpp.

Member Function Documentation

◆ addGroupBox()

void QuickControlView::addGroupBox ( QWidget *  pWidget,
const QString &  sGroupBoxName,
const QString &  sTabName,
bool  bAddToEnd = false 
)

Add a new group box to this Widget. Takes ownership of the passed widget. Takes ownership of the QWidget.

Parameters
[in]pWidgetThe widgets which will be put into the new group box.
[in]sGroupBoxNameThe name of the new group box.
[in]sTabNameThe tab to which the group box is supposed to be added to.
[in]bAddToEndWhether to add the new widgets to the end of the layout. If true, the widgets will inserted in the beginning of the layout.

Definition at line 186 of file quickcontrolview.cpp.

◆ addGroupBoxWithTabs()

void QuickControlView::addGroupBoxWithTabs ( QWidget *  pWidget,
const QString &  sGroupBoxName,
const QString &  sTabNameGroupBox,
const QString &  sTabName,
bool  bAddToEnd = false 
)

Add a new group box with tabs to this Widget. If the group box already exists, a new tab will be added to its QTabWidget. Takes ownership of the QWidget.

Parameters
[in]pWidgetThe widgets which will be put into the new group box.
[in]sGroupBoxNameThe name of the new group box.
[in]sTabNameGroupBoxThe tab name inside the tab widget of the group box.
[in]sTabNameThe tab to which the group box with the tab widget is supposed to be added to.
[in]bAddToEndWhether to add the new widgets to the end of the layout. If true, the widgets will inserted in the beginning of the layout.

Definition at line 210 of file quickcontrolview.cpp.

◆ addWidget()

void QuickControlView::addWidget ( QWidget *  pWidget,
const QString &  sTabName,
bool  bAddToEnd = false 
)

Add a new group box to this Widget. Takes ownership of the passed widget. Takes ownership of the QWidget.

Parameters
[in]pWidgetThe widget which is supposed to be added.
[in]sTabNameThe tab to which the widget is supposed to be added to.
[in]bAddToEndWhether to add the new widgets to the end of the layout. If true, the widgets will inserted in the beginning of the layout.

Definition at line 172 of file quickcontrolview.cpp.

◆ addWidgets()

void QuickControlView::addWidgets ( const QList< QWidget * > &  lWidgets,
const QString &  sTabName,
bool  bAddToEnd = false 
)

This convenience function adds control widgets to the QuickControlView based on their set objects names. Takes ownership of the QWidgets.

Parameters
[in]lWidgetsThe widget which are supposed to be added. The widgets will be categorized based on their. object names: "widget_", "group_", "group_tab_".
[in]sTabNameThe tab to which the widgets are supposed to be added to.
[in]bAddToEndWhether to add the new widgets to the end of the layout. If true, the widgets will inserted in the beginning of the layout.

Definition at line 141 of file quickcontrolview.cpp.

◆ clear()

void QuickControlView::clear ( )

Clear this widget by removing all of its child widgets.

Definition at line 108 of file quickcontrolview.cpp.

◆ getOpacityValue()

int QuickControlView::getOpacityValue ( )

Get current opacity value. Value between 0.0 and 1.0.

Returns
the current set opacity value of this window.

Definition at line 259 of file quickcontrolview.cpp.

◆ loadSettings()

void QuickControlView::loadSettings ( )

Loads and inits all important settings of this view via QSettings.

Definition at line 289 of file quickcontrolview.cpp.

◆ onOpacityChange()

void QuickControlView::onOpacityChange ( qint32  value)
protected

Slot called when opacity slider was changed

Parameters
[in]valueopacity value.

Definition at line 311 of file quickcontrolview.cpp.

◆ saveSettings()

void QuickControlView::saveSettings ( )

Saves all important settings of this view via QSettings.

Definition at line 275 of file quickcontrolview.cpp.

◆ setOpacityValue()

void QuickControlView::setOpacityValue ( int  opactiy)

Sets the values of the opacity slider. Choose value between 0.0 and 1.0.

Parameters
[in]opactiythe new opacity value.

Definition at line 250 of file quickcontrolview.cpp.

◆ setVisiblityHideOpacityClose()

void QuickControlView::setVisiblityHideOpacityClose ( bool  bVisibility)

Sets the visibility of the hide/show and close button

Parameters
[in]bVisibilitythe new visiblity state.

Definition at line 266 of file quickcontrolview.cpp.


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