summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-12-09 17:45:24 +0000
committerManolo Gouy <Manolo>2012-12-09 17:45:24 +0000
commitdc65e2f3fa4b3fccacb4e927bf9c1762b200b589 (patch)
tree6549709ffda8ffcba0fb07ca3611e2f74b0d74c8
parent3b8e4b9e9cae4330aefbbd725cd4b138027e8bb4 (diff)
Fixed warnings with Doxygen 1.8
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Input_Choice.H66
-rw-r--r--src/Fl_get_system_colors.cxx20
2 files changed, 42 insertions, 44 deletions
diff --git a/FL/Fl_Input_Choice.H b/FL/Fl_Input_Choice.H
index d5e8bc569..fc307a9fe 100644
--- a/FL/Fl_Input_Choice.H
+++ b/FL/Fl_Input_Choice.H
@@ -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_; }
};
diff --git a/src/Fl_get_system_colors.cxx b/src/Fl_get_system_colors.cxx
index e17ffcee0..bf158e0bc 100644
--- a/src/Fl_get_system_colors.cxx
+++ b/src/Fl_get_system_colors.cxx
@@ -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) {