Mercurial > dillo_port1.3
changeset 1832:553e63661ec1
tests
author | corvid <corvid@lavabit.com> |
---|---|
date | Sat, 15 Jan 2011 16:30:31 +0000 |
parents | 9678798c900a |
children | 5b8f66e6f715 |
files | test/dw_anchors_test.cc test/dw_border_test.cc test/dw_example.cc test/dw_find_test.cc test/dw_images_scaled.cc test/dw_images_scaled2.cc test/dw_images_simple.cc test/dw_imgbuf_mem_test.cc test/dw_links.cc test/dw_links2.cc test/dw_lists.cc test/dw_resource_test.cc test/dw_table.cc test/dw_table_aligned.cc test/dw_ui_test.cc |
diffstat | 15 files changed, 107 insertions(+), 114 deletions(-) [+] |
line wrap: on
line diff
--- a/test/dw_anchors_test.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_anchors_test.cc Sat Jan 15 16:30:31 2011 +0000 @@ -20,8 +20,8 @@ #include <ctype.h> -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl_Window.H> +#include <FL/Fl.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -36,7 +36,7 @@ static FltkPlatform *platform; static Layout *layout; -static ::fltk::Window *window; +static Fl_Window *window; static FltkViewport *viewport; static Style *topWidgetStyle, *widgetStyle, *wordStyle, *headingStyle; static Textblock *topTextblock = NULL; @@ -47,7 +47,7 @@ "six", "seven", "eight", "nine", "ten" }; -static void anchorCallback (::fltk::Widget *widget, void *data) +static void anchorCallback (Fl_Widget *widget, void *data) { layout->setAnchor (numbers[(long)data]); } @@ -87,7 +87,7 @@ textblockNo++; if (textblockNo < 10) - ::fltk::repeat_timeout (1, textTimeout, NULL); + Fl::repeat_timeout (1, textTimeout, NULL); } @@ -98,7 +98,7 @@ platform = new FltkPlatform (); layout = new Layout (platform); - window = new ::fltk::Window(250, 200, "Dw Anchors Test"); + window = new Fl_Window(250, 200, "Dw Anchors Test"); window->begin(); viewport = new FltkViewport (50, 0, 200, 200); @@ -109,10 +109,9 @@ strcpy (buf, numbers[i]); buf[0] = toupper (buf[0]); buttonLabel[i] = strdup(buf); - ::fltk::Button *button = - new ::fltk::Button(0, 20 * i, 50, 20, buttonLabel[i]); + Fl_Button *button = new Fl_Button(0, 20 * i, 50, 20, buttonLabel[i]); button->callback (anchorCallback, (void*)i); - button->when (::fltk::WHEN_RELEASE); + button->when (FL_WHEN_RELEASE); } FontAttrs fontAttrs; @@ -124,7 +123,7 @@ StyleAttrs styleAttrs; styleAttrs.initValues (); - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.margin.setVal (5); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -140,15 +139,15 @@ fontAttrs.size = 28; fontAttrs.weight = 700; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); headingStyle = Style::create (layout, &styleAttrs); - ::fltk::add_timeout (0, textTimeout, NULL); + Fl::add_timeout (0, textTimeout, NULL); window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); topWidgetStyle->unref (); widgetStyle->unref ();
--- a/test/dw_border_test.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_border_test.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl_Window.H> +#include <FL/Fl.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -38,7 +38,7 @@ FltkPlatform *platform = new FltkPlatform (); Layout *layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(200, 300, "Dw Border Test"); + Fl_Window *window = new Fl_Window(200, 300, "Dw Border Test"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 200, 300); @@ -58,7 +58,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -115,7 +115,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); widgetStyle2->unref(); wordStyle->unref();
--- a/test/dw_example.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_example.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl_Window.H> +#include <FL/Fl.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -33,7 +33,7 @@ dw::fltk::FltkPlatform *platform = new dw::fltk::FltkPlatform (); dw::core::Layout *layout = new dw::core::Layout (platform); - fltk::Window *window = new fltk::Window(200, 300, "Dw Example"); + Fl_Window *window = new Fl_Window(200, 300, "Dw Example"); window->begin(); dw::fltk::FltkViewport *viewport = @@ -95,7 +95,7 @@ window->resizable(viewport); window->show(); - int errorCode = fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_find_test.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_find_test.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,9 +19,9 @@ -#include <fltk/Window.h> -#include <fltk/run.h> - +#include <FL/Fl.H> +#include <FL/Fl_Window.H> +#include <FL/Fl_Box.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" #include "../dw/fltkviewport.hh" @@ -35,12 +35,12 @@ static FltkPlatform *platform; static Layout *layout; -static ::fltk::Window *window; +static Fl_Window *window; static FltkViewport *viewport; -static ::fltk::Button *findButton, *resetButton; -static ::fltk::Widget *resultLabel; +static Fl_Button *findButton, *resetButton; +static Fl_Widget *resultLabel; -static void findCallback (::fltk::Widget *widget, void *data) +static void findCallback (Fl_Widget *widget, void *data) { //switch(layout->search ("worm", true)) { switch(layout->search ("WORM", false, false)) { @@ -60,7 +60,7 @@ resultLabel->redraw (); } -static void resetCallback (::fltk::Widget *widget, void *data) +static void resetCallback (Fl_Widget *widget, void *data) { layout->resetSearch (); resultLabel->label("---"); @@ -72,21 +72,21 @@ platform = new FltkPlatform (); layout = new Layout (platform); - window = new ::fltk::Window(200, 300, "Dw Find Test"); + window = new Fl_Window(200, 300, "Dw Find Test"); window->begin(); viewport = new FltkViewport (0, 0, 200, 280); layout->attachView (viewport); - findButton = new ::fltk::Button(0, 280, 50, 20, "Find"); + findButton = new Fl_Button(0, 280, 50, 20, "Find"); findButton->callback (findCallback, NULL); - findButton->when (::fltk::WHEN_RELEASE); + findButton->when (FL_WHEN_RELEASE); - resetButton = new ::fltk::Button(50, 280, 50, 20, "Reset"); + resetButton = new Fl_Button(50, 280, 50, 20, "Reset"); resetButton->callback (resetCallback, NULL); - resetButton->when (::fltk::WHEN_RELEASE); + resetButton->when (FL_WHEN_RELEASE); - resultLabel = new ::fltk::Widget(100, 280, 100, 20, "---"); + resultLabel = new Fl_Box(100, 280, 100, 20, "---"); FontAttrs fontAttrs; fontAttrs.name = "Bitstream Charter"; @@ -97,7 +97,7 @@ StyleAttrs styleAttrs; styleAttrs.initValues (); - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.margin.setVal (10); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -143,7 +143,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_images_scaled.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_images_scaled.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -87,7 +87,7 @@ } if(imgRow < 200) - ::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL); + Fl::repeat_timeout (0.5, imageDrawTimeout, NULL); } int main(int argc, char **argv) @@ -95,7 +95,7 @@ FltkPlatform *platform = new FltkPlatform (); layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(410, 210, "Dw Scaled Image"); + Fl_Window *window = new Fl_Window(410, 210, "Dw Scaled Image"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 410, 210); @@ -113,7 +113,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -142,10 +142,10 @@ window->resizable(viewport); window->show(); - ::fltk::add_timeout (2.0, imageInitTimeout, NULL); - ::fltk::add_timeout (0.1, imageDrawTimeout, NULL); + Fl::add_timeout (2.0, imageInitTimeout, NULL); + Fl::add_timeout (0.1, imageDrawTimeout, NULL); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_images_scaled2.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_images_scaled2.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -64,7 +64,7 @@ } if(imgRow < 200) - ::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL); + Fl::repeat_timeout (0.5, imageDrawTimeout, NULL); } int main(int argc, char **argv) @@ -72,7 +72,7 @@ FltkPlatform *platform = new FltkPlatform (); layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(410, 210, "Dw Scaled Image 2"); + Fl_Window *window = new Fl_Window(410, 210, "Dw Scaled Image 2"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 410, 210); @@ -88,7 +88,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -137,10 +137,10 @@ window->resizable(viewport); window->show(); - ::fltk::add_timeout (3.0, imageInitTimeout, NULL); - ::fltk::add_timeout (0.1, imageDrawTimeout, NULL); + Fl::add_timeout (3.0, imageInitTimeout, NULL); + Fl::add_timeout (0.1, imageDrawTimeout, NULL); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_images_simple.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_images_simple.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -66,7 +66,7 @@ } if(imgRow < 200) - ::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL); + Fl::repeat_timeout (0.5, imageDrawTimeout, NULL); } */ @@ -88,7 +88,7 @@ } if(imgRow < 200) - ::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL); + Fl::repeat_timeout (0.5, imageDrawTimeout, NULL); } int main(int argc, char **argv) @@ -96,7 +96,7 @@ FltkPlatform *platform = new FltkPlatform (); layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(410, 210, "Dw Simple Image"); + Fl_Window *window = new Fl_Window(410, 210, "Dw Simple Image"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 410, 210); @@ -112,7 +112,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -141,10 +141,10 @@ window->resizable(viewport); window->show(); - ::fltk::add_timeout (2.0, imageInitTimeout, NULL); - ::fltk::add_timeout (0.1, imageDrawTimeout, NULL); + Fl::add_timeout (2.0, imageInitTimeout, NULL); + Fl::add_timeout (0.1, imageDrawTimeout, NULL); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_imgbuf_mem_test.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_imgbuf_mem_test.cc Sat Jan 15 16:30:31 2011 +0000 @@ -17,11 +17,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - - -#include <fltk/Window.h> -#include <fltk/run.h> - #include "../dw/core.hh" #include "../dw/fltkcore.hh"
--- a/test/dw_links.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_links.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -76,7 +76,7 @@ FltkPlatform *platform = new FltkPlatform (); Layout *layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(200, 300, "Dw Links"); + Fl_Window *window = new Fl_Window(200, 300, "Dw Links"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 200, 300); @@ -92,7 +92,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -153,7 +153,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_links2.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_links2.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,9 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> +#include <FL/Fl_Box.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -78,22 +79,20 @@ FltkPlatform *platform = new FltkPlatform (); Layout *layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(200, 300, "Dw Links2"); + Fl_Window *window = new Fl_Window(200, 300, "Dw Links2"); window->begin(); - ::fltk::Widget *Panel = new ::fltk::Widget(0, 0, ww, lh, "CONTROL PANEL"); + Fl_Widget *Panel = new Fl_Box(0, 0, ww, lh, "CONTROL PANEL"); - Panel->color(::fltk::GRAY15); - Panel->labelcolor(::fltk::WHITE); - ::fltk::Widget *Main = - new ::fltk::Widget(0, lh, ww, wh - 2*lh, "MAIN RENDERING AREA"); - Main->color(::fltk::GRAY20); - Main->labelcolor(::fltk::WHITE); + Panel->color(FL_GRAY_RAMP + 3); + Panel->labelcolor(FL_WHITE); + Fl_Widget *Main = new Fl_Box(0, lh, ww, wh - 2*lh, "MAIN RENDERING AREA"); + Main->color(FL_GRAY_RAMP + 4); + Main->labelcolor(FL_WHITE); MainIdx = window->find(Main); /* status bar */ - ::fltk::Widget *Bar = - new ::fltk::Widget(0, wh - lh, 200, lh, "STATUS BAR..."); - Bar->color(::fltk::GRAY15); - Bar->labelcolor(::fltk::WHITE); + Fl_Widget *Bar = new Fl_Box(0, wh - lh, 200, lh, "STATUS BAR..."); + Bar->color(FL_GRAY_RAMP + 3); + Bar->labelcolor(FL_WHITE); window->resizable(Main); window->end(); @@ -120,7 +119,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -181,7 +180,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_lists.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_lists.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -38,7 +38,7 @@ FltkPlatform *platform = new FltkPlatform (); Layout *layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(200, 300, "Dw Lists"); + Fl_Window *window = new Fl_Window(200, 300, "Dw Lists"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 200, 300); @@ -54,7 +54,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -126,7 +126,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_resource_test.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_resource_test.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -39,7 +39,7 @@ FltkPlatform *platform = new FltkPlatform (); Layout *layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(410, 210, "Dw Resource test"); + Fl_Window *window = new Fl_Window(410, 210, "Dw Resource test"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 410, 210); @@ -55,7 +55,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xffffff); @@ -90,7 +90,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_table.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_table.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -38,7 +38,7 @@ FltkPlatform *platform = new FltkPlatform (); Layout *layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(300, 300, "Dw Table"); + Fl_Window *window = new Fl_Window(300, 300, "Dw Table"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 300, 300); @@ -62,7 +62,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); Style *tableStyle = Style::create (layout, &styleAttrs); @@ -107,7 +107,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_table_aligned.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_table_aligned.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -38,7 +38,7 @@ FltkPlatform *platform = new FltkPlatform (); Layout *layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(200, 300, "Dw Table Aligned"); + Fl_Window *window = new Fl_Window(200, 300, "Dw Table Aligned"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 200, 300); @@ -57,7 +57,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = Color::create (layout, 0x000000); styleAttrs.backgroundColor = Color::create (layout, 0xa0a0a0); @@ -111,7 +111,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout;
--- a/test/dw_ui_test.cc Thu Jan 13 23:48:11 2011 +0000 +++ b/test/dw_ui_test.cc Sat Jan 15 16:30:31 2011 +0000 @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl.H> +#include <FL/Fl_Window.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -43,7 +43,7 @@ FltkPlatform *platform = new FltkPlatform (); Layout *layout = new Layout (platform); - ::fltk::Window *window = new ::fltk::Window(400, 400, "Dw UI Test"); + Fl_Window *window = new Fl_Window(400, 400, "Dw UI Test"); window->begin(); FltkViewport *viewport = new FltkViewport (0, 0, 400, 400); @@ -61,7 +61,7 @@ fontAttrs.weight = 400; fontAttrs.style = FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; - styleAttrs.font = Font::create (layout, &fontAttrs); + styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); Style *tableStyle = Style::create (layout, &styleAttrs); @@ -232,7 +232,7 @@ window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete form; delete layout;