summaryrefslogtreecommitdiff
path: root/FL/Fl_Tree.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-23 04:30:39 +0000
committerManolo Gouy <Manolo>2016-04-23 04:30:39 +0000
commita56124c20b16e1930f0ec1dc5dc116c845bc4835 (patch)
treebb725f5b32082628bf6e1fbe3374a2134f5102ef /FL/Fl_Tree.H
parent5ec684f236e14c40e53f7b67b37048895c61db6b (diff)
Remove #if FLTK_ABI_VERSION >= xxx directives.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Tree.H')
-rw-r--r--FL/Fl_Tree.H51
1 files changed, 0 insertions, 51 deletions
diff --git a/FL/Fl_Tree.H b/FL/Fl_Tree.H
index 826973593..1a896f47a 100644
--- a/FL/Fl_Tree.H
+++ b/FL/Fl_Tree.H
@@ -313,9 +313,7 @@ enum Fl_Tree_Reason {
FL_TREE_REASON_NONE=0, ///< unknown reason
FL_TREE_REASON_SELECTED, ///< an item was selected
FL_TREE_REASON_DESELECTED, ///< an item was de-selected
-#if FLTK_ABI_VERSION >= 10301
FL_TREE_REASON_RESELECTED, ///< an item was re-selected (e.g. double-clicked)
-#endif /*FLTK_ABI_VERSION*/
FL_TREE_REASON_OPENED, ///< an item was opened
FL_TREE_REASON_CLOSED, ///< an item was closed
FL_TREE_REASON_DRAGGED ///< an item was dragged into a new place
@@ -329,17 +327,11 @@ class FL_EXPORT Fl_Tree : public Fl_Group {
Fl_Tree_Reason _callback_reason; // reason for the callback
Fl_Tree_Prefs _prefs; // all the tree's settings
int _scrollbar_size; // size of scrollbar trough
-#if FLTK_ABI_VERSION >= 10301
- // NEW:
Fl_Tree_Item *_lastselect;
-#else /*FLTK_ABI_VERSION*/
- // OLD: static data inside handle() method
-#endif /*FLTK_ABI_VERSION*/
void fix_scrollbar_order();
protected:
Fl_Scrollbar *_vscroll; ///< Vertical scrollbar
-#if FLTK_ABI_VERSION >= 10303
Fl_Scrollbar *_hscroll; ///< Horizontal scrollbar
int _tox,_toy,_tow,_toh; ///< Tree widget outer xywh dimension: outside scrollbars, inside widget border
int _tix,_tiy,_tiw,_tih; ///< Tree widget inner xywh dimension: inside borders + scrollbars
@@ -348,17 +340,10 @@ protected:
int _tree_w;
/// the calculated height of the entire tree hierarchy. See calc_tree()
int _tree_h;
-#endif
void item_clicked(Fl_Tree_Item* val);
void do_callback_for_item(Fl_Tree_Item* item, Fl_Tree_Reason reason);
-#if FLTK_ABI_VERSION >= 10303
// next_visible_item() and extend_selection() moved to 'public' in ABI 1.3.3
// undocmented draw_tree() dropped -- draw() does all the work now
-#else
- Fl_Tree_Item *next_visible_item(Fl_Tree_Item *start, int dir);
- void extend_selection(Fl_Tree_Item *from, Fl_Tree_Item *to);
- int draw_tree();
-#endif
public:
Fl_Tree(int X, int Y, int W, int H, const char *L=0);
@@ -379,12 +364,7 @@ public:
////////////////////////////////
// Item creation/removal methods
////////////////////////////////
-#if FLTK_ABI_VERSION >= 10303
Fl_Tree_Item *add(const char *path, Fl_Tree_Item *newitem=0);
-#else
- Fl_Tree_Item *add(const char *path);
- Fl_Tree_Item *add(const char *path, Fl_Tree_Item *newitem);
-#endif
Fl_Tree_Item* add(Fl_Tree_Item *parent_item, const char *name);
Fl_Tree_Item *insert_above(Fl_Tree_Item *above, const char *name);
Fl_Tree_Item* insert(Fl_Tree_Item *item, const char *name, int pos);
@@ -398,13 +378,8 @@ public:
Fl_Tree_Item *find_item(const char *path);
const Fl_Tree_Item *find_item(const char *path) const;
int item_pathname(char *pathname, int pathnamelen, const Fl_Tree_Item *item) const;
-#if FLTK_ABI_VERSION >= 10303
const Fl_Tree_Item* find_clicked(int yonly=0) const;
Fl_Tree_Item* find_clicked(int yonly=0);
-#else
- const Fl_Tree_Item *find_clicked() const;
- Fl_Tree_Item *find_clicked();
-#endif
Fl_Tree_Item *item_clicked();
Fl_Tree_Item *first();
Fl_Tree_Item *first_visible(); // deprecated in ABI 10303
@@ -414,19 +389,12 @@ public:
Fl_Tree_Item *last();
Fl_Tree_Item *last_visible(); // deprecated in ABI 10303
Fl_Tree_Item *last_visible_item();
-#if FLTK_ABI_VERSION >= 10303
Fl_Tree_Item *next_visible_item(Fl_Tree_Item *start, int dir); // made public in 1.3.3 ABI
-#endif
Fl_Tree_Item *first_selected_item();
Fl_Tree_Item *last_selected_item();
Fl_Tree_Item *next_item(Fl_Tree_Item *item, int dir=FL_Down, bool visible=false);
-#if FLTK_ABI_VERSION >= 10303
Fl_Tree_Item *next_selected_item(Fl_Tree_Item *item=0, int dir=FL_Down);
int get_selected_items(Fl_Tree_Item_Array &items);
-#else
- Fl_Tree_Item *next_selected_item(Fl_Tree_Item *item=0);
- Fl_Tree_Item *next_selected_item(Fl_Tree_Item *item, int dir);
-#endif
//////////////////////////
// Item open/close methods
@@ -457,21 +425,10 @@ public:
int dir,
int val,
bool visible);
-#if FLTK_ABI_VERSION >= 10303
int extend_selection(Fl_Tree_Item *from,
Fl_Tree_Item *to,
int val=1,
bool visible=false);
-#else
-private:
- // Adding overload if not at least one overload breaks ABI, so avoid
- // by keeping private until we can break ABI. ref: http://www.ros.org/reps/rep-0009.html
- int extend_selection__(Fl_Tree_Item *from,
- Fl_Tree_Item *to,
- int val,
- bool visible);
-public:
-#endif
void set_item_focus(Fl_Tree_Item *item);
Fl_Tree_Item *get_item_focus() const;
int is_selected(Fl_Tree_Item *item) const;
@@ -494,10 +451,8 @@ public:
void marginleft(int val);
int margintop() const;
void margintop(int val);
-#if FLTK_ABI_VERSION >= 10301
int marginbottom() const;
void marginbottom(int val);
-#endif /*FLTK_ABI_VERSION*/
int linespacing() const;
void linespacing(int val);
int openchild_marginbottom() const;
@@ -506,10 +461,8 @@ public:
void usericonmarginleft(int val);
int labelmarginleft() const;
void labelmarginleft(int val);
-#if FLTK_ABI_VERSION >= 10301
int widgetmarginleft() const;
void widgetmarginleft(int val);
-#endif /*FLTK_ABI_VERSION*/
int connectorwidth() const;
void connectorwidth(int val);
Fl_Image* usericon() const;
@@ -530,17 +483,13 @@ public:
void selectbox(Fl_Boxtype val);
Fl_Tree_Select selectmode() const;
void selectmode(Fl_Tree_Select val);
-#if FLTK_ABI_VERSION >= 10301
Fl_Tree_Item_Reselect_Mode item_reselect_mode() const;
void item_reselect_mode(Fl_Tree_Item_Reselect_Mode mode);
Fl_Tree_Item_Draw_Mode item_draw_mode() const;
void item_draw_mode(Fl_Tree_Item_Draw_Mode mode);
void item_draw_mode(int mode);
-#endif
-#if FLTK_ABI_VERSION >= 10303
void calc_dimensions();
void calc_tree();
-#endif
void recalc_tree();
int displayed(Fl_Tree_Item *item);
void show_item(Fl_Tree_Item *item, int yoff);