feat(cpn): Add individual model save to yml (#1968)
- add save model(s) to context menu and toolbar - new storage functions to support single model write - modified yml storage format write functions - default save directory is application sd card TEMPLATES - model name used as default file name
This commit is contained in:
@@ -57,6 +57,7 @@ class StorageFormat
|
||||
virtual ~StorageFormat() {}
|
||||
virtual bool load(RadioData & radioData) = 0;
|
||||
virtual bool write(const RadioData & radioData) = 0;
|
||||
virtual bool writeModel(const RadioData & radioData, const int modelIndex) { return false; }
|
||||
|
||||
QString error() {
|
||||
return _error;
|
||||
@@ -157,6 +158,7 @@ class Storage : public StorageFormat
|
||||
|
||||
virtual bool load(RadioData & radioData);
|
||||
virtual bool write(const RadioData & radioData);
|
||||
virtual bool writeModel(const RadioData & radioData, const int modelIndex);
|
||||
};
|
||||
|
||||
void registerStorageFactories();
|
||||
|
||||
Reference in New Issue
Block a user