Add multiple external editors to options

This commit is contained in:
Lawrence Lee
2021-04-11 18:24:39 -07:00
parent f30f094a6c
commit be7aecac40
2 changed files with 183 additions and 0 deletions

View File

@@ -52,6 +52,17 @@
// Special name for the Dynamic profile
#define DEFPROFILE_DYNAMIC "Dynamic"
struct ExternalEditor {
ExternalEditor();
ExternalEditor(const Glib::ustring &name, const Glib::ustring &command, const Glib::ustring &icon_name);
Glib::ustring name;
Glib::ustring command;
Glib::ustring icon_name;
bool operator==(const ExternalEditor & other) const;
bool operator!=(const ExternalEditor & other) const;
};
struct SaveFormat {
SaveFormat(
const Glib::ustring& _format,
@@ -277,6 +288,8 @@ public:
Glib::ustring gimpDir;
Glib::ustring psDir;
Glib::ustring customEditorProg;
std::vector<ExternalEditor> externalEditors;
int externalEditorIndex;
Glib::ustring CPBPath; // Custom Profile Builder's path
CPBKeyType CPBKeys; // Custom Profile Builder's key type
int editorToSendTo;