00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef TRANSPORTCONSOLEWIDGET_H
00023 #define TRANSPORTCONSOLEWIDGET_H
00024
00025
00026 #include <QTimer>
00027 #include <QToolBar>
00028
00029 #include "defines.h"
00030
00031 class Project;
00032 class Sheet;
00033 class QPushButton;
00034
00035 class TransportConsoleWidget : public QToolBar
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 TransportConsoleWidget(QWidget* parent);
00041
00042 private:
00043 QPushButton* m_timeLabel;
00044 Project* m_project;
00045 Sheet* m_sheet;
00046 QAction* m_toStartAction;
00047 QAction* m_toLeftAction;
00048 QAction* m_recAction;
00049 QAction* m_playAction;
00050 QAction* m_toEndAction;
00051 QAction* m_toRightAction;
00052 QTimer m_updateTimer;
00053 TimeRef m_lastSnapPosition;
00054
00055 protected slots:
00056 void set_project(Project*);
00057 void set_sheet(Sheet*);
00058
00059 private slots:
00060 void to_start();
00061 void to_left();
00062 void rec_toggled();
00063 void play_toggled();
00064 void to_end();
00065 void to_right();
00066
00067 void transport_started();
00068 void transport_stopped();
00069 void update_recording_state();
00070 void update_label();
00071 void update_layout();
00072 };
00073
00074 #endif
00075