diff --git a/test/adjuster.cxx b/test/adjuster.cxx index cd995a9fd..d6203a678 100644 --- a/test/adjuster.cxx +++ b/test/adjuster.cxx @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include @@ -39,7 +39,7 @@ void adjcb(Fl_Widget *o, void *v) { } int main(int argc, char ** argv) { - Fl_Window window(320,100,argv[0]); + Fl_Double_Window window(320,100,argv[0]); char buf1[100]; Fl_Box b1(FL_DOWN_BOX,20,30,80,25,buf1); diff --git a/test/ask.cxx b/test/ask.cxx index 86373a2fa..07bca9a5c 100644 --- a/test/ask.cxx +++ b/test/ask.cxx @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include @@ -77,7 +77,7 @@ int main(int argc, char **argv) { // the question dialog several times and make sure it doesn't crash. // fc: added more fl_ask common dialogs for test cases purposes. - Fl_Window window(200, 105); + Fl_Double_Window window(200, 105); Fl_Return_Button b(20, 10, 160, 35, buffer); b.callback(rename_me); Fl_Button b2(20, 50, 160, 35, buffer2); b2.callback(rename_me_pwd); window.end(); diff --git a/test/bitmap.cxx b/test/bitmap.cxx index f93d131cd..dbdc30eb6 100644 --- a/test/bitmap.cxx +++ b/test/bitmap.cxx @@ -26,7 +26,7 @@ // #include -#include +#include #include #include #include @@ -102,7 +102,7 @@ static uchar sorceress_bits[] = { Fl_Toggle_Button *leftb,*rightb,*topb,*bottomb,*insideb,*overb,*inactb; Fl_Button *b; -Fl_Window *w; +Fl_Double_Window *w; void button_cb(Fl_Widget *,void *) { int i = 0; @@ -119,7 +119,7 @@ void button_cb(Fl_Widget *,void *) { } int main(int argc, char **argv) { - w = new Fl_Window(400,400); + w = new Fl_Double_Window(400,400); b = new Fl_Button(140,160,120,120,"Bitmap"); b->image(new Fl_Bitmap(sorceress_bits,sorceress_width,sorceress_height)); leftb = new Fl_Toggle_Button(25,50,50,25,"left"); diff --git a/test/boxtype.cxx b/test/boxtype.cxx index 4bc47b146..4341284c5 100644 --- a/test/boxtype.cxx +++ b/test/boxtype.cxx @@ -36,7 +36,7 @@ int N = 0; #define H 50 #define ROWS 14 -Fl_Window *window; +Fl_Double_Window *window; void bt(const char *name, Fl_Boxtype type, int square=0) { int x = N%4; diff --git a/test/browser.cxx b/test/browser.cxx index 77da66cde..064260d5e 100644 --- a/test/browser.cxx +++ b/test/browser.cxx @@ -126,7 +126,7 @@ int main(int argc, char **argv) { int i; if (!Fl::args(argc,argv,i)) Fl::fatal(Fl::help); const char* fname = (i < argc) ? argv[i] : "browser.cxx"; - Fl_Window window(480,400,fname); + Fl_Double_Window window(480,400,fname); browser = new Fl_Select_Browser(0,0,480,350,0); browser->type(FL_MULTI_BROWSER); //browser->type(FL_HOLD_BROWSER); diff --git a/test/clock.cxx b/test/clock.cxx index 29317e064..0e9604db3 100644 --- a/test/clock.cxx +++ b/test/clock.cxx @@ -26,16 +26,16 @@ // #include -#include +#include #include #include int main(int argc, char **argv) { - Fl_Window window(220,220,"Fl_Clock"); + Fl_Double_Window window(220,220,"Fl_Clock"); Fl_Clock c1(0,0,220,220); // c1.color(2,1); window.resizable(c1); window.end(); - Fl_Window window2(220,220,"Fl_Round_Clock"); + Fl_Double_Window window2(220,220,"Fl_Round_Clock"); Fl_Round_Clock c2(0,0,220,220); // c2.color(3,4); window2.resizable(c2); window2.end(); diff --git a/test/cursor.cxx b/test/cursor.cxx index f236dc212..e06f2554f 100644 --- a/test/cursor.cxx +++ b/test/cursor.cxx @@ -26,7 +26,7 @@ // #include -#include +#include #include #include #include @@ -100,7 +100,7 @@ public: }; int main(int argc, char **argv) { - Fl_Window window(400,300); + Fl_Double_Window window(400,300); Fl_Choice choice(80,100,200,25,"Cursor:"); choice.menu(choices); diff --git a/test/demo.cxx b/test/demo.cxx index e2e3a721b..d380567f7 100644 --- a/test/demo.cxx +++ b/test/demo.cxx @@ -40,7 +40,7 @@ # include #endif #include -#include +#include #include #include #include @@ -56,12 +56,12 @@ void doscheme(Fl_Choice *c, void *) { Fl::scheme(c->text(c->value())); } -Fl_Window *form; +Fl_Double_Window *form; Fl_Button *but[9]; void create_the_forms() { Fl_Widget *obj; - form = new Fl_Window(350, 440); + form = new Fl_Double_Window(350, 440); obj = new Fl_Box(FL_FRAME_BOX,10,15,330,40,"FLTK Demonstration"); obj->color(FL_GRAY-4); obj->labelsize(24); diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index 8af406647..872994e2c 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -48,6 +48,7 @@ #include #include #include +#include #include @@ -91,9 +92,9 @@ int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { - Fl_Window *window;// Main window - Fl_Button *button;// Buttons - Fl_File_Icon *icon; // New file icon + Fl_Double_Window *window;// Main window + Fl_Button *button;// Buttons + Fl_File_Icon *icon; // New file icon // Make the file chooser... @@ -108,7 +109,7 @@ main(int argc, // I - Number of command-line arguments Fl_Shared_Image::add_handler(ps_check); // Make the main window... - window = new Fl_Window(400, 215, "File Chooser Test"); + window = new Fl_Double_Window(400, 215, "File Chooser Test"); filter = new Fl_Input(50, 10, 315, 25, "Filter:"); if (argc > 1) diff --git a/test/image.cxx b/test/image.cxx index 689fe0701..64f339c8c 100644 --- a/test/image.cxx +++ b/test/image.cxx @@ -30,7 +30,7 @@ // #include -#include +#include #include #include #include @@ -65,7 +65,7 @@ void make_image() { Fl_Toggle_Button *leftb,*rightb,*topb,*bottomb,*insideb,*overb,*inactb; Fl_Button *b; -Fl_Window *w; +Fl_Double_Window *w; void button_cb(Fl_Widget *,void *) { int i = 0; @@ -121,7 +121,7 @@ int main(int argc, char **argv) { } #endif - Fl_Window window(400,400); ::w = &window; + Fl_Double_Window window(400,400); ::w = &window; window.color(FL_WHITE); Fl_Button b(140,160,120,120,"Image w/Alpha"); ::b = &b; diff --git a/test/input_choice.cxx b/test/input_choice.cxx index b7dfb1352..5bdb5bc73 100644 --- a/test/input_choice.cxx +++ b/test/input_choice.cxx @@ -23,7 +23,7 @@ #include #include -#include +#include #include void buttcb(Fl_Widget*,void*data) { @@ -44,7 +44,7 @@ void input_choice_cb(Fl_Widget*,void*data) { } int main(int argc, char **argv) { - Fl_Window win(300, 200); + Fl_Double_Window win(300, 200); Fl_Input_Choice in(40,40,100,28,"Test"); in.callback(input_choice_cb, (void*)&in); diff --git a/test/keyboard.cxx b/test/keyboard.cxx index 8e02e2e11..18ab70b52 100644 --- a/test/keyboard.cxx +++ b/test/keyboard.cxx @@ -100,7 +100,7 @@ struct keycode_table{int n; const char* text;} table[] = { int main(int argc, char** argv) { Fl::add_handler(handle); - Fl_Window *window = make_window(); + MyWindow *window = make_window(); window->show(argc,argv); while (Fl::wait()) { const char *str; diff --git a/test/line_style.cxx b/test/line_style.cxx index 3f5ae5e37..a4d394510 100644 --- a/test/line_style.cxx +++ b/test/line_style.cxx @@ -26,27 +26,27 @@ // #include -#include +#include #include #include #include #include #include -Fl_Window *form; +Fl_Double_Window *form; Fl_Slider *sliders[8]; Fl_Choice *choice[3]; Fl_Check_Button *draw_line; -class test_box: public Fl_Window { +class test_box: public Fl_Double_Window { void draw(); public: test_box(int x,int y,int w,int h,const char *l=0) - : Fl_Window(x,y,w,h,l) {} + : Fl_Double_Window(x,y,w,h,l) {} }*test; void test_box::draw() { - Fl_Window::draw(); + Fl_Double_Window::draw(); fl_color((uchar)(sliders[0]->value()), (uchar)(sliders[1]->value()), (uchar)(sliders[2]->value())); @@ -111,7 +111,7 @@ void do_redraw(Fl_Widget*,void*) } void makeform(const char *) { - form = new Fl_Window(500,230,"fl_line_style() test"); + form = new Fl_Double_Window(500,230,"fl_line_style() test"); sliders[0]= new Fl_Value_Slider(280,10,180,20,"R"); sliders[0]->bounds(0,255); sliders[1]= new Fl_Value_Slider(280,30,180,20,"G"); diff --git a/test/mandelbrot.h b/test/mandelbrot.h index 183ce7e11..4e7b58ccf 100644 --- a/test/mandelbrot.h +++ b/test/mandelbrot.h @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include class Drawing_Area : public Fl_Box { diff --git a/test/mandelbrot_ui.fl b/test/mandelbrot_ui.fl index bb7afe815..075819b57 100644 --- a/test/mandelbrot_ui.fl +++ b/test/mandelbrot_ui.fl @@ -1,5 +1,5 @@ # data file for the Fltk User Interface Designer (fluid) -version 1.0108 +version 1.0300 header_name {.h} code_name {.cxx} decl {\#include "mandelbrot.h"} {public @@ -12,7 +12,7 @@ class Drawing_Window {open Function {make_window()} {open return_type void } { Fl_Window window {open selected - xywh {178 479 450 520} type Single resizable + xywh {178 479 450 520} type Double resizable code0 {o->size_range(220,220);} visible } { Fl_Box d { diff --git a/test/menubar.cxx b/test/menubar.cxx index c16ee0144..eb80dd43b 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include #include @@ -39,7 +39,7 @@ void window_cb(Fl_Widget* w, void*) { puts("window callback called"); - ((Fl_Window *)w)->hide(); + ((Fl_Double_Window *)w)->hide(); } void test_cb(Fl_Widget* w, void*) { @@ -178,7 +178,7 @@ int main(int argc, char **argv) { sprintf(buf,"item %d",i); hugemenu[i].text = strdup(buf); } - Fl_Window window(WIDTH,400); + Fl_Double_Window window(WIDTH,400); window.callback(window_cb); Fl_Menu_Bar menubar(0,0,WIDTH,30); menubar.menu(menutable); menubar.callback(test_cb); diff --git a/test/minimum.cxx b/test/minimum.cxx index 6e00ca7cb..009a7238a 100644 --- a/test/minimum.cxx +++ b/test/minimum.cxx @@ -44,13 +44,13 @@ #include #include -#include +#include #include #include #include int main(int argc, char **argv) { - Fl_Window *window = new Fl_Window(400,320,argv[0]); + Fl_Double_Window *window = new Fl_Double_Window(400,320,argv[0]); window->resizable(*(new Fl_Box(FL_ENGRAVED_FRAME,10,10,300,300, "MINIMUM UPDATE TEST\n" "\n" diff --git a/test/output.cxx b/test/output.cxx index 5c9dc5713..ccf4c4ca2 100644 --- a/test/output.cxx +++ b/test/output.cxx @@ -27,7 +27,7 @@ #include #include // necessary for bug in mingw32? -#include +#include #include #include #include @@ -41,7 +41,7 @@ Fl_Multiline_Output *text2; Fl_Input *input; Fl_Value_Slider *fonts; Fl_Value_Slider *sizes; -Fl_Window *window; +Fl_Double_Window *window; void font_cb(Fl_Widget *,void *) { text->textfont(int(fonts->value())); @@ -63,7 +63,7 @@ void input_cb(Fl_Widget *,void *) { } int main(int argc, char **argv) { - window = new Fl_Window(400,400); + window = new Fl_Double_Window(400,400); input = new Fl_Input(50,375,350,25); input->static_value("The quick brown fox\njumped over\nthe lazy dog."); diff --git a/test/pack.cxx b/test/pack.cxx index be28f16a7..4a9fbec79 100644 --- a/test/pack.cxx +++ b/test/pack.cxx @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include @@ -57,8 +57,8 @@ void spacing_cb(Fl_Value_Slider*o, long) { } int main(int argc, char **argv) { - Fl_Window *w; - {Fl_Window* o = new Fl_Window(360, 370); + Fl_Double_Window *w; + {Fl_Double_Window* o = new Fl_Double_Window(360, 370); w = o; scroll = new Fl_Scroll(10,10,340,285); {Fl_Pack* o = new Fl_Pack(10, 10, 340, 285); diff --git a/test/pixmap.cxx b/test/pixmap.cxx index 3c50f01fb..db3f6fc50 100644 --- a/test/pixmap.cxx +++ b/test/pixmap.cxx @@ -26,7 +26,7 @@ // #include -#include +#include #include #include #include @@ -37,7 +37,7 @@ Fl_Toggle_Button *leftb,*rightb,*topb,*bottomb,*insideb,*overb,*inactb; Fl_Button *b; -Fl_Window *w; +Fl_Double_Window *w; void button_cb(Fl_Widget *,void *) { int i = 0; @@ -66,7 +66,7 @@ int main(int argc, char **argv) { if (Fl::args(argc,argv,i,arg) < argc) Fl::fatal(" -8 # : use default visual\n%s\n",Fl::help); - Fl_Window window(400,400); ::w = &window; + Fl_Double_Window window(400,400); ::w = &window; Fl_Button b(140,160,120,120,"Pixmap"); ::b = &b; Fl_Pixmap *pixmap = new Fl_Pixmap(porsche_xpm); Fl_Pixmap *depixmap; diff --git a/test/pixmap_browser.cxx b/test/pixmap_browser.cxx index 53cd5fb0e..4df8c1fed 100644 --- a/test/pixmap_browser.cxx +++ b/test/pixmap_browser.cxx @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include #include @@ -36,7 +36,7 @@ #include Fl_Box *b; -Fl_Window *w; +Fl_Double_Window *w; Fl_Shared_Image *img; @@ -105,7 +105,7 @@ int main(int argc, char **argv) { Fl::args(argc,argv,i,arg); - Fl_Window window(400,435); ::w = &window; + Fl_Double_Window window(400,435); ::w = &window; Fl_Box b(10,45,380,380); ::b = &b; b.box(FL_THIN_DOWN_BOX); b.align(FL_ALIGN_INSIDE|FL_ALIGN_CENTER); diff --git a/test/resizebox.cxx b/test/resizebox.cxx index cad3b515a..ddef1377c 100644 --- a/test/resizebox.cxx +++ b/test/resizebox.cxx @@ -30,13 +30,13 @@ #define W3 (5*W1+6*B) #include -#include +#include #include #include #include #include -Fl_Single_Window *window; +Fl_Double_Window *window; Fl_Box *box; int big = 0; @@ -64,7 +64,7 @@ void b_cb(Fl_Widget *,long w) { } int main(int argc, char **argv) { - window = new Fl_Single_Window(W3,W3); + window = new Fl_Double_Window(W3,W3); window->box(FL_NO_BOX); Fl_Box *n; for (int x = 0; x<4; x++) for (int y = 0; y<4; y++) { diff --git a/test/sudoku.cxx b/test/sudoku.cxx index 8cea0ae36..5cabc5f20 100644 --- a/test/sudoku.cxx +++ b/test/sudoku.cxx @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include #include @@ -162,7 +162,7 @@ class SudokuCell : public Fl_Widget { // Sudoku window class... -class Sudoku : public Fl_Window { +class Sudoku : public Fl_Double_Window { Fl_Sys_Menu_Bar *menubar_; Fl_Group *grid_; time_t seed_; @@ -627,7 +627,7 @@ Fl_Preferences Sudoku::prefs_(Fl_Preferences::USER, "fltk.org", "sudoku"); // Create a Sudoku game window... Sudoku::Sudoku() - : Fl_Window(GROUP_SIZE * 3, GROUP_SIZE * 3 + MENU_OFFSET, "Sudoku") + : Fl_Double_Window(GROUP_SIZE * 3, GROUP_SIZE * 3 + MENU_OFFSET, "Sudoku") { int j, k; Fl_Group *g; @@ -1215,7 +1215,7 @@ Sudoku::reset_cb(Fl_Widget *widget, void *) { void Sudoku::resize(int X, int Y, int W, int H) { // Resize the window... - Fl_Window::resize(X, Y, W, H); + Fl_Double_Window::resize(X, Y, W, H); // Save the new window geometry... prefs_.set("x", X); diff --git a/test/symbols.cxx b/test/symbols.cxx index 16bdb0504..37ca9c2cb 100644 --- a/test/symbols.cxx +++ b/test/symbols.cxx @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -41,7 +41,7 @@ int N = 0; #define ROWS 6 #define COLS 6 -Fl_Window *window; +Fl_Double_Window *window; Fl_Value_Slider *orientation; Fl_Value_Slider *size; @@ -93,7 +93,7 @@ void bt(const char *name) { } int main(int argc, char ** argv) { - window = new Fl_Single_Window(COLS*W,ROWS*H+60); + window = new Fl_Double_Window(COLS*W,ROWS*H+60); bt("@->"); bt("@>"); bt("@>>"); diff --git a/test/threads.cxx b/test/threads.cxx index e50a2e917..76ef20530 100644 --- a/test/threads.cxx +++ b/test/threads.cxx @@ -29,7 +29,7 @@ #if HAVE_PTHREAD || defined(WIN32) # include -# include +# include # include # include # include @@ -120,13 +120,13 @@ void* prime_func(void* p) int main(int argc, char **argv) { - Fl_Window* w = new Fl_Window(200, 200, "Single Thread"); + Fl_Double_Window* w = new Fl_Double_Window(200, 200, "Single Thread"); browser1 = new Fl_Browser(0, 0, 200, 175); w->resizable(browser1); value1 = new Fl_Value_Output(100, 175, 200, 25, "Max Prime:"); w->end(); w->show(argc, argv); - w = new Fl_Window(200, 200, "Six Threads"); + w = new Fl_Double_Window(200, 200, "Six Threads"); browser2 = new Fl_Browser(0, 0, 200, 175); w->resizable(browser2); value2 = new Fl_Value_Output(100, 175, 200, 25, "Max Prime:"); diff --git a/test/tile.cxx b/test/tile.cxx index cbbf537fb..7db28eb45 100644 --- a/test/tile.cxx +++ b/test/tile.cxx @@ -33,7 +33,7 @@ //#define TEST_INACTIVE int main(int argc, char** argv) { - Fl_Window window(300,300); + Fl_Double_Window window(300,300); window.box(FL_NO_BOX); window.resizable(window); Fl_Tile tile(0,0,300,300); @@ -42,7 +42,7 @@ int main(int argc, char** argv) { box0.color(9); box0.labelsize(36); box0.align(FL_ALIGN_CLIP); - Fl_Window w1(150,0,150,150,"1"); + Fl_Double_Window w1(150,0,150,150,"1"); w1.box(FL_NO_BOX); Fl_Box box1(0,0,150,150,"1\nThis is a\nchild\nwindow"); box1.box(FL_DOWN_BOX); diff --git a/test/tiled_image.cxx b/test/tiled_image.cxx index a4c483201..2c23392e1 100644 --- a/test/tiled_image.cxx +++ b/test/tiled_image.cxx @@ -26,7 +26,7 @@ // #include -#include +#include #include #include #include @@ -37,7 +37,7 @@ #include "pixmaps/tile.xpm" Fl_Button *b; -Fl_Window *w; +Fl_Double_Window *w; void button_cb(Fl_Widget *,void *) { w->hide(); @@ -83,7 +83,7 @@ int main(int argc, char **argv) { } #endif - Fl_Window window(400,400); ::w = &window; + Fl_Double_Window window(400,400); ::w = &window; Fl_Group group(0,0,400,400); group.image(new Fl_Tiled_Image(new Fl_Pixmap((const char * const *)tile_xpm))); group.align(FL_ALIGN_INSIDE); diff --git a/test/utf8.cxx b/test/utf8.cxx index 86b006f3f..40eb12c90 100644 --- a/test/utf8.cxx +++ b/test/utf8.cxx @@ -23,7 +23,6 @@ // #include -#include #include #include #include