25 #include "sharedframe.h" 40 class TransportControllable;
42 class QPropertyAnimation;
45 class Player :
public QWidget
54 explicit Player(QWidget *parent = 0);
55 void connectTransport(
const TransportControllable*);
58 void setMarkers(
const QList<int>&);
59 QSize videoSize()
const;
60 int position()
const {
63 void moveVideoToScreen(
int screen = -1);
64 void setPauseAfterOpen(
bool pause);
65 TabIndex tabIndex()
const;
69 void showStatusMessage(QString);
70 void inChanged(
int delta);
71 void outChanged(
int delta);
72 void played(
double speed);
75 void seeked(
int position);
76 void rewound(
bool forceChangeDirection);
77 void fastForwarded(
bool forceChangeDirection);
78 void previousSought(
int currentPosition);
79 void previousSought();
80 void nextSought(
int currentPosition);
82 void zoomChanged(
float zoom);
83 void gridChanged(
int grid);
84 void scrolledHorizontally(
int x);
85 void scrolledVertically(
int y);
86 void tabIndexChanged(
int index);
89 void play(
double speed = 1.0);
92 void togglePlayPaused();
93 void seek(
int position);
95 void onProducerOpened(
bool play =
true);
96 void postProducerOpened();
97 void onMeltedUnitOpened();
98 void onDurationChanged();
100 void onVolumeChanged(
int);
101 void onCaptureStateChanged(
bool);
102 void rewind(
bool forceChangeDirection =
true);
103 void fastForward(
bool forceChangeDirection =
true);
106 void switchToTab(TabIndex index);
107 void enableTab(TabIndex index,
bool enabled =
true);
108 void onTabBarClicked(
int index);
109 void setStatusLabel(
const QString& text,
int timeoutSeconds, QAction* action);
112 void resizeEvent(QResizeEvent* event);
115 void setupActions(QWidget* widget);
116 void retranslateUi(QWidget* widget);
117 void adjustScrollBars(
float horizontal,
float vertical);
118 double setVolume(
int volume);
121 QAction *actionPause;
122 QAction *actionSkipNext;
123 QAction *actionSkipPrevious;
124 QAction *actionRewind;
125 QAction *actionFastForward;
126 QAction *actionVolume;
128 ScrubBar* m_scrubber;
129 TimeSpinBox* m_positionSpinner;
130 QLabel* m_durationLabel;
131 QLabel* m_inPointLabel;
132 QLabel* m_selectedLabel;
137 QFrame* m_volumePopup;
138 QSlider* m_volumeSlider;
139 QWidget* m_volumeWidget;
140 QPushButton* m_muteButton;
143 double m_savedVolume;
146 int m_isMeltedPlaying;
147 QScrollBar* m_horizontalScroll;
148 QScrollBar* m_verticalScroll;
149 QToolButton* m_zoomButton;
150 QAction* m_zoomFitAction;
151 QAction* m_zoomOriginalAction;
152 QAction* m_zoomOutAction50;
153 QAction* m_zoomOutAction25;
154 QAction* m_zoomOutAction10;
155 QAction* m_zoomInAction;
156 QToolButton* m_gridButton;
157 QActionGroup* m_gridActionGroup;
158 QAction* m_gridDefaultAction;
159 float m_zoomToggleFactor;
161 bool m_pauseAfterOpen;
163 QWidget* m_videoWidget;
164 QHBoxLayout* m_videoLayout;
165 QWidget* m_videoScrollWidget;
166 const TransportControllable* m_currentTransport;
167 QPushButton * m_statusLabel;
168 QPropertyAnimation* m_statusFadeIn;
169 QPropertyAnimation* m_statusFadeOut;
170 QTimer m_statusTimer;
173 void updateSelection();
174 void onInChanged(
int in);
175 void onOutChanged(
int out);
176 void on_actionSkipNext_triggered();
177 void on_actionSkipPrevious_triggered();
178 void on_actionVolume_triggered();
179 void onMuteButtonToggled(
bool checked);
180 void setZoom(
float factor,
const QIcon &icon);
187 void toggleZoom(
bool checked);
192 void gridSafeAreas8090();
193 void gridSafeAreasEbuR95();
194 void toggleGrid(
bool checked);
195 void onFadeOutFinished();
The SharedFrame provides thread safe access to Mlt::Frame data.
Definition: sharedframe.h:48