v2.0.0
Loading...
Searching...
No Matches
quickcontrolview.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef QUICKCONTROLVIEW_H
24#define QUICKCONTROLVIEW_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "../disp_global.h"
31
33#include "butterflyview.h"
34
35#include <memory>
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41//=============================================================================================================
42// QT INCLUDES
43//=============================================================================================================
44
45//=============================================================================================================
46// FORWARD DECLARATIONS
47//=============================================================================================================
48
49namespace Ui
50{
51class QuickControlViewWidget;
52}
53
54class QVBoxLayout;
55
56//=============================================================================================================
57// DEFINE NAMESPACE DISPLIB
58//=============================================================================================================
59
60namespace DISPLIB
61{
62
63//=============================================================================================================
64// DISPLIB FORWARD DECLARATIONS
65//=============================================================================================================
66
67//=============================================================================================================
77{
78 Q_OBJECT
79
80public:
81 typedef QSharedPointer<QuickControlView> SPtr;
82 typedef QSharedPointer<const QuickControlView> ConstSPtr;
83
84 //=========================================================================================================
94 QuickControlView(const QString& sSettingsPath = "",
95 const QString& name = "",
96 Qt::WindowFlags flags = Qt::Window | Qt::WindowStaysOnTopHint,
97 QWidget* parent = nullptr,
98 bool bDraggable = true);
99
100 //=========================================================================================================
105
106 //=========================================================================================================
110 void clear();
111
112 QVBoxLayout* findTabWidgetLayout(const QString& sTabName);
113
114 //=========================================================================================================
125 void addWidgets(const QList<QWidget*>& lWidgets,
126 const QString& sTabName,
127 bool bAddToEnd = false);
128
129 //=========================================================================================================
138 void addWidget(QWidget* pWidget,
139 const QString& sTabName,
140 bool bAddToEnd = false);
141
142 //=========================================================================================================
152 void addGroupBox(QWidget* pWidget,
153 const QString& sGroupBoxName,
154 const QString& sTabName,
155 bool bAddToEnd = false);
156
157 //=========================================================================================================
169 void addGroupBoxWithTabs(QWidget* pWidget,
170 const QString& sGroupBoxName,
171 const QString& sTabNameGroupBox,
172 const QString& sTabName,
173 bool bAddToEnd = false);
174
175 //=========================================================================================================
181 void setOpacityValue(int opactiy);
182
183 //=========================================================================================================
189 int getOpacityValue();
190
191 //=========================================================================================================
197 void setVisiblityHideOpacityClose(bool bVisibility);
198
199 //=========================================================================================================
203 void saveSettings();
204
205 //=========================================================================================================
209 void loadSettings();
210
211protected:
212 //=========================================================================================================
218 void onOpacityChange(qint32 value);
219
220private:
221 QString m_sSettingsPath;
222 QString m_sName;
223 std::unique_ptr<Ui::QuickControlViewWidget> m_pUi;
224
225signals:
226};
227} // NAMESPACE DISPLIB
228
229#endif // QUICKCONTROLVIEW_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Butterfly plot overlaying every channel of one or more averaged conditions.
Frameless QWidget that can be dragged by clicking anywhere on its body.
2-D display widgets and visualisation helpers (charts, topography, colour maps).
Frameless QWidget that can be dragged anywhere on its body.
void addWidget(QWidget *pWidget, const QString &sTabName, bool bAddToEnd=false)
QSharedPointer< QuickControlView > SPtr
void addWidgets(const QList< QWidget * > &lWidgets, const QString &sTabName, bool bAddToEnd=false)
QSharedPointer< const QuickControlView > ConstSPtr
QuickControlView(const QString &sSettingsPath="", const QString &name="", Qt::WindowFlags flags=Qt::Window|Qt::WindowStaysOnTopHint, QWidget *parent=nullptr, bool bDraggable=true)
QVBoxLayout * findTabWidgetLayout(const QString &sTabName)
void addGroupBoxWithTabs(QWidget *pWidget, const QString &sGroupBoxName, const QString &sTabNameGroupBox, const QString &sTabName, bool bAddToEnd=false)
void onOpacityChange(qint32 value)
void setOpacityValue(int opactiy)
void addGroupBox(QWidget *pWidget, const QString &sGroupBoxName, const QString &sTabName, bool bAddToEnd=false)
void setVisiblityHideOpacityClose(bool bVisibility)