Merge remote-tracking branch 'origin/master'

This commit is contained in:
ManoloFLTK 2019-05-15 21:58:26 +02:00
commit 238c3b7cef
6 changed files with 31 additions and 19 deletions

View File

@ -46,7 +46,6 @@
*/
class FL_EXPORT Fl_File_Input : public Fl_Input {
Fl_Color errorcolor_;
char ok_entry_;
uchar down_box_;
short buttons_[200];
@ -73,11 +72,24 @@ public:
/**
Gets the current error color.
\todo Better docs for Fl_File_Input::errorcolor() - is it even used?
Returns \p FL_RED since FLTK 1.4.0 (default in 1.3.x).
Retained for backwards compatibility.
\deprecated Will be removed in FLTK 1.4.2 or higher.
\todo Remove Fl_File_Input::errorcolor() in FLTK 1.4.2 or higher.
*/
Fl_Color errorcolor() const { return errorcolor_; }
/** Sets the current error color to \p c */
void errorcolor(Fl_Color c) { errorcolor_ = c; }
Fl_Color errorcolor() const { return FL_RED; }
/**
Sets the current error color to \p c.
Does nothing since FLTK 1.4.0. Retained for backwards compatibility.
\deprecated Will be removed in FLTK 1.4.2 or higher.
\todo Remove Fl_File_Input::errorcolor(Fl_Color) in FLTK 1.4.2 or higher.
*/
void errorcolor(Fl_Color c) {}
int value(const char *str);
int value(const char *str, int len);

View File

@ -182,16 +182,16 @@ typedef void (*Fl_Text_Predelete_Cb)(int pos, int nDeleted, void* cbArg);
/**
\brief This class manages Unicode text displayed in one or more Fl_Text_Display widgets.
This class manages Unicode text displayed in one or more Fl_Text_Display widgets.
All text in Fl_Text_Buffer must be encoded in UTF-8. All indices used in the
function calls must be aligned to the start of a UTF-8 sequence. All indices
and pointers returned will be aligned. All functions that return a single
character will return that in an unsiged int in UCS-4 encoding.
The Fl_Text_Buffer class is used by the Fl_Text_Display
and Fl_Text_Editor to manage complex text data and is based upon the
excellent NEdit text editor engine - see http://www.nedit.org/.
The Fl_Text_Buffer class is used by the Fl_Text_Display and Fl_Text_Editor
to manage complex text data and is based upon the excellent NEdit text
editor engine - see https://sourceforge.net/projects/nedit/.
*/
class FL_EXPORT Fl_Text_Buffer {
public:

View File

@ -156,7 +156,7 @@ This will appear in the document:
", ü, ç, Ç, but not all HTML quoting characters.
For further informations about HTML quoting characters see
<br> \b http://www.doxygen.org/htmlcmds.html
<br> \b http://www.doxygen.org/manual/htmlcmds.html
Alternatively you can use \b UTF-8 encoding within Doxygen comments.
@ -221,9 +221,9 @@ Links to other documents and external links can be embedded with
unicode that has been created with a \\page statement.
- For further informations about quoting see
http://www.doxygen.org/htmlcmds.html
http://www.doxygen.org/manual/htmlcmds.html
- see <a href="http://www.nedit.org/">Nedit</a> creates
- see <a href="https://www.fltk.org/">FLTK Library</a> creates
a standard HTML link
\endcode
@ -234,9 +234,9 @@ appears as:
unicode that has been created with a \\page statement.
- For further informations about quoting see
http://www.doxygen.org/htmlcmds.html
http://www.doxygen.org/manual/htmlcmds.html
- see <a href="http://www.nedit.org/">Nedit</a> creates
- see <a href="https://www.fltk.org/">FLTK Library</a> creates
a standard HTML link

View File

@ -620,8 +620,8 @@ Fl_Text_Editor widget.
The Fl_Text_Editor widget supports highlighting
of text with different fonts, colors, and sizes. The
implementation is based on the excellent
<A HREF="http://www.nedit.org/">NEdit</A>
text editor core, from http://www.nedit.org/, which
<A HREF="https://sourceforge.net/projects/nedit/">NEdit</A>
text editor core, from https://sourceforge.net/projects/nedit/, which
uses a parallel "style" buffer which tracks the font, color, and
size of the text that is drawn.

View File

@ -125,7 +125,7 @@ because Escape will still close pop-up windows:
\code
void my_callback(Fl_Widget*, void*) {
if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape)
if (Fl::event() == FL_SHORTCUT && Fl::event_key() == FL_Escape)
return; // ignore Escape
exit(0);
}
@ -136,7 +136,8 @@ done with:
\code
void my_callback(Fl_Widget*, void*) {
if (fl_ask("Are you sure you want to quit?"))
if (fl_choice("Are you sure you want to quit?",
"continue", "quit", NULL))
exit(0);
}
\endcode

View File

@ -50,7 +50,6 @@
Fl_File_Input::Fl_File_Input(int X, int Y, int W, int H, const char *L)
: Fl_Input(X, Y, W, H, L) {
buttons_[0] = 0;
errorcolor_ = FL_RED;
ok_entry_ = 1;
pressed_ = -1;