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:
@@ -85,8 +85,10 @@ void QtGraphNodeData::onClick()
|
||||
return;
|
||||
}
|
||||
|
||||
FilePath path = getFilePath();
|
||||
|
||||
MessageActivateNodes message;
|
||||
message.addNode(m_data->getId(), m_data->getType(), m_data->getNameHierarchy());
|
||||
message.addNode(m_data->getId(), path.empty() ? m_data->getNameHierarchy() : path.str());
|
||||
message.dispatch();
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ bool QtGraphNodeQualifier::setPosition(const Vec2i& pos)
|
||||
void QtGraphNodeQualifier::onClick()
|
||||
{
|
||||
MessageActivateNodes msg;
|
||||
msg.addNode(m_qualifierName);
|
||||
msg.addNode(0, m_qualifierName);
|
||||
msg.dispatch();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user