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//=============================================================================================================
36// EIGEN INCLUDES
37//=============================================================================================================
38
39//=============================================================================================================
40// QT INCLUDES
41//=============================================================================================================
42
43//=============================================================================================================
44// FORWARD DECLARATIONS
45//=============================================================================================================
46
47namespace Ui
48{
49class QuickControlViewWidget;
50}
51
52class QVBoxLayout;
53
54//=============================================================================================================
55// DEFINE NAMESPACE DISPLIB
56//=============================================================================================================
57
58namespace DISPLIB
59{
60
61//=============================================================================================================
62// DISPLIB FORWARD DECLARATIONS
63//=============================================================================================================
64
65//=============================================================================================================
75{
76 Q_OBJECT
77
78public:
79 typedef QSharedPointer<QuickControlView> SPtr;
80 typedef QSharedPointer<const QuickControlView> ConstSPtr;
81
82 //=========================================================================================================
92 QuickControlView(const QString& sSettingsPath = "",
93 const QString& name = "",
94 Qt::WindowFlags flags = Qt::Window | Qt::WindowStaysOnTopHint,
95 QWidget* parent = Q_NULLPTR,
96 bool bDraggable = true);
97
98 //=========================================================================================================
103
104 //=========================================================================================================
108 void clear();
109
110 QVBoxLayout* findTabWidgetLayout(const QString& sTabName);
111
112 //=========================================================================================================
123 void addWidgets(const QList<QWidget*>& lWidgets,
124 const QString& sTabName,
125 bool bAddToEnd = false);
126
127 //=========================================================================================================
136 void addWidget(QWidget* pWidget,
137 const QString& sTabName,
138 bool bAddToEnd = false);
139
140 //=========================================================================================================
150 void addGroupBox(QWidget* pWidget,
151 const QString& sGroupBoxName,
152 const QString& sTabName,
153 bool bAddToEnd = false);
154
155 //=========================================================================================================
167 void addGroupBoxWithTabs(QWidget* pWidget,
168 const QString& sGroupBoxName,
169 const QString& sTabNameGroupBox,
170 const QString& sTabName,
171 bool bAddToEnd = false);
172
173 //=========================================================================================================
179 void setOpacityValue(int opactiy);
180
181 //=========================================================================================================
187 int getOpacityValue();
188
189 //=========================================================================================================
195 void setVisiblityHideOpacityClose(bool bVisibility);
196
197 //=========================================================================================================
201 void saveSettings();
202
203 //=========================================================================================================
207 void loadSettings();
208
209protected:
210 //=========================================================================================================
216 void onOpacityChange(qint32 value);
217
218private:
219 QString m_sSettingsPath;
220 QString m_sName;
221 Ui::QuickControlViewWidget* m_pUi;
222
223signals:
224};
225} // NAMESPACE DISPLIB
226
227#endif // QUICKCONTROLVIEW_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
QRhi-accelerated 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)