diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-12-27 20:56:02 -0500 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-12-27 20:56:10 -0500 |
| commit | 050cbabdfe2fdbd1337736f017456012e2437b2d (patch) | |
| tree | 21efed95ef5368e67a7a6377ab0a3a2f936e4426 /fluid/Fl_Type.cxx | |
| parent | 2100655a1b55d1c77932b649b758f2eab1107fcb (diff) | |
Fluid: Rename Stratgy constants to comply with CMP.
Capitalized constants.
Added flag to indicate creation by user or file.
Removed global variable 'reading_file'.
Diffstat (limited to 'fluid/Fl_Type.cxx')
| -rw-r--r-- | fluid/Fl_Type.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx index 071caaff4..444047cd8 100644 --- a/fluid/Fl_Type.cxx +++ b/fluid/Fl_Type.cxx @@ -619,7 +619,7 @@ Fl_Group_Type *Fl_Type::group() { This methods updates the widget_browser. \param[in] p insert \c this tree as a child of \c p - \param[in] strategy is kAddAsLastChild or kAddAfterCurrent + \param[in] strategy is Strategy::AS_LAST_CHILD or Strategy::AFTER_CURRENT */ void Fl_Type::add(Fl_Type *anchor, Strategy strategy) { #if 0 @@ -637,8 +637,9 @@ void Fl_Type::add(Fl_Type *anchor, Strategy strategy) { int target_level = 0; // adjust self to this new level // Find the node after our insertion position - switch (strategy) { - case kAddAsFirstChild: + switch (strategy.placement()) { + case Strategy::AS_FIRST_CHILD: + default: if (anchor == NULL) { target = Fl_Type::first; } else { @@ -647,7 +648,7 @@ void Fl_Type::add(Fl_Type *anchor, Strategy strategy) { target_parent = anchor; } break; - case kAddAsLastChild: + case Strategy::AS_LAST_CHILD: if (anchor == NULL) { /* empty */ } else { @@ -656,7 +657,7 @@ void Fl_Type::add(Fl_Type *anchor, Strategy strategy) { target_parent = anchor; } break; - case kAddAfterCurrent: + case Strategy::AFTER_CURRENT: if (anchor == NULL) { target = Fl_Type::first; } else { |
