summaryrefslogtreecommitdiff
path: root/fluid/shell_command.h
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2021-12-09 02:43:57 +0100
committerMatthias Melcher <git@matthiasm.com>2021-12-09 02:48:40 +0100
commit4f2febd801eadce214189f119090cbe0bb9c05b1 (patch)
treef34dfcaedd4304c73013e7568e85ab9024ab0c4e /fluid/shell_command.h
parent1be158a840922aa03682d39926dc60ecb487063b (diff)
Fluid STR 3460.D: Shell commands are now saved in the .fl file (user option)
The shell properties toolbox is completely redesigned: This dialog box offers a field for a command line and three check buttons to generate and save various files before the command is run. If the fourth checkbox, "use settings in .fl design files" is checked, all shell settings will be store in the current .fl file, and they will be read and restored when the .fl is loaded again. Fluid will save different shell settings for different operating system as it is common that a different OS requires a different shell command. Fluid comes with default shell settings. Pressing the "save as default" button will store the current setting in the Fluid app settings and are used for new designs, or if the "use settings..." box is not checked. Fluid app settings are saved per user and per machine.
Diffstat (limited to 'fluid/shell_command.h')
-rw-r--r--fluid/shell_command.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/fluid/shell_command.h b/fluid/shell_command.h
index cc86e0662..765806786 100644
--- a/fluid/shell_command.h
+++ b/fluid/shell_command.h
@@ -32,6 +32,29 @@
#endif
void show_shell_window();
+void apply_shell_window();
+void do_shell_command(class Fl_Return_Button*, void*);
+
+typedef struct {
+ char *command;
+ int flags;
+} Shell_Settings;
+
+extern Shell_Settings shell_settings_windows;
+extern Shell_Settings shell_settings_linux;
+extern Shell_Settings shell_settings_macos;
+
+extern char *g_shell_command;
+extern int g_shell_save_fl;
+extern int g_shell_save_code;
+extern int g_shell_save_strings;
+extern int g_shell_use_fl_settings;
+
+void shell_prefs_get();
+void shell_prefs_set();
+void shell_settings_read();
+void shell_settings_write();
+
class Fl_Process {
public: