Update to dms control phase1.

This commit is contained in:
sunwen
2023-08-21 14:22:41 +08:00
parent d1dc5df680
commit 20fb814608
59 changed files with 2538 additions and 904 deletions

View File

@@ -0,0 +1,33 @@
#ifndef GUI_TIMESLIDEPICKERBOX_H
#define GUI_TIMESLIDEPICKERBOX_H
#include <QWidget>
#include "SlidePickerBox.h"
class QHBoxLayout;
class TimeSlidePickerBox : public QWidget
{
Q_OBJECT
public:
explicit TimeSlidePickerBox(QWidget* aParent = nullptr);
QString getSelectedValue() const;
int getTotalSeconds() const;
void setSelectedValue(const int& aSeconds);
void resizeLabel();
private:
QHBoxLayout* mLayout;
SlidePickerBox* mHourBox1;
SlidePickerBox* mHourBox2;
SlidePickerBox* mMinuteBox1;
SlidePickerBox* mMinuteBox2;
SlidePickerBox* mSecondBox1;
SlidePickerBox* mSecondBox2;
bool mIsMinuteSixty;
bool mIsSecondSixty;
void initBox(SlidePickerBox* aBox, const QStringList& aItemsValues, int width = 50);
};
#endif //GUI_TIMESLIDEPICKERBOX_H