zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit ae8af8ba22774bfe03256cd1ff6ff162cba6f07b
parent f42ccc3b7242908a376e9d079c7bab90c991e901
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Mon, 14 Dec 2009 19:48:33 -0500

Nio: UI reorganization

Diffstat:
Msrc/UI/NioUI.cpp | 32++++++++++++++++++++------------
1 file changed, 20 insertions(+), 12 deletions(-)

diff --git a/src/UI/NioUI.cpp b/src/UI/NioUI.cpp @@ -10,13 +10,11 @@ class Pack : public Fl_Pack Pack(int x, int y, int w, int h); private: Fl_Light_Button b1,b2,b3; + static void nioTogglei(Fl_Widget *wid, void *name); }; Pack::Pack(int x, int y, int w, int h) :Fl_Pack(x,y,w,h), - //b1(x+10,y+5,x+100,y+25,"A"), - //b2(x+10,y+30,x+100,y+25,"B"), - //b3(x+10,y+60,x+000,y+25,"C") b1(0,0,100,25,"Null I/O"), b2(0,0,100,25,"ALSA I/O"), b3(0,0,100,25,"OSS I/O") @@ -26,16 +24,26 @@ Pack::Pack(int x, int y, int w, int h) b3.selection_color(fl_rgb_color(0,255,0)); } +class NioUI : public Fl_Window +{ + public: + NioUI() + :Fl_Window(200,100,400,400,"New IO Controls"), + foo(20,50,100,25) + { + Fl::scheme("plastic"); + resizable(this); + size_range(400,300); + show(); + } + private: + Pack foo; +}; + + + int main() { - Fl::scheme("plastic"); - Fl_Window win(200,100,400,400,"New IO Controls"); - win.resizable(&win); - win.size_range(400,300); -// Fl_Light_Button button(10, 5, 100, 25, "NullEngine"); -// button.color(fl_rgb_color(255,0,0),fl_rgb_color(0,255,0));//) -// Fl_Button buta(10,50,100,25,"Enable"); - Pack foo(20,50,100,25); - win.show(); + NioUI myUI; return Fl::run(); }