34 lines
812 B
C++
34 lines
812 B
C++
#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
|