ImGraph
 All Classes Functions Variables Enumerations Pages
SmallDialogs.h
1 #ifndef _SMALL_DIALOGS_HEADER_
2 #define _SMALL_DIALOGS_HEADER_
3 
4 #ifdef _WIN32
5 #pragma warning(disable:4503)
6 #pragma warning(push)
7 #pragma warning(disable:4996 4244 4251 4275 4800 4503)
8 #endif
9 #include <QGraphicsLineItem>
10 #include <QPushButton>
11 #include <QLineEdit>
12 #include <QComboBox>
13 #include <QHBoxLayout>
14 #include <QDialog>
15 #ifdef _WIN32
16 #pragma warning(pop)
17 #endif
18 
19 #include "Block.h"
20 
21 namespace charliesoft
22 {
23 
24  class CreateParamWindow : public QDialog
25  {
26  Q_OBJECT
27  public:
30 
31  ParamDefinition getParamDef() const;
32  protected:
33  QPushButton* _OK;
34  QPushButton* _cancel;
35 
36  //type, name, helper, initialValue
37  QComboBox* _type;
38  QLineEdit* _name;
39  QLineEdit* _helper;
40 
41  QLineEdit* _initial_valuetext;
42  QPushButton* _initial_valuebutton_matrix;
43  QPushButton* _initial_valuebutton_color;
44 
45  QHBoxLayout* _initValLayout;
46  mutable ParamValue _initVal;
47  cv::Mat _initMat;
48  cv::Scalar _initColor;
49 
50  public slots:
51  void ok_exit();
52  void cancel_exit();
53  void matrixEditor();
54  void colorEditor();
55 
56  void typeChange(int);
57  };
58 }
59 
60 
61 #endif
Definition: Block.h:163
Definition: SmallDialogs.h:24
Definition: ParamValue.h:52