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:
@@ -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
|
||||
Reference in New Issue
Block a user