blob: 4b2c4cbb473ecd1e5bdcff3cdaff36e88fdc76bd (
plain)
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
|
#pragma once
#include "graphaxiswidget.h"
class FrameDataProvider {
public:
virtual ~FrameDataProvider() {}
/* Number of frames */
virtual unsigned size() const = 0;
/* Start and end values of frame */
virtual qint64 frameStart(unsigned frame) const = 0;
virtual qint64 frameEnd(unsigned frame) const = 0;
};
/**
* A generic axis which will draw frame numbers over a period of values.
* Frames designated by start / end values.
*/
class FrameAxisWidget : public GraphAxisWidget {
public:
FrameAxisWidget(QWidget* parent = 0);
void setDataProvider(FrameDataProvider* data);
virtual void paintEvent(QPaintEvent *e);
protected:
FrameDataProvider* m_data;
};
|