@@ -14,14 +14,14 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include "Fl_CommentGUI.h" | #include "Fl_CommentGUI.h" | ||||
#include <FL/fl_draw.H> | #include <FL/fl_draw.H> | ||||
#include "../../SpiralSynthModularInfo.h" | #include "../../SpiralSynthModularInfo.h" | ||||
#include "../../GUI/Widgets/PawfalInput.h" | #include "../../GUI/Widgets/PawfalInput.h" | ||||
Fl_CommentGUI::Fl_CommentGUI(const DeviceGUIInfo& Info, Fl_Window *PW, Fl_Pixmap *Icon) : | |||||
Fl_CommentGUI::Fl_CommentGUI(const DeviceGUIInfo& Info, SpiralGUIType *PW, Fl_Pixmap *Icon) : | |||||
Fl_DeviceGUI(Info,PW,Icon), | Fl_DeviceGUI(Info,PW,Icon), | ||||
m_Comment("double click to edit.") | m_Comment("double click to edit.") | ||||
{ | { | ||||
@@ -1,4 +1,4 @@ | |||||
/* DeviceGUI composite Widget | |||||
/* CommentGUI composite Widget | |||||
* Copyleft (C) 2002 David Griffiths <dave@pawfal.org> | * Copyleft (C) 2002 David Griffiths <dave@pawfal.org> | ||||
* | * | ||||
* This program is free software; you can redistribute it and/or modify | * This program is free software; you can redistribute it and/or modify | ||||
@@ -16,16 +16,16 @@ | |||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | */ | ||||
#include <FL/Fl_Input.h> | |||||
#include "Fl_DeviceGUI.h" | |||||
#ifndef COMMENTGUI | #ifndef COMMENTGUI | ||||
#define COMMENTGUI | #define COMMENTGUI | ||||
#include <FL/Fl_Input.h> | |||||
#include "Fl_DeviceGUI.h" | |||||
class Fl_CommentGUI : public Fl_DeviceGUI | class Fl_CommentGUI : public Fl_DeviceGUI | ||||
{ | { | ||||
public: | public: | ||||
Fl_CommentGUI(const DeviceGUIInfo& Info, Fl_Window *PW, Fl_Pixmap *Icon); | |||||
Fl_CommentGUI(const DeviceGUIInfo& Info, SpiralGUIType *PW, Fl_Pixmap *Icon); | |||||
virtual int handle(int event); | virtual int handle(int event); | ||||
virtual void Setup(const DeviceGUIInfo& Info, bool FirstTime = false); | virtual void Setup(const DeviceGUIInfo& Info, bool FirstTime = false); | ||||
@@ -14,7 +14,7 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include "Fl_DeviceGUI.h" | #include "Fl_DeviceGUI.h" | ||||
#include "Fl_Canvas.h" | #include "Fl_Canvas.h" | ||||
@@ -23,9 +23,9 @@ | |||||
#include "../../SpiralSynthModularInfo.h" | #include "../../SpiralSynthModularInfo.h" | ||||
int Fl_DeviceGUI::Numbers[512]; | int Fl_DeviceGUI::Numbers[512]; | ||||
Fl_PortButton::Fl_PortButton(int x, int y, int w, int h, char *n) : | |||||
Fl_Button(x,y,w,h,n) | |||||
Fl_PortButton::Fl_PortButton(int x, int y, int w, int h, char *n) : | |||||
Fl_Button(x,y,w,h,n) | |||||
{ | { | ||||
m_ConnectionCount=0; | m_ConnectionCount=0; | ||||
} | } | ||||
@@ -35,25 +35,25 @@ int Fl_PortButton::handle(int event) | |||||
if (event==FL_PUSH) | if (event==FL_PUSH) | ||||
{ | { | ||||
m_LastButton=Fl::event_button(); | m_LastButton=Fl::event_button(); | ||||
if (m_LastButton == 1) | |||||
if (m_LastButton == 1) | |||||
{ | { | ||||
if (m_Type==INPUT && value()) return 1; | if (m_Type==INPUT && value()) return 1; | ||||
do_callback(); | do_callback(); | ||||
return 1; | return 1; | ||||
} | } | ||||
if (m_LastButton == 3) | |||||
if (m_LastButton == 3) | |||||
{ | { | ||||
do_callback(); | do_callback(); | ||||
return 1; | return 1; | ||||
} | } | ||||
} | } | ||||
return 1; | return 1; | ||||
} | } | ||||
Fl_DeviceGUI::Fl_DeviceGUI(const DeviceGUIInfo& Info, Fl_Group *PW, Fl_Pixmap *Icon, bool Terminal) : | |||||
Fl_DeviceGUI::Fl_DeviceGUI(const DeviceGUIInfo& Info, SpiralGUIType *PW, Fl_Pixmap *Icon, bool Terminal) : | |||||
Fl_Group(Info.XPos, Info.YPos, Info.Width+(PortGroupWidth*2), Info.Height+TitleBarHeight, ""), | Fl_Group(Info.XPos, Info.YPos, Info.Width+(PortGroupWidth*2), Info.Height+TitleBarHeight, ""), | ||||
m_PluginWindow(NULL), | m_PluginWindow(NULL), | ||||
m_Icon(NULL), | m_Icon(NULL), | ||||
@@ -62,7 +62,7 @@ m_ID(-1), | |||||
m_DelMe(false), | m_DelMe(false), | ||||
m_IsTerminal(Terminal), | m_IsTerminal(Terminal), | ||||
m_Minimised(true) | m_Minimised(true) | ||||
{ | |||||
{ | |||||
for (int n=0; n<512; n++) Numbers[n]=n; | for (int n=0; n<512; n++) Numbers[n]=n; | ||||
type(1); | type(1); | ||||
@@ -70,26 +70,26 @@ m_Minimised(true) | |||||
labeltype(FL_ENGRAVED_LABEL); | labeltype(FL_ENGRAVED_LABEL); | ||||
align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE); | align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE); | ||||
color(SpiralSynthModularInfo::GUICOL_Device); | color(SpiralSynthModularInfo::GUICOL_Device); | ||||
m_Icon=Icon; | m_Icon=Icon; | ||||
m_MiniWidth=w(); | m_MiniWidth=w(); | ||||
m_MiniHeight=h(); | m_MiniHeight=h(); | ||||
m_DragBar = new Fl_DragBar(Info.XPos, Info.YPos, Info.Width+PortGroupWidth*2, TitleBarHeight, m_Name.c_str()); | m_DragBar = new Fl_DragBar(Info.XPos, Info.YPos, Info.Width+PortGroupWidth*2, TitleBarHeight, m_Name.c_str()); | ||||
m_DragBar->labelsize(10); | |||||
m_DragBar->labelsize(10); | |||||
m_DragBar->type(Fl_DragBar::FLDRAG); | m_DragBar->type(Fl_DragBar::FLDRAG); | ||||
m_DragBar->color(SpiralSynthModularInfo::GUICOL_Device); | m_DragBar->color(SpiralSynthModularInfo::GUICOL_Device); | ||||
m_Menu = new Fl_Menu_Button(x(),y(),w(),h(),""); | m_Menu = new Fl_Menu_Button(x(),y(),w(),h(),""); | ||||
m_Menu->type(Fl_Menu_Button::POPUP3); | m_Menu->type(Fl_Menu_Button::POPUP3); | ||||
m_Menu->textsize(8); | m_Menu->textsize(8); | ||||
m_Menu->add("rename", 0, (Fl_Callback*)cb_Rename,this); | m_Menu->add("rename", 0, (Fl_Callback*)cb_Rename,this); | ||||
m_Menu->add("delete", 0, (Fl_Callback*)cb_Delete,this); | m_Menu->add("delete", 0, (Fl_Callback*)cb_Delete,this); | ||||
int Centx=x()+w()/2; | int Centx=x()+w()/2; | ||||
int Centy=y()+h()/2; | int Centy=y()+h()/2; | ||||
if (m_Icon) | if (m_Icon) | ||||
{ | { | ||||
m_IconButton = new Fl_Button(Centx-m_Icon->w()/2,Centy-m_Icon->h()/2,m_Icon->w(),m_Icon->h()); | m_IconButton = new Fl_Button(Centx-m_Icon->w()/2,Centy-m_Icon->h()/2,m_Icon->w(),m_Icon->h()); | ||||
@@ -100,16 +100,15 @@ m_Minimised(true) | |||||
{ | { | ||||
m_IconButton = NULL; | m_IconButton = NULL; | ||||
} | } | ||||
m_PluginWindow = PW; | m_PluginWindow = PW; | ||||
if (m_PluginWindow) | |||||
{ | |||||
m_PluginWindow->hide(); | |||||
add(m_PluginWindow); | |||||
if (m_PluginWindow) { | |||||
m_PluginWindow->hide(); | |||||
add (m_PluginWindow); | |||||
} | } | ||||
resizable(NULL); | resizable(NULL); | ||||
//Add the input/output ports | //Add the input/output ports | ||||
Setup(Info, true); | Setup(Info, true); | ||||
} | } | ||||
@@ -119,31 +118,29 @@ void Fl_DeviceGUI::Clear() | |||||
end(); | end(); | ||||
} | } | ||||
int Fl_DeviceGUI::handle(int event) | |||||
{ | |||||
int t=Fl_Group::handle(event); | |||||
if (m_IconButton && m_IconButton->value()) | |||||
{ | |||||
m_IconButton->value(false); | |||||
if (m_PluginWindow && !m_DelMe) | |||||
{ | |||||
if(!m_PluginWindow->visible()) | |||||
{ | |||||
Maximise(); | |||||
m_IconButton->hide(); | |||||
} | |||||
} | |||||
} | |||||
if (m_Minimised==false && !m_PluginWindow->visible()) | |||||
{ | |||||
Minimise(); | |||||
if (m_IconButton) m_IconButton->show(); | |||||
} | |||||
return 1; | |||||
int Fl_DeviceGUI::handle (int event) { | |||||
int t=Fl_Group::handle(event); | |||||
if (m_IconButton && m_IconButton->value()) { | |||||
m_IconButton->value (false); | |||||
if (m_PluginWindow && !m_DelMe) { | |||||
if (!m_PluginWindow->visible()) Maximise(); | |||||
} | |||||
} | |||||
if (m_PluginWindow && !m_DelMe) { | |||||
if (m_PluginWindow->needs_resize()) { | |||||
Maximise(); | |||||
m_PluginWindow->needs_resize(false); | |||||
} | |||||
} | |||||
if (m_Minimised==false && !m_PluginWindow->visible()) { | |||||
Minimise(); | |||||
if (m_IconButton) m_IconButton->show(); | |||||
} | |||||
return 1; | |||||
} | } | ||||
void Fl_DeviceGUI::Minimise() | void Fl_DeviceGUI::Minimise() | ||||
@@ -154,7 +151,7 @@ void Fl_DeviceGUI::Minimise() | |||||
} | } | ||||
void Fl_DeviceGUI::Maximise() | void Fl_DeviceGUI::Maximise() | ||||
{ | |||||
{ | |||||
m_Minimised=false; | m_Minimised=false; | ||||
if (m_PluginWindow->h()+2>m_MiniHeight) | if (m_PluginWindow->h()+2>m_MiniHeight) | ||||
{ | { | ||||
@@ -164,7 +161,6 @@ void Fl_DeviceGUI::Maximise() | |||||
{ | { | ||||
Resize(m_PluginWindow->w()+(PortGroupWidth*2)-5,m_MiniHeight); | Resize(m_PluginWindow->w()+(PortGroupWidth*2)-5,m_MiniHeight); | ||||
} | } | ||||
m_PluginWindow->show(); | m_PluginWindow->show(); | ||||
m_IconButton->hide(); | m_IconButton->hide(); | ||||
parent()->redraw(); | parent()->redraw(); | ||||
@@ -177,15 +173,15 @@ void Fl_DeviceGUI::Resize(int width, int height) | |||||
int oldh = h(); | int oldh = h(); | ||||
size(width,height); | size(width,height); | ||||
m_DragBar->size(width,m_DragBar->h()); | m_DragBar->size(width,m_DragBar->h()); | ||||
for (int n=m_Info.NumInputs; n<(int)m_PortVec.size(); n++) | for (int n=m_Info.NumInputs; n<(int)m_PortVec.size(); n++) | ||||
{ | { | ||||
m_PortVec[n]->position(x()+width-8,m_PortVec[n]->y()); | m_PortVec[n]->position(x()+width-8,m_PortVec[n]->y()); | ||||
} | } | ||||
position(x()+(oldw-w())/2,y()+(oldh-h())/2); | |||||
position(x()+(oldw-w())/2,y()+(oldh-h())/2); | |||||
m_Menu->resize(x(),y(),width,height); | m_Menu->resize(x(),y(),width,height); | ||||
int Centx=x()+w()/2; | int Centx=x()+w()/2; | ||||
int Centy=y()+h()/2; | int Centy=y()+h()/2; | ||||
m_IconButton->position(Centx-m_Icon->w()/2,Centy-m_Icon->h()/2); | m_IconButton->position(Centx-m_Icon->w()/2,Centy-m_Icon->h()/2); | ||||
@@ -194,9 +190,9 @@ void Fl_DeviceGUI::Resize(int width, int height) | |||||
void Fl_DeviceGUI::Setup(const DeviceGUIInfo& Info, bool FirstTime) | void Fl_DeviceGUI::Setup(const DeviceGUIInfo& Info, bool FirstTime) | ||||
{ | { | ||||
m_Info=Info; | m_Info=Info; | ||||
// Remove all current connections - it's the safest thing to do. | // Remove all current connections - it's the safest thing to do. | ||||
if (parent() && !FirstTime) | |||||
if (parent() && !FirstTime) | |||||
{ | { | ||||
((Fl_Canvas*)(parent()))->ClearConnections(this); | ((Fl_Canvas*)(parent()))->ClearConnections(this); | ||||
} | } | ||||
@@ -14,7 +14,7 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Group.H> | #include <FL/Fl_Group.H> | ||||
@@ -22,10 +22,11 @@ | |||||
#include <FL/Fl_Pixmap.h> | #include <FL/Fl_Pixmap.h> | ||||
#include <FL/Fl_Menu_Button.h> | #include <FL/Fl_Menu_Button.h> | ||||
#include <FL/Fl_Box.h> | #include <FL/Fl_Box.h> | ||||
#include "Fl_DragBar.H" | |||||
#include "SpiralGUI.H" | |||||
#include <iostream> | #include <iostream> | ||||
#include <vector> | #include <vector> | ||||
#include <string> | #include <string> | ||||
#include "Fl_DragBar.H" | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#ifndef DEVICEGUI | #ifndef DEVICEGUI | ||||
@@ -81,15 +82,15 @@ struct DeviceGUIInfo | |||||
class Fl_DeviceGUI : public Fl_Group | class Fl_DeviceGUI : public Fl_Group | ||||
{ | { | ||||
public: | public: | ||||
Fl_DeviceGUI(const DeviceGUIInfo& Info, Fl_Group *PW, Fl_Pixmap *Icon, bool Terminal=false); | |||||
Fl_DeviceGUI(const DeviceGUIInfo& Info, SpiralGUIType *PW, Fl_Pixmap *Icon, bool Terminal=false); | |||||
virtual int handle(int event); | virtual int handle(int event); | ||||
enum PortType {INPUT,OUTPUT}; | enum PortType {INPUT,OUTPUT}; | ||||
int GetID() { return m_ID; } | |||||
void SetID(int s) { m_ID=s; /*DisplayID(s);*/ } | |||||
bool Killed() { return m_DelMe; } | |||||
int GetID() { return m_ID; } | |||||
void SetID(int s) { m_ID=s; /*DisplayID(s);*/ } | |||||
bool Killed() { return m_DelMe; } | |||||
int GetPortX(int n) { return m_PortVec[n]->x()+PortSize/2; } | int GetPortX(int n) { return m_PortVec[n]->x()+PortSize/2; } | ||||
int GetPortY(int n) { return m_PortVec[n]->y()+PortSize/2; } | int GetPortY(int n) { return m_PortVec[n]->y()+PortSize/2; } | ||||
@@ -100,7 +101,7 @@ public: | |||||
bool GetPortValue(int n) { return m_PortVec[n]->value(); } | bool GetPortValue(int n) { return m_PortVec[n]->value(); } | ||||
const DeviceGUIInfo* GetInfo() { return &m_Info; } | const DeviceGUIInfo* GetInfo() { return &m_Info; } | ||||
Fl_Group* GetPluginWindow() { return m_PluginWindow; } | |||||
SpiralGUIType* GetPluginWindow() { return m_PluginWindow; } | |||||
string GetName() { return m_Name; } | string GetName() { return m_Name; } | ||||
void SetName(const string &s) { m_Name=s; m_DragBar->label(m_Name.c_str()); } | void SetName(const string &s) { m_Name=s; m_DragBar->label(m_Name.c_str()); } | ||||
bool IsMinimised() { return m_Minimised; } | bool IsMinimised() { return m_Minimised; } | ||||
@@ -121,7 +122,7 @@ protected: | |||||
DeviceGUIInfo m_Info; | DeviceGUIInfo m_Info; | ||||
Fl_DragBar* m_DragBar; | Fl_DragBar* m_DragBar; | ||||
Fl_Group* m_PluginWindow; | |||||
SpiralGUIType* m_PluginWindow; | |||||
Fl_Pixmap* m_Icon; | Fl_Pixmap* m_Icon; | ||||
Fl_Button* m_IconButton; | Fl_Button* m_IconButton; | ||||
Fl_Menu_Button* m_Menu; | Fl_Menu_Button* m_Menu; | ||||
@@ -146,9 +147,8 @@ private: | |||||
bool m_DelMe; | bool m_DelMe; | ||||
bool m_IsTerminal; | bool m_IsTerminal; | ||||
bool m_Minimised; | bool m_Minimised; | ||||
int m_MiniWidth; | |||||
int m_MiniHeight; | |||||
int m_MiniWidth, m_MiniHeight; | |||||
}; | }; | ||||
#endif | #endif |
@@ -0,0 +1,26 @@ | |||||
/* Copyleft (C) 2000 David Griffiths <dave@pawfal.org> | |||||
* | |||||
* This program is free software; you can redistribute it and/or modify | |||||
* it under the terms of the GNU General Public License as published by | |||||
* the Free Software Foundation; either version 2 of the License, or | |||||
* (at your option) any later version. | |||||
* | |||||
* This program is distributed in the hope that it will be useful, | |||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
* GNU General Public License for more details. | |||||
* | |||||
* You should have received a copy of the GNU General Public License | |||||
* along with this program; if not, write to the Free Software | |||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |||||
*/ | |||||
#include "SpiralGUI.H" | |||||
SpiralGUIType::SpiralGUIType (int x, int y, int w, int h, const char *label = 0) : | |||||
Fl_Group (x, y, w, h, label), | |||||
m_NeedsResize (false) { | |||||
} | |||||
SpiralGUIType::~SpiralGUIType () { | |||||
} |
@@ -0,0 +1,33 @@ | |||||
/* Copyleft (C) 2000 David Griffiths <dave@pawfal.org> | |||||
* | |||||
* This program is free software; you can redistribute it and/or modify | |||||
* it under the terms of the GNU General Public License as published by | |||||
* the Free Software Foundation; either version 2 of the License, or | |||||
* (at your option) any later version. | |||||
* | |||||
* This program is distributed in the hope that it will be useful, | |||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
* GNU General Public License for more details. | |||||
* | |||||
* You should have received a copy of the GNU General Public License | |||||
* along with this program; if not, write to the Free Software | |||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |||||
*/ | |||||
#ifndef GUI_TYPE_H | |||||
#define GUI_TYPE_H | |||||
#include <FL/Fl_Group.H> | |||||
class SpiralGUIType : public Fl_Group { | |||||
public: | |||||
SpiralGUIType (int x, int y, int w, int h, const char *label = 0); | |||||
~SpiralGUIType (); | |||||
bool needs_resize (void) { return m_NeedsResize; } | |||||
void needs_resize (bool nr) { m_NeedsResize = nr; } | |||||
private: | |||||
bool m_NeedsResize; | |||||
}; | |||||
#endif |
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building SpiralSynthModular | # Makefile for building SpiralSynthModular | ||||
# Generated by tmake at 20:13, 2001/10/04 | |||||
# Project: SpiralSynthModular | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
SHELL = @SHELL@ | SHELL = @SHELL@ | ||||
@@ -14,11 +11,11 @@ CXX = g++ | |||||
CFLAGS = @CFLAGS@ @FLTK_CFLAGS@ | CFLAGS = @CFLAGS@ @FLTK_CFLAGS@ | ||||
CXXFLAGS= @CXXFLAGS@ @FLTK_CXXFLAGS@ | CXXFLAGS= @CXXFLAGS@ @FLTK_CXXFLAGS@ | ||||
INCPATH = | INCPATH = | ||||
LINK = g++ | |||||
LFLAGS = | |||||
LINK = g++ | |||||
LFLAGS = | |||||
LIBS = @FLTK_LIBS@ -lm -ldl -lpng -lpthread | LIBS = @FLTK_LIBS@ -lm -ldl -lpng -lpthread | ||||
MOC = moc | MOC = moc | ||||
UIC = | |||||
UIC = | |||||
TAR = tar -cf | TAR = tar -cf | ||||
GZIP = gzip -9f | GZIP = gzip -9f | ||||
@@ -48,6 +45,9 @@ SpiralPlugins = $(libdir)/SpiralPlugins | |||||
HEADERS = SpiralSynthModular.h \ | HEADERS = SpiralSynthModular.h \ | ||||
SpiralSynthModularInfo.h \ | SpiralSynthModularInfo.h \ | ||||
GraphSort.h \ | GraphSort.h \ | ||||
SettingsWindow.h \ | |||||
SpiralSynthPluginLocation.h \ | |||||
GUI/Widgets/SpiralGUI.H \ | |||||
GUI/Widgets/Fl_DeviceGUI.h \ | GUI/Widgets/Fl_DeviceGUI.h \ | ||||
GUI/Widgets/Fl_CommentGUI.h \ | GUI/Widgets/Fl_CommentGUI.h \ | ||||
GUI/Widgets/Fl_DragBar.H \ | GUI/Widgets/Fl_DragBar.H \ | ||||
@@ -56,16 +56,16 @@ HEADERS = SpiralSynthModular.h \ | |||||
GUI/Widgets/PawfalInput.h \ | GUI/Widgets/PawfalInput.h \ | ||||
SpiralSound/SpiralInfo.h \ | SpiralSound/SpiralInfo.h \ | ||||
SpiralSound/Sample.h \ | SpiralSound/Sample.h \ | ||||
SpiralSound/Plugins/SpiralPlugin.h \ | |||||
SpiralSound/Plugins/SpiralPluginGUI.h \ | |||||
SpiralSound/PluginManager.h \ | SpiralSound/PluginManager.h \ | ||||
SpiralSound/ChannelHandler.h \ | SpiralSound/ChannelHandler.h \ | ||||
SettingsWindow.h \ | |||||
SpiralSynthPluginLocation.h | |||||
SpiralSound/Plugins/SpiralPlugin.h \ | |||||
SpiralSound/Plugins/SpiralPluginGUI.h | |||||
SOURCES = main.cpp \ | SOURCES = main.cpp \ | ||||
SpiralSynthModular.C \ | SpiralSynthModular.C \ | ||||
SpiralSynthModularInfo.C \ | SpiralSynthModularInfo.C \ | ||||
GraphSort.C \ | GraphSort.C \ | ||||
SettingsWindow.C \ | |||||
GUI/Widgets/SpiralGUI.C \ | |||||
GUI/Widgets/Fl_DeviceGUI.C \ | GUI/Widgets/Fl_DeviceGUI.C \ | ||||
GUI/Widgets/Fl_CommentGUI.C \ | GUI/Widgets/Fl_CommentGUI.C \ | ||||
GUI/Widgets/Fl_DragBar.cxx \ | GUI/Widgets/Fl_DragBar.cxx \ | ||||
@@ -74,15 +74,16 @@ SOURCES = main.cpp \ | |||||
GUI/Widgets/PawfalInput.C \ | GUI/Widgets/PawfalInput.C \ | ||||
SpiralSound/SpiralInfo.C \ | SpiralSound/SpiralInfo.C \ | ||||
SpiralSound/Sample.C \ | SpiralSound/Sample.C \ | ||||
SpiralSound/Plugins/SpiralPlugin.C \ | |||||
SpiralSound/Plugins/SpiralPluginGUI.C \ | |||||
SpiralSound/PluginManager.C \ | SpiralSound/PluginManager.C \ | ||||
SpiralSound/ChannelHandler.C \ | SpiralSound/ChannelHandler.C \ | ||||
SettingsWindow.C | |||||
SpiralSound/Plugins/SpiralPlugin.C \ | |||||
SpiralSound/Plugins/SpiralPluginGUI.C | |||||
OBJECTS = main.o \ | OBJECTS = main.o \ | ||||
SpiralSynthModular.o \ | SpiralSynthModular.o \ | ||||
SpiralSynthModularInfo.o \ | SpiralSynthModularInfo.o \ | ||||
GraphSort.o \ | GraphSort.o \ | ||||
SettingsWindow.o \ | |||||
GUI/Widgets/SpiralGUI.o \ | |||||
GUI/Widgets/Fl_DeviceGUI.o \ | GUI/Widgets/Fl_DeviceGUI.o \ | ||||
GUI/Widgets/Fl_CommentGUI.o \ | GUI/Widgets/Fl_CommentGUI.o \ | ||||
GUI/Widgets/Fl_DragBar.o \ | GUI/Widgets/Fl_DragBar.o \ | ||||
@@ -91,17 +92,16 @@ OBJECTS = main.o \ | |||||
GUI/Widgets/PawfalInput.o \ | GUI/Widgets/PawfalInput.o \ | ||||
SpiralSound/SpiralInfo.o \ | SpiralSound/SpiralInfo.o \ | ||||
SpiralSound/Sample.o \ | SpiralSound/Sample.o \ | ||||
SpiralSound/Plugins/SpiralPlugin.o \ | |||||
SpiralSound/Plugins/SpiralPluginGUI.o \ | |||||
SpiralSound/PluginManager.o \ | SpiralSound/PluginManager.o \ | ||||
SpiralSound/ChannelHandler.o \ | SpiralSound/ChannelHandler.o \ | ||||
SettingsWindow.o | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
SpiralSound/Plugins/SpiralPlugin.o \ | |||||
SpiralSound/Plugins/SpiralPluginGUI.o | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = spiralsynthmodular | TARGET = spiralsynthmodular | ||||
SUBDIRS = @PLUGINLIST@ | SUBDIRS = @PLUGINLIST@ | ||||
@@ -132,9 +132,9 @@ all: $(TARGET) | |||||
list='$(SUBDIRS)'; \ | list='$(SUBDIRS)'; \ | ||||
for subdir in $$list; do \ | for subdir in $$list; do \ | ||||
(cd SpiralSound/Plugins/$$subdir ; make) \ | (cd SpiralSound/Plugins/$$subdir ; make) \ | ||||
done; | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
done; | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -154,7 +154,7 @@ clean: | |||||
list='$(SUBDIRS)'; \ | list='$(SUBDIRS)'; \ | ||||
for subdir in $$list; do \ | for subdir in $$list; do \ | ||||
(cd SpiralSound/Plugins/$$subdir ; make clean) \ | (cd SpiralSound/Plugins/$$subdir ; make clean) \ | ||||
done; | |||||
done; | |||||
install: spiralsynthmodular | install: spiralsynthmodular | ||||
$(INSTALL) spiralsynthmodular $(bindir) | $(INSTALL) spiralsynthmodular $(bindir) | ||||
@@ -162,8 +162,8 @@ install: spiralsynthmodular | |||||
list='$(SUBDIRS)'; \ | list='$(SUBDIRS)'; \ | ||||
for subdir in $$list; do \ | for subdir in $$list; do \ | ||||
(cd SpiralSound/Plugins/$$subdir ; make install) \ | (cd SpiralSound/Plugins/$$subdir ; make install) \ | ||||
done; | |||||
done; | |||||
uninstall: | uninstall: | ||||
rm -f $(bindir)/spiralsynthmodular | rm -f $(bindir)/spiralsynthmodular | ||||
rm -rf $(SpiralPlugins) | rm -rf $(SpiralPlugins) | ||||
@@ -183,26 +183,26 @@ SpiralSynthModular.o: SpiralSynthModular.C \ | |||||
SpiralSynthModular.h \ | SpiralSynthModular.h \ | ||||
SpiralSynthModularInfo.h \ | SpiralSynthModularInfo.h \ | ||||
SpiralSound/SpiralInfo.h \ | SpiralSound/SpiralInfo.h \ | ||||
GUI/Widgets/Fl_DeviceGUI.h \ | |||||
GUI/Widgets/Fl_CommentGUI.h \ | |||||
GUI/Widgets/Fl_Canvas.h \ | |||||
GUI/Widgets/PawfalYesNo.h \ | |||||
GUI/Widgets/PawfalInput.h \ | |||||
SpiralSound/Plugins/SpiralPlugin.h \ | |||||
SettingsWindow.h \ | SettingsWindow.h \ | ||||
SpiralSound/PluginManager.h \ | |||||
GUI/SSM.xpm \ | GUI/SSM.xpm \ | ||||
GUI/load.xpm \ | GUI/load.xpm \ | ||||
GUI/save.xpm \ | GUI/save.xpm \ | ||||
GUI/new.xpm \ | GUI/new.xpm \ | ||||
GUI/options.xpm \ | GUI/options.xpm \ | ||||
GUI/edit.xpm \ | |||||
GUI/comment.xpm | |||||
GUI/comment.xpm \ | |||||
GUI/Widgets/SpiralGUI.H \ | |||||
GUI/Widgets/Fl_DeviceGUI.h \ | |||||
GUI/Widgets/Fl_CommentGUI.h \ | |||||
GUI/Widgets/Fl_Canvas.h \ | |||||
GUI/Widgets/PawfalYesNo.h \ | |||||
GUI/Widgets/PawfalInput.h \ | |||||
SpiralSound/PluginManager.h \ | |||||
SpiralSound/Plugins/SpiralPlugin.h | |||||
SpiralSynthModularInfo.o: SpiralSynthModularInfo.C \ | SpiralSynthModularInfo.o: SpiralSynthModularInfo.C \ | ||||
SpiralSynthModularInfo.h \ | SpiralSynthModularInfo.h \ | ||||
SpiralSound/SpiralInfo.h \ | |||||
SpiralSynthPluginLocation.h | |||||
SpiralSynthPluginLocation.h \ | |||||
SpiralSound/SpiralInfo.h | |||||
GraphSort.o: GraphSort.C \ | GraphSort.o: GraphSort.C \ | ||||
GraphSort.h | GraphSort.h | ||||
@@ -211,18 +211,20 @@ SpiralSound/ChannelHandler.o: SpiralSound/ChannelHandler.C \ | |||||
SpiralSound/ChannelHandler.h | SpiralSound/ChannelHandler.h | ||||
GUI/Widgets/Fl_DeviceGUI.o: GUI/Widgets/Fl_DeviceGUI.C \ | GUI/Widgets/Fl_DeviceGUI.o: GUI/Widgets/Fl_DeviceGUI.C \ | ||||
GUI/Widgets/SpiralGUI.H \ | |||||
GUI/Widgets/Fl_DeviceGUI.h \ | GUI/Widgets/Fl_DeviceGUI.h \ | ||||
GUI/Widgets/Fl_DragBar.H \ | GUI/Widgets/Fl_DragBar.H \ | ||||
GUI/Widgets/Fl_Canvas.h \ | GUI/Widgets/Fl_Canvas.h \ | ||||
GUI/Widgets/../../GraphSort.h \ | |||||
GUI/Widgets/../../SpiralSynthModularInfo.h \ | |||||
GraphSort.h \ | |||||
SpiralSynthModularInfo.h \ | |||||
SpiralSound/SpiralInfo.h | SpiralSound/SpiralInfo.h | ||||
GUI/Widgets/Fl_CommentGUI.o: GUI/Widgets/Fl_CommentGUI.C \ | GUI/Widgets/Fl_CommentGUI.o: GUI/Widgets/Fl_CommentGUI.C \ | ||||
GUI/Widgets/SpiralGUI.H \ | |||||
GUI/Widgets/Fl_CommentGUI.h \ | GUI/Widgets/Fl_CommentGUI.h \ | ||||
GUI/Widgets/Fl_DeviceGUI.h \ | GUI/Widgets/Fl_DeviceGUI.h \ | ||||
GUI/Widgets/Fl_DragBar.H \ | GUI/Widgets/Fl_DragBar.H \ | ||||
GUI/Widgets/../../SpiralSynthModularInfo.h \ | |||||
SpiralSynthModularInfo.h \ | |||||
SpiralSound/SpiralInfo.h | SpiralSound/SpiralInfo.h | ||||
GUI/Widgets/Fl_DragBar.o: GUI/Widgets/Fl_DragBar.cxx \ | GUI/Widgets/Fl_DragBar.o: GUI/Widgets/Fl_DragBar.cxx \ | ||||
@@ -230,10 +232,11 @@ GUI/Widgets/Fl_DragBar.o: GUI/Widgets/Fl_DragBar.cxx \ | |||||
GUI/Widgets/Fl_Canvas.o: GUI/Widgets/Fl_Canvas.C \ | GUI/Widgets/Fl_Canvas.o: GUI/Widgets/Fl_Canvas.C \ | ||||
GUI/Widgets/Fl_Canvas.h \ | GUI/Widgets/Fl_Canvas.h \ | ||||
GUI/Widgets/../../GraphSort.h \ | |||||
GUI/Widgets/SpiralGUI.H \ | |||||
GUI/Widgets/Fl_DeviceGUI.h \ | GUI/Widgets/Fl_DeviceGUI.h \ | ||||
GUI/Widgets/Fl_DragBar.H \ | GUI/Widgets/Fl_DragBar.H \ | ||||
GUI/Widgets/../../SpiralSynthModularInfo.h \ | |||||
GraphSort.h \ | |||||
SpiralSynthModularInfo.h \ | |||||
SpiralSound/SpiralInfo.h | SpiralSound/SpiralInfo.h | ||||
GUI/Widgets/PawfalInput.o: GUI/Widgets/PawfalInput.C \ | GUI/Widgets/PawfalInput.o: GUI/Widgets/PawfalInput.C \ | ||||
@@ -252,38 +255,37 @@ SpiralSound/Sample.o: SpiralSound/Sample.C \ | |||||
SpiralSound/Plugins/SpiralPlugin.o: SpiralSound/Plugins/SpiralPlugin.C \ | SpiralSound/Plugins/SpiralPlugin.o: SpiralSound/Plugins/SpiralPlugin.C \ | ||||
SpiralSound/Plugins/SpiralPlugin.h \ | SpiralSound/Plugins/SpiralPlugin.h \ | ||||
SpiralSound/Plugins/../Sample.h \ | |||||
SpiralSound/Sample.h \ | |||||
SpiralSound/SpiralInfo.h \ | SpiralSound/SpiralInfo.h \ | ||||
SpiralSound/Sample.h | SpiralSound/Sample.h | ||||
SpiralSound/Plugins/SpiralPluginGUI.o: SpiralSound/Plugins/SpiralPluginGUI.C \ | SpiralSound/Plugins/SpiralPluginGUI.o: SpiralSound/Plugins/SpiralPluginGUI.C \ | ||||
SpiralSound/Plugins/SpiralPluginGUI.h \ | SpiralSound/Plugins/SpiralPluginGUI.h \ | ||||
SpiralSound/Plugins/Widgets/Fl_DragBar.H \ | |||||
SpiralSound/Plugins/SpiralPlugin.h \ | SpiralSound/Plugins/SpiralPlugin.h \ | ||||
SpiralSound/Plugins/../Sample.h \ | |||||
SpiralSound/Sample.h \ | |||||
SpiralSound/SpiralInfo.h \ | SpiralSound/SpiralInfo.h \ | ||||
SpiralSound/Sample.h | SpiralSound/Sample.h | ||||
SpiralSound/PluginManager.o: SpiralSound/PluginManager.C \ | SpiralSound/PluginManager.o: SpiralSound/PluginManager.C \ | ||||
SpiralSound/PluginManager.h \ | SpiralSound/PluginManager.h \ | ||||
SpiralSound/Plugins/SpiralPlugin.h \ | |||||
SpiralSound/Plugins/../Sample.h \ | |||||
SpiralSound/Sample.h \ | |||||
SpiralSound/SpiralInfo.h \ | SpiralSound/SpiralInfo.h \ | ||||
SpiralSound/Sample.h | |||||
SpiralSound/Sample.h \ | |||||
SpiralSound/Plugins/SpiralPlugin.h | |||||
SettingsWindow.o: SettingsWindow.C \ | SettingsWindow.o: SettingsWindow.C \ | ||||
SettingsWindow.h \ | SettingsWindow.h \ | ||||
SpiralSynthModular.h \ | SpiralSynthModular.h \ | ||||
SpiralSynthModularInfo.h \ | SpiralSynthModularInfo.h \ | ||||
GraphSort.h \ | |||||
SpiralSound/SpiralInfo.h \ | SpiralSound/SpiralInfo.h \ | ||||
SpiralSound/Sample.h \ | SpiralSound/Sample.h \ | ||||
SpiralSound/SpiralInfo.h \ | SpiralSound/SpiralInfo.h \ | ||||
SpiralSound/Sample.h \ | |||||
SpiralSound/Plugins/SpiralPlugin.h \ | |||||
GUI/Widgets/SpiralGUI.H \ | |||||
GUI/Widgets/Fl_DeviceGUI.h \ | GUI/Widgets/Fl_DeviceGUI.h \ | ||||
GUI/Widgets/Fl_DragBar.H \ | GUI/Widgets/Fl_DragBar.H \ | ||||
GUI/Widgets/Fl_CommentGUI.h \ | GUI/Widgets/Fl_CommentGUI.h \ | ||||
GUI/Widgets/Fl_DeviceGUI.h \ | |||||
GUI/Widgets/Fl_Canvas.h \ | GUI/Widgets/Fl_Canvas.h \ | ||||
GUI/Widgets/../../GraphSort.h \ | |||||
SpiralSound/Plugins/SpiralPlugin.h \ | |||||
SpiralSound/Plugins/../Sample.h \ | |||||
GUI/options.xpm | GUI/options.xpm |
@@ -17,7 +17,6 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | #include <FL/Fl_Group.H> | ||||
#include <FL/Fl_Tabs.H> | #include <FL/Fl_Tabs.H> | ||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
@@ -1,22 +1,19 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building AmpPlugin.so | # Makefile for building AmpPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: AmpPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
CC = gcc | CC = gcc | ||||
CXX = g++ | CXX = g++ | ||||
CFLAGS = @CFLAGS@ | |||||
CXXFLAGS= @CXXFLAGS@ | |||||
CFLAGS = @CFLAGS@ | |||||
CXXFLAGS= @CXXFLAGS@ | |||||
INCPATH = -I/usr/X11R6/include | INCPATH = -I/usr/X11R6/include | ||||
LINK = g++ -shared | LINK = g++ -shared | ||||
LFLAGS = | |||||
LFLAGS = | |||||
LIBS = -L/usr/X11R6/lib @FLTK_LIBS@ -lGL -lXext -lX11 -ldl | LIBS = -L/usr/X11R6/lib @FLTK_LIBS@ -lGL -lXext -lX11 -ldl | ||||
MOC = moc | MOC = moc | ||||
UIC = | |||||
UIC = | |||||
TAR = tar -cf | TAR = tar -cf | ||||
GZIP = gzip -9f | GZIP = gzip -9f | ||||
@@ -41,36 +38,33 @@ mandir = @mandir@ | |||||
####### Files | ####### Files | ||||
HEADERS = ../SpiralPlugin.h \ | |||||
HEADERS = AmpPlugin.h \ | |||||
AmpPluginGUI.h | |||||
../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
AmpPlugin.h \ | |||||
AmpPluginGUI.h | |||||
SOURCES = ../SpiralPlugin.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
SOURCES = AmpPlugin.C \ | |||||
AmpPluginGUI.C \ | |||||
../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
AmpPlugin.C \ | |||||
AmpPluginGUI.C | |||||
OBJECTS = ../SpiralPlugin.o \ | |||||
../../../GUI/Widgets/SpiralGUI.C | |||||
OBJECTS = AmpPlugin.o \ | |||||
AmpPluginGUI.o \ | |||||
../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
AmpPlugin.o \ | |||||
AmpPluginGUI.o | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
../../../GUI/Widgets/SpiralGUI.o | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = AmpPlugin.so | TARGET = AmpPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +91,7 @@ TARGET = AmpPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -112,7 +106,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -130,15 +124,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | |||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../../Sample.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -146,24 +137,22 @@ install: | |||||
AmpPlugin.o: AmpPlugin.C \ | AmpPlugin.o: AmpPlugin.C \ | ||||
AmpPlugin.h \ | AmpPlugin.h \ | ||||
AmpPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
AmpPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
AmpPluginGUI.o: AmpPluginGUI.C \ | AmpPluginGUI.o: AmpPluginGUI.C \ | ||||
AmpPluginGUI.h \ | AmpPluginGUI.h \ | ||||
AmpPlugin.h \ | AmpPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -17,10 +17,7 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include "AnotherFilterPlugin.h" | #include "AnotherFilterPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
@@ -28,29 +25,26 @@ | |||||
#ifndef GUI | #ifndef GUI | ||||
#define GUI | #define GUI | ||||
class AnotherFilterPluginGUI : public SpiralPluginGUI | class AnotherFilterPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
AnotherFilterPluginGUI(int w, int h, AnotherFilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | AnotherFilterPluginGUI(int w, int h, AnotherFilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Group *GUIFilterGroup; | |||||
Fl_Slider *Cutoff; | Fl_Slider *Cutoff; | ||||
Fl_Knob *Resonance; | Fl_Knob *Resonance; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Cutoff_i(Fl_Slider* o, void* v); | inline void cb_Cutoff_i(Fl_Slider* o, void* v); | ||||
static void cb_Cutoff(Fl_Slider*, void*); | static void cb_Cutoff(Fl_Slider*, void*); | ||||
inline void cb_Resonance_i(Fl_Knob* o, void* v); | inline void cb_Resonance_i(Fl_Knob* o, void* v); | ||||
static void cb_Resonance(Fl_Knob* o, void* v); | |||||
static void cb_Resonance(Fl_Knob* o, void* v); | |||||
}; | }; | ||||
#endif | #endif |
@@ -40,34 +40,34 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | |||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../ChannelHandler.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
AnotherFilterPlugin.h \ | AnotherFilterPlugin.h \ | ||||
AnotherFilterPluginGUI.h | AnotherFilterPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | |||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../ChannelHandler.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
AnotherFilterPlugin.C \ | AnotherFilterPlugin.C \ | ||||
AnotherFilterPluginGUI.C | AnotherFilterPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | |||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../ChannelHandler.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
AnotherFilterPlugin.o \ | AnotherFilterPlugin.o \ | ||||
AnotherFilterPluginGUI.o | AnotherFilterPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = AnotherFilterPlugin.so | TARGET = AnotherFilterPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = AnotherFilterPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,26 +143,24 @@ install: | |||||
AnotherFilterPlugin.o: AnotherFilterPlugin.C \ | AnotherFilterPlugin.o: AnotherFilterPlugin.C \ | ||||
AnotherFilterPlugin.h \ | AnotherFilterPlugin.h \ | ||||
AnotherFilterPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
AnotherFilterPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
AnotherFilterPluginGUI.o: AnotherFilterPluginGUI.C \ | AnotherFilterPluginGUI.o: AnotherFilterPluginGUI.C \ | ||||
AnotherFilterPluginGUI.h \ | AnotherFilterPluginGUI.h \ | ||||
AnotherFilterPlugin.h \ | AnotherFilterPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -17,14 +17,7 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include <FL/Fl_Input.H> | |||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "BeatMatchPlugin.h" | #include "BeatMatchPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building BeatMatchPlugin.so | # Makefile for building BeatMatchPlugin.so | ||||
# Generated by tmake at 21:08, 2001/11/12 | |||||
# Project: BeatMatchPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -43,34 +40,34 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | |||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../ChannelHandler.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
BeatMatchPlugin.h \ | BeatMatchPlugin.h \ | ||||
BeatMatchPluginGUI.h | BeatMatchPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | |||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../ChannelHandler.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
BeatMatchPlugin.C \ | BeatMatchPlugin.C \ | ||||
BeatMatchPluginGUI.C | BeatMatchPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | |||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../ChannelHandler.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
BeatMatchPlugin.o \ | BeatMatchPlugin.o \ | ||||
BeatMatchPluginGUI.o | BeatMatchPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = BeatMatchPlugin.so | TARGET = BeatMatchPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +94,7 @@ TARGET = BeatMatchPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -123,15 +120,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | |||||
../../Sample.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -149,7 +146,8 @@ BeatMatchPluginGUI.o: BeatMatchPluginGUI.C \ | |||||
BeatMatchPlugin.h \ | BeatMatchPlugin.h \ | ||||
BeatMatchPluginGUI.h \ | BeatMatchPluginGUI.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h | |||||
../SpiralPluginGUI.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building ComplexEnvelopePlugin.so | # Makefile for building ComplexEnvelopePlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: ComplexEnvelopePlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
Bezier.h \ | Bezier.h \ | ||||
ComplexEnvelopePlugin.h \ | ComplexEnvelopePlugin.h \ | ||||
@@ -54,7 +51,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
Bezier.C \ | Bezier.C \ | ||||
ComplexEnvelopePlugin.C \ | ComplexEnvelopePlugin.C \ | ||||
@@ -63,7 +60,7 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
Bezier.o \ | Bezier.o \ | ||||
ComplexEnvelopePlugin.o \ | ComplexEnvelopePlugin.o \ | ||||
@@ -133,15 +130,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -158,7 +155,7 @@ ComplexEnvelopePlugin.o: ComplexEnvelopePlugin.C \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
ComplexEnvelopePluginGUI.h \ | ComplexEnvelopePluginGUI.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
Bezier.h \ | Bezier.h \ | ||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
@@ -171,7 +168,7 @@ ComplexEnvelopePluginGUI.o: ComplexEnvelopePluginGUI.C \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
Bezier.h \ | Bezier.h \ | ||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -51,7 +51,7 @@ m_Num(4) | |||||
{ | { | ||||
m_Version=5; | m_Version=5; | ||||
m_PluginInfo.Name="CV Control"; | |||||
m_PluginInfo.Name="CV"; | |||||
m_PluginInfo.Width=240; | m_PluginInfo.Width=240; | ||||
m_PluginInfo.Height=224; | m_PluginInfo.Height=224; | ||||
m_PluginInfo.NumInputs=0; | m_PluginInfo.NumInputs=0; | ||||
@@ -146,8 +146,7 @@ void ControllerPluginGUI::UpdateValues(SpiralPlugin *o) | |||||
Clear(); | Clear(); | ||||
c=Plugin->GetNum(); | c=Plugin->GetNum(); | ||||
for (int n=0; n<c; n++) | |||||
{ | |||||
for (int n=0; n<c; n++) { | |||||
AddCV(); | AddCV(); | ||||
m_GUIVec[n]->m_Title->value(Plugin->GetName(n).c_str()); | m_GUIVec[n]->m_Title->value(Plugin->GetName(n).c_str()); | ||||
@@ -158,12 +157,12 @@ void ControllerPluginGUI::UpdateValues(SpiralPlugin *o) | |||||
sprintf(temp,"%.6f",max); | sprintf(temp,"%.6f",max); | ||||
m_GUIVec[n]->m_Max->value(temp); | m_GUIVec[n]->m_Max->value(temp); | ||||
// Scale and invert value to match slider range (0->1) | |||||
// Scale and invert value to match slider range (0->1) | |||||
float val = 1.0f - (Plugin->GetVal(n) - min) / (max - min); | float val = 1.0f - (Plugin->GetVal(n) - min) / (max - min); | ||||
m_GUIVec[n]->m_Chan->value(val); | m_GUIVec[n]->m_Chan->value(val); | ||||
} | } | ||||
resize(x(),y(),c*60,h()); | |||||
resize(x(), y(), c*60, h()); | |||||
} | } | ||||
inline void ControllerPluginGUI::cb_Title_i(Fl_Input* o, void* v) | inline void ControllerPluginGUI::cb_Title_i(Fl_Input* o, void* v) | ||||
@@ -248,13 +247,9 @@ inline void ControllerPluginGUI::cb_Min_i(Fl_Input* o, void* v) | |||||
void ControllerPluginGUI::cb_Min(Fl_Input* o, void* v) | void ControllerPluginGUI::cb_Min(Fl_Input* o, void* v) | ||||
{ ((ControllerPluginGUI*)(o->parent()->user_data()))->cb_Min_i(o,v);} | { ((ControllerPluginGUI*)(o->parent()->user_data()))->cb_Min_i(o,v);} | ||||
inline void ControllerPluginGUI::cb_Add_i(Fl_Button* o, void* v) | |||||
{ | |||||
if (m_CVCount<MAX_CHANNELS) | |||||
{ | |||||
inline void ControllerPluginGUI::cb_Add_i(Fl_Button* o, void* v) { | |||||
if (m_CVCount<MAX_CHANNELS) { | |||||
AddCV(); | AddCV(); | ||||
resize(x(),y(),w()+60,h()); | |||||
redraw(); | |||||
int num = (int)m_GUIVec.size(); | int num = (int)m_GUIVec.size(); | ||||
float min = atof(m_GUIVec[num - 1]->m_Min->value()); | float min = atof(m_GUIVec[num - 1]->m_Min->value()); | ||||
float max = atof(m_GUIVec[num - 1]->m_Max->value()); | float max = atof(m_GUIVec[num - 1]->m_Max->value()); | ||||
@@ -271,21 +266,20 @@ inline void ControllerPluginGUI::cb_Add_i(Fl_Button* o, void* v) | |||||
m_GUICH->Set("Value",val); | m_GUICH->Set("Value",val); | ||||
m_GUICH->Set("Min",min); | m_GUICH->Set("Min",min); | ||||
m_GUICH->SetCommand(ControllerPlugin::SETALL); | m_GUICH->SetCommand(ControllerPlugin::SETALL); | ||||
m_GUICH->Wait(); | |||||
resize(x(),y(),w()+60,h()); | |||||
} | } | ||||
} | } | ||||
void ControllerPluginGUI::cb_Add(Fl_Button* o, void* v) | void ControllerPluginGUI::cb_Add(Fl_Button* o, void* v) | ||||
{ ((ControllerPluginGUI*)(o->parent()->parent()))->cb_Add_i(o,v);} | { ((ControllerPluginGUI*)(o->parent()->parent()))->cb_Add_i(o,v);} | ||||
inline void ControllerPluginGUI::cb_Delete_i(Fl_Button* o, void* v) | |||||
{ | |||||
if (m_GUIVec.size()>1) | |||||
{ | |||||
inline void ControllerPluginGUI::cb_Delete_i(Fl_Button* o, void* v) { | |||||
if (m_GUIVec.size()>1) { | |||||
DeleteCV(); | DeleteCV(); | ||||
resize(x(),y(),w()-60,h()); | |||||
redraw(); | |||||
m_GUICH->Set("Number",(int)m_GUIVec.size()); | m_GUICH->Set("Number",(int)m_GUIVec.size()); | ||||
m_GUICH->SetCommand(ControllerPlugin::SETNUM); | m_GUICH->SetCommand(ControllerPlugin::SETNUM); | ||||
m_GUICH->Wait(); | |||||
resize(x(),y(),w()-60,h()); | |||||
} | } | ||||
} | } | ||||
void ControllerPluginGUI::cb_Delete(Fl_Button* o, void* v) | void ControllerPluginGUI::cb_Delete(Fl_Button* o, void* v) | ||||
@@ -359,7 +353,7 @@ void ControllerPluginGUI::StreamOut(ostream &s) | |||||
s<<(*i)->m_Title->value()<<" "; | s<<(*i)->m_Title->value()<<" "; | ||||
s<<(*i)->m_Min->value()<<" "; | s<<(*i)->m_Min->value()<<" "; | ||||
s<<(*i)->m_Max->value()<<" "; | s<<(*i)->m_Max->value()<<" "; | ||||
s<<(*i)->m_Chan->value()<<endl; | |||||
s<<(*i)->m_Chan->value()<<endl; | |||||
} | } | ||||
} | } | ||||
@@ -17,14 +17,12 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Group.H> | #include <FL/Fl_Group.H> | ||||
#include <FL/Fl_Pack.H> | #include <FL/Fl_Pack.H> | ||||
#include <FL/Fl_Int_Input.H> | #include <FL/Fl_Int_Input.H> | ||||
#include <FL/Fl_Input.H> | #include <FL/Fl_Input.H> | ||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include "ControllerPlugin.h" | #include "ControllerPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -41,21 +41,21 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
ControllerPlugin.h \ | ControllerPlugin.h \ | ||||
ControllerPluginGUI.h | ControllerPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
ControllerPlugin.C \ | ControllerPlugin.C \ | ||||
ControllerPluginGUI.C | ControllerPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
ControllerPlugin.o \ | ControllerPlugin.o \ | ||||
ControllerPluginGUI.o | ControllerPluginGUI.o | ||||
@@ -124,12 +124,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -137,24 +137,23 @@ install: | |||||
ControllerPlugin.o: ControllerPlugin.C \ | ControllerPlugin.o: ControllerPlugin.C \ | ||||
ControllerPlugin.h \ | ControllerPlugin.h \ | ||||
ControllerPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
ControllerPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
ControllerPluginGUI.o: ControllerPluginGUI.C \ | ControllerPluginGUI.o: ControllerPluginGUI.C \ | ||||
ControllerPluginGUI.h \ | ControllerPluginGUI.h \ | ||||
ControllerPlugin.h \ | ControllerPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,17 +14,10 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include <FL/Fl_Input.H> | #include <FL/Fl_Input.H> | ||||
#include "../Widgets/Fl_Knob.H" | |||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "CounterPlugin.h" | #include "CounterPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -35,18 +28,18 @@ class CounterPluginGUI : public SpiralPluginGUI | |||||
{ | { | ||||
public: | public: | ||||
CounterPluginGUI(int w, int h, CounterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | CounterPluginGUI(int w, int h, CounterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Input* m_Count; | Fl_Input* m_Count; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Count_i(Fl_Input* o, void* v); | inline void cb_Count_i(Fl_Input* o, void* v); | ||||
static void cb_Count(Fl_Input* o, void* v); | |||||
static void cb_Count(Fl_Input* o, void* v); | |||||
}; | }; | ||||
#endif | #endif |
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building CounterPlugin.so | # Makefile for building CounterPlugin.so | ||||
# Generated by tmake at 21:08, 2001/11/12 | |||||
# Project: CounterPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
CounterPlugin.h \ | CounterPlugin.h \ | ||||
CounterPluginGUI.h | CounterPluginGUI.h | ||||
@@ -53,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
CounterPlugin.C \ | CounterPlugin.C \ | ||||
CounterPluginGUI.C | CounterPluginGUI.C | ||||
@@ -61,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
CounterPlugin.o \ | CounterPlugin.o \ | ||||
CounterPluginGUI.o | CounterPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = CounterPlugin.so | TARGET = CounterPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +94,7 @@ TARGET = CounterPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -123,15 +120,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -149,7 +146,8 @@ CounterPluginGUI.o: CounterPluginGUI.C \ | |||||
CounterPlugin.h \ | CounterPlugin.h \ | ||||
CounterPluginGUI.h \ | CounterPluginGUI.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h | |||||
../SpiralPluginGUI.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -17,7 +17,6 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | #include <FL/Fl_Group.H> | ||||
#include <FL/Fl_Tabs.H> | #include <FL/Fl_Tabs.H> | ||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
DelayPlugin.h \ | DelayPlugin.h \ | ||||
DelayPluginGUI.h | DelayPluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
DelayPlugin.C \ | DelayPlugin.C \ | ||||
DelayPluginGUI.C | DelayPluginGUI.C | ||||
@@ -58,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
DelayPlugin.o \ | DelayPlugin.o \ | ||||
DelayPluginGUI.o | DelayPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = DelayPlugin.so | TARGET = DelayPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = DelayPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,25 +143,23 @@ install: | |||||
DelayPlugin.o: DelayPlugin.C \ | DelayPlugin.o: DelayPlugin.C \ | ||||
DelayPlugin.h \ | DelayPlugin.h \ | ||||
DelayPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
DelayPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
DelayPluginGUI.o: DelayPluginGUI.C \ | DelayPluginGUI.o: DelayPluginGUI.C \ | ||||
DelayPluginGUI.h \ | DelayPluginGUI.h \ | ||||
DelayPlugin.h \ | DelayPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -14,40 +14,33 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Pixmap.H> | |||||
#include "../Widgets/Fl_Knob.H" | |||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "DiskWriterPlugin.h" | #include "DiskWriterPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef SCOPEGUI | |||||
#define SCOPEGUI | |||||
#ifndef DISK_WRITER_GUI_H | |||||
#define DISK_WRITER_GUI_H | |||||
class DiskWriterPluginGUI : public SpiralPluginGUI | class DiskWriterPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
DiskWriterPluginGUI(int w, int h, SpiralPlugin *o, ChannelHandler *ch, const HostInfo *Info); | DiskWriterPluginGUI(int w, int h, SpiralPlugin *o, ChannelHandler *ch, const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Button *Open; | Fl_Button *Open; | ||||
Fl_Button *Record; | Fl_Button *Record; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Record_i(Fl_Button* o, void* v); | inline void cb_Record_i(Fl_Button* o, void* v); | ||||
static void cb_Record(Fl_Button* o, void* v); | static void cb_Record(Fl_Button* o, void* v); | ||||
inline void cb_Open_i(Fl_Button* o, void* v); | inline void cb_Open_i(Fl_Button* o, void* v); | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building DiskWriterPlugin.so | # Makefile for building DiskWriterPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: DiskWriterPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -44,8 +41,7 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
DiskWriterPlugin.h \ | DiskWriterPlugin.h \ | ||||
@@ -53,8 +49,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../RiffWav.C \ | ../../RiffWav.C \ | ||||
DiskWriterPlugin.C \ | DiskWriterPlugin.C \ | ||||
@@ -62,18 +57,17 @@ SOURCES = ../SpiralPlugin.C \ | |||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../RiffWav.o \ | ../../RiffWav.o \ | ||||
DiskWriterPlugin.o \ | DiskWriterPlugin.o \ | ||||
DiskWriterPluginGUI.o | DiskWriterPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = DiskWriterPlugin.so | TARGET = DiskWriterPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -100,7 +94,7 @@ TARGET = DiskWriterPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -115,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -133,15 +127,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -155,29 +146,24 @@ install: | |||||
DiskWriterPlugin.o: DiskWriterPlugin.C \ | DiskWriterPlugin.o: DiskWriterPlugin.C \ | ||||
DiskWriterPlugin.h \ | DiskWriterPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
DiskWriterPluginGUI.h \ | DiskWriterPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
DiskWriterPluginGUI.o: DiskWriterPluginGUI.C \ | DiskWriterPluginGUI.o: DiskWriterPluginGUI.C \ | ||||
DiskWriterPluginGUI.h \ | DiskWriterPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
DiskWriterPlugin.h \ | DiskWriterPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,22 +14,15 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include "../Widgets/Fl_Knob.H" | |||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "DistributorPlugin.h" | #include "DistributorPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef DistributorGUI | #ifndef DistributorGUI | ||||
#define DistributorGUI | #define DistributorGUI | ||||
class DistributorPluginGUI : public SpiralPluginGUI | class DistributorPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
@@ -1,9 +1,5 @@ | |||||
# Generated automatically from Makefile.in by configure. | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building DistributorPlugin.so | # Makefile for building DistributorPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: DistributorPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,33 +41,30 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
DistributorPlugin.h \ | DistributorPlugin.h \ | ||||
DistributorPluginGUI.h | DistributorPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
DistributorPlugin.C \ | DistributorPlugin.C \ | ||||
DistributorPluginGUI.C | DistributorPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
DistributorPlugin.o \ | DistributorPlugin.o \ | ||||
DistributorPluginGUI.o | DistributorPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = DistributorPlugin.so | TARGET = DistributorPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -98,7 +91,7 @@ TARGET = DistributorPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -113,7 +106,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -131,15 +124,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -147,28 +137,22 @@ install: | |||||
DistributorPlugin.o: DistributorPlugin.C \ | DistributorPlugin.o: DistributorPlugin.C \ | ||||
DistributorPlugin.h \ | DistributorPlugin.h \ | ||||
DistributorPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
DistributorPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
DistributorPluginGUI.o: DistributorPluginGUI.C \ | DistributorPluginGUI.o: DistributorPluginGUI.C \ | ||||
DistributorPluginGUI.h \ | DistributorPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
DistributorPlugin.h \ | |||||
DistributorPlugin.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -20,7 +20,6 @@ | |||||
#define EchoGUI | #define EchoGUI | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | #include <FL/Fl_Group.H> | ||||
#include <FL/Fl_Tabs.H> | #include <FL/Fl_Tabs.H> | ||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
@@ -43,7 +43,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
EchoPlugin.h \ | EchoPlugin.h \ | ||||
EchoPluginGUI.h | EchoPluginGUI.h | ||||
@@ -52,7 +52,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
EchoPlugin.C \ | EchoPlugin.C \ | ||||
EchoPluginGUI.C | EchoPluginGUI.C | ||||
@@ -60,7 +60,7 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../Widgets/Fl_LED_Button.o \ | ../Widgets/Fl_LED_Button.o \ | ||||
../../Sample.o \ | ../../Sample.o \ | ||||
EchoPlugin.o \ | EchoPlugin.o \ | ||||
@@ -130,7 +130,7 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
@@ -142,8 +142,8 @@ install: | |||||
../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -151,13 +151,12 @@ install: | |||||
EchoPlugin.o: EchoPlugin.C \ | EchoPlugin.o: EchoPlugin.C \ | ||||
EchoPlugin.h \ | EchoPlugin.h \ | ||||
EchoPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
EchoPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
@@ -165,12 +164,11 @@ EchoPlugin.o: EchoPlugin.C \ | |||||
EchoPluginGUI.o: EchoPluginGUI.C \ | EchoPluginGUI.o: EchoPluginGUI.C \ | ||||
EchoPluginGUI.h \ | EchoPluginGUI.h \ | ||||
EchoPlugin.h \ | EchoPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
@@ -14,21 +14,15 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "EnvFollowerPlugin.h" | #include "EnvFollowerPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef SplitterGUI | |||||
#define SplitterGUI | |||||
#ifndef ENV_FOLLOWER_GUI | |||||
#define ENV_FOLLOWER_GUI | |||||
class EnvFollowerPluginGUI : public SpiralPluginGUI | class EnvFollowerPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
EnvFollowerPlugin.h \ | EnvFollowerPlugin.h \ | ||||
EnvFollowerPluginGUI.h | EnvFollowerPluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
EnvFollowerPlugin.C \ | EnvFollowerPlugin.C \ | ||||
EnvFollowerPluginGUI.C | EnvFollowerPluginGUI.C | ||||
@@ -58,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
EnvFollowerPlugin.o \ | EnvFollowerPlugin.o \ | ||||
EnvFollowerPluginGUI.o | EnvFollowerPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = EnvFollowerPlugin.so | TARGET = EnvFollowerPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = EnvFollowerPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,23 +143,21 @@ install: | |||||
EnvFollowerPlugin.o: EnvFollowerPlugin.C \ | EnvFollowerPlugin.o: EnvFollowerPlugin.C \ | ||||
EnvFollowerPlugin.h \ | EnvFollowerPlugin.h \ | ||||
EnvFollowerPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | |||||
EnvFollowerPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
EnvFollowerPluginGUI.o: EnvFollowerPluginGUI.C \ | EnvFollowerPluginGUI.o: EnvFollowerPluginGUI.C \ | ||||
EnvFollowerPluginGUI.h \ | EnvFollowerPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
EnvFollowerPlugin.h \ | EnvFollowerPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h | ../SpiralPluginGUI.h | ||||
@@ -17,13 +17,10 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | #include <FL/Fl_Group.H> | ||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include <FL/Fl_Tabs.H> | #include <FL/Fl_Tabs.H> | ||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include <FL/Fl_Box.H> | |||||
#include <FL/Fl_Output.H> | |||||
#include "EnvelopePlugin.h" | #include "EnvelopePlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building EnvelopePlugin.so | # Makefile for building EnvelopePlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: EnvelopePlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
EnvelopePlugin.h \ | EnvelopePlugin.h \ | ||||
EnvelopePluginGUI.h | EnvelopePluginGUI.h | ||||
@@ -53,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
EnvelopePlugin.C \ | EnvelopePlugin.C \ | ||||
EnvelopePluginGUI.C | EnvelopePluginGUI.C | ||||
@@ -61,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
EnvelopePlugin.o \ | EnvelopePlugin.o \ | ||||
EnvelopePluginGUI.o | EnvelopePluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = EnvelopePlugin.so | TARGET = EnvelopePlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +94,7 @@ TARGET = EnvelopePlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -112,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -130,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -146,24 +143,21 @@ install: | |||||
EnvelopePlugin.o: EnvelopePlugin.C \ | EnvelopePlugin.o: EnvelopePlugin.C \ | ||||
EnvelopePlugin.h \ | EnvelopePlugin.h \ | ||||
EnvelopePluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
EnvelopePluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
EnvelopePluginGUI.o: EnvelopePluginGUI.C \ | EnvelopePluginGUI.o: EnvelopePluginGUI.C \ | ||||
EnvelopePluginGUI.h \ | EnvelopePluginGUI.h \ | ||||
EnvelopePlugin.h \ | EnvelopePlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,13 +14,11 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include <FL/Fl_Button.H> | |||||
#include "FilterPlugin.h" | #include "FilterPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
@@ -28,35 +26,33 @@ | |||||
#ifndef FilterGUI | #ifndef FilterGUI | ||||
#define FilterGUI | #define FilterGUI | ||||
class FilterPluginGUI : public SpiralPluginGUI | class FilterPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
FilterPluginGUI(int w, int h, FilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | FilterPluginGUI(int w, int h, FilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Group *GUIFilterGroup; | |||||
Fl_Slider *Cutoff; | Fl_Slider *Cutoff; | ||||
Fl_Knob *Resonance; | Fl_Knob *Resonance; | ||||
Fl_Button *RevCutoff; | Fl_Button *RevCutoff; | ||||
Fl_Button *RevResonance; | Fl_Button *RevResonance; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Cutoff_i(Fl_Slider* o, void* v); | inline void cb_Cutoff_i(Fl_Slider* o, void* v); | ||||
static void cb_Cutoff(Fl_Slider*, void*); | static void cb_Cutoff(Fl_Slider*, void*); | ||||
inline void cb_Resonance_i(Fl_Knob* o, void* v); | inline void cb_Resonance_i(Fl_Knob* o, void* v); | ||||
static void cb_Resonance(Fl_Knob* o, void* v); | |||||
static void cb_Resonance(Fl_Knob* o, void* v); | |||||
inline void cb_RevCutoff_i(Fl_Button* o, void* v); | inline void cb_RevCutoff_i(Fl_Button* o, void* v); | ||||
static void cb_RevCutoff(Fl_Button*, void*); | static void cb_RevCutoff(Fl_Button*, void*); | ||||
inline void cb_RevResonance_i(Fl_Button* o, void* v); | inline void cb_RevResonance_i(Fl_Button* o, void* v); | ||||
static void cb_RevResonance(Fl_Button* o, void* v); | |||||
static void cb_RevResonance(Fl_Button* o, void* v); | |||||
}; | }; | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
iir_filter.h \ | iir_filter.h \ | ||||
FilterPlugin.h \ | FilterPlugin.h \ | ||||
@@ -51,7 +51,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
iir_filter.C \ | iir_filter.C \ | ||||
FilterPlugin.C \ | FilterPlugin.C \ | ||||
@@ -60,17 +60,17 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
iir_filter.o \ | iir_filter.o \ | ||||
FilterPlugin.o \ | FilterPlugin.o \ | ||||
FilterPluginGUI.o | FilterPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = FilterPlugin.so | TARGET = FilterPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +97,7 @@ TARGET = FilterPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -112,7 +112,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -130,15 +130,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -149,27 +149,23 @@ iir_filter.o: iir_filter.C \ | |||||
FilterPlugin.o: FilterPlugin.C \ | FilterPlugin.o: FilterPlugin.C \ | ||||
FilterPlugin.h \ | FilterPlugin.h \ | ||||
FilterPluginGUI.h \ | |||||
iir_filter.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
iir_filter.h \ | |||||
FilterPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
FilterPluginGUI.o: FilterPluginGUI.C \ | FilterPluginGUI.o: FilterPluginGUI.C \ | ||||
FilterPluginGUI.h \ | FilterPluginGUI.h \ | ||||
FilterPlugin.h \ | FilterPlugin.h \ | ||||
iir_filter.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
iir_filter.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -14,17 +14,11 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Button.H> | |||||
#include <FL/Fl_Input.H> | |||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "FlipflopPlugin.h" | #include "FlipflopPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -35,16 +29,16 @@ class FlipflopPluginGUI : public SpiralPluginGUI | |||||
{ | { | ||||
public: | public: | ||||
FlipflopPluginGUI(int w, int h, FlipflopPlugin *o,ChannelHandler *ch,const HostInfo *Info); | FlipflopPluginGUI(int w, int h, FlipflopPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Knob *m_TriggerTime; | Fl_Knob *m_TriggerTime; | ||||
Fl_Button *m_Monostable; | Fl_Button *m_Monostable; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_TriggerTime_i(Fl_Knob* o, void*); | inline void cb_TriggerTime_i(Fl_Knob* o, void*); | ||||
static void cb_TriggerTime(Fl_Knob* o, void*); | static void cb_TriggerTime(Fl_Knob* o, void*); | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building FlipflopPlugin.so | # Makefile for building FlipflopPlugin.so | ||||
# Generated by tmake at 21:08, 2001/11/12 | |||||
# Project: FlipflopPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
FlipflopPlugin.h \ | FlipflopPlugin.h \ | ||||
FlipflopPluginGUI.h | FlipflopPluginGUI.h | ||||
@@ -53,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
FlipflopPlugin.C \ | FlipflopPlugin.C \ | ||||
FlipflopPluginGUI.C | FlipflopPluginGUI.C | ||||
@@ -61,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
FlipflopPlugin.o \ | FlipflopPlugin.o \ | ||||
FlipflopPluginGUI.o | FlipflopPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = FlipflopPlugin.so | TARGET = FlipflopPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +94,7 @@ TARGET = FlipflopPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -123,15 +120,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -149,7 +146,9 @@ FlipflopPluginGUI.o: FlipflopPluginGUI.C \ | |||||
FlipflopPlugin.h \ | FlipflopPlugin.h \ | ||||
FlipflopPluginGUI.h \ | FlipflopPluginGUI.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,13 +14,10 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Output.H> | #include <FL/Fl_Output.H> | ||||
#include "FormantFilterPlugin.h" | #include "FormantFilterPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
@@ -28,25 +25,24 @@ | |||||
#ifndef GUI | #ifndef GUI | ||||
#define GUI | #define GUI | ||||
class FormantFilterPluginGUI : public SpiralPluginGUI | class FormantFilterPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
FormantFilterPluginGUI(int w, int h, FormantFilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | FormantFilterPluginGUI(int w, int h, FormantFilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Knob *Selection; | Fl_Knob *Selection; | ||||
Fl_Output *Display; | Fl_Output *Display; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Selection_i(Fl_Knob* o, void* v); | inline void cb_Selection_i(Fl_Knob* o, void* v); | ||||
static void cb_Selection(Fl_Knob* o, void* v); | |||||
static void cb_Selection(Fl_Knob* o, void* v); | |||||
}; | }; | ||||
#endif | #endif |
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
FormantFilterPlugin.h \ | FormantFilterPlugin.h \ | ||||
FormantFilterPluginGUI.h | FormantFilterPluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
FormantFilterPlugin.C \ | FormantFilterPlugin.C \ | ||||
FormantFilterPluginGUI.C | FormantFilterPluginGUI.C | ||||
@@ -58,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
FormantFilterPlugin.o \ | FormantFilterPlugin.o \ | ||||
FormantFilterPluginGUI.o | FormantFilterPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = FormantFilterPlugin.so | TARGET = FormantFilterPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = FormantFilterPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,25 +143,21 @@ install: | |||||
FormantFilterPlugin.o: FormantFilterPlugin.C \ | FormantFilterPlugin.o: FormantFilterPlugin.C \ | ||||
FormantFilterPlugin.h \ | FormantFilterPlugin.h \ | ||||
FormantFilterPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
FormantFilterPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
FormantFilterPluginGUI.o: FormantFilterPluginGUI.C \ | FormantFilterPluginGUI.o: FormantFilterPluginGUI.C \ | ||||
FormantFilterPluginGUI.h \ | FormantFilterPluginGUI.h \ | ||||
FormantFilterPlugin.h \ | FormantFilterPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -14,7 +14,7 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | #include <FL/Fl_Window.H> | ||||
@@ -22,15 +22,13 @@ | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Pixmap.H> | #include <FL/Fl_Pixmap.H> | ||||
#include <FL/Fl_Box.H> | #include <FL/Fl_Box.H> | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "../Widgets/Fl_LED_Button.H" | #include "../Widgets/Fl_LED_Button.H" | ||||
#include "JackPlugin.h" | #include "JackPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef SCOPEGUI | |||||
#define SCOPEGUI | |||||
#ifndef JACK_GUI_H | |||||
#define JACK_GUI_H | |||||
class JackPluginGUI : public SpiralPluginGUI | class JackPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building JackPlugin.so | # Makefile for building JackPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: JackPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -47,7 +44,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
@@ -57,7 +54,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.cxx \ | ||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../RiffWav.C \ | ../../RiffWav.C \ | ||||
@@ -67,18 +64,18 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../Widgets/Fl_LED_Button.o \ | ../Widgets/Fl_LED_Button.o \ | ||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../RiffWav.o \ | ../../RiffWav.o \ | ||||
JackPlugin.o \ | JackPlugin.o \ | ||||
JackPluginGUI.o | JackPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = JackPlugin.so | TARGET = JackPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -105,7 +102,7 @@ TARGET = JackPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -120,7 +117,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -138,7 +135,7 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
@@ -146,12 +143,12 @@ install: | |||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h | ../../SpiralInfo.h | ||||
@@ -163,32 +160,25 @@ install: | |||||
JackPlugin.o: JackPlugin.C \ | JackPlugin.o: JackPlugin.C \ | ||||
JackPlugin.h \ | JackPlugin.h \ | ||||
JackPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
JackPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_LED_Button.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
JackPluginGUI.o: JackPluginGUI.C \ | JackPluginGUI.o: JackPluginGUI.C \ | ||||
JackPluginGUI.h \ | JackPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_LED_Button.H \ | |||||
JackPlugin.h \ | JackPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_LED_Button.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -17,33 +17,28 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Pixmap.H> | #include <FL/Fl_Pixmap.H> | ||||
#include <FL/Fl_Box.H> | #include <FL/Fl_Box.H> | ||||
#include <stdio.h> | |||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "JoystickPlugin.h" | #include "JoystickPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include <stdio.h> | |||||
#ifndef SCOPEGUI | |||||
#define SCOPEGUI | |||||
#ifndef JOY_GUI_H | |||||
#define JOY_GUI_H | |||||
class JoystickPluginGUI : public SpiralPluginGUI | class JoystickPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
JoystickPluginGUI(int w, int h, JoystickPlugin *o,const HostInfo *Info); | JoystickPluginGUI(int w, int h, JoystickPlugin *o,const HostInfo *Info); | ||||
virtual void draw(); | virtual void draw(); | ||||
virtual void UpdateValues(); | virtual void UpdateValues(); | ||||
virtual SpiralPlugin* GetPlugin() { return m_Plugin; } | virtual SpiralPlugin* GetPlugin() { return m_Plugin; } | ||||
JoystickPlugin *m_Plugin; | JoystickPlugin *m_Plugin; | ||||
private: | private: | ||||
Fl_Button *Invertx; | Fl_Button *Invertx; | ||||
Fl_Button *Inverty; | Fl_Button *Inverty; | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building JoystickPlugin.so | # Makefile for building JoystickPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: JoystickPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
JoystickPlugin.h \ | JoystickPlugin.h \ | ||||
JoystickPluginGUI.h | JoystickPluginGUI.h | ||||
@@ -53,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
JoystickPlugin.C \ | JoystickPlugin.C \ | ||||
JoystickPluginGUI.C | JoystickPluginGUI.C | ||||
@@ -61,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
JoystickPlugin.o \ | JoystickPlugin.o \ | ||||
JoystickPluginGUI.o | JoystickPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = JoystickPlugin.so | TARGET = JoystickPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +94,7 @@ TARGET = JoystickPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -112,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -130,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -146,28 +143,22 @@ install: | |||||
JoystickPlugin.o: JoystickPlugin.C \ | JoystickPlugin.o: JoystickPlugin.C \ | ||||
JoystickPlugin.h \ | JoystickPlugin.h \ | ||||
JoystickPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
JoystickPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
JoystickPluginGUI.o: JoystickPluginGUI.C \ | JoystickPluginGUI.o: JoystickPluginGUI.C \ | ||||
JoystickPluginGUI.h \ | JoystickPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
JoystickPlugin.h \ | JoystickPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../Widgets/Fl_Knob.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,22 +14,15 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Pixmap.H> | |||||
#include <FL/Fl_Counter.H> | |||||
#include "../Widgets/Fl_Knob.H" | |||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "KeyboardPlugin.h" | #include "KeyboardPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef MIDIGUI | |||||
#define MIDIGUI | |||||
#ifndef KEYBOARD_GUI_H | |||||
#define KEYBOARD_GUI_H | |||||
const int NUM_KEYS = 132; | const int NUM_KEYS = 132; | ||||
@@ -37,13 +30,13 @@ class KeyboardPluginGUI : public SpiralPluginGUI | |||||
{ | { | ||||
public: | public: | ||||
KeyboardPluginGUI(int w, int h, KeyboardPlugin *o,ChannelHandler *ch,const HostInfo *Info); | KeyboardPluginGUI(int w, int h, KeyboardPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
virtual void Update(); | virtual void Update(); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
int m_Num[NUM_KEYS]; | int m_Num[NUM_KEYS]; | ||||
Fl_Button* m_Key[NUM_KEYS]; | Fl_Button* m_Key[NUM_KEYS]; | ||||
@@ -53,7 +46,7 @@ private: | |||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Key_i(Fl_Button* o, void* v); | inline void cb_Key_i(Fl_Button* o, void* v); | ||||
static void cb_Key(Fl_Button* o, void* v); | |||||
static void cb_Key(Fl_Button* o, void* v); | |||||
}; | }; | ||||
#endif | #endif |
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building KeyboardPlugin.so | # Makefile for building KeyboardPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: KeyboardPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -44,33 +41,30 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
KeyboardPlugin.h \ | KeyboardPlugin.h \ | ||||
KeyboardPluginGUI.h | KeyboardPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
KeyboardPlugin.C \ | KeyboardPlugin.C \ | ||||
KeyboardPluginGUI.C | KeyboardPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
KeyboardPlugin.o \ | KeyboardPlugin.o \ | ||||
KeyboardPluginGUI.o | KeyboardPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = KeyboardPlugin.so | TARGET = KeyboardPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +91,7 @@ TARGET = KeyboardPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -112,7 +106,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -130,15 +124,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -146,29 +137,22 @@ install: | |||||
KeyboardPlugin.o: KeyboardPlugin.C \ | KeyboardPlugin.o: KeyboardPlugin.C \ | ||||
KeyboardPlugin.h \ | KeyboardPlugin.h \ | ||||
KeyboardPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
KeyboardPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../NoteTable.h \ | ../../NoteTable.h \ | ||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
KeyboardPluginGUI.o: KeyboardPluginGUI.C \ | KeyboardPluginGUI.o: KeyboardPluginGUI.C \ | ||||
KeyboardPluginGUI.h \ | KeyboardPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
KeyboardPlugin.h \ | KeyboardPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../GUI/WS_Sine.h \ | ../GUI/WS_Sine.h \ | ||||
../GUI/WS_Tri.h \ | ../GUI/WS_Tri.h \ | ||||
../GUI/WS_Square.h \ | ../GUI/WS_Square.h \ | ||||
@@ -55,7 +55,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../../Sample.C \ | ../../Sample.C \ | ||||
LFOPlugin.C \ | LFOPlugin.C \ | ||||
@@ -64,7 +64,7 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_LED_Button.o \ | ../Widgets/Fl_LED_Button.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../../Sample.o \ | ../../Sample.o \ | ||||
LFOPlugin.o \ | LFOPlugin.o \ | ||||
@@ -135,7 +135,7 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
@@ -144,8 +144,8 @@ install: | |||||
../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -156,7 +156,6 @@ LFOPlugin.o: LFOPlugin.C \ | |||||
LFOPluginGUI.h \ | LFOPluginGUI.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
@@ -166,14 +165,13 @@ LFOPluginGUI.o: LFOPluginGUI.C \ | |||||
LFOPlugin.h \ | LFOPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../GUI/WS_Sine.h \ | ../GUI/WS_Sine.h \ | ||||
../GUI/WS_Tri.h \ | ../GUI/WS_Tri.h \ | ||||
../GUI/WS_Square.h \ | ../GUI/WS_Square.h \ | ||||
../GUI/WS_Saw.h \ | ../GUI/WS_Saw.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
@@ -133,6 +133,8 @@ inline void LogicPluginGUI::cb_Inputs_i (Fl_Counter* o, void* v) { | |||||
else { | else { | ||||
m_GUICH->Set ("Inputs", int (o->value ())); | m_GUICH->Set ("Inputs", int (o->value ())); | ||||
m_GUICH->SetCommand (LogicPlugin::SETINPUTS); | m_GUICH->SetCommand (LogicPlugin::SETINPUTS); | ||||
m_GUICH->Wait (); | |||||
needs_resize (true); | |||||
} | } | ||||
} | } | ||||
@@ -17,11 +17,8 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "LogicPlugin.h" | #include "LogicPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building LogicPlugin.so | # Makefile for building LogicPlugin.so | ||||
# Generated by tmake at 21:08, 2001/11/12 | |||||
# Project: LogicPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -44,33 +41,30 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
LogicPlugin.h \ | LogicPlugin.h \ | ||||
LogicPluginGUI.h | LogicPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
LogicPlugin.C \ | LogicPlugin.C \ | ||||
LogicPluginGUI.C | LogicPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
LogicPlugin.o \ | LogicPlugin.o \ | ||||
LogicPluginGUI.o | LogicPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = LogicPlugin.so | TARGET = LogicPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +91,7 @@ TARGET = LogicPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -123,15 +117,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -149,7 +140,8 @@ LogicPluginGUI.o: LogicPluginGUI.C \ | |||||
LogicPlugin.h \ | LogicPlugin.h \ | ||||
LogicPluginGUI.h \ | LogicPluginGUI.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h | |||||
../SpiralPluginGUI.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building MasherPlugin.so | # Makefile for building MasherPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: MasherPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
MasherPlugin.h \ | MasherPlugin.h \ | ||||
MasherPluginGUI.h | MasherPluginGUI.h | ||||
@@ -53,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
MasherPlugin.C \ | MasherPlugin.C \ | ||||
MasherPluginGUI.C | MasherPluginGUI.C | ||||
@@ -61,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
MasherPlugin.o \ | MasherPlugin.o \ | ||||
MasherPluginGUI.o | MasherPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = MasherPlugin.so | TARGET = MasherPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +94,7 @@ TARGET = MasherPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -112,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -130,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -146,24 +143,22 @@ install: | |||||
MasherPlugin.o: MasherPlugin.C \ | MasherPlugin.o: MasherPlugin.C \ | ||||
MasherPlugin.h \ | MasherPlugin.h \ | ||||
MasherPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
MasherPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
MasherPluginGUI.o: MasherPluginGUI.C \ | MasherPluginGUI.o: MasherPluginGUI.C \ | ||||
MasherPluginGUI.h \ | MasherPluginGUI.h \ | ||||
MasherPlugin.h \ | MasherPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../Widgets/Fl_Knob.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,46 +14,39 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Slider.H> | |||||
#include <FL/Fl_Output.H> | |||||
#include <FL/Fl_Box.H> | |||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "MasherPlugin.h" | #include "MasherPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef AmpGUI | |||||
#define AmpGUI | |||||
#ifndef MASHER_GUI_H | |||||
#define MASHER_GUI_H | |||||
class MasherPluginGUI : public SpiralPluginGUI | class MasherPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
MasherPluginGUI(int w, int h, MasherPlugin *o,ChannelHandler *ch,const HostInfo *Info); | MasherPluginGUI(int w, int h, MasherPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
virtual SpiralPlugin* GetPlugin() { return m_Plugin; } | |||||
MasherPlugin *m_Plugin; | |||||
virtual SpiralPlugin* GetPlugin() { return m_Plugin; } | |||||
MasherPlugin *m_Plugin; | |||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Knob *m_Random; | Fl_Knob *m_Random; | ||||
Fl_Knob *m_Pitch; | Fl_Knob *m_Pitch; | ||||
Fl_Knob *m_GrainStoreSize; | Fl_Knob *m_GrainStoreSize; | ||||
Fl_Knob *m_Density; | Fl_Knob *m_Density; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Random_i(Fl_Knob* o, void* v); | inline void cb_Random_i(Fl_Knob* o, void* v); | ||||
static void cb_Random(Fl_Knob*, void*); | |||||
static void cb_Random(Fl_Knob*, void*); | |||||
inline void cb_Pitch_i(Fl_Knob* o, void* v); | inline void cb_Pitch_i(Fl_Knob* o, void* v); | ||||
static void cb_Pitch(Fl_Knob*, void*); | static void cb_Pitch(Fl_Knob*, void*); | ||||
inline void cb_MinGrainSize_i(Fl_Knob* o, void* v); | inline void cb_MinGrainSize_i(Fl_Knob* o, void* v); | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building MatrixPlugin.so | # Makefile for building MatrixPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: MatrixPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
MatrixPlugin.h \ | MatrixPlugin.h \ | ||||
@@ -54,7 +51,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.cxx \ | ||||
../../Sample.C \ | ../../Sample.C \ | ||||
MatrixPlugin.C \ | MatrixPlugin.C \ | ||||
@@ -63,17 +60,17 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../Widgets/Fl_LED_Button.o \ | ../Widgets/Fl_LED_Button.o \ | ||||
../../Sample.o \ | ../../Sample.o \ | ||||
MatrixPlugin.o \ | MatrixPlugin.o \ | ||||
MatrixPluginGUI.o | MatrixPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = MatrixPlugin.so | TARGET = MatrixPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -100,7 +97,7 @@ TARGET = MatrixPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -115,7 +112,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -133,15 +130,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
@@ -152,15 +149,11 @@ install: | |||||
MatrixPlugin.o: MatrixPlugin.C \ | MatrixPlugin.o: MatrixPlugin.C \ | ||||
MatrixPlugin.h \ | MatrixPlugin.h \ | ||||
MatrixPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
MatrixPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_LED_Button.H \ | |||||
SpiralIcon.xpm \ | SpiralIcon.xpm \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
../../NoteTable.h | ../../NoteTable.h | ||||
@@ -168,12 +161,11 @@ MatrixPlugin.o: MatrixPlugin.C \ | |||||
MatrixPluginGUI.o: MatrixPluginGUI.C \ | MatrixPluginGUI.o: MatrixPluginGUI.C \ | ||||
MatrixPluginGUI.h \ | MatrixPluginGUI.h \ | ||||
MatrixPlugin.h \ | MatrixPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
@@ -17,14 +17,11 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Scroll.H> | #include <FL/Fl_Scroll.H> | ||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include <FL/Fl_Output.H> | #include <FL/Fl_Output.H> | ||||
#include <FL/Fl_Box.H> | #include <FL/Fl_Box.H> | ||||
#include "MatrixPlugin.h" | #include "MatrixPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
@@ -41,7 +41,7 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_SevenSeg.H \ | ../Widgets/Fl_SevenSeg.H \ | ||||
../Widgets/Fl_VU_Meter.h \ | ../Widgets/Fl_VU_Meter.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -50,7 +50,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../Widgets/Fl_SevenSeg.cxx \ | ../Widgets/Fl_SevenSeg.cxx \ | ||||
../Widgets/Fl_VU_Meter.cxx \ | ../Widgets/Fl_VU_Meter.cxx \ | ||||
../../Sample.C \ | ../../Sample.C \ | ||||
@@ -59,7 +59,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../Widgets/Fl_SevenSeg.o \ | ../Widgets/Fl_SevenSeg.o \ | ||||
../Widgets/Fl_VU_Meter.o \ | ../Widgets/Fl_VU_Meter.o \ | ||||
../../Sample.o \ | ../../Sample.o \ | ||||
@@ -130,12 +130,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../Widgets/Fl_VU_Meter.o: ../Widgets/Fl_VU_Meter.cxx \ | ../Widgets/Fl_VU_Meter.o: ../Widgets/Fl_VU_Meter.cxx \ | ||||
../Widgets/Fl_VU_Meter.h | ../Widgets/Fl_VU_Meter.h | ||||
@@ -149,28 +149,23 @@ install: | |||||
MeterPlugin.o: MeterPlugin.C \ | MeterPlugin.o: MeterPlugin.C \ | ||||
MeterPlugin.h \ | MeterPlugin.h \ | ||||
MeterPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
MeterPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_VU_Meter.h \ | |||||
../Widgets/Fl_SevenSeg.H \ | |||||
../SpiralPluginGUI.h \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
MeterPluginGUI.o: MeterPluginGUI.C \ | MeterPluginGUI.o: MeterPluginGUI.C \ | ||||
MeterPluginGUI.h \ | MeterPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_VU_Meter.h \ | |||||
../Widgets/Fl_SevenSeg.H \ | |||||
MeterPlugin.h \ | MeterPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_VU_Meter.h \ | |||||
../Widgets/Fl_SevenSeg.H \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h | |||||
../../Sample.h | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building MidiPlugin.so | # Makefile for building MidiPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: MidiPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../Midi.h \ | ../../Midi.h \ | ||||
MidiPlugin.h \ | MidiPlugin.h \ | ||||
@@ -54,7 +51,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../Midi.C \ | ../../Midi.C \ | ||||
MidiPlugin.C \ | MidiPlugin.C \ | ||||
@@ -63,17 +60,17 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../Midi.o \ | ../../Midi.o \ | ||||
MidiPlugin.o \ | MidiPlugin.o \ | ||||
MidiPluginGUI.o | MidiPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = MidiPlugin.so | TARGET = MidiPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -100,7 +97,7 @@ TARGET = MidiPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -115,7 +112,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -133,15 +130,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -153,30 +150,24 @@ install: | |||||
MidiPlugin.o: MidiPlugin.C \ | MidiPlugin.o: MidiPlugin.C \ | ||||
MidiPlugin.h \ | MidiPlugin.h \ | ||||
MidiPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
MidiPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../NoteTable.h \ | ../../NoteTable.h \ | ||||
../../Midi.h \ | ../../Midi.h \ | ||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
MidiPluginGUI.o: MidiPluginGUI.C \ | MidiPluginGUI.o: MidiPluginGUI.C \ | ||||
MidiPluginGUI.h \ | MidiPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
MidiPlugin.h \ | MidiPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../Widgets/Fl_Knob.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -139,8 +139,8 @@ inline void MidiPluginGUI::cb_ContinuousNotes_i(Fl_Button* o, void* v) | |||||
void MidiPluginGUI::cb_ContinuousNotes(Fl_Button* o, void* v) | void MidiPluginGUI::cb_ContinuousNotes(Fl_Button* o, void* v) | ||||
{ ((MidiPluginGUI*)(o->parent()))->cb_ContinuousNotes_i(o,v);} | { ((MidiPluginGUI*)(o->parent()))->cb_ContinuousNotes_i(o,v);} | ||||
inline void MidiPluginGUI::cb_AddControl_i(Fl_Button* o, void* v) | |||||
{ | |||||
inline void MidiPluginGUI::cb_AddControl_i(Fl_Button* o, void* v) | |||||
{ | |||||
vector<string> List; | vector<string> List; | ||||
List.push_back("0 Bank Select"); | List.push_back("0 Bank Select"); | ||||
@@ -250,19 +250,19 @@ inline void MidiPluginGUI::cb_AddControl_i(Fl_Button* o, void* v) | |||||
List.push_back("104 None"); | List.push_back("104 None"); | ||||
List.push_back("105 None"); | List.push_back("105 None"); | ||||
List.push_back("106 None"); | List.push_back("106 None"); | ||||
List.push_back("107 None"); | |||||
List.push_back("108 None"); | |||||
List.push_back("109 None"); | |||||
List.push_back("110 None"); | |||||
List.push_back("111 None"); | |||||
List.push_back("112 None"); | |||||
List.push_back("113 None"); | |||||
List.push_back("114 None"); | |||||
List.push_back("115 None"); | |||||
List.push_back("116 None"); | |||||
List.push_back("117 None"); | |||||
List.push_back("118 None"); | |||||
List.push_back("119 None"); | |||||
List.push_back("107 None"); | |||||
List.push_back("108 None"); | |||||
List.push_back("109 None"); | |||||
List.push_back("110 None"); | |||||
List.push_back("111 None"); | |||||
List.push_back("112 None"); | |||||
List.push_back("113 None"); | |||||
List.push_back("114 None"); | |||||
List.push_back("115 None"); | |||||
List.push_back("116 None"); | |||||
List.push_back("117 None"); | |||||
List.push_back("118 None"); | |||||
List.push_back("119 None"); | |||||
List.push_back("120 All Sound Off"); | List.push_back("120 All Sound Off"); | ||||
List.push_back("121 All Controllers Off"); | List.push_back("121 All Controllers Off"); | ||||
List.push_back("122 Local Keyboard (on/off)"); | List.push_back("122 Local Keyboard (on/off)"); | ||||
@@ -271,47 +271,51 @@ inline void MidiPluginGUI::cb_AddControl_i(Fl_Button* o, void* v) | |||||
List.push_back("125 Omni Mode On"); | List.push_back("125 Omni Mode On"); | ||||
List.push_back("126 Mono Operation"); | List.push_back("126 Mono Operation"); | ||||
List.push_back("127 Poly Operation"); | List.push_back("127 Poly Operation"); | ||||
int c=OptionsList(List)-1; | int c=OptionsList(List)-1; | ||||
if (c>-1) | |||||
if (c>-1) | |||||
{ | { | ||||
m_GUICH->Set("CC",c); | m_GUICH->Set("CC",c); | ||||
char Temp[256]; | char Temp[256]; | ||||
sprintf(Temp,"%s",List[c].c_str()); | sprintf(Temp,"%s",List[c].c_str()); | ||||
m_GUICH->SetData("Name",Temp); | m_GUICH->SetData("Name",Temp); | ||||
m_GUICH->SetCommand(MidiPlugin::ADDCONTROL); | m_GUICH->SetCommand(MidiPlugin::ADDCONTROL); | ||||
//m_Plugin->AddControl(c,List[c]); | |||||
m_GUICH->Wait (); | |||||
needs_resize (true); | |||||
//m_Plugin->AddControl(c,List[c]); | |||||
} | } | ||||
} | } | ||||
void MidiPluginGUI::cb_AddControl(Fl_Button* o, void* v) | |||||
void MidiPluginGUI::cb_AddControl(Fl_Button* o, void* v) | |||||
{ ((MidiPluginGUI*)(o->parent()))->cb_AddControl_i(o,v);} | { ((MidiPluginGUI*)(o->parent()))->cb_AddControl_i(o,v);} | ||||
inline void MidiPluginGUI::cb_RemoveControl_i(Fl_Button* o, void* v) | |||||
inline void MidiPluginGUI::cb_RemoveControl_i(Fl_Button* o, void* v) | |||||
{ | { | ||||
m_GUICH->SetCommand(MidiPlugin::DELCONTROL); | m_GUICH->SetCommand(MidiPlugin::DELCONTROL); | ||||
m_GUICH->Wait (); | |||||
needs_resize (true); | |||||
} | } | ||||
void MidiPluginGUI::cb_RemoveControl(Fl_Button* o, void* v) | |||||
void MidiPluginGUI::cb_RemoveControl(Fl_Button* o, void* v) | |||||
{ ((MidiPluginGUI*)(o->parent()))->cb_RemoveControl_i(o,v);} | { ((MidiPluginGUI*)(o->parent()))->cb_RemoveControl_i(o,v);} | ||||
const string MidiPluginGUI::GetHelpText(const string &loc){ | const string MidiPluginGUI::GetHelpText(const string &loc){ | ||||
return string("") | return string("") | ||||
+ "A plugin that converts midi signals into SSM's CVs. The midi plugin\n" | |||||
+ "outputs a Frequency CV, which comes from the last note pressed and\n" | |||||
+ "Trigger CV which lets you know the timing and the velocity of the\n" | |||||
+ "A plugin that converts midi signals into SSM's CVs. The midi plugin\n" | |||||
+ "outputs a Frequency CV, which comes from the last note pressed and\n" | |||||
+ "Trigger CV which lets you know the timing and the velocity of the\n" | |||||
+ "event.\n" | + "event.\n" | ||||
+ "It also detects pitchbend, channel pressure and aftertouch information,\n" | |||||
+ "It also detects pitchbend, channel pressure and aftertouch information,\n" | |||||
+ "and outputs these as continuous CV data.\n\n" | + "and outputs these as continuous CV data.\n\n" | ||||
+ "You can select the Midi device used with the selector. Devices 0-16 are\n" | |||||
+ "valid Midi channels. You can run multiple Midi plugins simultaneously\n" | |||||
+ "to get data from different device numbers to make an externally\n" | |||||
+ "You can select the Midi device used with the selector. Devices 0-16 are\n" | |||||
+ "valid Midi channels. You can run multiple Midi plugins simultaneously\n" | |||||
+ "to get data from different device numbers to make an externally\n" | |||||
+ "controlled song.\n\n" | + "controlled song.\n\n" | ||||
+ "The note frequency CV can optionally be switched into \"Note Cut\" mode,\n" | |||||
+ "where the frequecy is set to zero when the key is released. This is\n" | |||||
+ "useful for a number of things, including retriggering samples from\n" | |||||
+ "The note frequency CV can optionally be switched into \"Note Cut\" mode,\n" | |||||
+ "where the frequecy is set to zero when the key is released. This is\n" | |||||
+ "useful for a number of things, including retriggering samples from\n" | |||||
+ "frequency information (see sampler).\n" | + "frequency information (see sampler).\n" | ||||
+ "Extra ports can be added to handle the 128 controller messages. Click\n" | |||||
+ "add control, and you will get a menu window to pick the controller you\n" | |||||
+ "Extra ports can be added to handle the 128 controller messages. Click\n" | |||||
+ "add control, and you will get a menu window to pick the controller you\n" | |||||
+ "need.\n" | + "need.\n" | ||||
+ "The MidiPlugin also supports midi note output to external devices"; | + "The MidiPlugin also supports midi note output to external devices"; | ||||
} | } | ||||
@@ -14,17 +14,11 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Pixmap.H> | |||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include "../Widgets/Fl_Knob.H" | |||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "MidiPlugin.h" | #include "MidiPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
MixSwitchPlugin.h \ | MixSwitchPlugin.h \ | ||||
MixSwitchPluginGUI.h | MixSwitchPluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
MixSwitchPlugin.C \ | MixSwitchPlugin.C \ | ||||
MixSwitchPluginGUI.C | MixSwitchPluginGUI.C | ||||
@@ -58,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
MixSwitchPlugin.o \ | MixSwitchPlugin.o \ | ||||
MixSwitchPluginGUI.o | MixSwitchPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = MixSwitchPlugin.so | TARGET = MixSwitchPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = MixSwitchPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,28 +143,22 @@ install: | |||||
MixSwitchPlugin.o: MixSwitchPlugin.C \ | MixSwitchPlugin.o: MixSwitchPlugin.C \ | ||||
MixSwitchPlugin.h \ | MixSwitchPlugin.h \ | ||||
MixSwitchPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
MixSwitchPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
MixSwitchPluginGUI.o: MixSwitchPluginGUI.C \ | MixSwitchPluginGUI.o: MixSwitchPluginGUI.C \ | ||||
MixSwitchPluginGUI.h \ | MixSwitchPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
MixSwitchPlugin.h \ | MixSwitchPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../Widgets/Fl_Knob.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -57,6 +57,8 @@ inline void MixSwitchPluginGUI::cb_Chans_i (Fl_Counter* o, void* v) { | |||||
else { | else { | ||||
m_GUICH->Set ("Chans", int (o->value ())); | m_GUICH->Set ("Chans", int (o->value ())); | ||||
m_GUICH->SetCommand (MixSwitchPlugin::SETCHANS); | m_GUICH->SetCommand (MixSwitchPlugin::SETCHANS); | ||||
m_GUICH->Wait (); | |||||
needs_resize (true); | |||||
} | } | ||||
} | } | ||||
@@ -17,10 +17,7 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include "MixSwitchPlugin.h" | #include "MixSwitchPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -40,34 +40,34 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../ChannelHandler.h \ | |||||
../Widgets/Fl_LED_Button.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
MixerPlugin.h \ | MixerPlugin.h \ | ||||
MixerPluginGUI.h | MixerPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | |||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../ChannelHandler.C \ | |||||
../Widgets/Fl_LED_Button.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
MixerPlugin.C \ | MixerPlugin.C \ | ||||
MixerPluginGUI.C | MixerPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | |||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../ChannelHandler.o \ | |||||
../Widgets/Fl_LED_Button.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
MixerPlugin.o \ | MixerPlugin.o \ | ||||
MixerPluginGUI.o | MixerPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = MixerPlugin.so | TARGET = MixerPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = MixerPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -126,41 +126,39 @@ install: | |||||
../../Sample.h | ../../Sample.h | ||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h | ../../SpiralInfo.h | ||||
../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | |||||
../Widgets/Fl_LED_Button.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
MixerPlugin.o: MixerPlugin.C \ | MixerPlugin.o: MixerPlugin.C \ | ||||
MixerPlugin.h \ | MixerPlugin.h \ | ||||
MixerPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
MixerPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
MixerPluginGUI.o: MixerPluginGUI.C \ | MixerPluginGUI.o: MixerPluginGUI.C \ | ||||
MixerPluginGUI.h \ | MixerPluginGUI.h \ | ||||
MixerPlugin.h \ | MixerPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -23,25 +23,23 @@ | |||||
#include "SpiralIcon.xpm" | #include "SpiralIcon.xpm" | ||||
extern "C" { | extern "C" { | ||||
SpiralPlugin* SpiralPlugin_CreateInstance() | |||||
{ | |||||
return new MixerPlugin; | |||||
} | |||||
char** SpiralPlugin_GetIcon() | |||||
{ | |||||
return SpiralIcon_xpm; | |||||
} | |||||
SpiralPlugin* SpiralPlugin_CreateInstance() { | |||||
return new MixerPlugin; | |||||
} | |||||
int SpiralPlugin_GetID() | |||||
{ | |||||
return 0x0007; | |||||
} | |||||
char** SpiralPlugin_GetIcon() { | |||||
return SpiralIcon_xpm; | |||||
} | |||||
int SpiralPlugin_GetID() { | |||||
return 0x0007; | |||||
} | |||||
string SpiralPlugin_GetGroupName() { | |||||
return "Amps/Mixers"; | |||||
} | |||||
string SpiralPlugin_GetGroupName() | |||||
{ | |||||
return "Amps/Mixers"; | |||||
} | |||||
} | } | ||||
/////////////////////////////////////////////////////// | /////////////////////////////////////////////////////// | ||||
@@ -50,37 +48,36 @@ MixerPlugin::MixerPlugin() : | |||||
m_NumChannels(0) | m_NumChannels(0) | ||||
{ | { | ||||
m_Version = 2; | m_Version = 2; | ||||
m_PluginInfo.Name="Mixer"; | |||||
m_PluginInfo.Width=80; | |||||
m_PluginInfo.Height=140; | |||||
m_PluginInfo.Name = "Mixer"; | |||||
m_PluginInfo.Width = 80; | |||||
m_PluginInfo.Height = 140; | |||||
m_GUIArgs.Peak = false; | |||||
CreatePorts (); | CreatePorts (); | ||||
for (int n=0; n<MAX_CHANNELS; n++) m_ChannelVal[n]=1.0f; | |||||
m_AudioCH->Register("Value", &m_GUIArgs.Value); | |||||
m_AudioCH->Register("Num", &m_GUIArgs.Num); | |||||
for (int n=0; n<MAX_CHANNELS; n++) m_ChannelVal[n] = 1.0f; | |||||
m_AudioCH->Register ("Value", &m_GUIArgs.Value); | |||||
m_AudioCH->Register ("Num", &m_GUIArgs.Num); | |||||
m_AudioCH->Register ("Peak", &m_GUIArgs.Peak, ChannelHandler::OUTPUT); | |||||
} | } | ||||
MixerPlugin::~MixerPlugin() | |||||
{ | |||||
MixerPlugin::~MixerPlugin() { | |||||
} | } | ||||
PluginInfo &MixerPlugin::Initialise(const HostInfo *Host) | |||||
{ | |||||
return SpiralPlugin::Initialise(Host); | |||||
PluginInfo &MixerPlugin::Initialise (const HostInfo *Host) { | |||||
return SpiralPlugin::Initialise (Host); | |||||
} | } | ||||
SpiralGUIType *MixerPlugin::CreateGUI() | |||||
{ | |||||
return new MixerPluginGUI(m_PluginInfo.Width, | |||||
m_PluginInfo.Height, | |||||
this,m_AudioCH,m_HostInfo); | |||||
SpiralGUIType *MixerPlugin::CreateGUI() { | |||||
return new MixerPluginGUI (m_PluginInfo.Width, m_PluginInfo.Height, this, m_AudioCH, m_HostInfo); | |||||
} | } | ||||
void MixerPlugin::Execute () { | void MixerPlugin::Execute () { | ||||
// Mix the inputs | // Mix the inputs | ||||
for (int n=0; n<m_HostInfo->BUFSIZE; n++) { | for (int n=0; n<m_HostInfo->BUFSIZE; n++) { | ||||
float out = 0.0; | float out = 0.0; | ||||
for (int c=0; c<m_NumChannels; c++) out += (GetInput (c, n) * m_ChannelVal[c]); | |||||
for (int c=0; c<m_NumChannels; c++) | |||||
out += (GetInput (c, n) * m_ChannelVal[c]); | |||||
SetOutput (0, n, out); | SetOutput (0, n, out); | ||||
m_GUIArgs.Peak = (out > 1.0); | |||||
} | } | ||||
} | } | ||||
@@ -88,7 +85,7 @@ void MixerPlugin::ExecuteCommands() { | |||||
if (m_AudioCH->IsCommandWaiting()) { | if (m_AudioCH->IsCommandWaiting()) { | ||||
switch (m_AudioCH->GetCommand()) { | switch (m_AudioCH->GetCommand()) { | ||||
case SETCH: | case SETCH: | ||||
SetChannel (m_GUIArgs.Num, m_GUIArgs.Value); | |||||
m_ChannelVal[m_GUIArgs.Num] = m_GUIArgs.Value; | |||||
break; | break; | ||||
case SETNUM: | case SETNUM: | ||||
SetChannels (m_GUIArgs.Num); | SetChannels (m_GUIArgs.Num); | ||||
@@ -101,8 +98,7 @@ void MixerPlugin::SetChannels (int n) { | |||||
// once to clear the connections with the current info | // once to clear the connections with the current info | ||||
// do we need this???? | // do we need this???? | ||||
UpdatePluginInfoWithHost(); | UpdatePluginInfoWithHost(); | ||||
// Things can get a bit confused deleting and adding inputs | |||||
// so we just chuck away all the ports... | |||||
// Things can get a bit confused deleting and adding inputs so we just chuck away all the ports... | |||||
RemoveAllInputs (); | RemoveAllInputs (); | ||||
RemoveAllOutputs (); | RemoveAllOutputs (); | ||||
m_PluginInfo.NumInputs = 0; | m_PluginInfo.NumInputs = 0; | ||||
@@ -115,6 +111,7 @@ void MixerPlugin::SetChannels (int n) { | |||||
} | } | ||||
void MixerPlugin::CreatePorts (int n, bool AddPorts) { | void MixerPlugin::CreatePorts (int n, bool AddPorts) { | ||||
// default values n = 4 AddPorts = false | |||||
int c; | int c; | ||||
m_PluginInfo.NumInputs = n; | m_PluginInfo.NumInputs = n; | ||||
m_NumChannels = n; | m_NumChannels = n; | ||||
@@ -127,7 +124,7 @@ void MixerPlugin::CreatePorts (int n, bool AddPorts) { | |||||
m_PluginInfo.PortTips.push_back ("Output"); | m_PluginInfo.PortTips.push_back ("Output"); | ||||
if (AddPorts) { | if (AddPorts) { | ||||
for (c=0; c<m_PluginInfo.NumInputs; c++) AddInput(); | for (c=0; c<m_PluginInfo.NumInputs; c++) AddInput(); | ||||
for (c=0; c<m_PluginInfo.NumOutputs; c++) AddOutput(); | |||||
AddOutput(); | |||||
} | } | ||||
} | } | ||||
@@ -17,7 +17,7 @@ | |||||
*/ | */ | ||||
#include "../SpiralPlugin.h" | #include "../SpiralPlugin.h" | ||||
#include <FL/Fl_Pixmap.H> | |||||
//#include <FL/Fl_Pixmap.H> | |||||
#ifndef MixerPLUGIN | #ifndef MixerPLUGIN | ||||
#define MixerPLUGIN | #define MixerPLUGIN | ||||
@@ -40,6 +40,7 @@ class MixerPlugin : public SpiralPlugin { | |||||
struct GUIArgs { | struct GUIArgs { | ||||
int Num; | int Num; | ||||
float Value; | float Value; | ||||
bool Peak; | |||||
}; | }; | ||||
float GetChannel (int n) { return m_ChannelVal[n]; } | float GetChannel (int n) { return m_ChannelVal[n]; } | ||||
int GetChannels (void) { return m_NumChannels; } | int GetChannels (void) { return m_NumChannels; } | ||||
@@ -47,7 +48,6 @@ class MixerPlugin : public SpiralPlugin { | |||||
void CreatePorts (int n = 4, bool AddPorts = false); | void CreatePorts (int n = 4, bool AddPorts = false); | ||||
GUIArgs m_GUIArgs; | GUIArgs m_GUIArgs; | ||||
int m_NumChannels; | int m_NumChannels; | ||||
void SetChannel (int n, float s) { m_ChannelVal[n]=s; } | |||||
void SetChannels (int n); | void SetChannels (int n); | ||||
float m_ChannelVal[MAX_CHANNELS]; | float m_ChannelVal[MAX_CHANNELS]; | ||||
}; | }; | ||||
@@ -22,37 +22,45 @@ | |||||
//////////////////////////////////////////// | //////////////////////////////////////////// | ||||
MixerPluginGUI::MixerPluginGUI(int w, int h,MixerPlugin *o,ChannelHandler *ch,const HostInfo *Info) : | |||||
SpiralPluginGUI(w,h,o,ch) | |||||
MixerPluginGUI::MixerPluginGUI (int w, int h, MixerPlugin *o, ChannelHandler *ch, const HostInfo *Info) : | |||||
SpiralPluginGUI (w, h, o, ch) | |||||
{ | { | ||||
m_GUIColour=(Fl_Color)Info->GUI_COLOUR; | |||||
m_GUIColour = (Fl_Color)Info->GUI_COLOUR; | |||||
for (int n=0; n<MAX_CHANNELS; n++) Numbers[n]=n; | for (int n=0; n<MAX_CHANNELS; n++) Numbers[n]=n; | ||||
m_MainPack = new Fl_Pack(0, 15, w, 100); | |||||
m_MainPack = new Fl_Pack (0, 15, w, 100); | |||||
m_MainPack->type (FL_HORIZONTAL); | m_MainPack->type (FL_HORIZONTAL); | ||||
add (m_MainPack); | add (m_MainPack); | ||||
// start with four... | // start with four... | ||||
AddChan(); AddChan(); AddChan(); AddChan(); | AddChan(); AddChan(); AddChan(); AddChan(); | ||||
m_Buttons = new Fl_Pack (0, 118, 45, 20); | |||||
m_Buttons = new Fl_Pack (0, 118, 62, 20); | |||||
m_Buttons->type (FL_HORIZONTAL); | m_Buttons->type (FL_HORIZONTAL); | ||||
add (m_Buttons); | add (m_Buttons); | ||||
m_Delete = new Fl_Button (2, 0, 20, 20, "-"); | m_Delete = new Fl_Button (2, 0, 20, 20, "-"); | ||||
m_Delete->user_data ((void*)(this)); | |||||
m_Delete->box (FL_PLASTIC_UP_BOX); | m_Delete->box (FL_PLASTIC_UP_BOX); | ||||
m_Delete->color (Info->GUI_COLOUR); | m_Delete->color (Info->GUI_COLOUR); | ||||
m_Delete->selection_color (Info->GUI_COLOUR); | m_Delete->selection_color (Info->GUI_COLOUR); | ||||
m_Delete->callback ((Fl_Callback*)cb_Delete); | m_Delete->callback ((Fl_Callback*)cb_Delete); | ||||
m_Buttons->add (m_Delete); | m_Buttons->add (m_Delete); | ||||
m_Add = new Fl_Button (24, 0, 20, 20, "+"); | |||||
m_Add = new Fl_Button (22, 0, 20, 20, "+"); | |||||
m_Add->user_data ((void*)(this)); | |||||
m_Add->box (FL_PLASTIC_UP_BOX); | m_Add->box (FL_PLASTIC_UP_BOX); | ||||
m_Add->color (Info->GUI_COLOUR); | m_Add->color (Info->GUI_COLOUR); | ||||
m_Add->selection_color (Info->GUI_COLOUR); | m_Add->selection_color (Info->GUI_COLOUR); | ||||
m_Add->callback ((Fl_Callback*)cb_Add); | m_Add->callback ((Fl_Callback*)cb_Add); | ||||
m_Buttons->add (m_Add); | m_Buttons->add (m_Add); | ||||
m_PeakInd = new Fl_LED_Button (42, 0, 20, 20, ""); | |||||
m_Buttons->add (m_PeakInd); | |||||
} | } | ||||
void MixerPluginGUI::AddChan (bool SendData, bool ResizeIt) { | void MixerPluginGUI::AddChan (bool SendData, bool ResizeIt) { | ||||
Fl_Slider *NewSlide = new Fl_Slider (0, 0, 20, 100, ""); | Fl_Slider *NewSlide = new Fl_Slider (0, 0, 20, 100, ""); | ||||
NewSlide->user_data ((void*)(this)); | |||||
NewSlide->type (FL_VERT_NICE_SLIDER); | NewSlide->type (FL_VERT_NICE_SLIDER); | ||||
NewSlide->selection_color (m_GUIColour); | NewSlide->selection_color (m_GUIColour); | ||||
NewSlide->box (FL_PLASTIC_DOWN_BOX); | NewSlide->box (FL_PLASTIC_DOWN_BOX); | ||||
@@ -64,9 +72,7 @@ void MixerPluginGUI::AddChan (bool SendData, bool ResizeIt) { | |||||
NewSlide->callback ((Fl_Callback*)cb_Chan, (void*)&Numbers[num]); | NewSlide->callback ((Fl_Callback*)cb_Chan, (void*)&Numbers[num]); | ||||
m_MainPack->add (NewSlide); | m_MainPack->add (NewSlide); | ||||
m_SlidVec.push_back (NewSlide); | m_SlidVec.push_back (NewSlide); | ||||
if (ResizeIt) resize (x(), y(), w()+20, h()); | |||||
if (SendData) { | if (SendData) { | ||||
if (ResizeIt) redraw (); | |||||
m_GUICH->Set ("Num", ++num); | m_GUICH->Set ("Num", ++num); | ||||
m_GUICH->SetCommand (MixerPlugin::SETNUM); | m_GUICH->SetCommand (MixerPlugin::SETNUM); | ||||
m_GUICH->Wait (); | m_GUICH->Wait (); | ||||
@@ -74,9 +80,13 @@ void MixerPluginGUI::AddChan (bool SendData, bool ResizeIt) { | |||||
m_GUICH->Set ("Value", (float)(2.0f - NewSlide->value ())); | m_GUICH->Set ("Value", (float)(2.0f - NewSlide->value ())); | ||||
m_GUICH->SetCommand(MixerPlugin::SETCH); | m_GUICH->SetCommand(MixerPlugin::SETCH); | ||||
} | } | ||||
if (ResizeIt) { | |||||
m_GUICH->Wait (); | |||||
if (w() < num*20) resize (x(), y(), w()+20, h()); | |||||
} | |||||
} | } | ||||
void MixerPluginGUI::DeleteChan (bool SendData, bool DrawIt) { | |||||
void MixerPluginGUI::DeleteChan (bool SendData) { | |||||
vector<Fl_Slider*>::iterator i = m_SlidVec.end (); | vector<Fl_Slider*>::iterator i = m_SlidVec.end (); | ||||
i--; | i--; | ||||
m_MainPack->remove (*i); | m_MainPack->remove (*i); | ||||
@@ -86,51 +96,68 @@ void MixerPluginGUI::DeleteChan (bool SendData, bool DrawIt) { | |||||
m_GUICH->Set ("Num", (int)m_SlidVec.size()); | m_GUICH->Set ("Num", (int)m_SlidVec.size()); | ||||
m_GUICH->SetCommand (MixerPlugin::SETNUM); | m_GUICH->SetCommand (MixerPlugin::SETNUM); | ||||
} | } | ||||
resize (x(), y(), w()-20, h()); | |||||
if (DrawIt) redraw(); | |||||
if (w() > 60) { | |||||
m_GUICH->Wait (); | |||||
resize (x(), y(), w()-20, h()); | |||||
} | |||||
} | } | ||||
void MixerPluginGUI::UpdateValues(SpiralPlugin *o) { | void MixerPluginGUI::UpdateValues(SpiralPlugin *o) { | ||||
MixerPlugin *Plugin = (MixerPlugin *)o; | MixerPlugin *Plugin = (MixerPlugin *)o; | ||||
unsigned int chans = Plugin->GetChannels(); | unsigned int chans = Plugin->GetChannels(); | ||||
while (chans < m_SlidVec.size()) DeleteChan (false, false); | |||||
while (chans < m_SlidVec.size()) DeleteChan (false); | |||||
while (chans > m_SlidVec.size()) AddChan (false, true); | while (chans > m_SlidVec.size()) AddChan (false, true); | ||||
for (unsigned int n=0; n<chans; n++) | for (unsigned int n=0; n<chans; n++) | ||||
m_SlidVec[n]->value (2.0f - Plugin->GetChannel (n)); | m_SlidVec[n]->value (2.0f - Plugin->GetChannel (n)); | ||||
redraw(); | redraw(); | ||||
} | } | ||||
inline void MixerPluginGUI::cb_Add_i(Fl_Button* o, void* v) { | |||||
void MixerPluginGUI::Update () { | |||||
if (m_GUICH->GetBool ("Peak")) m_PeakInd->value (true); | |||||
} | |||||
inline void MixerPluginGUI::cb_Add_i (Fl_Button* o, void* v) { | |||||
m_PeakInd->value (false); | |||||
if ((int)m_SlidVec.size() < MAX_CHANNELS) AddChan (true, true); | if ((int)m_SlidVec.size() < MAX_CHANNELS) AddChan (true, true); | ||||
} | } | ||||
void MixerPluginGUI::cb_Add(Fl_Button* o, void* v) { | |||||
((MixerPluginGUI*)(o->parent()->parent()))->cb_Add_i(o,v); | |||||
void MixerPluginGUI::cb_Add (Fl_Button* o, void* v) { | |||||
((MixerPluginGUI*)(o->user_data()))->cb_Add_i (o, v); | |||||
} | } | ||||
inline void MixerPluginGUI::cb_Delete_i(Fl_Button* o, void* v) { | |||||
inline void MixerPluginGUI::cb_Delete_i (Fl_Button* o, void* v) { | |||||
m_PeakInd->value (false); | |||||
if (m_SlidVec.size() > 2) DeleteChan (); | if (m_SlidVec.size() > 2) DeleteChan (); | ||||
} | } | ||||
void MixerPluginGUI::cb_Delete(Fl_Button* o, void* v) { | |||||
((MixerPluginGUI*)(o->parent()->parent()))->cb_Delete_i(o,v); | |||||
void MixerPluginGUI::cb_Delete (Fl_Button* o, void* v) { | |||||
((MixerPluginGUI*)(o->user_data()))->cb_Delete_i (o, v); | |||||
} | } | ||||
inline void MixerPluginGUI::cb_Chan_i(Fl_Slider* o, void* v) { | |||||
inline void MixerPluginGUI::cb_Chan_i (Fl_Slider* o, void* v) { | |||||
// This line works fine | |||||
// cerr << *(int*)(v) << endl << (float)(2.0f-o->value()) << endl; | |||||
// The segfault comes when you do any of the following - don't know why | |||||
m_PeakInd->value (false); | |||||
m_GUICH->Set("Num", (*(int*)(v))); | m_GUICH->Set("Num", (*(int*)(v))); | ||||
m_GUICH->Set("Value", (float)(2.0f-o->value())); | m_GUICH->Set("Value", (float)(2.0f-o->value())); | ||||
m_GUICH->SetCommand (MixerPlugin::SETCH); | m_GUICH->SetCommand (MixerPlugin::SETCH); | ||||
} | } | ||||
void MixerPluginGUI::cb_Chan(Fl_Slider* o, void* v) { | void MixerPluginGUI::cb_Chan(Fl_Slider* o, void* v) { | ||||
((MixerPluginGUI*)(o->parent()->parent()))->cb_Chan_i(o,v); | |||||
// If you use user_data() instead of parent()->parent() you get a segfault - don't know why | |||||
((MixerPluginGUI*)(o->parent()->parent()))->cb_Chan_i (o, v); | |||||
} | } | ||||
const string MixerPluginGUI::GetHelpText(const string &loc){ | |||||
// you sometimes get a segfault on exit too - again - don't know why | |||||
const string MixerPluginGUI::GetHelpText (const string &loc){ | |||||
return string("") | return string("") | ||||
+ "A general purpose mixer, not much else to say really.\n" | |||||
+ "A general purpose mixer.\n" | |||||
+ "Useful for mixing CV values as well as mono audio\n" | + "Useful for mixing CV values as well as mono audio\n" | ||||
+ "signals.\n" | + "signals.\n" | ||||
+ "The LED indicates the the mixer output is at peak\n" | |||||
+ "level, click on it, or change levels to reset it.\n" | |||||
+ "Add up to 16 channels using the '+' button.\n" | + "Add up to 16 channels using the '+' button.\n" | ||||
+ "Use the '-' button to remove unwanted channels.\n"; | + "Use the '-' button to remove unwanted channels.\n"; | ||||
} | } |
@@ -16,32 +16,32 @@ | |||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | */ | ||||
#ifndef MixerGUI | |||||
#define MixerGUI | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Pack.H> | #include <FL/Fl_Pack.H> | ||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include "../Widgets/Fl_LED_Button.H" | |||||
#include "MixerPlugin.h" | #include "MixerPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef MixerGUI | |||||
#define MixerGUI | |||||
static int Numbers[MAX_CHANNELS]; | static int Numbers[MAX_CHANNELS]; | ||||
class MixerPluginGUI : public SpiralPluginGUI { | class MixerPluginGUI : public SpiralPluginGUI { | ||||
public: | public: | ||||
MixerPluginGUI(int w, int h, MixerPlugin *o,ChannelHandler *ch,const HostInfo *Info); | |||||
MixerPluginGUI (int w, int h, MixerPlugin *o, ChannelHandler *ch, const HostInfo *Info); | |||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
virtual void Update (); | |||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | const string GetHelpText(const string &loc); | ||||
private: | private: | ||||
void AddChan (bool SendData = false, bool ResizeIt = false); | void AddChan (bool SendData = false, bool ResizeIt = false); | ||||
void DeleteChan (bool SendData = true, bool DrawIt = true); | |||||
void DeleteChan (bool SendData = true); | |||||
vector<Fl_Slider*> m_SlidVec; | vector<Fl_Slider*> m_SlidVec; | ||||
Fl_Pack *m_MainPack, *m_Buttons; | Fl_Pack *m_MainPack, *m_Buttons; | ||||
Fl_Button *m_Add, *m_Delete; | Fl_Button *m_Add, *m_Delete; | ||||
Fl_LED_Button *m_PeakInd; | |||||
Fl_Color m_GUIColour; | Fl_Color m_GUIColour; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Chan_i (Fl_Slider* o, void* v); | inline void cb_Chan_i (Fl_Slider* o, void* v); | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
MoogFilterPlugin.h \ | MoogFilterPlugin.h \ | ||||
MoogFilterPluginGUI.h | MoogFilterPluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
MoogFilterPlugin.C \ | MoogFilterPlugin.C \ | ||||
MoogFilterPluginGUI.C | MoogFilterPluginGUI.C | ||||
@@ -58,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
MoogFilterPlugin.o \ | MoogFilterPlugin.o \ | ||||
MoogFilterPluginGUI.o | MoogFilterPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = MoogFilterPlugin.so | TARGET = MoogFilterPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = MoogFilterPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,25 +143,21 @@ install: | |||||
MoogFilterPlugin.o: MoogFilterPlugin.C \ | MoogFilterPlugin.o: MoogFilterPlugin.C \ | ||||
MoogFilterPlugin.h \ | MoogFilterPlugin.h \ | ||||
MoogFilterPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
MoogFilterPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
MoogFilterPluginGUI.o: MoogFilterPluginGUI.C \ | MoogFilterPluginGUI.o: MoogFilterPluginGUI.C \ | ||||
MoogFilterPluginGUI.h \ | MoogFilterPluginGUI.h \ | ||||
MoogFilterPlugin.h \ | MoogFilterPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -17,40 +17,34 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include "MoogFilterPlugin.h" | #include "MoogFilterPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#ifndef SVFilterGUI | |||||
#define SVFilterGUI | |||||
#ifndef MoogFilterGUI | |||||
#define MoogFilterGUI | |||||
class MoogFilterPluginGUI : public SpiralPluginGUI | class MoogFilterPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
MoogFilterPluginGUI(int w, int h, MoogFilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | MoogFilterPluginGUI(int w, int h, MoogFilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Group *GUIFilterGroup; | |||||
Fl_Slider *Cutoff; | Fl_Slider *Cutoff; | ||||
Fl_Knob *Resonance; | Fl_Knob *Resonance; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Cutoff_i(Fl_Slider* o, void* v); | inline void cb_Cutoff_i(Fl_Slider* o, void* v); | ||||
static void cb_Cutoff(Fl_Slider*, void*); | static void cb_Cutoff(Fl_Slider*, void*); | ||||
inline void cb_Resonance_i(Fl_Knob* o, void* v); | inline void cb_Resonance_i(Fl_Knob* o, void* v); | ||||
static void cb_Resonance(Fl_Knob* o, void* v); | |||||
static void cb_Resonance(Fl_Knob* o, void* v); | |||||
}; | }; | ||||
#endif | #endif |
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
NoisePlugin.h \ | NoisePlugin.h \ | ||||
NoisePluginGUI.h | NoisePluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
NoisePlugin.C \ | NoisePlugin.C \ | ||||
NoisePluginGUI.C | NoisePluginGUI.C | ||||
@@ -58,7 +58,7 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_LED_Button.o \ | ../Widgets/Fl_LED_Button.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
NoisePlugin.o \ | NoisePlugin.o \ | ||||
NoisePluginGUI.o | NoisePluginGUI.o | ||||
@@ -127,7 +127,7 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
@@ -135,8 +135,8 @@ install: | |||||
../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -144,24 +144,20 @@ install: | |||||
NoisePlugin.o: NoisePlugin.C \ | NoisePlugin.o: NoisePlugin.C \ | ||||
NoisePlugin.h \ | NoisePlugin.h \ | ||||
NoisePluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
NoisePluginGUI.h \ | |||||
../Widgets/Fl_LED_Button.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
NoisePluginGUI.o: NoisePluginGUI.C \ | NoisePluginGUI.o: NoisePluginGUI.C \ | ||||
NoisePluginGUI.h \ | NoisePluginGUI.h \ | ||||
../Widgets/Fl_LED_Button.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
NoisePlugin.h \ | NoisePlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
@@ -16,8 +16,7 @@ | |||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | */ | ||||
#include <FL/Fl_Box.H> | |||||
#include <FL/Fl.H> | |||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_LED_Button.H" | #include "../Widgets/Fl_LED_Button.H" | ||||
#include "NoisePlugin.h" | #include "NoisePlugin.h" | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building NoteSnapPlugin.so | # Makefile for building NoteSnapPlugin.so | ||||
# Generated by tmake at 21:08, 2001/11/12 | |||||
# Project: NoteSnapPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -44,33 +41,30 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
NoteSnapPlugin.h \ | NoteSnapPlugin.h \ | ||||
NoteSnapPluginGUI.h | NoteSnapPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
NoteSnapPlugin.C \ | NoteSnapPlugin.C \ | ||||
NoteSnapPluginGUI.C | NoteSnapPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
NoteSnapPlugin.o \ | NoteSnapPlugin.o \ | ||||
NoteSnapPluginGUI.o | NoteSnapPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = NoteSnapPlugin.so | TARGET = NoteSnapPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +91,7 @@ TARGET = NoteSnapPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -132,15 +126,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -149,16 +140,17 @@ install: | |||||
NoteSnapPlugin.o: NoteSnapPlugin.C \ | NoteSnapPlugin.o: NoteSnapPlugin.C \ | ||||
NoteSnapPlugin.h \ | NoteSnapPlugin.h \ | ||||
NoteSnapPluginGUI.h \ | NoteSnapPluginGUI.h \ | ||||
../../NoteTable.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../NoteTable.h \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
NoteSnapPluginGUI.o: NoteSnapPluginGUI.C \ | NoteSnapPluginGUI.o: NoteSnapPluginGUI.C \ | ||||
NoteSnapPlugin.h \ | NoteSnapPlugin.h \ | ||||
NoteSnapPluginGUI.h \ | NoteSnapPluginGUI.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h | |||||
../SpiralPluginGUI.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,15 +14,10 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
//#include "../Widgets/Fl_Knob.H" | |||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "NoteSnapPlugin.h" | #include "NoteSnapPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building OperatorPlugin.so | # Makefile for building OperatorPlugin.so | ||||
# Generated by tmake at 21:08, 2001/11/12 | |||||
# Project: OperatorPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -44,33 +41,30 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
OperatorPlugin.h \ | OperatorPlugin.h \ | ||||
OperatorPluginGUI.h | OperatorPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
OperatorPlugin.C \ | OperatorPlugin.C \ | ||||
OperatorPluginGUI.C | OperatorPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
OperatorPlugin.o \ | OperatorPlugin.o \ | ||||
OperatorPluginGUI.o | OperatorPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = OperatorPlugin.so | TARGET = OperatorPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -97,7 +91,7 @@ TARGET = OperatorPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -123,15 +117,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -149,7 +140,8 @@ OperatorPluginGUI.o: OperatorPluginGUI.C \ | |||||
OperatorPlugin.h \ | OperatorPlugin.h \ | ||||
OperatorPluginGUI.h \ | OperatorPluginGUI.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h | |||||
../SpiralPluginGUI.h \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -19,7 +19,6 @@ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "OperatorPlugin.h" | #include "OperatorPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -41,7 +41,7 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../GUI/WS_Square.h \ | ../GUI/WS_Square.h \ | ||||
../GUI/WS_Noise.h \ | ../GUI/WS_Noise.h \ | ||||
@@ -54,7 +54,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
OscillatorPlugin.C \ | OscillatorPlugin.C \ | ||||
@@ -62,7 +62,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../Widgets/Fl_LED_Button.o \ | ../Widgets/Fl_LED_Button.o \ | ||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
@@ -133,7 +133,7 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
@@ -143,8 +143,8 @@ install: | |||||
../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -163,7 +163,7 @@ OscillatorPluginGUI.o: OscillatorPluginGUI.C \ | |||||
OscillatorPluginGUI.h \ | OscillatorPluginGUI.h \ | ||||
OscillatorPlugin.h \ | OscillatorPlugin.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
../GUI/WS_Square.h \ | ../GUI/WS_Square.h \ | ||||
../GUI/WS_Noise.h \ | ../GUI/WS_Noise.h \ | ||||
@@ -21,7 +21,6 @@ | |||||
#include <FL/Fl_Pixmap.H> | #include <FL/Fl_Pixmap.H> | ||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include <FL/Fl_Box.H> | |||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include <FL/Fl_Tabs.h> | #include <FL/Fl_Tabs.h> | ||||
#include <FL/Fl_Group.h> | #include <FL/Fl_Group.h> | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building OutputPlugin.so | # Makefile for building OutputPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: OutputPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
OutputPlugin.h \ | OutputPlugin.h \ | ||||
@@ -54,7 +51,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../RiffWav.C \ | ../../RiffWav.C \ | ||||
OutputPlugin.C \ | OutputPlugin.C \ | ||||
@@ -63,17 +60,17 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../RiffWav.o \ | ../../RiffWav.o \ | ||||
OutputPlugin.o \ | OutputPlugin.o \ | ||||
OutputPluginGUI.o | OutputPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = OutputPlugin.so | TARGET = OutputPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -100,7 +97,7 @@ TARGET = OutputPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -115,7 +112,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -133,15 +130,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -154,30 +151,24 @@ install: | |||||
OutputPlugin.o: OutputPlugin.C \ | OutputPlugin.o: OutputPlugin.C \ | ||||
OutputPlugin.h \ | OutputPlugin.h \ | ||||
OutputPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
OutputPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
OutputPluginGUI.o: OutputPluginGUI.C \ | OutputPluginGUI.o: OutputPluginGUI.C \ | ||||
OutputPluginGUI.h \ | OutputPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
OutputPlugin.h \ | OutputPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../Widgets/Fl_Knob.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -17,18 +17,13 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Pixmap.H> | |||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "OutputPlugin.h" | #include "OutputPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef SCOPEGUI | |||||
#define SCOPEGUI | |||||
#ifndef OUTPUT_GUI_H | |||||
#define OUTPUT_GUI_H | |||||
class OutputPluginGUI : public SpiralPluginGUI | class OutputPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
@@ -42,10 +37,7 @@ protected: | |||||
const string GetHelpText(const string &loc); | const string GetHelpText(const string &loc); | ||||
private: | private: | ||||
Fl_Group *GUIMixGroup; | |||||
Fl_Knob *Volume; | Fl_Knob *Volume; | ||||
Fl_Button *OpenRead; | Fl_Button *OpenRead; | ||||
Fl_Button *OpenWrite; | Fl_Button *OpenWrite; | ||||
Fl_Button *OpenDuplex; | Fl_Button *OpenDuplex; | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
PoshSamplerPlugin.h \ | PoshSamplerPlugin.h \ | ||||
@@ -51,7 +51,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../RiffWav.C \ | ../../RiffWav.C \ | ||||
PoshSamplerPlugin.C \ | PoshSamplerPlugin.C \ | ||||
@@ -60,7 +60,7 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../RiffWav.o \ | ../../RiffWav.o \ | ||||
PoshSamplerPlugin.o \ | PoshSamplerPlugin.o \ | ||||
@@ -130,15 +130,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -151,13 +151,11 @@ install: | |||||
PoshSamplerPlugin.o: PoshSamplerPlugin.C \ | PoshSamplerPlugin.o: PoshSamplerPlugin.C \ | ||||
PoshSamplerPlugin.h \ | PoshSamplerPlugin.h \ | ||||
PoshSamplerPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
PoshSamplerPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm \ | SpiralIcon.xpm \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
../../NoteTable.h | ../../NoteTable.h | ||||
@@ -166,10 +164,10 @@ PoshSamplerPluginGUI.o: PoshSamplerPluginGUI.C \ | |||||
PoshSamplerPluginGUI.h \ | PoshSamplerPluginGUI.h \ | ||||
PoshSamplerPlugin.h \ | PoshSamplerPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -14,19 +14,17 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include "PoshSamplerPlugin.h" | #include "PoshSamplerPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#ifndef MixerGUI | |||||
#define MixerGUI | |||||
#ifndef POSH_SAMP_GUI_H | |||||
#define POSH_SAMP_GUI_H | |||||
class Fl_WaveDisplay : public Fl_Widget | class Fl_WaveDisplay : public Fl_Widget | ||||
{ | { | ||||
@@ -65,7 +63,7 @@ class Fl_WaveDisplay : public Fl_Widget | |||||
long m_ViewStart; | long m_ViewStart; | ||||
long m_ViewEnd; | long m_ViewEnd; | ||||
long m_PlayPos; | long m_PlayPos; | ||||
long m_PlayStart; | long m_PlayStart; | ||||
long m_LoopStart; | long m_LoopStart; | ||||
long m_LoopEnd; | long m_LoopEnd; | ||||
@@ -77,16 +75,16 @@ class PoshSamplerPluginGUI : public SpiralPluginGUI | |||||
{ | { | ||||
public: | public: | ||||
PoshSamplerPluginGUI(int w, int h, PoshSamplerPlugin *o,ChannelHandler *ch, const HostInfo *Info); | PoshSamplerPluginGUI(int w, int h, PoshSamplerPlugin *o,ChannelHandler *ch, const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
virtual void Update(); | virtual void Update(); | ||||
void SetPlayPos(long s) { m_Display->SetPlayPos(s); } | void SetPlayPos(long s) { m_Display->SetPlayPos(s); } | ||||
int GetCurrentSample() { return (int)m_SampleNum->value(); } | int GetCurrentSample() { return (int)m_SampleNum->value(); } | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
void UpdateSampleDisplay(int num); | void UpdateSampleDisplay(int num); | ||||
@@ -94,7 +92,7 @@ private: | |||||
char m_TextBuf[256]; | char m_TextBuf[256]; | ||||
int Numbers[NUM_SAMPLES]; | int Numbers[NUM_SAMPLES]; | ||||
bool m_UpdateMe; | bool m_UpdateMe; | ||||
Fl_Button* m_Load; | Fl_Button* m_Load; | ||||
Fl_Button* m_Save; | Fl_Button* m_Save; | ||||
Fl_Button* m_PosMarker; | Fl_Button* m_PosMarker; | ||||
@@ -109,7 +107,7 @@ private: | |||||
Fl_Counter* m_SampleNum; | Fl_Counter* m_SampleNum; | ||||
Fl_Button* m_ZoomIn; | Fl_Button* m_ZoomIn; | ||||
Fl_Button* m_ZoomOut; | Fl_Button* m_ZoomOut; | ||||
Fl_Button* m_Cut; | Fl_Button* m_Cut; | ||||
Fl_Button* m_Copy; | Fl_Button* m_Copy; | ||||
Fl_Button* m_Paste; | Fl_Button* m_Paste; | ||||
@@ -117,28 +115,28 @@ private: | |||||
Fl_Button* m_Crop; | Fl_Button* m_Crop; | ||||
Fl_Button* m_Reverse; | Fl_Button* m_Reverse; | ||||
Fl_Button* m_Amp; | Fl_Button* m_Amp; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Load_i(Fl_Button* o, void* v); | inline void cb_Load_i(Fl_Button* o, void* v); | ||||
static void cb_Load(Fl_Button* o, void* v); | |||||
static void cb_Load(Fl_Button* o, void* v); | |||||
inline void cb_Save_i(Fl_Button* o, void* v); | inline void cb_Save_i(Fl_Button* o, void* v); | ||||
static void cb_Save(Fl_Button* o, void* v); | |||||
static void cb_Save(Fl_Button* o, void* v); | |||||
inline void cb_PosMarker_i(Fl_Button* o, void* v); | inline void cb_PosMarker_i(Fl_Button* o, void* v); | ||||
static void cb_PosMarker(Fl_Button* o, void* v); | |||||
static void cb_PosMarker(Fl_Button* o, void* v); | |||||
inline void cb_Record_i(Fl_Button* o, void* v); | inline void cb_Record_i(Fl_Button* o, void* v); | ||||
static void cb_Record(Fl_Button* o, void* v); | |||||
static void cb_Record(Fl_Button* o, void* v); | |||||
inline void cb_Volume_i(Fl_Knob* o, void* v); | inline void cb_Volume_i(Fl_Knob* o, void* v); | ||||
static void cb_Volume(Fl_Knob* o, void* v); | |||||
static void cb_Volume(Fl_Knob* o, void* v); | |||||
inline void cb_Pitch_i(Fl_Knob* o, void* v); | inline void cb_Pitch_i(Fl_Knob* o, void* v); | ||||
static void cb_Pitch(Fl_Knob* o, void* v); | |||||
static void cb_Pitch(Fl_Knob* o, void* v); | |||||
inline void cb_Octave_i(Fl_Knob* o, void* v); | inline void cb_Octave_i(Fl_Knob* o, void* v); | ||||
static void cb_Octave(Fl_Knob* o, void* v); | |||||
static void cb_Octave(Fl_Knob* o, void* v); | |||||
inline void cb_Loop_i(Fl_Button* o, void* v); | inline void cb_Loop_i(Fl_Button* o, void* v); | ||||
static void cb_Loop(Fl_Button* o, void* v); | |||||
static void cb_Loop(Fl_Button* o, void* v); | |||||
inline void cb_PingPong_i(Fl_Button* o, void* v); | inline void cb_PingPong_i(Fl_Button* o, void* v); | ||||
static void cb_PingPong(Fl_Button* o, void* v); | |||||
static void cb_PingPong(Fl_Button* o, void* v); | |||||
inline void cb_Note_i(Fl_Counter* o, void* v); | inline void cb_Note_i(Fl_Counter* o, void* v); | ||||
static void cb_Note(Fl_Counter* o, void* v); | |||||
static void cb_Note(Fl_Counter* o, void* v); | |||||
inline void cb_SampleNum_i(Fl_Counter* o, void* v); | inline void cb_SampleNum_i(Fl_Counter* o, void* v); | ||||
static void cb_SampleNum(Fl_Counter* o, void* v); | static void cb_SampleNum(Fl_Counter* o, void* v); | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
RingModPlugin.h \ | RingModPlugin.h \ | ||||
RingModPluginGUI.h | RingModPluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
RingModPlugin.C \ | RingModPlugin.C \ | ||||
RingModPluginGUI.C | RingModPluginGUI.C | ||||
@@ -58,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
RingModPlugin.o \ | RingModPlugin.o \ | ||||
RingModPluginGUI.o | RingModPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = RingModPlugin.so | TARGET = RingModPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = RingModPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,25 +143,21 @@ install: | |||||
RingModPlugin.o: RingModPlugin.C \ | RingModPlugin.o: RingModPlugin.C \ | ||||
RingModPlugin.h \ | RingModPlugin.h \ | ||||
RingModPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
RingModPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
RingModPluginGUI.o: RingModPluginGUI.C \ | RingModPluginGUI.o: RingModPluginGUI.C \ | ||||
RingModPluginGUI.h \ | RingModPluginGUI.h \ | ||||
RingModPlugin.h \ | RingModPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -17,10 +17,6 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Slider.H> | |||||
#include "RingModPlugin.h" | #include "RingModPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
@@ -33,18 +29,16 @@ class RingModPluginGUI : public SpiralPluginGUI | |||||
{ | { | ||||
public: | public: | ||||
RingModPluginGUI(int w, int h, RingModPlugin *o,ChannelHandler *ch,const HostInfo *Info); | RingModPluginGUI(int w, int h, RingModPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Group *GUIFilterGroup; | |||||
Fl_Knob *m_Amount; | Fl_Knob *m_Amount; | ||||
//// Callbacks //// | |||||
//// Callbacks //// | |||||
inline void cb_Amount_i(Fl_Knob* o, void* v); | inline void cb_Amount_i(Fl_Knob* o, void* v); | ||||
static void cb_Amount(Fl_Knob*, void*); | static void cb_Amount(Fl_Knob*, void*); | ||||
}; | }; | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
SVFilterPlugin.h \ | SVFilterPlugin.h \ | ||||
SVFilterPluginGUI.h | SVFilterPluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
SVFilterPlugin.C \ | SVFilterPlugin.C \ | ||||
SVFilterPluginGUI.C | SVFilterPluginGUI.C | ||||
@@ -58,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
SVFilterPlugin.o \ | SVFilterPlugin.o \ | ||||
SVFilterPluginGUI.o | SVFilterPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = SVFilterPlugin.so | TARGET = SVFilterPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = SVFilterPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,23 +143,21 @@ install: | |||||
SVFilterPlugin.o: SVFilterPlugin.C \ | SVFilterPlugin.o: SVFilterPlugin.C \ | ||||
SVFilterPlugin.h \ | SVFilterPlugin.h \ | ||||
SVFilterPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
SVFilterPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
SVFilterPluginGUI.o: SVFilterPluginGUI.C \ | SVFilterPluginGUI.o: SVFilterPluginGUI.C \ | ||||
SVFilterPluginGUI.h \ | SVFilterPluginGUI.h \ | ||||
SVFilterPlugin.h \ | SVFilterPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -17,10 +17,7 @@ | |||||
*/ | */ | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Slider.H> | #include <FL/Fl_Slider.H> | ||||
#include "SVFilterPlugin.h" | #include "SVFilterPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
@@ -28,29 +25,26 @@ | |||||
#ifndef SVFilterGUI | #ifndef SVFilterGUI | ||||
#define SVFilterGUI | #define SVFilterGUI | ||||
class SVFilterPluginGUI : public SpiralPluginGUI | class SVFilterPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
SVFilterPluginGUI(int w, int h, SVFilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | SVFilterPluginGUI(int w, int h, SVFilterPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
Fl_Group *GUIFilterGroup; | |||||
Fl_Slider *Cutoff; | Fl_Slider *Cutoff; | ||||
Fl_Knob *Resonance; | Fl_Knob *Resonance; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Cutoff_i(Fl_Slider* o, void* v); | inline void cb_Cutoff_i(Fl_Slider* o, void* v); | ||||
static void cb_Cutoff(Fl_Slider*, void*); | static void cb_Cutoff(Fl_Slider*, void*); | ||||
inline void cb_Resonance_i(Fl_Knob* o, void* v); | inline void cb_Resonance_i(Fl_Knob* o, void* v); | ||||
static void cb_Resonance(Fl_Knob* o, void* v); | |||||
static void cb_Resonance(Fl_Knob* o, void* v); | |||||
}; | }; | ||||
#endif | #endif |
@@ -1,9 +1,5 @@ | |||||
# Generated automatically from Makefile.in by configure. | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building SampleHoldPlugin.so | # Makefile for building SampleHoldPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: SampleHoldPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,33 +41,30 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
SampleHoldPlugin.h \ | SampleHoldPlugin.h \ | ||||
SampleHoldPluginGUI.h | SampleHoldPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
SampleHoldPlugin.C \ | SampleHoldPlugin.C \ | ||||
SampleHoldPluginGUI.C | SampleHoldPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
SampleHoldPlugin.o \ | SampleHoldPlugin.o \ | ||||
SampleHoldPluginGUI.o | SampleHoldPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = SampleHoldPlugin.so | TARGET = SampleHoldPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -98,7 +91,7 @@ TARGET = SampleHoldPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -113,7 +106,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -131,15 +124,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -147,28 +137,21 @@ install: | |||||
SampleHoldPlugin.o: SampleHoldPlugin.C \ | SampleHoldPlugin.o: SampleHoldPlugin.C \ | ||||
SampleHoldPlugin.h \ | SampleHoldPlugin.h \ | ||||
SampleHoldPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | |||||
SampleHoldPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
SampleHoldPluginGUI.o: SampleHoldPluginGUI.C \ | SampleHoldPluginGUI.o: SampleHoldPluginGUI.C \ | ||||
SampleHoldPluginGUI.h \ | SampleHoldPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SampleHoldPlugin.h \ | SampleHoldPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,31 +14,24 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include "../Widgets/Fl_Knob.H" | |||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "SampleHoldPlugin.h" | #include "SampleHoldPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef SampleHoldGUI | #ifndef SampleHoldGUI | ||||
#define SampleHoldGUI | #define SampleHoldGUI | ||||
class SampleHoldPluginGUI : public SpiralPluginGUI | class SampleHoldPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
SampleHoldPluginGUI(int w, int h, SampleHoldPlugin *o,ChannelHandler *ch,const HostInfo *Info); | SampleHoldPluginGUI(int w, int h, SampleHoldPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building SamplerPlugin.so | # Makefile for building SamplerPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: SamplerPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
SamplerPlugin.h \ | SamplerPlugin.h \ | ||||
@@ -54,7 +51,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../../RiffWav.C \ | ../../RiffWav.C \ | ||||
SamplerPlugin.C \ | SamplerPlugin.C \ | ||||
@@ -63,17 +60,17 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../RiffWav.o \ | ../../RiffWav.o \ | ||||
SamplerPlugin.o \ | SamplerPlugin.o \ | ||||
SamplerPluginGUI.o | SamplerPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = SamplerPlugin.so | TARGET = SamplerPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -100,7 +97,7 @@ TARGET = SamplerPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -115,7 +112,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -133,15 +130,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -160,8 +157,6 @@ SamplerPlugin.o: SamplerPlugin.C \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
SamplerPluginGUI.h \ | SamplerPluginGUI.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm \ | SpiralIcon.xpm \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
../../NoteTable.h | ../../NoteTable.h | ||||
@@ -174,7 +169,7 @@ SamplerPluginGUI.o: SamplerPluginGUI.C \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
ScopePlugin.h \ | ScopePlugin.h \ | ||||
ScopePluginGUI.h | ScopePluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
ScopePlugin.C \ | ScopePlugin.C \ | ||||
ScopePluginGUI.C | ScopePluginGUI.C | ||||
@@ -58,16 +58,16 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
ScopePlugin.o \ | ScopePlugin.o \ | ||||
ScopePluginGUI.o | ScopePluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = ScopePlugin.so | TARGET = ScopePlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +94,7 @@ TARGET = ScopePlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,28 +143,22 @@ install: | |||||
ScopePlugin.o: ScopePlugin.C \ | ScopePlugin.o: ScopePlugin.C \ | ||||
ScopePlugin.h \ | ScopePlugin.h \ | ||||
ScopePluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
ScopePluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
ScopePluginGUI.o: ScopePluginGUI.C \ | ScopePluginGUI.o: ScopePluginGUI.C \ | ||||
ScopePluginGUI.h \ | ScopePluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
ScopePlugin.h \ | ScopePlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../Widgets/Fl_Knob.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,15 +14,11 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "ScopePlugin.h" | #include "ScopePlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building SeqPlugin.so | # Makefile for building SeqPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: SeqPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_EventMap.h \ | ../Widgets/Fl_EventMap.h \ | ||||
../Widgets/Fl_SEvent.h \ | ../Widgets/Fl_SEvent.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -56,7 +53,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../Widgets/Fl_EventMap.C \ | ../Widgets/Fl_EventMap.C \ | ||||
../Widgets/Fl_SEvent.C \ | ../Widgets/Fl_SEvent.C \ | ||||
../../Sample.C \ | ../../Sample.C \ | ||||
@@ -67,19 +64,19 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../ChannelHandler.o \ | ../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../Widgets/Fl_EventMap.o \ | ../Widgets/Fl_EventMap.o \ | ||||
../Widgets/Fl_SEvent.o \ | ../Widgets/Fl_SEvent.o \ | ||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../RiffWav.o \ | ../../RiffWav.o \ | ||||
SeqPlugin.o \ | SeqPlugin.o \ | ||||
SeqPluginGUI.o | SeqPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = SeqPlugin.so | TARGET = SeqPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -106,7 +103,7 @@ TARGET = SeqPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -121,7 +118,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -139,15 +136,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../Widgets/Fl_EventMap.o: ../Widgets/Fl_EventMap.C \ | ../Widgets/Fl_EventMap.o: ../Widgets/Fl_EventMap.C \ | ||||
../Widgets/Fl_EventMap.h \ | ../Widgets/Fl_EventMap.h \ | ||||
@@ -168,16 +165,11 @@ install: | |||||
SeqPlugin.o: SeqPlugin.C \ | SeqPlugin.o: SeqPlugin.C \ | ||||
SeqPlugin.h \ | SeqPlugin.h \ | ||||
SeqPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | |||||
../Widgets/Fl_EventMap.h \ | |||||
../Widgets/Fl_SEvent.h \ | |||||
SeqPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm \ | SpiralIcon.xpm \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
../../NoteTable.h | ../../NoteTable.h | ||||
@@ -186,13 +178,12 @@ SeqPluginGUI.o: SeqPluginGUI.C \ | |||||
SeqPluginGUI.h \ | SeqPluginGUI.h \ | ||||
SeqPlugin.h \ | SeqPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../Widgets/Fl_EventMap.h \ | ../Widgets/Fl_EventMap.h \ | ||||
../Widgets/Fl_SEvent.h \ | ../Widgets/Fl_SEvent.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building SeqSelectorPlugin.so | # Makefile for building SeqSelectorPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: SeqSelectorPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -44,8 +41,7 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../Widgets/Fl_LED_Button.H \ | ../Widgets/Fl_LED_Button.H \ | ||||
SeqSelectorPlugin.h \ | SeqSelectorPlugin.h \ | ||||
@@ -53,8 +49,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.cxx \ | ||||
SeqSelectorPlugin.C \ | SeqSelectorPlugin.C \ | ||||
@@ -62,18 +57,17 @@ SOURCES = ../SpiralPlugin.C \ | |||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
../Widgets/Fl_LED_Button.o \ | ../Widgets/Fl_LED_Button.o \ | ||||
SeqSelectorPlugin.o \ | SeqSelectorPlugin.o \ | ||||
SeqSelectorPluginGUI.o | SeqSelectorPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = SeqSelectorPlugin.so | TARGET = SeqSelectorPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -100,7 +94,7 @@ TARGET = SeqSelectorPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -115,7 +109,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -133,46 +127,39 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h | ../../SpiralInfo.h | ||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ../Widgets/Fl_LED_Button.o: ../Widgets/Fl_LED_Button.cxx \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
SeqSelectorPlugin.o: SeqSelectorPlugin.C \ | SeqSelectorPlugin.o: SeqSelectorPlugin.C \ | ||||
SeqSelectorPlugin.h \ | SeqSelectorPlugin.h \ | ||||
SeqSelectorPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../NoteTable.h \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
SeqSelectorPluginGUI.h \ | |||||
../Widgets/Fl_LED_Button.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm \ | |||||
../../NoteTable.h | |||||
SpiralIcon.xpm | |||||
SeqSelectorPluginGUI.o: SeqSelectorPluginGUI.C \ | SeqSelectorPluginGUI.o: SeqSelectorPluginGUI.C \ | ||||
SeqSelectorPluginGUI.h \ | SeqSelectorPluginGUI.h \ | ||||
../Widgets/Fl_LED_Button.H \ | |||||
SeqSelectorPlugin.h \ | SeqSelectorPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../Widgets/Fl_LED_Button.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -20,6 +20,7 @@ | |||||
#include "SeqSelectorPluginGUI.h" | #include "SeqSelectorPluginGUI.h" | ||||
#include <FL/fl_draw.h> | #include <FL/fl_draw.h> | ||||
#include <FL/fl_draw.H> | #include <FL/fl_draw.H> | ||||
#include <FL/Fl_Box.H> | |||||
//////////////////////////////////////////// | //////////////////////////////////////////// | ||||
@@ -18,21 +18,16 @@ | |||||
#include "list" | #include "list" | ||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Slider.H> | |||||
#include <FL/Fl_Counter.H> | #include <FL/Fl_Counter.H> | ||||
#include <FL/Fl_Scroll.H> | #include <FL/Fl_Scroll.H> | ||||
#include <FL/Fl_Button.H> | #include <FL/Fl_Button.H> | ||||
#include <FL/Fl_Box.H> | |||||
#include <FL/Fl_Pack.H> | #include <FL/Fl_Pack.H> | ||||
#include "../Widgets/Fl_LED_Button.H" | #include "../Widgets/Fl_LED_Button.H" | ||||
#include "SeqSelectorPlugin.h" | #include "SeqSelectorPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef MixerGUI | |||||
#define MixerGUI | |||||
#ifndef SEQ_SEL_GUI_H | |||||
#define SEQ_SEL_GUI_H | |||||
class CountLine : public Fl_Group | class CountLine : public Fl_Group | ||||
{ | { | ||||
@@ -1,8 +1,5 @@ | |||||
############################################################################# | ############################################################################# | ||||
# Makefile for building SequencerPlugin.so | # Makefile for building SequencerPlugin.so | ||||
# Generated by tmake at 22:13, 2001/09/17 | |||||
# Project: SequencerPlugin | |||||
# Template: app | |||||
############################################################################# | ############################################################################# | ||||
####### Compiler, tools and options | ####### Compiler, tools and options | ||||
@@ -45,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_EventMap.h \ | ../Widgets/Fl_EventMap.h \ | ||||
../Widgets/Fl_SEvent.h \ | ../Widgets/Fl_SEvent.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -56,7 +53,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../Widgets/Fl_EventMap.C \ | ../Widgets/Fl_EventMap.C \ | ||||
../Widgets/Fl_SEvent.C \ | ../Widgets/Fl_SEvent.C \ | ||||
../../Sample.C \ | ../../Sample.C \ | ||||
@@ -67,19 +64,19 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../Widgets/Fl_EventMap.o \ | ../Widgets/Fl_EventMap.o \ | ||||
../Widgets/Fl_SEvent.o \ | ../Widgets/Fl_SEvent.o \ | ||||
../../Sample.o \ | ../../Sample.o \ | ||||
../../RiffWav.o \ | ../../RiffWav.o \ | ||||
SequencerPlugin.o \ | SequencerPlugin.o \ | ||||
SequencerPluginGUI.o | SequencerPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = SequencerPlugin.so | TARGET = SequencerPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -106,7 +103,7 @@ TARGET = SequencerPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -121,7 +118,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -139,15 +136,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../Widgets/Fl_EventMap.o: ../Widgets/Fl_EventMap.C \ | ../Widgets/Fl_EventMap.o: ../Widgets/Fl_EventMap.C \ | ||||
../Widgets/Fl_EventMap.h \ | ../Widgets/Fl_EventMap.h \ | ||||
@@ -168,31 +165,25 @@ install: | |||||
SequencerPlugin.o: SequencerPlugin.C \ | SequencerPlugin.o: SequencerPlugin.C \ | ||||
SequencerPlugin.h \ | SequencerPlugin.h \ | ||||
SequencerPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../Widgets/Fl_EventMap.h \ | |||||
../Widgets/Fl_SEvent.h \ | |||||
SequencerPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../Widgets/Fl_Knob.H \ | |||||
SpiralIcon.xpm \ | |||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
../../NoteTable.h | |||||
../../NoteTable.h \ | |||||
SpiralIcon.xpm | |||||
SequencerPluginGUI.o: SequencerPluginGUI.C \ | SequencerPluginGUI.o: SequencerPluginGUI.C \ | ||||
SequencerPluginGUI.h \ | SequencerPluginGUI.h \ | ||||
SequencerPlugin.h \ | SequencerPlugin.h \ | ||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../Widgets/Fl_EventMap.h \ | ../Widgets/Fl_EventMap.h \ | ||||
../Widgets/Fl_SEvent.h \ | ../Widgets/Fl_SEvent.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
@@ -42,7 +42,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
SmoothPlugin.h \ | SmoothPlugin.h \ | ||||
SmoothPluginGUI.h | SmoothPluginGUI.h | ||||
@@ -50,7 +50,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
SmoothPlugin.C \ | SmoothPlugin.C \ | ||||
SmoothPluginGUI.C | SmoothPluginGUI.C | ||||
@@ -58,15 +58,15 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
SmoothPlugin.o \ | SmoothPlugin.o \ | ||||
SmoothPluginGUI.o | SmoothPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | DIST = | ||||
TARGET = SmoothPlugin.so | TARGET = SmoothPlugin.so | ||||
@@ -127,15 +127,15 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,26 +143,22 @@ install: | |||||
SmoothPlugin.o: SmoothPlugin.C \ | SmoothPlugin.o: SmoothPlugin.C \ | ||||
SmoothPlugin.h \ | SmoothPlugin.h \ | ||||
SmoothPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
SmoothPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
SmoothPluginGUI.o: SmoothPluginGUI.C \ | SmoothPluginGUI.o: SmoothPluginGUI.C \ | ||||
SmoothPluginGUI.h \ | SmoothPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SmoothPlugin.h \ | SmoothPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | |||||
../SpiralPluginGUI.h | |||||
../Widgets/Fl_Knob.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -14,31 +14,25 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Window.H> | |||||
#include <FL/Fl_Group.H> | |||||
#include <FL/Fl_Button.H> | |||||
#include "../Widgets/Fl_Knob.H" | #include "../Widgets/Fl_Knob.H" | ||||
#include "../Widgets/Fl_DragBar.H" | |||||
#include "SmoothPlugin.h" | #include "SmoothPlugin.h" | ||||
#include "../SpiralPluginGUI.h" | #include "../SpiralPluginGUI.h" | ||||
#ifndef SmoothGUI | #ifndef SmoothGUI | ||||
#define SmoothGUI | #define SmoothGUI | ||||
class SmoothPluginGUI : public SpiralPluginGUI | class SmoothPluginGUI : public SpiralPluginGUI | ||||
{ | { | ||||
public: | public: | ||||
SmoothPluginGUI(int w, int h, SmoothPlugin *o,ChannelHandler *ch,const HostInfo *Info); | SmoothPluginGUI(int w, int h, SmoothPlugin *o,ChannelHandler *ch,const HostInfo *Info); | ||||
virtual void UpdateValues(SpiralPlugin *o); | virtual void UpdateValues(SpiralPlugin *o); | ||||
protected: | protected: | ||||
const string GetHelpText(const string &loc); | |||||
const string GetHelpText(const string &loc); | |||||
private: | private: | ||||
@@ -47,9 +41,9 @@ private: | |||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Up_i(Fl_Knob* o, void* v); | inline void cb_Up_i(Fl_Knob* o, void* v); | ||||
static void cb_Up(Fl_Knob* o, void* v); | |||||
static void cb_Up(Fl_Knob* o, void* v); | |||||
inline void cb_Down_i(Fl_Knob* o, void* v); | inline void cb_Down_i(Fl_Knob* o, void* v); | ||||
static void cb_Down(Fl_Knob* o, void* v); | |||||
static void cb_Down(Fl_Knob* o, void* v); | |||||
}; | }; | ||||
#endif | #endif |
@@ -47,7 +47,7 @@ HEADERS = ../SpiralPlugin.h \ | |||||
Fl_Trigger.h \ | Fl_Trigger.h \ | ||||
SpiralLoopPlugin.h \ | SpiralLoopPlugin.h \ | ||||
SpiralLoopPluginGUI.h \ | SpiralLoopPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
../Widgets/Fl_LED_Button.H | ../Widgets/Fl_LED_Button.H | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
@@ -59,7 +59,7 @@ SOURCES = ../SpiralPlugin.C \ | |||||
Fl_Trigger.C \ | Fl_Trigger.C \ | ||||
SpiralLoopPlugin.C \ | SpiralLoopPlugin.C \ | ||||
SpiralLoopPluginGUI.C \ | SpiralLoopPluginGUI.C \ | ||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.cxx \ | ||||
../Widgets/Fl_LED_Button.cxx | ../Widgets/Fl_LED_Button.cxx | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
@@ -71,7 +71,7 @@ OBJECTS = ../SpiralPlugin.o \ | |||||
Fl_Trigger.o \ | Fl_Trigger.o \ | ||||
SpiralLoopPlugin.o \ | SpiralLoopPlugin.o \ | ||||
SpiralLoopPluginGUI.o \ | SpiralLoopPluginGUI.o \ | ||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../Widgets/Fl_Knob.o \ | ../Widgets/Fl_Knob.o \ | ||||
../Widgets/Fl_LED_Button.o | ../Widgets/Fl_LED_Button.o | ||||
INTERFACES = | INTERFACES = | ||||
@@ -138,12 +138,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -154,7 +154,6 @@ install: | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
../../SpiralInfo.h | ../../SpiralInfo.h | ||||
#GUI/Widgets/Fl_Loop.o: GUI/Widgets/Fl_Loop.C \ | #GUI/Widgets/Fl_Loop.o: GUI/Widgets/Fl_Loop.C \ | ||||
# GUI/Widgets/Fl_Loop.h | # GUI/Widgets/Fl_Loop.h | ||||
@@ -177,7 +176,7 @@ SpiralLoopPlugin.o: SpiralLoopPlugin.C \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
SpiralLoopPluginGUI.h \ | SpiralLoopPluginGUI.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H \ | ../Widgets/Fl_Knob.H \ | ||||
SpiralIcon.xpm \ | SpiralIcon.xpm \ | ||||
../../RiffWav.h \ | ../../RiffWav.h \ | ||||
@@ -195,7 +194,7 @@ SpiralLoopPluginGUI.o: SpiralLoopPluginGUI.C \ | |||||
Fl_Trigger.h \ | Fl_Trigger.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../Widgets/Fl_Knob.H | ../Widgets/Fl_Knob.H | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | ||||
@@ -16,6 +16,9 @@ | |||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | */ | ||||
#ifndef SPIRALPLUGIN | |||||
#define SPIRALPLUGIN | |||||
#include <vector> | #include <vector> | ||||
#include <map> | #include <map> | ||||
#include <string> | #include <string> | ||||
@@ -25,11 +28,7 @@ | |||||
#include <FL/Fl_Group.h> | #include <FL/Fl_Group.h> | ||||
#include "../Sample.h" | #include "../Sample.h" | ||||
#include "../ChannelHandler.h" | #include "../ChannelHandler.h" | ||||
#ifndef SPIRALPLUGIN | |||||
#define SPIRALPLUGIN | |||||
#define SpiralGUIType Fl_Group | |||||
#include "../../GUI/Widgets/SpiralGUI.H" | |||||
static const float MAX_FREQ = 13000; | static const float MAX_FREQ = 13000; | ||||
@@ -73,16 +72,16 @@ class SpiralPlugin | |||||
public: | public: | ||||
SpiralPlugin(); | SpiralPlugin(); | ||||
virtual ~SpiralPlugin(); | virtual ~SpiralPlugin(); | ||||
virtual PluginInfo& Initialise(const HostInfo *Host); | virtual PluginInfo& Initialise(const HostInfo *Host); | ||||
// execute the audio | // execute the audio | ||||
virtual void Execute()=0; | virtual void Execute()=0; | ||||
// run the commands from the GUI | // run the commands from the GUI | ||||
virtual void ExecuteCommands() {} | virtual void ExecuteCommands() {} | ||||
// create the GUI, do not store the pointer - it wont be threadsafe to use it | // create the GUI, do not store the pointer - it wont be threadsafe to use it | ||||
virtual SpiralGUIType* CreateGUI()=0; | virtual SpiralGUIType* CreateGUI()=0; | ||||
// stream the plugins state | // stream the plugins state | ||||
virtual void StreamOut(ostream &s)=0; | virtual void StreamOut(ostream &s)=0; | ||||
virtual void StreamIn(istream &s)=0; | virtual void StreamIn(istream &s)=0; | ||||
@@ -30,22 +30,22 @@ SpiralPluginGUI* SpiralPluginGUI::Help_owner=NULL; | |||||
SpiralPluginGUI::SpiralPluginGUI(int w, int h, SpiralPlugin* o, ChannelHandler *ch) : | SpiralPluginGUI::SpiralPluginGUI(int w, int h, SpiralPlugin* o, ChannelHandler *ch) : | ||||
SpiralGUIType(0,0,w,h,"") | SpiralGUIType(0,0,w,h,"") | ||||
{ | |||||
{ | |||||
Fl::visible_focus(false); | Fl::visible_focus(false); | ||||
m_GUICH = ch; | m_GUICH = ch; | ||||
box(FL_NO_BOX); | box(FL_NO_BOX); | ||||
m_Hide = new Fl_Button(2,2,10,10,"X"); | m_Hide = new Fl_Button(2,2,10,10,"X"); | ||||
m_Hide->labeltype(FL_ENGRAVED_LABEL); | m_Hide->labeltype(FL_ENGRAVED_LABEL); | ||||
m_Hide->labelsize(10); | |||||
m_Hide->labelsize(10); | |||||
m_Hide->box(FL_NO_BOX); | m_Hide->box(FL_NO_BOX); | ||||
m_Hide->callback((Fl_Callback*)cb_Hide); | m_Hide->callback((Fl_Callback*)cb_Hide); | ||||
add(m_Hide); | add(m_Hide); | ||||
m_Help = new Fl_Button(w-11,2,10,10,"?"); | m_Help = new Fl_Button(w-11,2,10,10,"?"); | ||||
m_Help->labeltype(FL_ENGRAVED_LABEL); | m_Help->labeltype(FL_ENGRAVED_LABEL); | ||||
m_Help->labelsize(10); | |||||
m_Help->labelsize(10); | |||||
m_Help->box(FL_NO_BOX); | m_Help->box(FL_NO_BOX); | ||||
m_Help->down_box(FL_NO_BOX); | m_Help->down_box(FL_NO_BOX); | ||||
m_Help->callback((Fl_Callback*)cb_Help); | m_Help->callback((Fl_Callback*)cb_Help); | ||||
@@ -58,6 +58,11 @@ SpiralPluginGUI::~SpiralPluginGUI() | |||||
Fl::check(); | Fl::check(); | ||||
} | } | ||||
void SpiralPluginGUI::resize (int x, int y, int w, int h) { | |||||
if (w != this->w() || h != this->h()) needs_resize (true); | |||||
SpiralGUIType::resize (x, y, w, h); | |||||
} | |||||
void SpiralPluginGUI::Update() | void SpiralPluginGUI::Update() | ||||
{ | { | ||||
} | } | ||||
@@ -69,22 +74,22 @@ const string SpiralPluginGUI::GetHelpText(const string &loc) | |||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void SpiralPluginGUI::cb_Hide_i(Fl_Button* o, void* v) | |||||
inline void SpiralPluginGUI::cb_Hide_i(Fl_Button* o, void* v) | |||||
{ hide(); } | { hide(); } | ||||
void SpiralPluginGUI::cb_Hide(Fl_Button* o, void* v) | |||||
void SpiralPluginGUI::cb_Hide(Fl_Button* o, void* v) | |||||
{ ((SpiralPluginGUI*)(o->parent()))->cb_Hide_i(o,v); } | { ((SpiralPluginGUI*)(o->parent()))->cb_Hide_i(o,v); } | ||||
// Boo - changed to use one 'global' help win. for all plugins, coz Fl_Text_Display | |||||
// Boo - changed to use one 'global' help win. for all plugins, coz Fl_Text_Display | |||||
// seems to be too buggy to create and destroy it multiple times. | // seems to be too buggy to create and destroy it multiple times. | ||||
// (symptom was - ssm crashes after opening/closing plugin help window 4-7 times) | // (symptom was - ssm crashes after opening/closing plugin help window 4-7 times) | ||||
// (i use FLTK 1.1.0 rc7) | // (i use FLTK 1.1.0 rc7) | ||||
inline void SpiralPluginGUI::cb_Help_i(Fl_Button* o, void* v) | |||||
{ | |||||
inline void SpiralPluginGUI::cb_Help_i(Fl_Button* o, void* v) | |||||
{ | |||||
//Boo - create 'global' help window | //Boo - create 'global' help window | ||||
if (m_HelpWin==NULL) | if (m_HelpWin==NULL) | ||||
{ | { | ||||
int h_w=450,h_h=200; | int h_w=450,h_h=200; | ||||
m_HelpWin = new Fl_Double_Window(h_w,h_h,"Help"); | m_HelpWin = new Fl_Double_Window(h_w,h_h,"Help"); | ||||
m_HelpWin_text = new Fl_Text_Display(0,0,h_w,h_h); | m_HelpWin_text = new Fl_Text_Display(0,0,h_w,h_h); | ||||
@@ -14,7 +14,10 @@ | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software | ||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||||
*/ | |||||
*/ | |||||
#ifndef SPIRALPLUGINGUI | |||||
#define SPIRALPLUGINGUI | |||||
#include <FL/Fl.H> | #include <FL/Fl.H> | ||||
#include <FL/Fl_Double_Window.H> | #include <FL/Fl_Double_Window.H> | ||||
@@ -22,32 +25,26 @@ | |||||
#include <FL/Fl_Text_Display.H> | #include <FL/Fl_Text_Display.H> | ||||
#include <iostream> | #include <iostream> | ||||
#include <math.h> | #include <math.h> | ||||
#include "Widgets/Fl_DragBar.H" | |||||
#include "SpiralPlugin.h" // for the channel handler | #include "SpiralPlugin.h" // for the channel handler | ||||
#include "../../GUI/Widgets/SpiralGUI.H" | |||||
#ifndef SPIRALPLUGINGUI | |||||
#define SPIRALPLUGINGUI | |||||
#define SpiralGUIType Fl_Group | |||||
class SpiralPluginGUI : public SpiralGUIType | class SpiralPluginGUI : public SpiralGUIType | ||||
{ | { | ||||
public: | public: | ||||
SpiralPluginGUI(int w, int h, SpiralPlugin* o, ChannelHandler *ch); | SpiralPluginGUI(int w, int h, SpiralPlugin* o, ChannelHandler *ch); | ||||
~SpiralPluginGUI(); | ~SpiralPluginGUI(); | ||||
virtual void resize (int x, int y, int w, int h); | |||||
virtual void Update(); | virtual void Update(); | ||||
// called while audio thread is suspended, so direct access to the | |||||
// called while audio thread is suspended, so direct access to the | |||||
// spiralplugin is acceptable | // spiralplugin is acceptable | ||||
virtual void UpdateValues(SpiralPlugin *o)=0; | virtual void UpdateValues(SpiralPlugin *o)=0; | ||||
protected: | protected: | ||||
ChannelHandler *m_GUICH; | ChannelHandler *m_GUICH; | ||||
virtual const string GetHelpText(const string &loc); | virtual const string GetHelpText(const string &loc); | ||||
private: | private: | ||||
Fl_Button* m_Hide; | Fl_Button* m_Hide; | ||||
Fl_Button* m_Help; | Fl_Button* m_Help; | ||||
@@ -55,9 +52,9 @@ private: | |||||
static Fl_Double_Window* m_HelpWin; | static Fl_Double_Window* m_HelpWin; | ||||
static Fl_Text_Display* m_HelpWin_text; | static Fl_Text_Display* m_HelpWin_text; | ||||
static SpiralPluginGUI* Help_owner; | static SpiralPluginGUI* Help_owner; | ||||
string m_Title; | string m_Title; | ||||
//// Callbacks //// | //// Callbacks //// | ||||
inline void cb_Hide_i(Fl_Button* o, void* v); | inline void cb_Hide_i(Fl_Button* o, void* v); | ||||
static void cb_Hide(Fl_Button*, void*); | static void cb_Hide(Fl_Button*, void*); | ||||
@@ -41,33 +41,30 @@ mandir = @mandir@ | |||||
HEADERS = ../SpiralPlugin.h \ | HEADERS = ../SpiralPlugin.h \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../../ChannelHandler.h \ | ../../ChannelHandler.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../../Sample.h \ | ../../Sample.h \ | ||||
SplitSwitchPlugin.h \ | SplitSwitchPlugin.h \ | ||||
SplitSwitchPluginGUI.h | SplitSwitchPluginGUI.h | ||||
SOURCES = ../SpiralPlugin.C \ | SOURCES = ../SpiralPlugin.C \ | ||||
../SpiralPluginGUI.C \ | ../SpiralPluginGUI.C \ | ||||
../../ChannelHandler.C \ | ../../ChannelHandler.C \ | ||||
../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_DragBar.cxx \ | |||||
../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../Sample.C \ | ../../Sample.C \ | ||||
SplitSwitchPlugin.C \ | SplitSwitchPlugin.C \ | ||||
SplitSwitchPluginGUI.C | SplitSwitchPluginGUI.C | ||||
OBJECTS = ../SpiralPlugin.o \ | OBJECTS = ../SpiralPlugin.o \ | ||||
../SpiralPluginGUI.o \ | ../SpiralPluginGUI.o \ | ||||
../../ChannelHandler.o \ | ../../ChannelHandler.o \ | ||||
../Widgets/Fl_Knob.o \ | |||||
../Widgets/Fl_DragBar.o \ | |||||
../../../GUI/Widgets/SpiralGUI.o \ | |||||
../../Sample.o \ | ../../Sample.o \ | ||||
SplitSwitchPlugin.o \ | SplitSwitchPlugin.o \ | ||||
SplitSwitchPluginGUI.o | SplitSwitchPluginGUI.o | ||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
INTERFACES = | |||||
UICDECLS = | |||||
UICIMPLS = | |||||
SRCMOC = | |||||
OBJMOC = | |||||
DIST = | |||||
TARGET = SplitSwitchPlugin.so | TARGET = SplitSwitchPlugin.so | ||||
####### Implicit rules | ####### Implicit rules | ||||
@@ -94,7 +91,7 @@ TARGET = SplitSwitchPlugin.so | |||||
all: $(TARGET) | all: $(TARGET) | ||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | |||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||||
moc: $(SRCMOC) | moc: $(SRCMOC) | ||||
@@ -109,7 +106,7 @@ dist: | |||||
clean: | clean: | ||||
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) | ||||
-rm -f *~ core | -rm -f *~ core | ||||
install: | install: | ||||
$(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | $(INSTALL) $(TARGET) $(libdir)/SpiralPlugins | ||||
@@ -127,15 +124,12 @@ install: | |||||
../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ../SpiralPluginGUI.o: ../SpiralPluginGUI.C \ | ||||
../SpiralPluginGUI.h \ | ../SpiralPluginGUI.h \ | ||||
../Widgets/Fl_DragBar.H \ | |||||
../../../GUI/Widgets/SpiralGUI.H \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h | ../../Sample.h | ||||
../Widgets/Fl_Knob.o: ../Widgets/Fl_Knob.cxx \ | |||||
../Widgets/Fl_Knob.H | |||||
../Widgets/Fl_DragBar.o: ../Widgets/Fl_DragBar.cxx \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.o: ../../../GUI/Widgets/SpiralGUI.C \ | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../Sample.o: ../../Sample.C \ | ../../Sample.o: ../../Sample.C \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
@@ -143,28 +137,21 @@ install: | |||||
SplitSwitchPlugin.o: SplitSwitchPlugin.C \ | SplitSwitchPlugin.o: SplitSwitchPlugin.C \ | ||||
SplitSwitchPlugin.h \ | SplitSwitchPlugin.h \ | ||||
SplitSwitchPluginGUI.h \ | |||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
SplitSwitchPluginGUI.h \ | |||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SpiralIcon.xpm | SpiralIcon.xpm | ||||
SplitSwitchPluginGUI.o: SplitSwitchPluginGUI.C \ | SplitSwitchPluginGUI.o: SplitSwitchPluginGUI.C \ | ||||
SplitSwitchPluginGUI.h \ | SplitSwitchPluginGUI.h \ | ||||
../Widgets/Fl_Knob.H \ | |||||
../Widgets/Fl_DragBar.H \ | |||||
SplitSwitchPlugin.h \ | SplitSwitchPlugin.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../SpiralPlugin.h \ | ../SpiralPlugin.h \ | ||||
../../Sample.h \ | |||||
../../SpiralInfo.h \ | ../../SpiralInfo.h \ | ||||
../../Sample.h \ | ../../Sample.h \ | ||||
../SpiralPluginGUI.h \ | |||||
../Widgets/Fl_DragBar.H | |||||
../../../GUI/Widgets/SpiralGUI.H | |||||
../../ChannelHandler.o: ../../ChannelHandler.C \ | ../../ChannelHandler.o: ../../ChannelHandler.C \ | ||||
../../ChannelHandler.h | ../../ChannelHandler.h |
@@ -55,6 +55,8 @@ inline void SplitSwitchPluginGUI::cb_Chans_i (Fl_Counter* o, void* v) { | |||||
else { | else { | ||||
m_GUICH->Set ("Chans", int (o->value ())); | m_GUICH->Set ("Chans", int (o->value ())); | ||||
m_GUICH->SetCommand (SplitSwitchPlugin::SETCHANS); | m_GUICH->SetCommand (SplitSwitchPlugin::SETCHANS); | ||||
m_GUICH->Wait (); | |||||
needs_resize (true); | |||||
} | } | ||||
} | } | ||||