From c232e9822d348eec68593ba6753b98ae9f85dfdb Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 17 Sep 2008 22:43:15 +0000 Subject: This is a stab at supporting Doxygen comments from withing Fluid. Just double click on a function, class, or declaration and you will be able to add a comment. Comments welcome. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Type.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fluid/Fl_Type.h') diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index a3bf02490..d26353863 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -57,6 +57,7 @@ protected: const char *callback_; const char *user_data_; const char *user_data_type_; + const char *comment_; public: // things that should not be public: @@ -99,6 +100,8 @@ public: void user_data(const char *); const char *user_data_type() const {return user_data_type_;} void user_data_type(const char *); + const char *comment() { return comment_; } + void comment(const char *); virtual Fl_Type* click_test(int,int); virtual void add_child(Fl_Type*, Fl_Type* beforethis); @@ -118,6 +121,8 @@ public: virtual void write_static(); // write static stuff to .c file virtual void write_code1(); // code and .h before children virtual void write_code2(); // code and .h after children + void write_comment_h(const char *ind=""); // write the commentary text into the header file + void write_comment_c(const char *ind=""); // write the commentary text into the source file // live mode virtual Fl_Widget *enter_live_mode(int top=0); // build wdgets needed for live mode -- cgit v1.2.3