From 41d14b074b64b4d55d09b3b6633972d9b069bc64 Mon Sep 17 00:00:00 2001
From: Matthias Melcher
Date: Wed, 30 Oct 2002 21:08:39 +0000
Subject: Added icons to Fluid's menu and object list. Previous version is
tagged in cvs with 'pre_fluid_icon_changes'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
---
documentation/common.html | 4 +-
fluid/Fl_Type.cxx | 118 ++++++++++++++++++++++++++++++++++++++++---
fluid/Fl_Type.h | 24 ++++++++-
fluid/factory.cxx | 69 ++++++++++++++++++++++---
fluid/flAdjuster.xpm | 29 +++++++++++
fluid/flBox.xpm | 29 +++++++++++
fluid/flBrowser.xpm | 29 +++++++++++
fluid/flButton.xpm | 29 +++++++++++
fluid/flCheckBrowser.xpm | 29 +++++++++++
fluid/flCheckButton.xpm | 30 +++++++++++
fluid/flChoice.xpm | 29 +++++++++++
fluid/flClass.xpm | 27 ++++++++++
fluid/flClock.xpm | 28 ++++++++++
fluid/flCode.xpm | 27 ++++++++++
fluid/flCodeBlock.xpm | 27 ++++++++++
fluid/flCounter.xpm | 29 +++++++++++
fluid/flDeclaration.xpm | 27 ++++++++++
fluid/flDeclarationBlock.xpm | 27 ++++++++++
fluid/flDial.xpm | 28 ++++++++++
fluid/flFIleInput.xpm | 29 +++++++++++
fluid/flFileBrowser.xpm | 29 +++++++++++
fluid/flFunction.xpm | 27 ++++++++++
fluid/flGroup.xpm | 29 +++++++++++
fluid/flHelp.xpm | 29 +++++++++++
fluid/flInput.xpm | 29 +++++++++++
fluid/flLightButton.xpm | 29 +++++++++++
fluid/flMenubar.xpm | 29 +++++++++++
fluid/flMenubutton.xpm | 29 +++++++++++
fluid/flMenuitem.xpm | 29 +++++++++++
fluid/flOutput.xpm | 29 +++++++++++
fluid/flPack.xpm | 29 +++++++++++
fluid/flProgress.xpm | 29 +++++++++++
fluid/flRepeatButton.xpm | 29 +++++++++++
fluid/flReturnButton.xpm | 29 +++++++++++
fluid/flRoller.xpm | 29 +++++++++++
fluid/flRoundButton.xpm | 30 +++++++++++
fluid/flScroll.xpm | 29 +++++++++++
fluid/flScrollBar.xpm | 29 +++++++++++
fluid/flSlider.xpm | 29 +++++++++++
fluid/flSubmenu.xpm | 29 +++++++++++
fluid/flTabs.xpm | 29 +++++++++++
fluid/flTextDisplay.xpm | 29 +++++++++++
fluid/flTextEdit.xpm | 29 +++++++++++
fluid/flTile.xpm | 29 +++++++++++
fluid/flValueInput.xpm | 29 +++++++++++
fluid/flValueOutput.xpm | 29 +++++++++++
fluid/flValueSlider.xpm | 29 +++++++++++
fluid/flWindow.xpm | 29 +++++++++++
fluid/flWizard.xpm | 29 +++++++++++
fluid/lock.xpm | 34 ++++++-------
fluid/unlock.xpm | 29 -----------
51 files changed, 1508 insertions(+), 63 deletions(-)
create mode 100644 fluid/flAdjuster.xpm
create mode 100644 fluid/flBox.xpm
create mode 100644 fluid/flBrowser.xpm
create mode 100644 fluid/flButton.xpm
create mode 100644 fluid/flCheckBrowser.xpm
create mode 100644 fluid/flCheckButton.xpm
create mode 100644 fluid/flChoice.xpm
create mode 100644 fluid/flClass.xpm
create mode 100644 fluid/flClock.xpm
create mode 100644 fluid/flCode.xpm
create mode 100644 fluid/flCodeBlock.xpm
create mode 100644 fluid/flCounter.xpm
create mode 100644 fluid/flDeclaration.xpm
create mode 100644 fluid/flDeclarationBlock.xpm
create mode 100644 fluid/flDial.xpm
create mode 100644 fluid/flFIleInput.xpm
create mode 100644 fluid/flFileBrowser.xpm
create mode 100644 fluid/flFunction.xpm
create mode 100644 fluid/flGroup.xpm
create mode 100644 fluid/flHelp.xpm
create mode 100644 fluid/flInput.xpm
create mode 100644 fluid/flLightButton.xpm
create mode 100644 fluid/flMenubar.xpm
create mode 100644 fluid/flMenubutton.xpm
create mode 100644 fluid/flMenuitem.xpm
create mode 100644 fluid/flOutput.xpm
create mode 100644 fluid/flPack.xpm
create mode 100644 fluid/flProgress.xpm
create mode 100644 fluid/flRepeatButton.xpm
create mode 100644 fluid/flReturnButton.xpm
create mode 100644 fluid/flRoller.xpm
create mode 100644 fluid/flRoundButton.xpm
create mode 100644 fluid/flScroll.xpm
create mode 100644 fluid/flScrollBar.xpm
create mode 100644 fluid/flSlider.xpm
create mode 100644 fluid/flSubmenu.xpm
create mode 100644 fluid/flTabs.xpm
create mode 100644 fluid/flTextDisplay.xpm
create mode 100644 fluid/flTextEdit.xpm
create mode 100644 fluid/flTile.xpm
create mode 100644 fluid/flValueInput.xpm
create mode 100644 fluid/flValueOutput.xpm
create mode 100644 fluid/flValueSlider.xpm
create mode 100644 fluid/flWindow.xpm
create mode 100644 fluid/flWizard.xpm
delete mode 100644 fluid/unlock.xpm
diff --git a/documentation/common.html b/documentation/common.html
index ca7b4c4fc..85d091138 100644
--- a/documentation/common.html
+++ b/documentation/common.html
@@ -451,7 +451,7 @@ structure containing the label information, the bounding box for
the label, and the label alignment:
-void xyz_draw(Fl_Label *label, int x, int y, int w, int h, Fl_Align align) {
+void xyz_draw(const Fl_Label *label, int x, int y, int w, int h, Fl_Align align) {
...
}
@@ -465,7 +465,7 @@ is not called if the label value is NULL.
height:
-void xyz_measure(Fl_Label *label, int &w, int &h) {
+void xyz_measure(const Fl_Label *label, int &w, int &h) {
...
}
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx
index 5e777b76a..91e5b9bcc 100644
--- a/fluid/Fl_Type.cxx
+++ b/fluid/Fl_Type.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Type.cxx,v 1.6.2.6.2.9 2002/08/09 22:57:00 easysw Exp $"
+// "$Id: Fl_Type.cxx,v 1.6.2.6.2.10 2002/10/30 21:06:11 matthiaswm Exp $"
//
// Widget type code for the Fast Light Tool Kit (FLTK).
//
@@ -46,10 +46,112 @@
#include
#include "lock.xpm"
-#include "unlock.xpm"
+//#include "unlock.xpm"
static Fl_Pixmap lock_pixmap(lock_xpm);
-static Fl_Pixmap unlock_pixmap(unlock_xpm);
+//static Fl_Pixmap unlock_pixmap(unlock_xpm);
+
+#include "flWindow.xpm"
+#include "flButton.xpm"
+#include "flCheckButton.xpm"
+#include "flRoundButton.xpm"
+#include "flBox.xpm"
+#include "flGroup.xpm"
+#include "flFunction.xpm"
+#include "flCode.xpm"
+#include "flCodeBlock.xpm"
+#include "flDeclaration.xpm"
+#include "flDeclarationBlock.xpm"
+#include "flClass.xpm"
+#include "flTabs.xpm"
+#include "flInput.xpm"
+#include "flChoice.xpm"
+#include "flMenuitem.xpm"
+#include "flMenubar.xpm"
+#include "flSubmenu.xpm"
+#include "flScroll.xpm"
+#include "flTile.xpm"
+#include "flWizard.xpm"
+#include "flPack.xpm"
+#include "flReturnButton.xpm"
+#include "flLightButton.xpm"
+#include "flRepeatButton.xpm"
+#include "flMenuButton.xpm"
+#include "flOutput.xpm"
+#include "flTextDisplay.xpm"
+#include "flTextEdit.xpm"
+#include "flFileInput.xpm"
+#include "flBrowser.xpm"
+#include "flCheckBrowser.xpm"
+#include "flFileBrowser.xpm"
+#include "flClock.xpm"
+#include "flHelp.xpm"
+#include "flProgress.xpm"
+#include "flSlider.xpm"
+#include "flScrollBar.xpm"
+#include "flValueSlider.xpm"
+#include "flAdjuster.xpm"
+#include "flCounter.xpm"
+#include "flDial.xpm"
+#include "flRoller.xpm"
+#include "flValueInput.xpm"
+#include "flValueOutput.xpm"
+
+static Fl_Pixmap window_pixmap(flWindow_xpm);
+static Fl_Pixmap button_pixmap(flButton_xpm);
+static Fl_Pixmap checkbutton_pixmap(flCheckButton_xpm);
+static Fl_Pixmap roundbutton_pixmap(flRoundButton_xpm);
+static Fl_Pixmap box_pixmap(flBox_xpm);
+static Fl_Pixmap group_pixmap(flGroup_xpm);
+static Fl_Pixmap function_pixmap(flFunction_xpm);
+static Fl_Pixmap code_pixmap(flCode_xpm);
+static Fl_Pixmap codeblock_pixmap(flCodeBlock_xpm);
+static Fl_Pixmap declaration_pixmap(flDeclaration_xpm);
+static Fl_Pixmap declarationblock_pixmap(flDeclarationBlock_xpm);
+static Fl_Pixmap class_pixmap(flClass_xpm);
+static Fl_Pixmap tabs_pixmap(flTabs_xpm);
+static Fl_Pixmap input_pixmap(flInput_xpm);
+static Fl_Pixmap choice_pixmap(flChoice_xpm);
+static Fl_Pixmap menuitem_pixmap(flMenuitem_xpm);
+static Fl_Pixmap menubar_pixmap(flMenubar_xpm);
+static Fl_Pixmap submenu_pixmap(flSubmenu_xpm);
+static Fl_Pixmap scroll_pixmap(flScroll_xpm);
+static Fl_Pixmap tile_pixmap(flTile_xpm);
+static Fl_Pixmap wizard_pixmap(flWizard_xpm);
+static Fl_Pixmap pack_pixmap(flPack_xpm);
+static Fl_Pixmap returnbutton_pixmap(flReturnButton_xpm);
+static Fl_Pixmap lightbutton_pixmap(flLightButton_xpm);
+static Fl_Pixmap repeatbutton_pixmap(flRepeatButton_xpm);
+static Fl_Pixmap menubutton_pixmap(flMenuButton_xpm);
+static Fl_Pixmap output_pixmap(flOutput_xpm);
+static Fl_Pixmap textdisplay_pixmap(flTextDisplay_xpm);
+static Fl_Pixmap textedit_pixmap(flTextEdit_xpm);
+static Fl_Pixmap fileinput_pixmap(flFileInput_xpm);
+static Fl_Pixmap browser_pixmap(flBrowser_xpm);
+static Fl_Pixmap checkbrowser_pixmap(flCheckBrowser_xpm);
+static Fl_Pixmap filebrowser_pixmap(flFileBrowser_xpm);
+static Fl_Pixmap clock_pixmap(flClock_xpm);
+static Fl_Pixmap help_pixmap(flHelp_xpm);
+static Fl_Pixmap progress_pixmap(flProgress_xpm);
+static Fl_Pixmap slider_pixmap(flSlider_xpm);
+static Fl_Pixmap scrollbar_pixmap(flScrollBar_xpm);
+static Fl_Pixmap valueslider_pixmap(flValueSlider_xpm);
+static Fl_Pixmap adjuster_pixmap(flAdjuster_xpm);
+static Fl_Pixmap counter_pixmap(flCounter_xpm);
+static Fl_Pixmap dial_pixmap(flDial_xpm);
+static Fl_Pixmap roller_pixmap(flRoller_xpm);
+static Fl_Pixmap valueinput_pixmap(flValueInput_xpm);
+static Fl_Pixmap valueoutput_pixmap(flValueOutput_xpm);
+
+Fl_Pixmap *pixmap[] = { 0, &window_pixmap, &button_pixmap, &checkbutton_pixmap, &roundbutton_pixmap, /* 0..4 */
+ &box_pixmap, &group_pixmap, &function_pixmap, &code_pixmap, &codeblock_pixmap, &declaration_pixmap, /* 5..10 */
+ &declarationblock_pixmap, &class_pixmap, &tabs_pixmap, &input_pixmap, &choice_pixmap, /* 11..15 */
+ &menuitem_pixmap, &menubar_pixmap, &submenu_pixmap, &scroll_pixmap, &tile_pixmap, &wizard_pixmap, /* 16..21 */
+ &pack_pixmap, &returnbutton_pixmap, &lightbutton_pixmap, &repeatbutton_pixmap, &menubutton_pixmap, /* 22..26 */
+ &output_pixmap, &textdisplay_pixmap, &textedit_pixmap, &fileinput_pixmap, &browser_pixmap, /* 27..32 */
+ &checkbrowser_pixmap, &filebrowser_pixmap, &clock_pixmap, &help_pixmap, &progress_pixmap, /* 33..36 */
+ &slider_pixmap, &scrollbar_pixmap, &valueslider_pixmap, &adjuster_pixmap, &counter_pixmap, /* 37..41 */
+ &dial_pixmap, &roller_pixmap, &valueinput_pixmap, &valueoutput_pixmap, /* 42..45*/ };
////////////////////////////////////////////////////////////////
@@ -135,11 +237,13 @@ extern const char* subclassname(Fl_Type*);
void Widget_Browser::item_draw(void *v, int X, int Y, int, int) const {
Fl_Type *l = (Fl_Type *)v;
- X += 3 + 16 + l->level * 10;
+ X += 3 + 18 + l->level * 12;
if (l->new_selected) fl_color(fl_contrast(FL_BLACK,FL_SELECTION_COLOR));
else fl_color(FL_BLACK);
- if (l->is_public() == 0) lock_pixmap.draw(X - 16, Y);
- else if (l->is_public() > 0) unlock_pixmap.draw(X - 16, Y);
+ Fl_Pixmap *pm = pixmap[l->pixmapID()];
+ if (pm) pm->draw(X-18, Y);
+ if (l->is_public() == 0) lock_pixmap.draw(X - 17, Y);
+ else if (l->is_public() > 0) ; //unlock_pixmap.draw(X - 17, Y);
if (l->is_parent()) {
if (!l->next || l->next->level <= l->level) {
if (l->open_!=(l==pushedtitle)) {
@@ -680,5 +784,5 @@ void Fl_Type::read_property(const char *c) {
int Fl_Type::read_fdesign(const char*, const char*) {return 0;}
//
-// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.9 2002/08/09 22:57:00 easysw Exp $".
+// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.10 2002/10/30 21:06:11 matthiaswm Exp $".
//
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
index d1fed8451..2c4fa0540 100644
--- a/fluid/Fl_Type.h
+++ b/fluid/Fl_Type.h
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Type.h,v 1.5.2.11.2.6 2002/08/09 22:57:00 easysw Exp $"
+// "$Id: Fl_Type.h,v 1.5.2.11.2.7 2002/10/30 21:06:14 matthiaswm Exp $"
//
// Widget type header file for the Fast Light Tool Kit (FLTK).
//
@@ -127,6 +127,8 @@ public:
virtual int is_class() const;
virtual int is_public() const;
+ virtual int pixmapID() { return 0; }
+
const char* class_name(const int need_nest) const;
};
@@ -146,6 +148,7 @@ public:
int is_parent() const {return 1;}
int is_code_block() const {return 1;}
virtual int is_public() const;
+ int pixmapID() { return 7; }
void write_properties();
void read_property(const char *);
};
@@ -158,6 +161,7 @@ public:
void open();
virtual const char *type_name() {return "code";}
int is_code_block() const {return 0;}
+ int pixmapID() { return 8; }
virtual int is_public() const;
};
@@ -172,6 +176,7 @@ public:
int is_code_block() const {return 1;}
int is_parent() const {return 1;}
virtual int is_public() const;
+ int pixmapID() { return 9; }
void write_properties();
void read_property(const char *);
};
@@ -187,6 +192,7 @@ public:
void write_properties();
void read_property(const char *);
virtual int is_public() const;
+ int pixmapID() { return 10; }
};
class Fl_DeclBlock_Type : public Fl_Type {
@@ -201,6 +207,7 @@ public:
void read_property(const char *);
int is_parent() const {return 1;}
int is_decl_block() const {return 1;}
+ int pixmapID() { return 11; }
};
class Fl_Class_Type : public Fl_Type {
@@ -220,6 +227,7 @@ public:
int is_decl_block() const {return 1;}
int is_class() const {return 1;}
virtual int is_public() const;
+ int pixmapID() { return 12; }
void write_properties();
void read_property(const char *);
};
@@ -327,6 +335,7 @@ public:
void remove_child(Fl_Type*);
int is_parent() const {return 1;}
int is_group() const {return 1;}
+ int pixmapID() { return 6; }
};
extern const char pack_type_name[];
@@ -337,6 +346,7 @@ class Fl_Pack_Type : public Fl_Group_Type {
public:
virtual const char *type_name() {return pack_type_name;}
Fl_Widget_Type *_make() {return new Fl_Pack_Type();}
+ int pixmapID() { return 22; }
};
extern const char tabs_type_name[];
@@ -350,6 +360,7 @@ public:
Fl_Type* click_test(int,int);
void add_child(Fl_Type*, Fl_Type*);
void remove_child(Fl_Type*);
+ int pixmapID() { return 13; }
};
extern const char scroll_type_name[];
@@ -360,6 +371,7 @@ class Fl_Scroll_Type : public Fl_Group_Type {
public:
virtual const char *type_name() {return scroll_type_name;}
Fl_Widget_Type *_make() {return new Fl_Scroll_Type();}
+ int pixmapID() { return 19; }
};
extern const char tile_type_name[];
@@ -368,6 +380,7 @@ class Fl_Tile_Type : public Fl_Group_Type {
public:
virtual const char *type_name() {return tile_type_name;}
Fl_Widget_Type *_make() {return new Fl_Tile_Type();}
+ int pixmapID() { return 20; }
};
extern const char wizard_type_name[];
@@ -378,6 +391,7 @@ public:
Fl_Widget *widget(int X,int Y,int W,int H) {
iwizard *g = new iwizard(X,Y,W,H); Fl_Group::current(0); return g;}
Fl_Widget_Type *_make() {return new Fl_Wizard_Type();}
+ int pixmapID() { return 21; }
};
extern Fl_Menu_Item window_type_menu[];
@@ -404,6 +418,7 @@ class Fl_Window_Type : public Fl_Widget_Type {
Fl_Widget *widget(int,int,int,int) {return 0;}
int recalc; // set by fix_overlay()
void moveallchildren();
+ int pixmapID() { return 1; }
public:
@@ -446,6 +461,7 @@ public:
void write_item();
void write_code1();
void write_code2();
+ int pixmapID() { return 16; }
};
class Fl_Submenu_Type : public Fl_Menu_Item_Type {
@@ -460,6 +476,7 @@ public:
void add_child(Fl_Type*a, Fl_Type*b) {parent->add_child(a,b);}
void move_child(Fl_Type*a, Fl_Type*b) {parent->move_child(a,b);}
void remove_child(Fl_Type*a) {parent->remove_child(a);}
+ int pixmapID() { return 18; }
};
@@ -502,6 +519,7 @@ public:
Fl_Widget *widget(int X,int Y,int W,int H) {
return new Fl_Menu_Button(X,Y,W,H,"menu");}
Fl_Widget_Type *_make() {return new Fl_Menu_Button_Type();}
+ int pixmapID() { return 26; }
};
extern Fl_Menu_Item dummymenu[];
@@ -516,6 +534,7 @@ public:
return myo;
}
Fl_Widget_Type *_make() {return new Fl_Choice_Type();}
+ int pixmapID() { return 15; }
};
#include
@@ -525,6 +544,7 @@ public:
Fl_Widget *widget(int X,int Y,int W,int H) {
return new Fl_Menu_Bar(X,Y,W,H);}
Fl_Widget_Type *_make() {return new Fl_Menu_Bar_Type();}
+ int pixmapID() { return 17; }
};
// object list operations:
Fl_Widget *make_widget_browser(int X,int Y,int W,int H);
@@ -567,5 +587,5 @@ int storestring(const char *n, const char * & p, int nostrip=0);
extern int include_H_from_C;
//
-// End of "$Id: Fl_Type.h,v 1.5.2.11.2.6 2002/08/09 22:57:00 easysw Exp $".
+// End of "$Id: Fl_Type.h,v 1.5.2.11.2.7 2002/10/30 21:06:14 matthiaswm Exp $".
//
diff --git a/fluid/factory.cxx b/fluid/factory.cxx
index e47718349..cf7f653d4 100644
--- a/fluid/factory.cxx
+++ b/fluid/factory.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: factory.cxx,v 1.4.2.11.2.8 2002/05/16 12:47:43 easysw Exp $"
+// "$Id: factory.cxx,v 1.4.2.11.2.9 2002/10/30 21:06:18 matthiaswm Exp $"
//
// Widget factory code for the Fast Light Tool Kit (FLTK).
//
@@ -34,11 +34,14 @@
#include
#include
#include
+#include
#include
#include "../src/flstring.h"
#include "Fl_Widget_Type.h"
+extern Fl_Pixmap *pixmap[];
+
#if !HAVE_STRCASECMP
//
// 'strcasecmp()' - Do a case-insensitive compare...
@@ -74,6 +77,7 @@ public:
Fl_Widget *widget(int x,int y,int w, int h) {
return new Fl_Box(x,y,w,h,"label");}
Fl_Widget_Type *_make() {return new Fl_Box_Type();}
+ int pixmapID() { return 5; }
};
static Fl_Box_Type Fl_Box_type;
@@ -93,6 +97,7 @@ public:
return new Fl_Button(x,y,w,h,"button");}
Fl_Widget_Type *_make() {return new Fl_Button_Type();}
int is_button() const {return 1;}
+ int pixmapID() { return 2; }
};
static Fl_Button_Type Fl_Button_type;
@@ -105,6 +110,7 @@ public:
Fl_Widget *widget(int x,int y,int w,int h) {
return new Fl_Return_Button(x,y,w,h,0);}
Fl_Widget_Type *_make() {return new Fl_Return_Button_Type();}
+ int pixmapID() { return 23; }
};
static Fl_Return_Button_Type Fl_Return_Button_type;
@@ -117,6 +123,7 @@ public:
Fl_Widget *widget(int x,int y,int w,int h) {
return new Fl_Repeat_Button(x,y,w,h,0);}
Fl_Widget_Type *_make() {return new Fl_Repeat_Button_Type();}
+ int pixmapID() { return 25; }
};
static Fl_Repeat_Button_Type Fl_Repeat_Button_type;
@@ -129,6 +136,7 @@ public:
Fl_Widget *widget(int x,int y,int w,int h) {
return new Fl_Light_Button(x,y,w,h,"button");}
Fl_Widget_Type *_make() {return new Fl_Light_Button_Type();}
+ int pixmapID() { return 24; }
};
static Fl_Light_Button_Type Fl_Light_Button_type;
@@ -141,6 +149,7 @@ public:
Fl_Widget *widget(int x,int y,int w,int h) {
return new Fl_Check_Button(x,y,w,h,"button");}
Fl_Widget_Type *_make() {return new Fl_Check_Button_Type();}
+ int pixmapID() { return 3; }
};
static Fl_Check_Button_Type Fl_Check_Button_type;
@@ -153,6 +162,7 @@ public:
Fl_Widget *widget(int x,int y,int w,int h) {
return new Fl_Round_Button(x,y,w,h,"button");}
Fl_Widget_Type *_make() {return new Fl_Round_Button_Type();}
+ int pixmapID() { return 4; }
};
static Fl_Round_Button_Type Fl_Round_Button_type;
@@ -189,6 +199,7 @@ public:
return b;
}
Fl_Widget_Type *_make() {return new Fl_Browser_Type();}
+ int pixmapID() { return 31; }
};
static Fl_Browser_Type Fl_Browser_type;
@@ -223,6 +234,7 @@ public:
return b;
}
Fl_Widget_Type *_make() {return new Fl_Check_Browser_Type();}
+ int pixmapID() { return 32; }
};
static Fl_Check_Browser_Type Fl_Check_Browser_type;
@@ -253,6 +265,7 @@ public:
return b;
}
Fl_Widget_Type *_make() {return new Fl_File_Browser_Type();}
+ int pixmapID() { return 33; }
};
static Fl_File_Browser_Type Fl_File_Browser_type;
@@ -279,6 +292,7 @@ class Fl_Counter_Type : public Fl_Widget_Type {
Fl_Menu_Item *subtypes() {return counter_type_menu;}
int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c);
int is_valuator() const {return 1;}
+ int pixmapID() { return 41; }
public:
virtual const char *type_name() {return "Fl_Counter";}
Fl_Widget *widget(int x,int y,int w,int h) {
@@ -320,6 +334,7 @@ public:
return myo;
}
Fl_Widget_Type *_make() {return new Fl_Input_Type();}
+ int pixmapID() { return 14; }
};
static Fl_Input_Type Fl_Input_type;
@@ -349,6 +364,7 @@ public:
return myo;
}
Fl_Widget_Type *_make() {return new Fl_File_Input_Type();}
+ int pixmapID() { return 30; }
};
static Fl_File_Input_Type Fl_File_Input_type;
@@ -376,6 +392,7 @@ public:
return myo;
}
Fl_Widget_Type *_make() {return new Fl_Text_Display_Type();}
+ int pixmapID() { return 28; }
};
static Fl_Text_Display_Type Fl_Text_Display_type;
@@ -403,6 +420,7 @@ public:
return myo;
}
Fl_Widget_Type *_make() {return new Fl_Text_Editor_Type();}
+ int pixmapID() { return 29; }
};
static Fl_Text_Editor_Type Fl_Text_Editor_type;
@@ -427,6 +445,7 @@ public:
Fl_Widget *widget(int x,int y,int w,int h) {
return new Fl_Clock(x,y,w,h);}
Fl_Widget_Type *_make() {return new Fl_Clock_Type();}
+ int pixmapID() { return 34; }
};
static Fl_Clock_Type Fl_Clock_type;
@@ -442,6 +461,7 @@ public:
"This is a Fl_Help_View widget.