1#ifndef SETTINGSWIDGET_H
2#define SETTINGSWIDGET_H
4#define DESCRIPTION_STYLE "color: rgb(58, 58, 58); border-left: 6px solid rgb(58, 58, 58); border-top-right-radius: 5px; border-bottom-right-radius: 5px; background-color: lightblue;"
6#define PROCESSOR_LABEL_STYLE_DEFAULT "color: green; height: 2em"
7#define PROCESSOR_LABEL_STYLE_ERROR "color: red; height: 2em"
9#define SPINNER_ICON_STYLE_DEFAULT "background: transparent; color: green"
10#define SPINNER_ICON_STYLE_ERROR "background: transparent; color: red"
22#include <QCoreApplication>
24#include <opencv2/core.hpp>
26#include "cvmat_qmetadata.h"
27#include "spinnericon.h"
53 explicit SettingsWidget(QWidget *parent =
nullptr, QStringList ONNXmodelList = QStringList(
""),
float blendAlpha = 0.5f,
const QString &modelPath=
"");
56 void setClasses(QBoolList boolList);
57 void setModel(uint modelIndex);
92 void slot_showTask(QString processor, QString task,
bool active);
94 void slot_showError(QString message);
98 void slot_comboBoxIdxChanged(
int idx);
99 void slot_selectedClassesChanged(
bool);
100 void slot_overlayAlphaChanged(
int percent);
101 void slot_invertSelectionPressed();
104 std::vector<QCheckBox*> m_classBoxes;
105 QGridLayout *m_gridLayout;
106 QComboBox *m_comboBox;
107 QSlider *m_alphaSlider;
108 QPushButton *m_invertButton;
109 QLabel *m_processorLabel;
Definition spinnericon.h:10