84 lines
1.9 KiB
C++
84 lines
1.9 KiB
C++
#ifndef RM_FRAME_PLAY_H
|
|
#define RM_FRAME_PLAY_H
|
|
|
|
#include "../rm_include.h"
|
|
#include "rm_widget_base.h"
|
|
#include "../fm_event_types.h"
|
|
#include <QShortcut>
|
|
#include <QElapsedTimer>
|
|
|
|
|
|
class FMButton;
|
|
#if (SPEED_IN_PLAY_CONTROL)
|
|
class RMReleasedSlider;
|
|
#endif // #if (SPEED_IN_PLAY_CONTROL)
|
|
class RMFramePlay : public RMWidgetBase
|
|
{
|
|
Q_OBJECT
|
|
protected:
|
|
void _createLayouts();
|
|
public:
|
|
QHBoxLayout* layout;
|
|
explicit RMFramePlay(QWidget *parent = nullptr);
|
|
~RMFramePlay();
|
|
#if !(REMOVE_SEEK_BUTTON)
|
|
FMButton* frameBackwardButton;
|
|
#endif
|
|
FMButton* playButton;
|
|
FMButton* stopButton;
|
|
|
|
#if !(REMOVE_SEEK_BUTTON)
|
|
FMButton* frameForwardButton;
|
|
#endif
|
|
|
|
FMButton* filePreviousButton;
|
|
FMButton* fileNextButton;
|
|
|
|
#if !(REMOVE_ALL_SHORT_CUTS)
|
|
QShortcut* playShortcut;
|
|
QShortcut* restartShortcut;
|
|
#endif
|
|
|
|
#if (SPEED_IN_PLAY_CONTROL)
|
|
FMButton* speedBtn;
|
|
RMReleasedSlider* speedSlider;
|
|
QLabel* speedLabel;
|
|
#endif // SPEED_IN_PLAY_CONTROL
|
|
|
|
#if (USE_MAXIMIZE)
|
|
QSpacerItem* maxSpace;
|
|
#endif
|
|
|
|
FMButton* openButton;
|
|
|
|
#if (RM_MODEL == RM_MODEL_TYPE_TB4000)
|
|
QWidget* tool;
|
|
FMButton* saveButton;
|
|
FMButton* reportButton;
|
|
|
|
FMButton* fSaveButton;
|
|
FMButton* fPrintButton;
|
|
FMButton* fReportButtonCH1;
|
|
FMButton* fReportButtonCH2;
|
|
//QSpacerItem* endItem;
|
|
#endif // RM_MODEL_TYPE_TB4000
|
|
|
|
public slots:
|
|
void onAppEvent(RMApp::Event event,int param) override;
|
|
void onPlayEvent(PLAY_EVENT event, RMVideoItem* item);
|
|
void onLoadingListEnd(bool bLoading,RMVideoItem* selected);
|
|
#if (PROFILE_VIDEO_FILE_LOADING && PROFILE_VIDEO_FILE_LOADING_AUTOPLAY)
|
|
void onTestNext();
|
|
#endif
|
|
void onPlayOrPause();
|
|
#if (LIVE_LANGUAGE2)
|
|
void onLanguageChange(RMLanguage::LANGUAGE_TYPE language);
|
|
#endif // LIVE_LANGUAGE2
|
|
|
|
#if (SPEED_IN_PLAY_CONTROL)
|
|
void onDefaultSpeed();
|
|
#endif // #if (SPEED_IN_PLAY_CONTROL)
|
|
};
|
|
|
|
#endif // RM_CONTROL_PLAY_H
|