feat(cpn): Add two more new model actions: template and prompt (#1963)

* Add new model actions to application settings

* Add new model prompt action

* Tweak wording

* Add new model action template

* Open individual model yml files

* Tidy up after importing template

* Add create default and edit to prompt options

* Fix edit mode to display the edit dialog after model creation when selected in settings
This commit is contained in:
Neil Horne
2022-06-07 17:53:03 +10:00
committed by GitHub
parent cba4e07ce1
commit 1964560774
5 changed files with 102 additions and 42 deletions
+5 -1
View File
@@ -451,10 +451,14 @@ class AppData: public CompStoreObj
enum NewModelAction {
MODEL_ACT_NONE,
MODEL_ACT_WIZARD,
MODEL_ACT_EDITOR
MODEL_ACT_EDITOR,
MODEL_ACT_TEMPLATE,
MODEL_ACT_PROMPT
};
Q_ENUM(NewModelAction)
static QStringList newModelActionsList() { return { tr("None"), tr("Wizard"), tr("Editor"), tr("Template"), tr("Prompt") } ; }
explicit AppData();
void init() override;
void initAll();