#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({"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