feat(cpn): Allow opening of individual model yml files (#1959)

- parse the yaml file and if successful open as a new document in a Models and Settings window
- warn the user that no radio conversion has been possible as source radio flavour unknown
- populate radio settings with default values based on current radio profile
This commit is contained in:
Neil Horne
2022-06-07 10:50:21 +10:00
committed by GitHub
parent 1e8ef179d6
commit cd59eac89f
3 changed files with 75 additions and 8 deletions
+1 -1
View File
@@ -39,6 +39,6 @@ class YamlFormat : public StorageFormat
virtual bool write(const RadioData & radioData);
protected:
bool loadFile(QByteArray & fileData, const QString & fileName);
bool loadFile(QByteArray & fileData);
bool writeFile(const QByteArray & fileData, const QString & fileName);
};