annotate widgets/PropertyBox.h @ 105:571805759a66

* 1502816 file export is too slow and memory-hungry Use text stream when writing to file instead of accumulating into a string. * 1500625 Auto-align in MIDI layer confusing Make value extents convert to Hz in return value * 1494623: Duplicate display of frame 0 from vamp plugin output
author Chris Cannam
date Thu, 15 Jun 2006 15:48:05 +0000
parents 0db5e7492ce8
children bf196d6e8998
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@0 28
Chris@0 29 class PropertyBox : public QFrame
Chris@0 30 {
Chris@0 31 Q_OBJECT
Chris@0 32
Chris@0 33 public:
Chris@0 34 PropertyBox(PropertyContainer *);
Chris@0 35 ~PropertyBox();
Chris@0 36
Chris@0 37 PropertyContainer *getContainer() { return m_container; }
Chris@0 38
Chris@34 39 signals:
Chris@34 40 void changePlayGain(float);
Chris@34 41 void changePlayGainDial(int);
Chris@34 42 void changePlayPan(float);
Chris@34 43 void changePlayPanDial(int);
Chris@47 44 void showLayer(bool);
Chris@34 45
Chris@0 46 public slots:
Chris@0 47 void propertyContainerPropertyChanged(PropertyContainer *);
Chris@64 48 void pluginConfigurationChanged(QString);
Chris@0 49
Chris@0 50 protected slots:
Chris@0 51 void propertyControllerChanged(int);
Chris@0 52
Chris@34 53 void playGainChanged(float);
Chris@34 54 void playGainDialChanged(int);
Chris@34 55 void playPanChanged(float);
Chris@34 56 void playPanDialChanged(int);
Chris@34 57
Chris@34 58 void populateViewPlayFrame();
Chris@34 59
Chris@100 60 void unitDatabaseChanged();
Chris@100 61
Chris@63 62 void editPlugin();
Chris@63 63
Chris@0 64 protected:
Chris@0 65 void updatePropertyEditor(PropertyContainer::PropertyName);
Chris@0 66
Chris@33 67 QWidget *m_mainWidget;
Chris@0 68 QGridLayout *m_layout;
Chris@0 69 PropertyContainer *m_container;
Chris@34 70 QFrame *m_viewPlayFrame;
Chris@34 71 QVBoxLayout *m_mainBox;
Chris@0 72 std::map<QString, QLayout *> m_groupLayouts;
Chris@0 73 std::map<QString, QWidget *> m_propertyControllers;
Chris@0 74 };
Chris@0 75
Chris@0 76 #endif