tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PropertiesWindow.h
Go to the documentation of this file.
1 #ifndef CM_PROPERTIESWINDOW_H
2 #define CM_PROPERTIESWINDOW_H
3 
4 //#include <QtGui>
5 #include <QDockWidget>
6 #include <QLabel>
7 #include <QLineEdit>
8 
9 #include "Preferences.h"
10 #include "PropertyList.h"
11 
12 #include <map>
13 
14 class QTableWidget;
15 
16 namespace tilde {
17 
18 class PatchWindowController;
19 
23 class PropertiesWindow : public QWidget {
24 
25  Q_OBJECT
26 
27 private:
28  std::map<QObject*, QString> _propertyNames; //lookup table
29  PropertyList* _propertyList;
30 
31  void loadTableWidget(QString pName, QTableWidget* tv);
32 
33  PatchWindowController* _patchController;
34 
35 public:
37  explicit PropertiesWindow(PropertyList* plist);
38 
40 
41 public slots:
42  // spaghetti time
43  void editedText();
44  void editedColor();
45  void editedBool();
46  void editedInt(int);
47  void editedFloat(double);
48  void editedStringList(int index, int);
49  void editedEnum(int idx);
50 };
51 }
52 
53 #endif // CM_PROPERTIESWINDOW_H
void editedStringList(int index, int)
Definition: PropertiesWindow.cpp:358
void editedInt(int)
Definition: PropertiesWindow.cpp:343
void setWindowController(PatchWindowController *c)
Definition: PropertiesWindow.cpp:402
void editedColor()
Definition: PropertiesWindow.cpp:329
PropertiesWindow()
Definition: PropertiesWindow.h:36
void editedEnum(int idx)
Definition: PropertiesWindow.cpp:390
The Patch window controller.
Definition: PatchWindowController.h:48
void editedFloat(double)
Definition: PropertiesWindow.cpp:351
Property handling class for ui object - property list.
Definition: PropertyList.h:34
void editedText()
Definition: PropertiesWindow.cpp:310
void editedBool()
Definition: PropertiesWindow.cpp:336
Properties window class.
Definition: PropertiesWindow.h:23