summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2008-09-18 21:11:28 +0000
committerMatthias Melcher <fltk@matthiasm.com>2008-09-18 21:11:28 +0000
commit4e8e8b9f028478bc4f9c2ae386537a3ab9bb1612 (patch)
tree51fb34724a3f089a1ee75746b7f17b86763c21ec /fluid/Fl_Type.cxx
parentf3ae3c705bee0e7b49e7f9a27c7667074f78a693 (diff)
More Doxygen comment support for Fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.cxx')
-rw-r--r--fluid/Fl_Type.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx
index d7a6a6369..525dc0bca 100644
--- a/fluid/Fl_Type.cxx
+++ b/fluid/Fl_Type.cxx
@@ -165,6 +165,8 @@ Fl_Pixmap *pixmap[] = { 0, &window_pixmap, &button_pixmap, &checkbutton_pixmap,
&dial_pixmap, &roller_pixmap, &valueinput_pixmap, &valueoutput_pixmap, &comment_pixmap, /* 42..46 */
&spinner_pixmap, &widgetclass_pixmap /* 47..48 */ };
+extern int show_comments;
+
////////////////////////////////////////////////////////////////
class Widget_Browser : public Fl_Browser_ {
@@ -234,7 +236,7 @@ void Widget_Browser::item_select(void *l,int v) {((Fl_Type*)l)->new_selected = v
int Widget_Browser::item_height(void *l) const {
Fl_Type *t = (Fl_Type*)l;
if (t->visible) {
- if (t->comment())
+ if (show_comments && t->comment())
return textsize()*2+1;
else
return textsize()+2;
@@ -260,7 +262,7 @@ void Widget_Browser::item_draw(void *v, int X, int Y, int, int) const {
Fl_Type *l = (Fl_Type *)v;
X += 3 + 18 + l->level * 12;
int comment_incr = 0;
- if (l->comment()) {
+ if (show_comments && l->comment()) {
char buf[82], *d = buf;
const char *s = l->comment();
for (int i=0; i<80; i++) {