mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Graph/Sequence: the function selected by the cursor has to be
save in the Snapshot to avoid weird selection when rebulding the app
This commit is contained in:
committed by
EmilieNumworks
parent
c9b86d0c86
commit
95f0efaf9f
@@ -8,6 +8,7 @@ namespace Shared {
|
||||
FunctionApp::Snapshot::Snapshot() :
|
||||
m_cursor(),
|
||||
m_interval(),
|
||||
m_indexFunctionSelectedByCursor(0),
|
||||
m_modelVersion(0),
|
||||
m_rangeVersion(0),
|
||||
m_angleUnitVersion(Expression::AngleUnit::Radian)
|
||||
@@ -37,10 +38,15 @@ Interval * FunctionApp::Snapshot::interval() {
|
||||
return &m_interval;
|
||||
}
|
||||
|
||||
int * FunctionApp::Snapshot::indexFunctionSelectedByCursor() {
|
||||
return &m_indexFunctionSelectedByCursor;
|
||||
}
|
||||
|
||||
void FunctionApp::Snapshot::reset() {
|
||||
m_interval.setStart(0);
|
||||
m_interval.setEnd(10);
|
||||
m_interval.setStep(1);
|
||||
m_indexFunctionSelectedByCursor = 0;
|
||||
m_modelVersion = 0;
|
||||
m_rangeVersion = 0;
|
||||
setActiveTab(0);
|
||||
|
||||
Reference in New Issue
Block a user