-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtimelinelayerwidget.h
55 lines (41 loc) · 1.11 KB
/
timelinelayerwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef TIMELINELAYERWIDGET_H
#define TIMELINELAYERWIDGET_H
#include <QWidget>
#include <memory>
#include "selection.h"
namespace Ui {
class TimelineLayerWidget;
}
class TimelineLayer;
class TimelineEventsWidget;
class QLabel;
class QComboBox;
class QPushButton;
class TimelineLayerWidget : public QWidget
{
Q_OBJECT
public:
explicit TimelineLayerWidget(const std::shared_ptr<TimelineLayer>& layer, QWidget *parent = 0);
~TimelineLayerWidget();
const Selection& selection() const;
signals:
void requestSetCursor(double time);
void selectionChanged(const Selection& selection);
void focusGained();
void focusLost();
public slots:
void setViewport(double startTime, double length);
void setCursor(double time);
void setSnapInterval(double interval);
private slots:
void editScript();
private:
Ui::TimelineLayerWidget *ui;
QLabel* mLblLayerName;
TimelineEventsWidget* mEventsWidget;
QComboBox* mScriptBox;
QPushButton* mEditScriptButton;
QPushButton* mDeleteScriptButton;
std::shared_ptr<TimelineLayer> mLayer;
};
#endif // TIMELINELAYERWIDGET_H