ui: Hide nodes and edges from graph via context menu action or Alt + Click (issue #472)
* show all context menu actions, but disable unavailable * added hide action to undo redo stack
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#ifndef MESSAGE_GRAPH_NODE_HIDE_H
|
||||
#define MESSAGE_GRAPH_NODE_HIDE_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
#include "utility/types.h"
|
||||
|
||||
class MessageGraphNodeHide
|
||||
: public Message<MessageGraphNodeHide>
|
||||
{
|
||||
public:
|
||||
MessageGraphNodeHide(Id tokenId)
|
||||
: tokenId(tokenId)
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageGraphNodeHide";
|
||||
}
|
||||
|
||||
virtual void print(std::ostream& os) const
|
||||
{
|
||||
os << tokenId;
|
||||
}
|
||||
|
||||
const Id tokenId;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_GRAPH_NODE_HIDE_H
|
||||
Reference in New Issue
Block a user