logic: Refactored undo redo stack

* Store MessageActivateTokens instead of original view messages
* Renamed FeatureController to ActivationController
* Remove all non-activation messages from undo redo stack after reindexing project
* Added MessageShowReference to undo redo stack
* Added MessageScrollGraph for restoring graph view scroll position
* Fixed MessageGraphNodeMove not saved for bundles
* Refactored tokenIds and nodeNames in SearchMatch and MessageActivateTokens
* Refactored SearchController
* Fixed file expansion on undoing/redoing after switching code view mode
* Fixed redundant graph animation due to present qualifier nodes
* Fixed no restoring of graph node expansion when showing overview in between
This commit is contained in:
Eberhard Graether
2017-03-16 23:24:33 +01:00
parent aa49fffca6
commit 630009a2ba
44 changed files with 516 additions and 400 deletions
+5
View File
@@ -48,11 +48,14 @@ public:
virtual Vec2i getViewSize() const;
virtual void scrollToValues(int xValue, int yValue);
private slots:
void updateScrollBars();
void finishedTransition();
void clickedInEmptySpace();
void pressedCharacterKey(QChar c);
void scrolled(int);
private:
void switchToNewGraphData();
@@ -114,6 +117,8 @@ private:
std::shared_ptr<QtGraphNode> m_activeNode;
bool m_scrollToTop;
bool m_restoreScroll;
Vec2i m_scrollValues;
bool m_isIndexedList;
std::shared_ptr<QSequentialAnimationGroup> m_transition;