summaryrefslogtreecommitdiff
path: root/fluid/Fd_Snap_Action.h
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-09-26 15:01:03 +0100
committerGitHub <noreply@github.com>2023-09-26 16:01:03 +0200
commit71b8e77935bc9b0a3afc97d322037f2549165d2f (patch)
treea7e5e0cfec35b0ab30d6369d7b9ecd9eb3ddd48b /fluid/Fd_Snap_Action.h
parent2bbdd4946561444fffba2bf047b0926a2cf9f5fe (diff)
FLUID: adds greatly enhanced Shell Commands (#774)
The user can add an arbitrary number of highly configurable shell commands through the setting panel. The commands can be saved as user preferences, inside the .fl file, or exported to an external file. Shell scripts can be limited to individual platforms, can have shortcut keys, etc. . * documentation will follow * support to call `fltk-config` will follow
Diffstat (limited to 'fluid/Fd_Snap_Action.h')
-rw-r--r--fluid/Fd_Snap_Action.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/fluid/Fd_Snap_Action.h b/fluid/Fd_Snap_Action.h
index 1355332a9..fefb4618f 100644
--- a/fluid/Fd_Snap_Action.h
+++ b/fluid/Fd_Snap_Action.h
@@ -17,6 +17,7 @@
#ifndef _FLUID_FD_SNAP_ACTION_H
#define _FLUID_FD_SNAP_ACTION_H
+#include "fluid.h"
#include "Fl_Window_Type.h"
#include <FL/Fl_String.H>
@@ -26,16 +27,6 @@ struct Fl_Menu_Item;
extern Fl_Menu_Item main_layout_submenu_[];
/**
- Indicate the storage location for a layout suite.
- */
-enum {
- FD_STORE_INTERNAL, ///< stored inside FLUID app
- FD_STORE_USER, ///< suite is stored in the user wide FLUID settings
- FD_STORE_PROJECT, ///< suite is stored within the current .fl project file
- FD_STORE_FILE ///< store suite in external file
-};
-
-/**
\brief Collection of layout settings.
Presets contain default fonts and font sizes for labels and text. They
@@ -97,13 +88,13 @@ public:
char *name_; ///< name of the suite
char *menu_label; ///< label text used in pulldown menu
Fd_Layout_Preset *layout[3]; ///< presets for application, dialog, and toolbox windows
- int storage_; ///< storage location (see FD_STORE_INTERNAL, etc.)
+ Fd_Tool_Store storage_; ///< storage location (see FD_STORE_INTERNAL, etc.)
void write(Fl_Preferences &prefs);
void read(Fl_Preferences &prefs);
void write(Fd_Project_Writer*);
void read(Fd_Project_Reader*);
void update_label();
- void storage(int s) { storage_ = s; update_label(); }
+ void storage(Fd_Tool_Store s) { storage_ = s; update_label(); }
void name(const char *n);
void init();
~Fd_Layout_Suite();
@@ -146,13 +137,13 @@ public:
int load(const Fl_String &filename);
int save(const Fl_String &filename);
- void write(Fl_Preferences &prefs, int storage);
- void read(Fl_Preferences &prefs, int storage);
+ void write(Fl_Preferences &prefs, Fd_Tool_Store storage);
+ void read(Fl_Preferences &prefs, Fd_Tool_Store storage);
void write(Fd_Project_Writer*);
void read(Fd_Project_Reader*);
int add(Fd_Layout_Suite*);
void remove(int index);
- void remove_all(int storage);
+ void remove_all(Fd_Tool_Store storage);
Fd_Layout_Preset *at(int);
int size();
};