FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
CurveUI.h
1 /*
2  * Copyright 2011, 2012 Lukas Jirkovsky
3  *
4  * This file is part of FotoSHOCK.
5  *
6  * FotoSHOCK is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, version 3 of the License.
9  *
10  * FotoSHOCK is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FotoSHOCK. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef CURVEUI_H
20 #define CURVEUI_H
21 
22 #include "QCurveWidget.h"
23 
24 #include <GraphNode.hpp>
25 
26 #include <QtGui/QDialog>
27 #include <QtGui/QComboBox>
28 #include <QtGui/QPushButton>
29 
30 class CurveUI : public QDialog {
31 Q_OBJECT
32  public:
33  explicit CurveUI(FotoSHOCKcore::GraphNode* node, const uint x, const uint y, HermiteCurve* curves, std::size_t numOfCurves, QWidget* parent = 0);
34  virtual ~CurveUI();
35  private:
36  QCurveWidget* curveView;
37  QComboBox* channelSelect;
38  QPushButton* showAll;
39 
40  void populateChannelSelect(FotoSHOCKcore::GraphNode* node);
41 };
42 
43 #endif // CURVEUI_H