iVS3D v2.0.0
Loading...
Searching...
No Matches
infowidget.h
1#ifndef INFOWIDGET_H
2#define INFOWIDGET_H
3
4#include <QWidget>
5#include "operationstack.h"
6#include "stringcontainer.h"
7#include "cvmat_qmetadata.h"
8#include "adaptivetoolbutton.h"
9
10#include <QRegExp>
11#include <QRegularExpression>
12#include <QRegularExpressionMatch>
13#include <QFormLayout>
14#include <QComboBox>
15#include <QCheckBox>
16#include <QPushButton>
17#include <QHBoxLayout>
18#include <QDoubleSpinBox>
19
32class InfoWidget : public QWidget
33{
34 Q_OBJECT
35
36public:
42 explicit InfoWidget(QWidget *parent = nullptr, QString title = "Info", ColorTheme theme = LIGHT);
44
50 void enableOpenMetaData(bool status, QString tooltip = QString());
51
57 void enableOpenImages(bool status, QString tooltip = QString());
58
64 void enableOpenVideo(bool status, QString tooltip = QString());
65
70 void setColorTheme(ColorTheme theme);
71
78
79 void enableSettings(bool enabled);
80
81
82signals:
83 void sig_openVideoPressed();
84 void sig_openFolderPressed();
85 void sig_openMetaPressed();
86
87private slots:
88 void on_toolButton_folder_clicked();
89 void on_toolButton_video_clicked();
90 void on_toolButton_meta_clicked();
91
92protected:
93// input buttons
94 AdaptiveToolButton *m_openMetaDataButton;
95 AdaptiveToolButton *m_openImagesButton;
96 AdaptiveToolButton *m_openVideoButton;
97 QHBoxLayout *m_inputButtonLayout;
98
99
100// operation stack
101 OperationStack *m_opStack;
102};
103
104#endif // INFOWIDGET_H
Definition adaptivetoolbutton.h:14
The InfoWidget class displays given information to the user. The information is given as key value pa...
Definition infowidget.h:33
void enableOpenImages(bool status, QString tooltip=QString())
enableInputImages enables "Open Images" button in the widget
Definition infowidget.cpp:63
void enableOpenVideo(bool status, QString tooltip=QString())
enableInputVideo enables "Open Video" button in the widget
Definition infowidget.cpp:69
void enableOpenMetaData(bool status, QString tooltip=QString())
enableOpenMetaData enables "Open Meta Data" button in the widget
Definition infowidget.cpp:57
OperationStack * getOpStack()
getOpStack returns the OperationStack displayed on the InfoWidget
Definition infowidget.cpp:82
void setColorTheme(ColorTheme theme)
setColorTheme updates text and icon colors according to a given theme
Definition infowidget.cpp:75
Definition operationstack.h:13