comparison widgets/PropertyBox.h @ 1216:dc2af6616c83

Merge from branch 3.0-integration
author Chris Cannam
date Fri, 13 Jan 2017 10:29:50 +0000
parents b1e3ee5f1be6
children 2108af725460
comparison
equal deleted inserted replaced
1048:e8102ff5573b 1216:dc2af6616c83
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _PROPERTY_BOX_H_ 16 #ifndef SV_PROPERTY_BOX_H
17 #define _PROPERTY_BOX_H_ 17 #define SV_PROPERTY_BOX_H
18 18
19 #include "base/PropertyContainer.h" 19 #include "base/PropertyContainer.h"
20 20
21 #include <QFrame> 21 #include <QFrame>
22 #include <map> 22 #include <map>
25 class QWidget; 25 class QWidget;
26 class QGridLayout; 26 class QGridLayout;
27 class QVBoxLayout; 27 class QVBoxLayout;
28 class QLabel; 28 class QLabel;
29 class LEDButton; 29 class LEDButton;
30 class QToolButton;
31 class NotifyingPushButton;
30 32
31 class PropertyBox : public QFrame 33 class PropertyBox : public QFrame
32 { 34 {
33 Q_OBJECT 35 Q_OBJECT
34 36
37 ~PropertyBox(); 39 ~PropertyBox();
38 40
39 PropertyContainer *getContainer() { return m_container; } 41 PropertyContainer *getContainer() { return m_container; }
40 42
41 signals: 43 signals:
42 void changePlayGainDial(int);
43 void changePlayPanDial(int);
44 void showLayer(bool); 44 void showLayer(bool);
45 void contextHelpChanged(const QString &); 45 void contextHelpChanged(const QString &);
46 46
47 public slots: 47 public slots:
48 void propertyContainerPropertyChanged(PropertyContainer *); 48 void propertyContainerPropertyChanged(PropertyContainer *);
54 void propertyControllerChanged(int); 54 void propertyControllerChanged(int);
55 void propertyControllerChanged(bool); 55 void propertyControllerChanged(bool);
56 56
57 void playAudibleChanged(bool); 57 void playAudibleChanged(bool);
58 void playAudibleButtonChanged(bool); 58 void playAudibleButtonChanged(bool);
59 void playGainChanged(float); 59 void playGainControlChanged(float);
60 void playGainDialChanged(int); 60 void playPanControlChanged(float);
61 void playPanChanged(float);
62 void playPanDialChanged(int);
63 61
64 void populateViewPlayFrame(); 62 void populateViewPlayFrame();
65 63
66 void unitDatabaseChanged(); 64 void unitDatabaseChanged();
67 void colourDatabaseChanged();
68 65
69 void editPlayParameters(); 66 void editPlayParameters();
70 67
71 void mouseEnteredWidget(); 68 void mouseEnteredWidget();
72 void mouseLeftWidget(); 69 void mouseLeftWidget();
73 70
74 protected: 71 protected:
75 void updatePropertyEditor(PropertyContainer::PropertyName, 72 void updatePropertyEditor(PropertyContainer::PropertyName,
76 bool rangeChanged = false); 73 bool rangeChanged = false);
77 void updateContextHelp(QObject *o); 74 void updateContextHelp(QObject *o);
78 void addNewColour();
79 75
80 QLabel *m_nameWidget; 76 QLabel *m_nameWidget;
81 QWidget *m_mainWidget; 77 QWidget *m_mainWidget;
82 QGridLayout *m_layout; 78 QGridLayout *m_layout;
83 PropertyContainer *m_container; 79 PropertyContainer *m_container;
84 QFrame *m_viewPlayFrame; 80 QFrame *m_viewPlayFrame;
85 QVBoxLayout *m_mainBox; 81 QVBoxLayout *m_mainBox;
86 LEDButton *m_showButton; 82 LEDButton *m_showButton;
87 LEDButton *m_playButton; 83 QToolButton *m_playButton;
88 std::map<QString, QGridLayout *> m_groupLayouts; 84 std::map<QString, QGridLayout *> m_groupLayouts;
89 std::map<QString, QWidget *> m_propertyControllers; 85 std::map<QString, QWidget *> m_propertyControllers;
90 }; 86 };
91 87
92 #endif 88 #endif