MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The QuickControlView class provides a quick control view for scaling, filtering, projector and other control options. More...
#include <quickcontrolview.h>
Public Types | |
typedef QSharedPointer< QuickControlView > | SPtr |
typedef QSharedPointer< const QuickControlView > | ConstSPtr |
Public Types inherited from DISPLIB::DraggableFramelessWidget | |
typedef QSharedPointer< DraggableFramelessWidget > | SPtr |
typedef QSharedPointer< const DraggableFramelessWidget > | ConstSPtr |
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) |
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.
typedef QSharedPointer<const QuickControlView> DISPLIB::QuickControlView::ConstSPtr |
Const shared pointer type for QuickControlView.
Definition at line 88 of file quickcontrolview.h.
typedef QSharedPointer<QuickControlView> DISPLIB::QuickControlView::SPtr |
Shared pointer type for QuickControlView.
Definition at line 87 of file quickcontrolview.h.
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.
[in] | name | The name to be displayed on the minimize button. |
[in] | flags | The window flags. |
[in] | parent | The parent of widget. |
[in] | bDraggable | Flag specifying whether this widget is draggable. |
Definition at line 64 of file quickcontrolview.cpp.
QuickControlView::~QuickControlView | ( | ) |
Destructs a QuickControlView
Definition at line 99 of file quickcontrolview.cpp.
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.
[in] | pWidget | The widgets which will be put into the new group box. |
[in] | sGroupBoxName | The name of the new group box. |
[in] | sTabName | The tab to which the group box is supposed to be added to. |
[in] | bAddToEnd | Whether 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.
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.
[in] | pWidget | The widgets which will be put into the new group box. |
[in] | sGroupBoxName | The name of the new group box. |
[in] | sTabNameGroupBox | The tab name inside the tab widget of the group box. |
[in] | sTabName | The tab to which the group box with the tab widget is supposed to be added to. |
[in] | bAddToEnd | Whether 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.
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.
[in] | pWidget | The widget which is supposed to be added. |
[in] | sTabName | The tab to which the widget is supposed to be added to. |
[in] | bAddToEnd | Whether 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.
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.
[in] | lWidgets | The widget which are supposed to be added. The widgets will be categorized based on their. object names: "widget_", "group_", "group_tab_". |
[in] | sTabName | The tab to which the widgets are supposed to be added to. |
[in] | bAddToEnd | Whether 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.
void QuickControlView::clear | ( | ) |
Clear this widget by removing all of its child widgets.
Definition at line 108 of file quickcontrolview.cpp.
int QuickControlView::getOpacityValue | ( | ) |
Get current opacity value. Value between 0.0 and 1.0.
Definition at line 259 of file quickcontrolview.cpp.
void QuickControlView::loadSettings | ( | ) |
Loads and inits all important settings of this view via QSettings.
Definition at line 289 of file quickcontrolview.cpp.
|
protected |
Slot called when opacity slider was changed
[in] | value | opacity value. |
Definition at line 311 of file quickcontrolview.cpp.
void QuickControlView::saveSettings | ( | ) |
Saves all important settings of this view via QSettings.
Definition at line 275 of file quickcontrolview.cpp.
void QuickControlView::setOpacityValue | ( | int | opactiy | ) |
Sets the values of the opacity slider. Choose value between 0.0 and 1.0.
[in] | opactiy | the new opacity value. |
Definition at line 250 of file quickcontrolview.cpp.
void QuickControlView::setVisiblityHideOpacityClose | ( | bool | bVisibility | ) |
Sets the visibility of the hide/show and close button
[in] | bVisibility | the new visiblity state. |
Definition at line 266 of file quickcontrolview.cpp.