diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-08 00:14:09 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-03-08 00:14:27 +0100 |
| commit | 15ad447e2a0301b2aa4ea350615ae71f0e5e5ef5 (patch) | |
| tree | 706f8f9a6317f1074951e6174a4857ebafbca117 /fluid/app/shell_command.cxx | |
| parent | ca22660bbb7efe4b38ab5af6a233a1ef5ef33389 (diff) | |
Fluid: last incremental chage, restructuring
Diffstat (limited to 'fluid/app/shell_command.cxx')
| -rw-r--r-- | fluid/app/shell_command.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fluid/app/shell_command.cxx b/fluid/app/shell_command.cxx index df71a00f5..7012de8e6 100644 --- a/fluid/app/shell_command.cxx +++ b/fluid/app/shell_command.cxx @@ -98,7 +98,9 @@ #include "app/shell_command.h" #include "app/fluid.h" -#include "io/file.h" +#include "app/project.h" +#include "io/Project_Reader.h" +#include "io/Project_Writer.h" #include "panels/settings_panel.h" #include <FL/Fl_Double_Window.H> @@ -618,7 +620,7 @@ void Fd_Shell_Command::write(Fl_Preferences &prefs, bool save_location) { if (flags != 0) prefs.set("flags", flags); } -void Fd_Shell_Command::read(class Fd_Project_Reader *in) { +void Fd_Shell_Command::read(class fld::io::Project_Reader *in) { const char *c = in->read_word(1); if (strcmp(c, "{")!=0) return; // expecting start of group storage = FD_STORE_PROJECT; @@ -644,7 +646,7 @@ void Fd_Shell_Command::read(class Fd_Project_Reader *in) { } } -void Fd_Shell_Command::write(class Fd_Project_Writer *out) { +void Fd_Shell_Command::write(class fld::io::Project_Writer *out) { out->write_string("\n command {"); out->write_string("\n name "); out->write_word(name.c_str()); out->write_string("\n label "); out->write_word(label.c_str()); @@ -771,7 +773,7 @@ void Fd_Shell_Command_List::write(Fl_Preferences &prefs, Fd_Tool_Store storage) /** Read shell configuration from a project file. */ -void Fd_Shell_Command_List::read(Fd_Project_Reader *in) { +void Fd_Shell_Command_List::read(fld::io::Project_Reader *in) { const char *c = in->read_word(1); if (strcmp(c, "{")!=0) return; // expecting start of group clear(FD_STORE_PROJECT); @@ -791,7 +793,7 @@ void Fd_Shell_Command_List::read(Fd_Project_Reader *in) { /** Write shell configuration to a project file. */ -void Fd_Shell_Command_List::write(Fd_Project_Writer *out) { +void Fd_Shell_Command_List::write(fld::io::Project_Writer *out) { int n_in_project_file = 0; for (int i=0; i<list_size; i++) { if (list[i]->storage == FD_STORE_PROJECT) |
