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 class QuickControlViewWidget;
49}
50
51class QVBoxLayout;
52
53//=============================================================================================================
54// DEFINE NAMESPACE DISPLIB
55//=============================================================================================================
56
57namespace DISPLIB
58{
59
60//=============================================================================================================
61// DISPLIB FORWARD DECLARATIONS
62//=============================================================================================================
63
64//=============================================================================================================
74{
75 Q_OBJECT
76
77public:
78 typedef QSharedPointer<QuickControlView> SPtr;
79 typedef QSharedPointer<const QuickControlView> ConstSPtr;
80
81 //=========================================================================================================
90 QuickControlView(const QString& sSettingsPath = "",
91 const QString& name = "",
92 Qt::WindowFlags flags = Qt::Window | Qt::WindowStaysOnTopHint,
93 QWidget *parent = Q_NULLPTR,
94 bool bDraggable = true);
95
96 //=========================================================================================================
101
102 //=========================================================================================================
106 void clear();
107
108 QVBoxLayout* findTabWidgetLayout(const QString& sTabName);
109
110 //=========================================================================================================
121 void addWidgets(const QList<QWidget*>& lWidgets,
122 const QString& sTabName,
123 bool bAddToEnd = false);
124
125 //=========================================================================================================
134 void addWidget(QWidget* pWidget,
135 const QString& sTabName,
136 bool bAddToEnd = false);
137
138 //=========================================================================================================
148 void addGroupBox(QWidget* pWidget,
149 const QString& sGroupBoxName,
150 const QString& sTabName,
151 bool bAddToEnd = false);
152
153 //=========================================================================================================
165 void addGroupBoxWithTabs(QWidget* pWidget,
166 const QString& sGroupBoxName,
167 const QString& sTabNameGroupBox,
168 const QString& sTabName,
169 bool bAddToEnd = false);
170
171 //=========================================================================================================
177 void setOpacityValue(int opactiy);
178
179 //=========================================================================================================
185 int getOpacityValue();
186
187 //=========================================================================================================
193 void setVisiblityHideOpacityClose(bool bVisibility);
194
195 //=========================================================================================================
199 void saveSettings();
200
201 //=========================================================================================================
205 void loadSettings();
206
207protected:
208 //=========================================================================================================
214 void onOpacityChange(qint32 value);
215
216private:
217 QString m_sSettingsPath;
218 QString m_sName;
219 Ui::QuickControlViewWidget* m_pUi;
220
221signals:
222};
223} // NAMESPACE DISPLIB
224
225#endif // QUICKCONTROLVIEW_H
Frameless QWidget that can be dragged by clicking anywhere on its body.
QRhi-accelerated butterfly plot overlaying every channel of one or more averaged conditions.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
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)