diff options
author | corvid <corvid@lavabit.com> | 2011-01-15 16:30:31 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-01-15 16:30:31 +0000 |
commit | f4b2ec9608576d4442c79780b64747548bb61a74 (patch) | |
tree | c72361b1994d23b7cbd719bcaab62a54b070856e | |
parent | 10f9ce7282228193d336228b27b545cebcbcb9e6 (diff) |
tests
-rw-r--r-- | test/dw_anchors_test.cc | 25 | ||||
-rw-r--r-- | test/dw_border_test.cc | 10 | ||||
-rw-r--r-- | test/dw_example.cc | 8 | ||||
-rw-r--r-- | test/dw_find_test.cc | 32 | ||||
-rw-r--r-- | test/dw_images_scaled.cc | 16 | ||||
-rw-r--r-- | test/dw_images_scaled2.cc | 16 | ||||
-rw-r--r-- | test/dw_images_simple.cc | 18 | ||||
-rw-r--r-- | test/dw_imgbuf_mem_test.cc | 5 | ||||
-rw-r--r-- | test/dw_links.cc | 10 | ||||
-rw-r--r-- | test/dw_links2.cc | 33 | ||||
-rw-r--r-- | test/dw_lists.cc | 10 | ||||
-rw-r--r-- | test/dw_resource_test.cc | 10 | ||||
-rw-r--r-- | test/dw_table.cc | 10 | ||||
-rw-r--r-- | test/dw_table_aligned.cc | 10 | ||||
-rw-r--r-- | test/dw_ui_test.cc | 10 |
15 files changed, 108 insertions, 115 deletions
diff --git a/test/dw_anchors_test.cc b/test/dw_anchors_test.cc index 977d724a..3c7582f8 100644 --- a/test/dw_anchors_test.cc +++ b/test/dw_anchors_test.cc @@ -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 @@ using namespace dw::fltk; 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 @@ static const char *numbers[10] = { "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 @@ static void textTimeout (void *data) textblockNo++; if (textblockNo < 10) - ::fltk::repeat_timeout (1, textTimeout, NULL); + Fl::repeat_timeout (1, textTimeout, NULL); } @@ -98,7 +98,7 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 (); diff --git a/test/dw_border_test.cc b/test/dw_border_test.cc index b7586608..5f7b8bb5 100644 --- a/test/dw_border_test.cc +++ b/test/dw_border_test.cc @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); widgetStyle2->unref(); wordStyle->unref(); diff --git a/test/dw_example.cc b/test/dw_example.cc index 1ce643f8..674252fe 100644 --- a/test/dw_example.cc +++ b/test/dw_example.cc @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = fltk::run(); + int errorCode = Fl::run(); delete layout; diff --git a/test/dw_find_test.cc b/test/dw_find_test.cc index a0743754..f360403a 100644 --- a/test/dw_find_test.cc +++ b/test/dw_find_test.cc @@ -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 @@ using namespace dw::fltk; 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 @@ static void findCallback (::fltk::Widget *widget, void *data) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout; diff --git a/test/dw_images_scaled.cc b/test/dw_images_scaled.cc index c9f6e76e..a6b3d390 100644 --- a/test/dw_images_scaled.cc +++ b/test/dw_images_scaled.cc @@ -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 @@ static void imageDrawTimeout (void *data) } 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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; diff --git a/test/dw_images_scaled2.cc b/test/dw_images_scaled2.cc index 175ef414..5a8e0f57 100644 --- a/test/dw_images_scaled2.cc +++ b/test/dw_images_scaled2.cc @@ -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 @@ static void imageDrawTimeout (void *data) } 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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; diff --git a/test/dw_images_simple.cc b/test/dw_images_simple.cc index 39b7ed90..d2554929 100644 --- a/test/dw_images_simple.cc +++ b/test/dw_images_simple.cc @@ -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 @@ static void imageDrawTimeout (void *data) } if(imgRow < 200) - ::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL); + Fl::repeat_timeout (0.5, imageDrawTimeout, NULL); } */ @@ -88,7 +88,7 @@ static void imageDrawTimeout (void *data) } 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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; diff --git a/test/dw_imgbuf_mem_test.cc b/test/dw_imgbuf_mem_test.cc index 33131134..45beef8b 100644 --- a/test/dw_imgbuf_mem_test.cc +++ b/test/dw_imgbuf_mem_test.cc @@ -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" diff --git a/test/dw_links.cc b/test/dw_links.cc index 44628b28..5160462b 100644 --- a/test/dw_links.cc +++ b/test/dw_links.cc @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout; diff --git a/test/dw_links2.cc b/test/dw_links2.cc index 294950af..a4a6bbab 100644 --- a/test/dw_links2.cc +++ b/test/dw_links2.cc @@ -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 @@ int main(int argc, char **argv) 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"); - - 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); + Fl_Widget *Panel = new Fl_Box(0, 0, ww, lh, "CONTROL PANEL"); + + 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout; diff --git a/test/dw_lists.cc b/test/dw_lists.cc index 2725c34d..9d0298ca 100644 --- a/test/dw_lists.cc +++ b/test/dw_lists.cc @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout; diff --git a/test/dw_resource_test.cc b/test/dw_resource_test.cc index 28611bb0..7b550594 100644 --- a/test/dw_resource_test.cc +++ b/test/dw_resource_test.cc @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout; diff --git a/test/dw_table.cc b/test/dw_table.cc index b0e9c4db..1d4ae368 100644 --- a/test/dw_table.cc +++ b/test/dw_table.cc @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout; diff --git a/test/dw_table_aligned.cc b/test/dw_table_aligned.cc index 67cf21f3..e6043f3c 100644 --- a/test/dw_table_aligned.cc +++ b/test/dw_table_aligned.cc @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete layout; diff --git a/test/dw_ui_test.cc b/test/dw_ui_test.cc index 2bc35893..57368fab 100644 --- a/test/dw_ui_test.cc +++ b/test/dw_ui_test.cc @@ -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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = ::fltk::run(); + int errorCode = Fl::run(); delete form; delete layout; |