diff options
| author | Bryan Galdrikian <[email protected]> | 2017-02-24 09:32:20 -0800 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-02-24 09:32:20 -0800 |
| commit | e1bf674c16e3c8472b29574159c789cd3f0c64e0 (patch) | |
| tree | 9f0cfce09c71a2c27ff19589fcad6cd83504477c /tools/CurveEditor/source/GraphEditorTestApp/CurveEditorTestApp.h | |
| parent | first commit (diff) | |
| download | blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.tar.xz blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.zip | |
Updating to [email protected] and [email protected] with a new directory structure.
NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this.
Diffstat (limited to 'tools/CurveEditor/source/GraphEditorTestApp/CurveEditorTestApp.h')
| -rw-r--r-- | tools/CurveEditor/source/GraphEditorTestApp/CurveEditorTestApp.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/CurveEditor/source/GraphEditorTestApp/CurveEditorTestApp.h b/tools/CurveEditor/source/GraphEditorTestApp/CurveEditorTestApp.h new file mode 100644 index 0000000..ed68141 --- /dev/null +++ b/tools/CurveEditor/source/GraphEditorTestApp/CurveEditorTestApp.h @@ -0,0 +1,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 |