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
@@ -0,0 +1,29 @@
#ifndef MESSAGE_CODE_SHOW_DEFINITION_H
#define MESSAGE_CODE_SHOW_DEFINITION_H
#include "utility/messaging/Message.h"
#include "utility/types.h"
class MessageCodeShowDefinition
: public Message<MessageCodeShowDefinition>
{
public:
static const std::string getStaticType()
{
return "MessageCodeShowDefinition";
}
MessageCodeShowDefinition(Id nodeId)
: nodeId(nodeId)
{
}
virtual void print(std::wostream& os) const
{
os << nodeId;
}
const Id nodeId;
};
#endif // MESSAGE_CODE_SHOW_DEFINITION_H