Fix scope error with newer GCC.
[spiralsynthmodular.git] / SettingsWindow.h
blob6e19fbd1dd1346541862607e22bcef3d37517672
1 /* SpiralSynthModular
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.
17 */
19 #ifndef SETTINGSWINDOW
20 #define SETTINGSWINDOW
22 #include <FL/Fl.H>
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"
31 class SynthModular;
33 class SettingsWindow : public Fl_Double_Window
35 public:
36 SettingsWindow();
37 ~SettingsWindow();
39 void RegisterApp(SynthModular *s) { m_App=s; }
41 private:
42 SynthModular *m_App;
44 Fl_Pack *m_Options;
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;
51 Fl_Button *m_Save;
52 Fl_Button *m_Apply;
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);
60 #endif