tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ObjectMaker.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef CM_OBJECTMAKER_H
5 #define CM_OBJECTMAKER_H
6 
7 #include <QLineEdit>
8 #include <QMainWindow>
9 #include <QWidget>
10 
11 namespace tilde {
12 
13 class PatchWindowController;
14 
18 class ObjectMaker : public QLineEdit {
19 
20  Q_OBJECT
21 
22 private:
23  PatchWindowController* _parentController;
24 
25  bool _modified;
26 
27 public:
28  explicit ObjectMaker(QLineEdit* parent = 0);
29 
32 
33  void focusOutEvent(QFocusEvent*);
34 
35  void setModified(bool v);
36 
37  void cancel();
38 
39 public slots:
40  void done();
41 
42 signals:
43  void objectMakerDoneSignal();
44 
45 private slots:
46 
50  virtual void editorChanged();
51 };
52 }
53 
54 #endif // CM_OBJECTMAKER_H
void done()
Definition: ObjectMaker.cpp:61
void cancel()
Definition: ObjectMaker.cpp:82
void objectMakerDoneSignal()
ObjectMaker(QLineEdit *parent=0)
Definition: ObjectMaker.cpp:18
The Patch window controller.
Definition: PatchWindowController.h:48
PatchWindowController * parentController()
Definition: ObjectMaker.cpp:69
creates QLineEdit box for new object
Definition: ObjectMaker.h:18
void focusOutEvent(QFocusEvent *)
Definition: ObjectMaker.cpp:72
void setParentController(PatchWindowController *controller)
Definition: ObjectMaker.cpp:70
void setModified(bool v)
Definition: ObjectMaker.cpp:77