summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2002-10-30 21:08:39 +0000
committerMatthias Melcher <fltk@matthiasm.com>2002-10-30 21:08:39 +0000
commit41d14b074b64b4d55d09b3b6633972d9b069bc64 (patch)
treef09f1e9d0e57eb99854258fe114fb57d80fbc294 /fluid/Fl_Type.h
parent299ebf295a9f729f68d1ad3b923cef9e6747132c (diff)
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
Diffstat (limited to 'fluid/Fl_Type.h')
-rw-r--r--fluid/Fl_Type.h24
1 files changed, 22 insertions, 2 deletions
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 <FL/Fl_Menu_Bar.H>
@@ -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 $".
//