Update to dms control phase1.
This commit is contained in:
33
src/components/TimeSliderPickerBox.h
Normal file
33
src/components/TimeSliderPickerBox.h
Normal 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
|
||||
Reference in New Issue
Block a user