53 lines
914 B
C++
53 lines
914 B
C++
#ifndef VIEWER_H
|
|
#define VIEWER_H
|
|
|
|
#define TIMECODE_DROP 0
|
|
#define TIMECODE_NONDROP 1
|
|
#define TIMECODE_FRAMES 2
|
|
|
|
#include <QDockWidget>
|
|
|
|
class Timeline;
|
|
class ViewerWidget;
|
|
struct Sequence;
|
|
|
|
namespace Ui {
|
|
class Viewer;
|
|
}
|
|
|
|
bool frame_rate_is_droppable(float rate);
|
|
|
|
class Viewer : public QDockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Viewer(QWidget *parent = 0);
|
|
~Viewer();
|
|
void update_sequence();
|
|
void compose();
|
|
void set_playpause_icon(bool play);
|
|
int timecode_view;
|
|
void update_playhead_timecode();
|
|
void update_end_timecode();
|
|
|
|
ViewerWidget* viewer_widget;
|
|
|
|
Ui::Viewer *ui;
|
|
private slots:
|
|
void on_pushButton_clicked();
|
|
|
|
void on_pushButton_5_clicked();
|
|
|
|
void on_pushButton_2_clicked();
|
|
|
|
void on_pushButton_4_clicked();
|
|
|
|
void on_pushButton_3_clicked();
|
|
|
|
private:
|
|
QString frame_to_timecode(long f);
|
|
};
|
|
|
|
#endif // VIEWER_H
|