ui: Added show definition context menu action for graph nodes (issue #83)

* use 'show definition' context menu action or 'Ctrl/Cmd + Left Click' to show definition of node in code
This commit is contained in:
Eberhard Graether
2018-07-22 14:30:56 +02:00
parent 0b5ad33a8c
commit ad6f5c8727
16 changed files with 267 additions and 53 deletions
@@ -139,6 +139,18 @@ void UndoRedoController::handleMessage(MessageChangeFileView* message)
processCommand(command);
}
void UndoRedoController::handleMessage(MessageCodeShowDefinition* message)
{
if (sameMessageTypeAsLast(message) &&
static_cast<MessageCodeShowDefinition*>(lastMessage())->nodeId == message->nodeId)
{
return;
}
Command command(std::make_shared<MessageCodeShowDefinition>(*message), Command::ORDER_ADAPT);
processCommand(command);
}
void UndoRedoController::handleMessage(MessageDeactivateEdge* message)
{
if (m_iterator == m_list.begin())