comparison widgets/PropertyBox.h @ 1196:b1e3ee5f1be6 levelpanwidget

Introduce colour combobox class, to replace ad-hoc code in property box
author Chris Cannam
date Fri, 16 Dec 2016 13:08:33 +0000
parents 7609580fb05a
children 2108af725460
comparison
equal deleted inserted replaced
1195:51bb2582c2cc 1196:b1e3ee5f1be6
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>
60 void playPanControlChanged(float); 60 void playPanControlChanged(float);
61 61
62 void populateViewPlayFrame(); 62 void populateViewPlayFrame();
63 63
64 void unitDatabaseChanged(); 64 void unitDatabaseChanged();
65 void colourDatabaseChanged();
66 65
67 void editPlayParameters(); 66 void editPlayParameters();
68 67
69 void mouseEnteredWidget(); 68 void mouseEnteredWidget();
70 void mouseLeftWidget(); 69 void mouseLeftWidget();
71 70
72 protected: 71 protected:
73 void updatePropertyEditor(PropertyContainer::PropertyName, 72 void updatePropertyEditor(PropertyContainer::PropertyName,
74 bool rangeChanged = false); 73 bool rangeChanged = false);
75 void updateContextHelp(QObject *o); 74 void updateContextHelp(QObject *o);
76 void addNewColour();
77 75
78 QLabel *m_nameWidget; 76 QLabel *m_nameWidget;
79 QWidget *m_mainWidget; 77 QWidget *m_mainWidget;
80 QGridLayout *m_layout; 78 QGridLayout *m_layout;
81 PropertyContainer *m_container; 79 PropertyContainer *m_container;