aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-01-06 03:09:45 +0000
committercorvid <corvid@lavabit.com>2011-01-06 03:09:45 +0000
commit1aa8c2e16f5fea7763db6415f0684f51d01f4de3 (patch)
tree2f411d2573699a93bf08dd0daf4a61f2e2e4a832
parent8892eae102902313083729b022529dcbc9798fd9 (diff)
when
-rw-r--r--dw/fltkui.cc18
-rw-r--r--src/findbar.cc2
-rw-r--r--src/ui.cc2
3 files changed, 11 insertions, 11 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index ff8c7539..abf82993 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -262,7 +262,7 @@ FltkLabelButtonResource::~FltkLabelButtonResource ()
label);
button->set_flag (::fltk::RAW_LABEL);
button->callback (widgetCallback, this);
- button->when (::fltk::WHEN_RELEASE);
+ button->when (FL_WHEN_RELEASE);
return button;
}
@@ -315,7 +315,7 @@ static void setButtonEvent(dw::core::EventButton *event)
void FltkLabelButtonResource::widgetCallback (::fltk::Widget *widget,
void *data)
{
- if ((widget->when () & ::fltk::WHEN_RELEASE) &&
+ if ((widget->when () & FL_WHEN_RELEASE) &&
((Fl::event_key() == FL_Enter) ||
(Fl::event_button() == FL_LEFT_MOUSE ||
Fl::event_button() == FL_MIDDLE_MOUSE))) {
@@ -363,7 +363,7 @@ void FltkComplexButtonResource::widgetCallback (::fltk::Widget *widget,
{
FltkComplexButtonResource *res = (FltkComplexButtonResource*)data;
- if (widget->when() == ::fltk::WHEN_RELEASE &&
+ if (widget->when() == FL_WHEN_RELEASE &&
((Fl::event_key() == FL_Enter) ||
(Fl::event_button() == FL_LEFT_MOUSE ||
Fl::event_button() == FL_MIDDLE_MOUSE))) {
@@ -430,7 +430,7 @@ int FltkComplexButtonResource::reliefYThickness ()
new ComplexButton (allocation->x, allocation->y, allocation->width,
allocation->ascent + allocation->descent);
button->callback (widgetCallback, this);
- button->when (::fltk::WHEN_RELEASE);
+ button->when (FL_WHEN_RELEASE);
if (!relief)
button->box(::fltk::FLAT_BOX);
@@ -479,7 +479,7 @@ FltkEntryResource::~FltkEntryResource ()
if (password)
input->type(::fltk::Input::SECRET);
input->callback (widgetCallback, this);
- input->when (::fltk::WHEN_ENTER_KEY_ALWAYS);
+ input->when (FL_WHEN_ENTER_KEY_ALWAYS);
if (label) {
input->label(label);
@@ -525,7 +525,7 @@ void FltkEntryResource::widgetCallback (::fltk::Widget *widget,
* page. BUG: this must be investigated and reported to FLTK2 team
*/
_MSG("when = %d\n", widget->when ());
- if ((widget->when () & ::fltk::WHEN_ENTER_KEY_ALWAYS) &&
+ if ((widget->when () & FL_WHEN_ENTER_KEY_ALWAYS) &&
(Fl::event_key() == FL_Enter))
((FltkEntryResource*)data)->emitActivate ();
}
@@ -801,7 +801,7 @@ dw::core::ui::RadioButtonResource::GroupIterator
void FltkRadioButtonResource::widgetCallback (::fltk::Widget *widget,
void *data)
{
- if (widget->when () & ::fltk::WHEN_CHANGED)
+ if (widget->when () & FL_WHEN_CHANGED)
((FltkRadioButtonResource*)data)->buttonClicked ();
}
@@ -834,7 +834,7 @@ void FltkRadioButtonResource::buttonClicked ()
allocation->width,
allocation->ascent + allocation->descent);
button->set_flag (::fltk::RAW_LABEL);
- button->when (::fltk::WHEN_CHANGED);
+ button->when (FL_WHEN_CHANGED);
button->callback (widgetCallback, this);
button->type (::fltk::Button::TOGGLE);
@@ -1149,7 +1149,7 @@ FltkListResource::~FltkListResource ()
menu->type(::fltk::Browser::MULTI);
menu->set_flag (::fltk::RAW_LABEL);
menu->callback(widgetCallback,this);
- menu->when(::fltk::WHEN_CHANGED);
+ menu->when(FL_WHEN_CHANGED);
return menu;
}
diff --git a/src/findbar.cc b/src/findbar.cc
index 49cffcd6..713b13ac 100644
--- a/src/findbar.cc
+++ b/src/findbar.cc
@@ -132,7 +132,7 @@ Findbar::Findbar(int width, int height) :
x += input_width + gap;
resizable(i);
i->color(206);
- i->when(WHEN_ENTER_KEY_ALWAYS);
+ i->when(FL_WHEN_ENTER_KEY_ALWAYS);
i->callback(search_cb2, this);
i->clear_tab_to_focus();
i->set_click_to_focus();
diff --git a/src/ui.cc b/src/ui.cc
index 7e0d19a7..a7d2f756 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -469,7 +469,7 @@ PackedGroup *UI::make_location()
Input *i = Location = new CustInput(0,0,0,0,0);
i->color(CuteColor);
- i->when(WHEN_ENTER_KEY);
+ i->when(FL_WHEN_ENTER_KEY);
i->callback(location_cb, this);
i->set_click_to_focus();