MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
quickcontrolview.h
Go to the documentation of this file.
1//=============================================================================================================
35#ifndef QUICKCONTROLVIEW_H
36#define QUICKCONTROLVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43
45#include "butterflyview.h"
46
47//=============================================================================================================
48// EIGEN INCLUDES
49//=============================================================================================================
50
51//=============================================================================================================
52// QT INCLUDES
53//=============================================================================================================
54
55//=============================================================================================================
56// FORWARD DECLARATIONS
57//=============================================================================================================
58
59namespace Ui {
60 class QuickControlViewWidget;
61}
62
63class QVBoxLayout;
64
65//=============================================================================================================
66// DEFINE NAMESPACE DISPLIB
67//=============================================================================================================
68
69namespace DISPLIB
70{
71
72//=============================================================================================================
73// DISPLIB FORWARD DECLARATIONS
74//=============================================================================================================
75
76//=============================================================================================================
83{
84 Q_OBJECT
85
86public:
87 typedef QSharedPointer<QuickControlView> SPtr;
88 typedef QSharedPointer<const QuickControlView> ConstSPtr;
90 //=========================================================================================================
99 QuickControlView(const QString& sSettingsPath = "",
100 const QString& name = "",
101 Qt::WindowFlags flags = Qt::Window | Qt::WindowStaysOnTopHint,
102 QWidget *parent = Q_NULLPTR,
103 bool bDraggable = true);
104
105 //=========================================================================================================
110
111 //=========================================================================================================
115 void clear();
116
117 QVBoxLayout* findTabWidgetLayout(const QString& sTabName);
118
119 //=========================================================================================================
130 void addWidgets(const QList<QWidget*>& lWidgets,
131 const QString& sTabName,
132 bool bAddToEnd = false);
133
134 //=========================================================================================================
143 void addWidget(QWidget* pWidget,
144 const QString& sTabName,
145 bool bAddToEnd = false);
146
147 //=========================================================================================================
157 void addGroupBox(QWidget* pWidget,
158 const QString& sGroupBoxName,
159 const QString& sTabName,
160 bool bAddToEnd = false);
161
162 //=========================================================================================================
174 void addGroupBoxWithTabs(QWidget* pWidget,
175 const QString& sGroupBoxName,
176 const QString& sTabNameGroupBox,
177 const QString& sTabName,
178 bool bAddToEnd = false);
179
180 //=========================================================================================================
186 void setOpacityValue(int opactiy);
187
188 //=========================================================================================================
194 int getOpacityValue();
195
196 //=========================================================================================================
202 void setVisiblityHideOpacityClose(bool bVisibility);
203
204 //=========================================================================================================
208 void saveSettings();
209
210 //=========================================================================================================
214 void loadSettings();
215
216protected:
217 //=========================================================================================================
223 void onOpacityChange(qint32 value);
224
225private:
226 QString m_sSettingsPath;
227 QString m_sName;
228 Ui::QuickControlViewWidget* m_pUi;
230signals:
231};
232} // NAMESPACE DISPLIB
233
234#endif // QUICKCONTROLVIEW_H
Declaration of the ButterflyView class.
Declaration of the DraggableFramelessWidget Class.
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The DraggableFramelessWidget class provides draggable and frameless QWidget.
The QuickControlView class provides a quick control view for scaling, filtering, projector and other ...
QSharedPointer< QuickControlView > SPtr
QSharedPointer< const QuickControlView > ConstSPtr