34 lines
772 B
C++
34 lines
772 B
C++
#ifndef RM_PLAY_SLIDER_H
|
|
#define RM_PLAY_SLIDER_H
|
|
|
|
#include "../rm_include.h"
|
|
#include "../fm_event_types.h"
|
|
|
|
class RMSlider;
|
|
class RMPlaySlider : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
friend class RMPlayer;
|
|
friend class RMFrameSlider;
|
|
public:
|
|
explicit RMPlaySlider(QWidget *parent = nullptr);
|
|
RMSlider* slider;
|
|
QHBoxLayout* layout;
|
|
|
|
QLabel* currentTimeLabel;
|
|
QLabel* durationLabel;
|
|
private:
|
|
double _itemDurationMSec; // AVI 헤더 시간
|
|
//void paintEvent(QPaintEvent *pe);
|
|
public slots:
|
|
void setEnabled(bool bEnabled);
|
|
void onPlayEvent(PLAY_EVENT event,RMVideoItem* item);
|
|
void onPositionChanged(qint64 position,qint64 duration);
|
|
void onEnableSliderDelay();
|
|
signals:
|
|
|
|
public slots:
|
|
};
|
|
|
|
#endif // RM_PLAY_SLIDER_H
|