summaryrefslogtreecommitdiff
path: root/fluid/panels/codeview_panel.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-03-08 00:14:09 +0100
committerMatthias Melcher <github@matthiasm.com>2025-03-08 00:14:27 +0100
commit15ad447e2a0301b2aa4ea350615ae71f0e5e5ef5 (patch)
tree706f8f9a6317f1074951e6174a4857ebafbca117 /fluid/panels/codeview_panel.cxx
parentca22660bbb7efe4b38ab5af6a233a1ef5ef33389 (diff)
Fluid: last incremental chage, restructuring
Diffstat (limited to 'fluid/panels/codeview_panel.cxx')
-rw-r--r--fluid/panels/codeview_panel.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/fluid/panels/codeview_panel.cxx b/fluid/panels/codeview_panel.cxx
index 6a877896d..c1c6a1d65 100644
--- a/fluid/panels/codeview_panel.cxx
+++ b/fluid/panels/codeview_panel.cxx
@@ -18,7 +18,9 @@
#include "codeview_panel.h"
#include "app/fluid.h"
-#include "io/file.h"
+#include "app/project.h"
+#include "io/Project_Reader.h"
+#include "io/Project_Writer.h"
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Button.H>
#include "../src/flstring.h"
@@ -167,7 +169,7 @@ void update_codeview_cb(class Fl_Button*, void*) {
}
if (cv_project->visible_r()) {
- write_file(cv_design_filename, false, true);
+ fld::io::write_file(cv_design_filename, false, true);
int top = cv_project->top_line();
cv_project->buffer()->loadfile(cv_design_filename);
cv_project->scroll(top, 0);
@@ -188,7 +190,7 @@ void update_codeview_cb(class Fl_Button*, void*) {
g_project.header_file_name = cv_header_filename;
// generate the code and load the files
- Fd_Code_Writer f;
+ fld::io::Code_Writer f;
// generate files
if (f.write_code(cv_source_filename, cv_header_filename, true))
{