Fixed warnings with Doxygen 1.8

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2012-12-09 17:45:24 +00:00
parent 3b8e4b9e9c
commit dc65e2f3fa
2 changed files with 42 additions and 44 deletions

View File

@ -133,26 +133,27 @@ public:
*/
Fl_Input_Choice(int X,int Y,int W,int H,const char*L=0);
/// Adds an item to the menu.
/// You can access the more complex Fl_Menu_Button::add() methods
/// (setting callbacks, userdata, etc), via menubutton(). Example:
/// \code
/// Fl_Input_Choice *choice = new Fl_Input_Choice(100,10,120,25,"Fonts");
/// Fl_Menu_Button *mb = choice->menubutton(); // use Fl_Input_Choice's Fl_Menu_Button
/// mb->add("Helvetica", 0, MyFont_CB, (void*)mydata); // use Fl_Menu_Button's add() methods
/// mb->add("Courier", 0, MyFont_CB, (void*)mydata);
/// mb->add("More..", 0, FontDialog_CB, (void*)mydata);
/// \endcode
/** Adds an item to the menu.
You can access the more complex Fl_Menu_Button::add() methods
(setting callbacks, userdata, etc), via menubutton(). Example:
\code
Fl_Input_Choice *choice = new Fl_Input_Choice(100,10,120,25,"Fonts");
Fl_Menu_Button *mb = choice->menubutton(); // use Fl_Input_Choice's Fl_Menu_Button
mb->add("Helvetica", 0, MyFont_CB, (void*)mydata); // use Fl_Menu_Button's add() methods
mb->add("Courier", 0, MyFont_CB, (void*)mydata);
mb->add("More..", 0, FontDialog_CB, (void*)mydata);
\endcode
*/
void add(const char *s) { menu_->add(s); }
/// Returns the combined changed() state of the input and menu button widget.
/** Returns the combined changed() state of the input and menu button widget. */
int changed() const { return inp_->changed() | Fl_Widget::changed(); }
/// Clears the changed() state of both input and menu button widgets.
/** Clears the changed() state of both input and menu button widgets. */
void clear_changed() {
inp_->clear_changed();
Fl_Widget::clear_changed();
}
/// Sets the changed() state of both input and menu button widgets
/// to the specfied value.
/** Sets the changed() state of both input and menu button widgets
to the specfied value.*/
void set_changed() {
inp_->set_changed();
// no need to call Fl_Widget::set_changed()
@ -186,30 +187,31 @@ public:
void textsize(Fl_Fontsize s) { inp_->textsize(s); }
/// Returns the Fl_Input text field's current contents.
const char* value() const { return (inp_->value()); }
/// Sets the Fl_Input text field's contents to \p val.
/// Does not affect the menu selection.
/** Sets the Fl_Input text field's contents to \p val.
Does not affect the menu selection.*/
void value(const char *val) { inp_->value(val); }
/// Chooses item# \p val in the menu, and sets the Fl_Input text field
/// to that value. Any previous text is cleared.
/** Chooses item# \p val in the menu, and sets the Fl_Input text field
to that value. Any previous text is cleared.*/
void value(int val) {
menu_->value(val);
inp_->value(menu_->text(val));
}
/// Returns a pointer to the internal Fl_Menu_Button widget.
/// This can be used to access any of the methods of the menu button, e.g.
/// \code
/// Fl_Input_Choice *choice = new Fl_Input_Choice(100,10,120,25,"Choice:");
/// [..]
/// // Print all the items in the choice menu
/// for ( int t=0; t<choice->menubutton()->size(); t++ ) {
/// const Fl_Menu_Item &item = choice->menubutton()->menu()[t];
/// printf("item %d -- label=%s\n", t, item.label() ? item.label() : "(Null)");
/// }
/// \endcode
/** Returns a pointer to the internal Fl_Menu_Button widget.
This can be used to access any of the methods of the menu button, e.g.
\code
Fl_Input_Choice *choice = new Fl_Input_Choice(100,10,120,25,"Choice:");
[..]
// Print all the items in the choice menu
for ( int t=0; t<choice->menubutton()->size(); t++ ) {
const Fl_Menu_Item &item = choice->menubutton()->menu()[t];
printf("item %d -- label=%s\n", t, item.label() ? item.label() : "(Null)");
}
\endcode
*/
Fl_Menu_Button *menubutton() { return menu_; }
/// Returns a pointer to the internal Fl_Input widget.
/// This can be used to directly access all of the Fl_Input widget's
/// methods.
/** Returns a pointer to the internal Fl_Input widget.
This can be used to directly access all of the Fl_Input widget's
methods.*/
Fl_Input *input() { return inp_; }
};

View File

@ -261,20 +261,16 @@ static Fl_Pixmap tile(tile_xpm);
Gets or sets the current widget scheme. NULL will use
the scheme defined in the FLTK_SCHEME environment
variable or the scheme resource under X11. Otherwise,
any of the following schemes can be used:</P>
any of the following schemes can be used:
- "none" - This is the default look-n-feel which resembles old
Windows (95/98/Me/NT/2000) and old GTK/KDE
<ul>
- "plastic" - This scheme is inspired by the Aqua user interface
on Mac OS X
<li>"none" - This is the default look-n-feel which resembles old
Windows (95/98/Me/NT/2000) and old GTK/KDE</li>
<li>"plastic" - This scheme is inspired by the Aqua user interface
on Mac OS X</li>
<li>"gtk+" - This scheme is inspired by the Red Hat Bluecurve
theme</li>
</ul>
- "gtk+" - This scheme is inspired by the Red Hat Bluecurve
theme
*/
int Fl::scheme(const char *s) {
if (!s) {