diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-24 14:28:56 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-24 14:29:01 +0200 |
| commit | e8d218109e246b14df0cdf2d818e2575c8108e9f (patch) | |
| tree | 64c3f3ae1acd99f81fd54d6391591663981c9b23 /fluid/file.h | |
| parent | 5a8a28cbb5fd627dfd032b996cd83d0965d9ac5e (diff) | |
FLUID: Adds much more detailed CodeView
in preparation for "find" and "reveal"
Diffstat (limited to 'fluid/file.h')
| -rw-r--r-- | fluid/file.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fluid/file.h b/fluid/file.h index e45bd4256..3db9a974b 100644 --- a/fluid/file.h +++ b/fluid/file.h @@ -26,7 +26,7 @@ class Fl_Type; extern int fdesign_flip; int read_file(const char *, int merge, Strategy strategy=kAddAsLastChild); -int write_file(const char *, int selected_only = 0); +int write_file(const char *, int selected_only = 0, bool to_sourceview = false); class Fd_Project_Reader { @@ -62,18 +62,21 @@ class Fd_Project_Writer protected: FILE *fout; int needspace; + bool write_sourceview_; public: Fd_Project_Writer(); ~Fd_Project_Writer(); int open_write(const char *s); int close_write(); - int write_project(const char *filename, int selected_only); + int write_project(const char *filename, int selected_only, bool sourceview); void write_word(const char *); void write_string(const char *,...) __fl_attr((__format__ (__printf__, 2, 3))); void write_indent(int n); void write_open(int); void write_close(int n); + FILE *file() const { return fout; } + bool write_sourceview() const { return write_sourceview_; } }; #endif // _FLUID_FILE_H |
