diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-20 19:00:42 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-20 19:00:52 +0200 |
| commit | 9817536cfd4a9ea8d9bb5ef41580a5ba3d254911 (patch) | |
| tree | c2f313d24dad7a95742f4673907863c65fd771b2 /fluid/code.cxx | |
| parent | 757b5c12273cc1b4de8007b7c3f8536b699d2600 (diff) | |
FLUID: basic Fl_Grid support
* no settings for children yet
* ne good interactive editing for children
Diffstat (limited to 'fluid/code.cxx')
| -rw-r--r-- | fluid/code.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx index 1a66895a6..ba82ba562 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -656,14 +656,14 @@ Fl_Type* Fd_Code_Writer::write_code(Fl_Type* p) { } // write all code that come before the children code // (but don't write the last comment until the very end) - if (!(p==Fl_Type::last && p->is_a(Fl_Type::ID_Comment))) + if (!(p==Fl_Type::last && p->is_a(ID_Comment))) p->write_code1(*this); // recursively write the code of all children Fl_Type* q; if (p->is_widget() && p->is_class()) { // Handle widget classes specially for (q = p->next; q && q->level > p->level;) { - if (!q->is_a(Fl_Type::ID_Function)) q = write_code(q); + if (!q->is_a(ID_Function)) q = write_code(q); else { int level = q->level; do { @@ -676,7 +676,7 @@ Fl_Type* Fd_Code_Writer::write_code(Fl_Type* p) { p->write_code2(*this); for (q = p->next; q && q->level > p->level;) { - if (q->is_a(Fl_Type::ID_Function)) q = write_code(q); + if (q->is_a(ID_Function)) q = write_code(q); else { int level = q->level; do { @@ -733,7 +733,7 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_sourceview) // if the first entry in the Type tree is a comment, then it is probably // a copyright notice. We print that before anything else in the file! Fl_Type* first_type = Fl_Type::first; - if (first_type && first_type->is_a(Fl_Type::ID_Comment)) { + if (first_type && first_type->is_a(ID_Comment)) { if (write_sourceview) { first_type->code_position = (int)ftell(code_file); first_type->header_position = (int)ftell(header_file); @@ -850,7 +850,7 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_sourceview) fprintf(header_file, "#endif\n"); Fl_Type* last_type = Fl_Type::last; - if (last_type && last_type->is_a(Fl_Type::ID_Comment)) { + if (last_type && last_type->is_a(ID_Comment)) { if (write_sourceview) { last_type->code_position = (int)ftell(code_file); last_type->header_position = (int)ftell(header_file); |
