mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 16:20:49 +01:00
[apps] An expression model names contains the extension
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Graph {
|
||||
class StorageCartesianFunction : public Shared::StorageFunction {
|
||||
public:
|
||||
static const char * Extension() { return Poincare::GlobalContext::funcExtension; }
|
||||
static StorageCartesianFunction EmptyModel() { return StorageCartesianFunction("function", KDColorRed); }
|
||||
static StorageCartesianFunction EmptyModel() { return StorageCartesianFunction("function.func", KDColorRed); }
|
||||
StorageCartesianFunction(const char * text = nullptr, KDColor color = KDColorBlack);
|
||||
StorageCartesianFunction(Ion::Storage::Record record);
|
||||
bool operator==(const StorageCartesianFunction & other) const { return record() == other.record(); }
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
T addEmptyModel() {
|
||||
T newModel = T::EmptyModel();
|
||||
// TODO: create the record data (color, isActive and expression)
|
||||
Ion::Storage::sharedStorage()->createRecordWithExtension(newModel.name(), "func", nullptr, 0); //TODO
|
||||
Ion::Storage::sharedStorage()->createRecordWithFullName(newModel.name(), nullptr, 0); //TODO
|
||||
return newModel;
|
||||
}
|
||||
void removeModel(T f) {
|
||||
|
||||
Reference in New Issue
Block a user