blob: 9965d125731002b3f2a896f62741e240a0cd8ce7 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <QToolBar>
#include <QWidget>
#include <QLabel>
namespace QmlDesigner {
class CurveEditorModel;
class CurveEditorToolBar;
class GraphicsView;
class TreeView;
class CurveEditor : public QWidget
{
Q_OBJECT
public:
CurveEditor(CurveEditorModel *model, QWidget *parent = nullptr);
bool dragging() const;
void zoomX(double zoom);
void zoomY(double zoom);
void clearCanvas();
signals:
void viewEnabledChanged(const bool);
protected:
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
private:
void updateStatusLine();
QLabel *m_infoText;
QLabel *m_statusLine;
CurveEditorToolBar *m_toolbar;
TreeView *m_tree;
GraphicsView *m_view;
};
} // End namespace QmlDesigner.
|