blob: ed681415cd43835fd2d4f836bda72c570ad4d18d (
plain) (
blame)
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 GRAPHEDITORTESTAPP_H
#define GRAPHEDITORTESTAPP_H
#include <QtWidgets/QWidget>
namespace nvidia {
namespace CurveEditor {
class CurveEditorMainWindow;
class CurveAttributeBase;
class CurveAttribute;
class ColorAttribute;
} // namespace CurveEditor
} // namespace nvidia
using namespace nvidia::CurveEditor;
namespace Ui
{
class CurveEditorTestAppClass;
}
class CurveEditorTestApp : public QWidget
{
Q_OBJECT
public:
CurveEditorTestApp(QWidget *parent = 0, Qt::WindowFlags flags = 0);
~CurveEditorTestApp();
private slots:
void on_btnCurveEditor_clicked(void);
void onCurveAttributeChanged(nvidia::CurveEditor::CurveAttribute* attribute);
void onColorAttributeChanged(nvidia::CurveEditor::ColorAttribute* attribute);
void onReloadColorAttributeTexture(nvidia::CurveEditor::ColorAttribute* attribute, bool reloadColorTex, int selectedCtrlPntIndex);
private:
void _fillCurveAttributes();
void _fillColorAttributes();
private:
Ui::CurveEditorTestAppClass* ui;
CurveEditorMainWindow* _curveEditor;
std::vector<CurveAttributeBase*> _curveAttributes;
std::vector<ColorAttribute*> _colorAttributes;
};
#endif // GRAPHEDITORTESTAPP_H
|