| 
							- /*  SpiralPlugin
 -  *  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 <FL/Fl.H>
 - #include <FL/Fl_Window.H>
 - #include <FL/Fl_Group.H>
 - #include <FL/Fl_Counter.H>
 - #include <FL/Fl_Slider.H>
 - #include <FL/Fl_Output.H>
 - #include <FL/Fl_Repeat_Button.H>
 - 
 - #include "StreamPlugin.h"
 - #include "../SpiralPluginGUI.h"
 - #include "../Widgets/Fl_Knob.H"
 - #include "../Widgets/Fl_SevenSeg.H"
 - 
 - #ifndef MixerGUI
 - #define MixerGUI
 - 
 - 
 - class StreamPluginGUI : public SpiralPluginGUI
 - {
 - public:
 - 	StreamPluginGUI(int w, int h, StreamPlugin *o,const HostInfo *Info);
 - 	
 - 	virtual void UpdateValues();
 - 	virtual SpiralPlugin* GetPlugin() { return m_Plugin; }
 - 	void    SetTime(float t);
 - 	void    SetMaxTime(float t) { m_Pos->maximum(t); }
 - 
 - 	StreamPlugin *m_Plugin;	
 - private:
 - 	
 - 	Fl_Button* m_Load;
 - 	Fl_Knob* m_Volume;
 - 	Fl_Slider* m_Pitch;
 - 	Fl_Button* m_Loop;
 - 	
 - 	Fl_Button* m_ToStart;
 - 	Fl_Button* m_Stop;
 - 	Fl_Button* m_Play;
 - 	Fl_Button* m_Reset;
 - 	Fl_Button* m_Div;
 - 	Fl_Repeat_Button* m_Nudge;
 - 	Fl_Output* m_Pout;
 - 	
 - 	Fl_SevenSeg* m_Display[6];
 - 	
 - 	Fl_Slider* m_Pos;
 - 	
 - 	//// Callbacks ////
 - 	inline void cb_Load_i(Fl_Button* o, void* v);
 - 	static void cb_Load(Fl_Button* o, void* v); 
 - 	inline void cb_Volume_i(Fl_Knob* o, void* v);
 - 	static void cb_Volume(Fl_Knob* o, void* v); 
 - 	inline void cb_Pitch_i(Fl_Slider* o, void* v);
 - 	static void cb_Pitch(Fl_Slider* o, void* v); 
 - 	inline void cb_Loop_i(Fl_Button* o, void* v);
 - 	static void cb_Loop(Fl_Button* o, void* v); 
 - 	inline void cb_Div_i(Fl_Button* o, void* v);
 - 	static void cb_Div(Fl_Button* o, void* v); 
 - 
 - 	inline void cb_ToStart_i(Fl_Button* o, void* v);
 - 	static void cb_ToStart(Fl_Button* o, void* v);
 - 	inline void cb_Stop_i(Fl_Button* o, void* v);
 - 	static void cb_Stop(Fl_Button* o, void* v); 
 - 	inline void cb_Play_i(Fl_Button* o, void* v);
 - 	static void cb_Play(Fl_Button* o, void* v); 
 - 	inline void cb_Reset_i(Fl_Button* o, void* v);
 - 	static void cb_Reset(Fl_Button* o, void* v); 
 - 	inline void cb_Nudge_i(Fl_Button* o, void* v);
 - 	static void cb_Nudge(Fl_Button* o, void* v); 
 - 
 - 	inline void cb_Pos_i(Fl_Slider* o, void* v);
 - 	static void cb_Pos(Fl_Slider* o, void* v); 
 - 
 - };
 - 
 - #endif
 
 
  |