diff options
author | corvid <corvid@lavabit.com> | 2011-01-08 03:23:21 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-01-08 03:23:21 +0000 |
commit | b8177be16c4b69bfabf722e4c2904f0d5bea468c (patch) | |
tree | 6f8dc686fd77855e1501f059a3baf911968bb8ad | |
parent | d5ec0273d5fa27c6b5f8c07b62e714b254371ce9 (diff) |
a bit of fltkui
-rw-r--r-- | dw/fltkui.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 2984c4bf..0a4df83c 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -25,6 +25,13 @@ #include "../lout/msg.h" #include "../lout/misc.hh" +#include <FL/Fl.H> +#include <FL/fl_draw.H> +#include <FL/Fl_Input.H> +#include <FL/Fl_Text_Editor.H> +#include <FL/Fl_Check_Button.H> +#include <FL/Fl_Radio_Button.H> + #include <stdio.h> namespace dw { @@ -462,7 +469,7 @@ Fl_Widget *FltkEntryResource::createNewWidget (core::Allocation new Fl_Input (allocation->x, allocation->y, allocation->width, allocation->ascent + allocation->descent); if (password) - input->type(Fl_Input::SECRET); + input->type(FL_SECRET_INPUT); input->callback (widgetCallback, this); input->when (FL_WHEN_ENTER_KEY_ALWAYS); @@ -817,7 +824,7 @@ Fl_Button *FltkRadioButtonResource::createNewButton (core::Allocation button->clear_flag (SHORTCUT_LABEL); button->when (FL_WHEN_CHANGED); button->callback (widgetCallback, this); - button->type (Fl_Button::TOGGLE); + button->type (FL_TOGGLE_BUTTON); return button; } |