mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph][apps/regression][app/sequence] Move model and range
versions to the snapshot Change-Id: I6ec56ab59d734c0c43a5df32462173c611cc68b3
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <poincare.h>
|
||||
#include "text_field_delegate_app.h"
|
||||
#include "curve_view_cursor.h"
|
||||
|
||||
class AppsContainer;
|
||||
|
||||
@@ -10,10 +11,23 @@ namespace Shared {
|
||||
|
||||
class FunctionApp : public TextFieldDelegateApp {
|
||||
public:
|
||||
FunctionApp(Container * container, Snapshot * snapshot, ViewController * rootViewController);
|
||||
class Snapshot : public ::App::Snapshot {
|
||||
public:
|
||||
Snapshot();
|
||||
CurveViewCursor * cursor();
|
||||
uint32_t * modelVersion();
|
||||
uint32_t * rangeVersion();
|
||||
protected:
|
||||
CurveViewCursor m_cursor;
|
||||
private:
|
||||
uint32_t m_modelVersion;
|
||||
uint32_t m_rangeVersion;
|
||||
};
|
||||
virtual ~FunctionApp() = default;
|
||||
virtual InputViewController * inputViewController() = 0;
|
||||
void willBecomeInactive() override;
|
||||
protected:
|
||||
FunctionApp(Container * container, Snapshot * snapshot, ViewController * rootViewController);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user