-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbottomtrackcontrolmenucontroller.h
49 lines (35 loc) · 1.29 KB
/
bottomtrackcontrolmenucontroller.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
#ifndef BOTTOMTRACKCONTROLMENUCONTROLLER_H
#define BOTTOMTRACKCONTROLMENUCONTROLLER_H
#include <qmlcomponentcontroller.h>
#include <memory>
class BottomTrack;
class GraphicsScene3dView;
class BottomTrackControlMenuController : public QmlComponentController
{
Q_OBJECT
Q_PROPERTY(BottomTrack* bottomTrack READ bottomTrack CONSTANT)
Q_PROPERTY(QStringList channelList READ channelList CONSTANT)
Q_PROPERTY(int visibleChannelIndex READ visibleChannelIndex CONSTANT)
public:
BottomTrackControlMenuController(QObject* parent = nullptr);
virtual ~BottomTrackControlMenuController();
Q_INVOKABLE void onVisibilityCheckBoxCheckedChanged(bool checked);
Q_INVOKABLE void onVisibleChannelComboBoxIndexChanged(int index);
Q_INVOKABLE void onSurfaceUpdated();
Q_INVOKABLE void onSurfaceStateChanged(bool state);
void setGraphicsSceneView(GraphicsScene3dView* sceneView);
protected:
virtual void findComponent() override;
private:
BottomTrack* bottomTrack() const;
QStringList channelList() const;
int visibleChannelIndex() const;
private Q_SLOTS:
void updateChannelList();
Q_SIGNALS:
void channelListUpdated();
private:
GraphicsScene3dView* m_graphicsSceneView = nullptr;
QStringList m_channelList;
};
#endif // BOTTOMTRACKCONTROLMENUCONTROLLER_H