mirror of https://github.com/fltk/fltk
Fixed Fl_Preferences documentation typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
c7b0467518
commit
92d846caa4
|
@ -53,8 +53,8 @@
|
||||||
files: see getUserdataPath().
|
files: see getUserdataPath().
|
||||||
|
|
||||||
\note Starting with FLTK 1.3, preference databases are expected to
|
\note Starting with FLTK 1.3, preference databases are expected to
|
||||||
be in utf8 encoding. Previous databases were stored in the
|
be in UTF-8 encoding. Previous databases were stored in the
|
||||||
current chracter set or code page which renders them incompatible
|
current character set or code page which renders them incompatible
|
||||||
for text entries using international characters.
|
for text entries using international characters.
|
||||||
*/
|
*/
|
||||||
class FL_EXPORT Fl_Preferences {
|
class FL_EXPORT Fl_Preferences {
|
||||||
|
@ -101,7 +101,7 @@ public:
|
||||||
*/
|
*/
|
||||||
const char *name() { return node->name(); }
|
const char *name() { return node->name(); }
|
||||||
|
|
||||||
/** Return the the full path to this entry.
|
/** Return the full path to this entry.
|
||||||
*/
|
*/
|
||||||
const char *path() { return node->path(); }
|
const char *path() { return node->path(); }
|
||||||
|
|
||||||
|
@ -150,7 +150,8 @@ public:
|
||||||
|
|
||||||
Example: prefs.set(Fl_Preferences::Name("File%d",i),file[i]);.
|
Example: prefs.set(Fl_Preferences::Name("File%d",i),file[i]);.
|
||||||
|
|
||||||
See test/preferences.cxx as a sample for writing arrays into preferences.<p>
|
See test/preferences.cxx as a sample for writing arrays into preferences.
|
||||||
|
|
||||||
'Name' is actually implemented as a class inside Fl_Preferences. It casts
|
'Name' is actually implemented as a class inside Fl_Preferences. It casts
|
||||||
into const char* and gets automatically destroyed after the enclosing call
|
into const char* and gets automatically destroyed after the enclosing call
|
||||||
ends.
|
ends.
|
||||||
|
|
|
@ -330,7 +330,7 @@ Fl_Preferences::Fl_Preferences( Fl_Preferences *parent, int groupIndex ) {
|
||||||
An ID can be retrieved from any Fl_Preferences dataset, and can then be used
|
An ID can be retrieved from any Fl_Preferences dataset, and can then be used
|
||||||
to create multiple new references to the same dataset.
|
to create multiple new references to the same dataset.
|
||||||
|
|
||||||
ID's can be put very helpful when put into the <tt>user_data()</tt> field of
|
ID's can be very helpful when put into the <tt>user_data()</tt> field of
|
||||||
widget callbacks.
|
widget callbacks.
|
||||||
*/
|
*/
|
||||||
Fl_Preferences::Fl_Preferences( Fl_Preferences::ID id ) {
|
Fl_Preferences::Fl_Preferences( Fl_Preferences::ID id ) {
|
||||||
|
@ -370,7 +370,7 @@ Fl_Preferences::~Fl_Preferences() {
|
||||||
if (node && !node->parent()) delete rootNode;
|
if (node && !node->parent()) delete rootNode;
|
||||||
// DO NOT delete nodes! The root node will do that after writing the preferences
|
// DO NOT delete nodes! The root node will do that after writing the preferences
|
||||||
// zero all pointer to avoid memory errors, even though
|
// zero all pointer to avoid memory errors, even though
|
||||||
// Valgrind does not complain (Cygwind does though)
|
// Valgrind does not complain (Cygwin does though)
|
||||||
node = 0L;
|
node = 0L;
|
||||||
rootNode = 0L;
|
rootNode = 0L;
|
||||||
}
|
}
|
||||||
|
@ -657,7 +657,7 @@ static char *decodeText( const char *src ) {
|
||||||
supplied. The return value indicates if the value was available
|
supplied. The return value indicates if the value was available
|
||||||
(non-zero) or the default was used (0).
|
(non-zero) or the default was used (0).
|
||||||
'maxSize' is the maximum length of text that will be read.
|
'maxSize' is the maximum length of text that will be read.
|
||||||
The text buffer must allow for one additional byte for a trailling zero.
|
The text buffer must allow for one additional byte for a trailing zero.
|
||||||
|
|
||||||
\param[in] key name of entry
|
\param[in] key name of entry
|
||||||
\param[out] text returned from preferences or default value if none was set
|
\param[out] text returned from preferences or default value if none was set
|
||||||
|
|
Loading…
Reference in New Issue