You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
#ifndef CINESETTINGVIEWMODEL_H
|
|
#define CINESETTINGVIEWMODEL_H
|
|
|
|
#include "viewModel/BaseViewModel.h"
|
|
|
|
#include "viewModel/cine/setting/DataCineSetting.h"
|
|
|
|
class CineSettingViewModel : public BaseViewModel
|
|
{
|
|
Q_OBJECT
|
|
US_VIEW_MODEL(CineSettingViewModel)
|
|
SINGLETON(CineSettingViewModel)
|
|
|
|
private:
|
|
DataCineSetting_t _data;
|
|
|
|
US_SWITCH_BUTTON(cineRepeat, "", "", true, true, false)
|
|
|
|
US_SWITCH_BUTTON(cinePlay, "", "", true, true, false)
|
|
|
|
US_SWITCH_BUTTON(cineOriginalClip, "Maximize", "", true, true, false)
|
|
|
|
US_JOYSTICK_SIMPLE(cineStart, "Start", true, true, 1)
|
|
|
|
US_JOYSTICK_SIMPLE(cineEnd, "End", true, true, 3)
|
|
|
|
US_SPIN_BOX(cineSpeed, "Speed", (QList<QString>({"0.5", "1", "1.5", "2"})),
|
|
"", "x", true, true, 1)
|
|
|
|
US_JOYSTICK_SIMPLE(cineNumber, "Cine#", true, true, 2)
|
|
|
|
US_PROPERTY(quint32, cineElapsedTime, 1)
|
|
US_PROPERTY(quint32, cineTotalTime, 2)
|
|
US_PROPERTY(quint32, cineSavedFrame, 2)
|
|
US_PROPERTY(quint32, cineTotalFrame, 4)
|
|
};
|
|
|
|
#endif //CINESETTINGVIEWMODEL_H
|
|
|