diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-07-17 15:55:56 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-07-17 15:56:05 +0200 |
| commit | 80ad543963431f47f3fd8ae2d06d2fa32341299e (patch) | |
| tree | 088f01082e3c8ec26e022372082c9bc2e106e94e /fluid/Fl_Function_Type.h | |
| parent | 4d94a08bd2fcd681d33bfb51228ace3b432b19ab (diff) | |
FLUID: using symbols instead of integers
Diffstat (limited to 'fluid/Fl_Function_Type.h')
| -rw-r--r-- | fluid/Fl_Function_Type.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fluid/Fl_Function_Type.h b/fluid/Fl_Function_Type.h index c53223fd2..9669c29c4 100644 --- a/fluid/Fl_Function_Type.h +++ b/fluid/Fl_Function_Type.h @@ -61,7 +61,7 @@ public: int is_parent() const FL_OVERRIDE {return 1;} int is_code_block() const FL_OVERRIDE {return 1;} int is_public() const FL_OVERRIDE; - int pixmapID() FL_OVERRIDE { return 7; } + ID id() const FL_OVERRIDE { return ID::Function; } void write_properties(Fd_Project_Writer &f) FL_OVERRIDE; void read_property(Fd_Project_Reader &f, const char *) FL_OVERRIDE; int has_signature(const char *, const char*) const; @@ -85,7 +85,7 @@ public: const char *type_name() FL_OVERRIDE {return "code";} int is_code_block() const FL_OVERRIDE {return 0;} int is_code() const FL_OVERRIDE {return 1;} - int pixmapID() FL_OVERRIDE { return 8; } + ID id() const FL_OVERRIDE { return ID::Code; } int is_public() const FL_OVERRIDE { return -1; } int is_editing(); int reap_editor(); @@ -108,7 +108,7 @@ public: int is_code_block() const FL_OVERRIDE {return 1;} int is_parent() const FL_OVERRIDE {return 1;} int is_public() const FL_OVERRIDE { return -1; } - int pixmapID() FL_OVERRIDE { return 9; } + ID id() const FL_OVERRIDE { return ID::CodeBlock; } void write_properties(Fd_Project_Writer &f) FL_OVERRIDE; void read_property(Fd_Project_Reader &f, const char *) FL_OVERRIDE; }; @@ -131,7 +131,7 @@ public: void write_properties(Fd_Project_Writer &f) FL_OVERRIDE; void read_property(Fd_Project_Reader &f, const char *) FL_OVERRIDE; int is_public() const FL_OVERRIDE; - int pixmapID() FL_OVERRIDE { return 10; } + ID id() const FL_OVERRIDE { return ID::Decl; } }; // ---- Fl_Data_Type declaration @@ -150,7 +150,7 @@ public: const char *type_name() FL_OVERRIDE {return "data";} void write_properties(Fd_Project_Writer &f) FL_OVERRIDE; void read_property(Fd_Project_Reader &f, const char *) FL_OVERRIDE; - int pixmapID() FL_OVERRIDE { return 49; } + ID id() const FL_OVERRIDE { return ID::Data; } }; // ---- Fl_DeclBlock_Type declaration @@ -172,7 +172,7 @@ public: int is_parent() const FL_OVERRIDE {return 1;} int is_decl_block() const FL_OVERRIDE {return 1;} int is_public() const FL_OVERRIDE; - int pixmapID() FL_OVERRIDE { return 11; } + ID id() const FL_OVERRIDE { return ID::DeclBlock; } }; // ---- Fl_Comment_Type declaration @@ -193,7 +193,7 @@ public: void read_property(Fd_Project_Reader &f, const char *) FL_OVERRIDE; int is_public() const FL_OVERRIDE { return 1; } int is_comment() const FL_OVERRIDE { return 1; } - int pixmapID() FL_OVERRIDE { return 46; } + ID id() const FL_OVERRIDE { return ID::Comment; } }; // ---- Fl_Class_Type declaration @@ -219,7 +219,7 @@ public: int is_decl_block() const FL_OVERRIDE {return 1;} int is_class() const FL_OVERRIDE {return 1;} int is_public() const FL_OVERRIDE; - int pixmapID() FL_OVERRIDE { return 12; } + ID id() const FL_OVERRIDE { return ID::Class; } void write_properties(Fd_Project_Writer &f) FL_OVERRIDE; void read_property(Fd_Project_Reader &f, const char *) FL_OVERRIDE; |
