summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-03-09 21:26:53 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-03-09 21:26:53 +0000
commitfc1a4cf809de316d356672a834b7f2f797032d98 (patch)
tree7702d3ae290313a22261baf06892ac148aaa1243 /fluid/Fl_Type.h
parent2bbee87dc306d6beeb8f0a0a4bd3b6092eb6eee5 (diff)
Added a new Type to fluid called 'Comment' to be used for standardized Copyright notices and other comments throughout the source code.
- simply add the 'Comment' type from the 'New' menu or the Widget Bin - comments in the very first position will be added at the very beginning of the source file or header. Comments at the end are at the very end in source and headers as well. - if the users enters simple text, FLUID will add '// ' in front of every line. If a line already starts with '//' or a block starts with '/*', the text will be copied verbatim. - text can be loaded from files - text can be stored in a database and quickly retrieved later via a pulldown menu. The pulldown menu is customizable. Enjoy! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.h')
-rw-r--r--fluid/Fl_Type.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
index 72574a5bc..6e2f63e4e 100644
--- a/fluid/Fl_Type.h
+++ b/fluid/Fl_Type.h
@@ -125,6 +125,7 @@ public:
virtual int is_window() const;
virtual int is_code_block() const;
virtual int is_decl_block() const;
+ virtual int is_comment() const;
virtual int is_class() const;
virtual int is_public() const;
@@ -213,6 +214,21 @@ public:
int pixmapID() { return 11; }
};
+class Fl_Comment_Type : public Fl_Type {
+ char in_c_, in_h_, style_;
+public:
+ Fl_Type *make();
+ void write_code1();
+ void write_code2();
+ void open();
+ virtual const char *type_name() {return "comment";}
+ void write_properties();
+ void read_property(const char *);
+ virtual int is_public() const { return 1; }
+ virtual int is_comment() const { return 1; }
+ int pixmapID() { return 46; }
+};
+
class Fl_Class_Type : public Fl_Type {
const char* subclass_of;
char public_;