annotate widgets/PropertyBox.h @ 1180:6a6a63506e3f levelpanwidget

Some work on play parameters and level controls in property box
author Chris Cannam
date Tue, 06 Dec 2016 09:47:27 +0000
parents ed99d432dc57
children 7609580fb05a
rev   line source
Chris@58 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@0 2
Chris@0 3 /*
Chris@59 4 Sonic Visualiser
Chris@59 5 An audio file viewer and annotation editor.
Chris@59 6 Centre for Digital Music, Queen Mary, University of London.
Chris@59 7 This file copyright 2006 Chris Cannam.
Chris@0 8
Chris@59 9 This program is free software; you can redistribute it and/or
Chris@59 10 modify it under the terms of the GNU General Public License as
Chris@59 11 published by the Free Software Foundation; either version 2 of the
Chris@59 12 License, or (at your option) any later version. See the file
Chris@59 13 COPYING included with this distribution for more information.
Chris@0 14 */
Chris@0 15
Chris@0 16 #ifndef _PROPERTY_BOX_H_
Chris@0 17 #define _PROPERTY_BOX_H_
Chris@0 18
Chris@0 19 #include "base/PropertyContainer.h"
Chris@0 20
Chris@0 21 #include <QFrame>
Chris@0 22 #include <map>
Chris@0 23
Chris@33 24 class QLayout;
Chris@33 25 class QWidget;
Chris@0 26 class QGridLayout;
Chris@34 27 class QVBoxLayout;
Chris@107 28 class QLabel;
Chris@185 29 class LEDButton;
Chris@1180 30 class NotifyingPushButton;
Chris@0 31
Chris@0 32 class PropertyBox : public QFrame
Chris@0 33 {
Chris@0 34 Q_OBJECT
Chris@0 35
Chris@0 36 public:
Chris@0 37 PropertyBox(PropertyContainer *);
Chris@0 38 ~PropertyBox();
Chris@0 39
Chris@0 40 PropertyContainer *getContainer() { return m_container; }
Chris@0 41
Chris@34 42 signals:
Chris@47 43 void showLayer(bool);
Chris@189 44 void contextHelpChanged(const QString &);
Chris@34 45
Chris@0 46 public slots:
Chris@0 47 void propertyContainerPropertyChanged(PropertyContainer *);
Chris@197 48 void propertyContainerPropertyRangeChanged(PropertyContainer *);
Chris@769 49 void playClipChanged(QString);
Chris@185 50 void layerVisibilityChanged(bool);
Chris@0 51
Chris@0 52 protected slots:
Chris@0 53 void propertyControllerChanged(int);
Chris@335 54 void propertyControllerChanged(bool);
Chris@0 55
Chris@377 56 void playAudibleChanged(bool);
Chris@377 57 void playAudibleButtonChanged(bool);
Chris@1178 58 void playGainControlChanged(float);
Chris@1178 59 void playPanControlChanged(float);
Chris@34 60
Chris@34 61 void populateViewPlayFrame();
Chris@34 62
Chris@100 63 void unitDatabaseChanged();
Chris@285 64 void colourDatabaseChanged();
Chris@100 65
Chris@769 66 void editPlayParameters();
Chris@63 67
Chris@189 68 void mouseEnteredWidget();
Chris@189 69 void mouseLeftWidget();
Chris@189 70
Chris@0 71 protected:
Chris@197 72 void updatePropertyEditor(PropertyContainer::PropertyName,
Chris@197 73 bool rangeChanged = false);
Chris@218 74 void updateContextHelp(QObject *o);
Chris@285 75 void addNewColour();
Chris@0 76
Chris@107 77 QLabel *m_nameWidget;
Chris@33 78 QWidget *m_mainWidget;
Chris@0 79 QGridLayout *m_layout;
Chris@0 80 PropertyContainer *m_container;
Chris@34 81 QFrame *m_viewPlayFrame;
Chris@34 82 QVBoxLayout *m_mainBox;
Chris@185 83 LEDButton *m_showButton;
Chris@1180 84 NotifyingPushButton *m_playButton;
Chris@493 85 std::map<QString, QGridLayout *> m_groupLayouts;
Chris@0 86 std::map<QString, QWidget *> m_propertyControllers;
Chris@0 87 };
Chris@0 88
Chris@0 89 #endif