Deprecated warnings wording adapted

This commit is contained in:
Matthias Melcher 2023-02-10 16:27:42 +01:00
parent fc9d0a23af
commit 4440e35693
4 changed files with 7 additions and 7 deletions

View File

@ -245,11 +245,11 @@ public:
\see position(), hposition()
*/
int vposition() const { return position_; }
FL_DEPRECATED("Please use vposition() instead (since 1.4.0).",
FL_DEPRECATED("in 1.4.0 - use vposition() instead",
int position() const) { return vposition(); }
void vposition(int pos); // scroll to here
FL_DEPRECATED("Please use vposition(pos) instead (since 1.4.0).",
FL_DEPRECATED("in 1.4.0 - use vposition(pos) instead",
void position(int pos)) { return vposition(pos); }
void position(int x, int y) { Fl_Group::position(x, y); }

View File

@ -285,7 +285,7 @@ public:
\see insert_position(int, int)
*/
int insert_position() const { return position_; }
FL_DEPRECATED("Please use insert_position() instead (since 1.4.0).",
FL_DEPRECATED("in 1.4.0 - use insert_position() instead",
int position() const ) { return insert_position(); }
/** Gets the current selection mark.
@ -294,7 +294,7 @@ public:
/* Sets the index for the cursor and mark. */
int insert_position(int p, int m);
FL_DEPRECATED("Please use insert_position(p, m) or Fl_Widget::position(x, y) instead (since 1.4.0).",
FL_DEPRECATED("in 1.4.0 - use insert_position(p, m) or Fl_Widget::position(x, y) instead",
int position(int p, int m)) { return insert_position(p, m); }
/** Sets the cursor position and mark.
@ -304,7 +304,7 @@ public:
\see insert_position(int, int), insert_position(), mark(int)
*/
int insert_position(int p) { return insert_position(p, p); }
FL_DEPRECATED("Please use insert_position(p) instead (since 1.4.0).",
FL_DEPRECATED("in 1.4.0 - use insert_position(p) instead",
int position(int p)) { return insert_position(p); }
/** Sets the current selection mark.

View File

@ -166,7 +166,7 @@ public:
// Returns true if selected() and the positions of this selection.
int selected(int *startpos, int *endpos) const;
FL_DEPRECATED("Please use selected(startpos, endpos) instead (since 1.4.0).",
FL_DEPRECATED("in 1.4.0 - use selected(startpos, endpos) instead",
int position(int *startpos, int *endpos) const) { return selected(startpos, endpos); }
protected:

View File

@ -30,7 +30,7 @@ public:
Fl_Tile(int X, int Y, int W, int H, const char *L=0);
void resize(int X, int Y, int W, int H) FL_OVERRIDE;
void move_intersection(int oldx, int oldy, int newx, int newy);
FL_DEPRECATED("Please use move_intersection(p) instead (since 1.4.0).",
FL_DEPRECATED("in 1.4.0 - use move_intersection(p) instead",
void position(int oldx, int oldy, int newx, int newy)) { return move_intersection(oldx, oldy, newx, newy); }
void position(int x, int y) { Fl_Group::position(x, y); }
};