Mercurial > hg > svgui
annotate widgets/PluginParameterDialog.h @ 70:bf306158803d
* Add stub for item-edit dialog (for editing properties of an item on double-
click) -- doesn't actually do anything yet
* Add code to invoke said non-working item-edit dialog on double-click in
time-value, time-instants and note layers
* Add overlay mode (no text, basic text, all text)
author | Chris Cannam |
---|---|
date | Thu, 30 Mar 2006 15:00:22 +0000 |
parents | 6dad2724f3aa |
children | 72fa239a4880 |
rev | line source |
---|---|
Chris@62 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@62 | 2 |
Chris@62 | 3 /* |
Chris@62 | 4 Sonic Visualiser |
Chris@62 | 5 An audio file viewer and annotation editor. |
Chris@62 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@62 | 7 This file copyright 2006 Chris Cannam. |
Chris@62 | 8 |
Chris@62 | 9 This program is free software; you can redistribute it and/or |
Chris@62 | 10 modify it under the terms of the GNU General Public License as |
Chris@62 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@62 | 12 License, or (at your option) any later version. See the file |
Chris@62 | 13 COPYING included with this distribution for more information. |
Chris@62 | 14 */ |
Chris@62 | 15 |
Chris@62 | 16 #ifndef _PLUGIN_PARAMETER_DIALOG_H_ |
Chris@62 | 17 #define _PLUGIN_PARAMETER_DIALOG_H_ |
Chris@62 | 18 |
Chris@62 | 19 #include <QDialog> |
Chris@62 | 20 |
Chris@62 | 21 class PluginInstance; |
Chris@62 | 22 class PluginParameterBox; |
Chris@62 | 23 |
Chris@62 | 24 /** |
Chris@62 | 25 * A dialog for editing the parameters of a given plugin, using a |
Chris@62 | 26 * PluginParameterBox. This dialog does not contain any mechanism for |
Chris@62 | 27 * selecting the plugin in the first place. Note that the dialog |
Chris@62 | 28 * directly modifies the parameters of the plugin, so they will remain |
Chris@62 | 29 * modified even if the dialog is then cancelled. |
Chris@62 | 30 */ |
Chris@62 | 31 |
Chris@62 | 32 class PluginParameterDialog : public QDialog |
Chris@62 | 33 { |
Chris@62 | 34 Q_OBJECT |
Chris@62 | 35 |
Chris@62 | 36 public: |
Chris@69 | 37 PluginParameterDialog(PluginInstance *, |
Chris@69 | 38 int sourceChannels, |
Chris@69 | 39 int targetChannels, |
Chris@69 | 40 int defaultChannel, |
Chris@69 | 41 QWidget *parent = 0); |
Chris@62 | 42 ~PluginParameterDialog(); |
Chris@62 | 43 |
Chris@62 | 44 PluginInstance *getPlugin() { return m_plugin; } |
Chris@62 | 45 |
Chris@69 | 46 int getChannel() const { return m_channel; } |
Chris@69 | 47 |
Chris@64 | 48 signals: |
Chris@64 | 49 void pluginConfigurationChanged(QString); |
Chris@64 | 50 |
Chris@69 | 51 protected slots: |
Chris@69 | 52 void channelComboChanged(int); |
Chris@69 | 53 |
Chris@62 | 54 protected: |
Chris@62 | 55 PluginInstance *m_plugin; |
Chris@69 | 56 int m_channel; |
Chris@62 | 57 PluginParameterBox *m_parameterBox; |
Chris@62 | 58 }; |
Chris@62 | 59 |
Chris@62 | 60 #endif |
Chris@62 | 61 |