mirror of
https://github.com/modelec/ihm.git
synced 2026-01-18 16:47:32 +01:00
34 lines
632 B
C++
34 lines
632 B
C++
#pragma once
|
|
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
class TestModeBtn : public QWidget{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TestModeBtn(const QString& name, int min = 0, int max = 0, QWidget *parent = nullptr);
|
|
|
|
void setBorne(int min, int max);
|
|
|
|
[[nodiscard]] int getValue() const;
|
|
|
|
private:
|
|
QHBoxLayout *layout;
|
|
QLabel *textLabel;
|
|
QLabel *valueLabel;
|
|
QPushButton *decrement100;
|
|
QPushButton *decrement10;
|
|
QPushButton *increment10;
|
|
QPushButton *increment100;
|
|
|
|
int value = 0;
|
|
|
|
struct Borne
|
|
{
|
|
int min;
|
|
int max;
|
|
} borne;
|
|
};
|