summaryrefslogtreecommitdiff
path: root/muse2/synti/s1
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-04-11 14:46:12 +0000
committerFlorian Jung <flo@windfisch.org>2011-04-11 14:46:12 +0000
commit384e0d2f6d77ab107268921511dd91464d4accb3 (patch)
treef361808b7af39d0d28188e5efb0140b3e01ab8a1 /muse2/synti/s1
parent51eda45715625b6da768e670388510c91b01ff5c (diff)
parentc8a651f88b5728e246cb46599521ce981f0f4cfb (diff)
cosmetic stuff: made many functions static, improved pixmap loading
synced with current trunk
Diffstat (limited to 'muse2/synti/s1')
-rw-r--r--muse2/synti/s1/s1.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/muse2/synti/s1/s1.cpp b/muse2/synti/s1/s1.cpp
index 0dca2656..c44676ce 100644
--- a/muse2/synti/s1/s1.cpp
+++ b/muse2/synti/s1/s1.cpp
@@ -42,9 +42,12 @@ class S1 : public MessMono {
virtual void note(int channel, int pitch, int velo);
//virtual void processMessages();
virtual void process(float** buffer, int offset, int n);
- virtual bool hasGui() const { return true; }
- virtual bool guiVisible() const { return _showGui; }
- virtual void showGui(bool);
+ //virtual bool hasGui() const { return true; }
+ //virtual bool guiVisible() const { return _showGui; }
+ //virtual void showGui(bool);
+ virtual bool hasNativeGui() const { return true; }
+ virtual bool nativeGuiVisible() const { return _showGui; }
+ virtual void showNativeGui(bool);
virtual bool setController(int channel, int ctrl, int val);
virtual int getControllerInfo(int id, const char** name, int* ctrl, int* min, int* max, int* initval) const;
@@ -76,7 +79,7 @@ S1::S1() : MessMono()
param = 0;
_showGui=false;
- showGui(true);
+ showNativeGui(true);
}
//---------------------------------------------------------
@@ -165,7 +168,7 @@ void S1::process(float** buffer, int offset, int n)
//---------------------------------------------------------
-void S1::showGui(bool show)
+void S1::showNativeGui(bool show)
{
if (show)
QMessageBox::information( NULL, "S1",