first commit
This commit is contained in:
40
project/fm_viewer/ui/fm_datepicker.h
Normal file
40
project/fm_viewer/ui/fm_datepicker.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#ifndef FM_DATEPICKER_H
|
||||
#define FM_DATEPICKER_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QComboBox>
|
||||
#include "../rm_include.h"
|
||||
#if (RM_MODEL == RM_MODEL_TYPE_TB4000 && USE_DATE_FILTER)
|
||||
#include "rm_widget_base.h"
|
||||
|
||||
class FMDatePicker : public RMWidgetBase
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
public:
|
||||
|
||||
explicit FMDatePicker(QWidget *parent = nullptr);
|
||||
|
||||
QString _videoFolder(bool bPhoto = false);
|
||||
QString _videoDayFolder(bool bPhoto = false);
|
||||
|
||||
QVBoxLayout* layout;
|
||||
QComboBox* _yearListCombo;
|
||||
QComboBox* _monthListCombo;
|
||||
QComboBox* _dayListCombo;
|
||||
void refreshYears();
|
||||
void refreshMonths();
|
||||
void refreshDays();
|
||||
|
||||
|
||||
public slots:
|
||||
void onDaySelected(int index);
|
||||
void onMonthSelected(int index);
|
||||
void onYearSelected(int index);
|
||||
void onAppEvent(RMApp::Event event, int param) override;
|
||||
signals:
|
||||
//void folderSelected(QString folder);
|
||||
};
|
||||
|
||||
#endif // RM_MODEL_TYPE_TB4000
|
||||
#endif // FM_DATEPICKER_H
|
||||
Reference in New Issue
Block a user