diff options
Diffstat (limited to 'fluid/nodes/Node.h')
| -rw-r--r-- | fluid/nodes/Node.h | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/fluid/nodes/Node.h b/fluid/nodes/Node.h index a20dd7258..91a1ad84f 100644 --- a/fluid/nodes/Node.h +++ b/fluid/nodes/Node.h @@ -26,15 +26,9 @@ class Node; class Group_Node; class Window_Node; -namespace fld { -namespace io { - class Project_Reader; class Project_Writer; -} // namespace io -} // namespace fld - /** Declare where a new type is placed and how to create it. @@ -53,8 +47,8 @@ class Project_Writer; Add a hierarchy of Types void Node::add(Node *p, Strategy strategy) int read_file(const char *filename, int merge, Strategy strategy) - Node *fld::io::Project_Reader::read_children(Node *p, int merge, Strategy strategy, char skip_options) - int fld::io::Project_Reader::read_project(const char *filename, int merge, Strategy strategy) + Node *Project_Reader::read_children(Node *p, int merge, Strategy strategy, char skip_options) + int Project_Reader::read_project(const char *filename, int merge, Strategy strategy) */ typedef struct Strategy { enum Flags { @@ -195,7 +189,7 @@ public: // things that should not be public: Node *first_child(); Node *factory; - const char *callback_name(fld::io::Code_Writer& f); + const char *callback_name(Code_Writer& f); // text positions of this type in code, header, and project file (see codeview) int code_static_start, code_static_end; @@ -256,22 +250,22 @@ public: virtual void open(); // what happens when you double-click // read and write data to a saved file: - virtual void write(fld::io::Project_Writer &f); - virtual void write_properties(fld::io::Project_Writer &f); - virtual void read_property(fld::io::Project_Reader &f, const char *); - virtual void write_parent_properties(fld::io::Project_Writer &f, Node *child, bool encapsulate); - virtual void read_parent_property(fld::io::Project_Reader &f, Node *child, const char *property); + virtual void write(Project_Writer &f); + virtual void write_properties(Project_Writer &f); + virtual void read_property(Project_Reader &f, const char *); + virtual void write_parent_properties(Project_Writer &f, Node *child, bool encapsulate); + virtual void read_parent_property(Project_Reader &f, Node *child, const char *property); virtual int read_fdesign(const char*, const char*); virtual void postprocess_read() { } // write code, these are called in order: - virtual void write_static(fld::io::Code_Writer& f); // write static stuff to .c file - virtual void write_static_after(fld::io::Code_Writer& f); // write static stuff after children - virtual void write_code1(fld::io::Code_Writer& f); // code and .h before children - virtual void write_code2(fld::io::Code_Writer& f); // code and .h after children - void write_comment_h(fld::io::Code_Writer& f, const char *ind=""); // write the commentary text into the header file - void write_comment_c(fld::io::Code_Writer& f, const char *ind=""); // write the commentary text into the source file - void write_comment_inline_c(fld::io::Code_Writer& f, const char *ind=0); // write the commentary text + virtual void write_static(Code_Writer& f); // write static stuff to .c file + virtual void write_static_after(Code_Writer& f); // write static stuff after children + virtual void write_code1(Code_Writer& f); // code and .h before children + virtual void write_code2(Code_Writer& f); // code and .h after children + void write_comment_h(Code_Writer& f, const char *ind=""); // write the commentary text into the header file + void write_comment_c(Code_Writer& f, const char *ind=""); // write the commentary text into the source file + void write_comment_inline_c(Code_Writer& f, const char *ind=0); // write the commentary text // live mode virtual Fl_Widget *enter_live_mode(int top=0); // build widgets needed for live mode |
