[apps/graph][apps/regression][app/sequence] Move model and range

versions to the snapshot

Change-Id: I6ec56ab59d734c0c43a5df32462173c611cc68b3
This commit is contained in:
Émilie Feral
2017-05-18 10:34:50 +02:00
parent 6b2ae04a13
commit e702c1f61b
19 changed files with 88 additions and 45 deletions

View File

@@ -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);
};
}