2 * Copyleft (C) 2002 David Griffiths <dave@pawfal.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #ifndef SETTINGSWINDOW
20 #define SETTINGSWINDOW
23 #include <FL/Fl_Double_Window.H>
24 #include <FL/Fl_Button.H>
25 #include <FL/Fl_Pack.H>
26 #include <FL/Fl_Int_Input.H>
27 #include <FL/Fl_Input.H>
29 #include "SpiralSynthModular.h"
33 class SettingsWindow
: public Fl_Double_Window
39 void RegisterApp(SynthModular
*s
) { m_App
=s
; }
45 Fl_Int_Input
*m_BufferSize
;
46 Fl_Int_Input
*m_FragmentSize
;
47 Fl_Int_Input
*m_FragmentCount
;
48 Fl_Int_Input
*m_Samplerate
;
49 Fl_Input
*m_OutputDevice
;
50 Fl_Input
*m_MidiDevice
;
54 inline void cb_Apply_i(Fl_Button
* o
, void* v
);
55 static void cb_Apply(Fl_Button
* o
, void* v
);
56 inline void cb_Save_i(Fl_Button
* o
, void* v
);
57 static void cb_Save(Fl_Button
* o
, void* v
);