ui: Create bookmarks from graph context menu for node under mouse cursor (issue #373)
bug id = 373
This commit is contained in:
@@ -7,10 +7,11 @@ class MessageCreateBookmark
|
||||
: public Message<MessageCreateBookmark>
|
||||
{
|
||||
public:
|
||||
MessageCreateBookmark(const std::string& comment, const std::string& displayName, const std::string& categoryName)
|
||||
MessageCreateBookmark(const std::string& comment, const std::string& displayName, const std::string& categoryName, Id nodeId)
|
||||
: comment(comment)
|
||||
, displayName(displayName)
|
||||
, categoryName(categoryName)
|
||||
, nodeId(nodeId)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -26,6 +27,7 @@ public:
|
||||
const std::string comment;
|
||||
const std::string displayName;
|
||||
const std::string categoryName;
|
||||
const Id nodeId;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_CREATE_BOOKMARK_H
|
||||
@@ -8,6 +8,12 @@ class MessageDisplayBookmarkCreator
|
||||
{
|
||||
public:
|
||||
MessageDisplayBookmarkCreator()
|
||||
: nodeId(0)
|
||||
{
|
||||
}
|
||||
|
||||
MessageDisplayBookmarkCreator(Id nodeId)
|
||||
: nodeId(nodeId)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -15,6 +21,8 @@ public:
|
||||
{
|
||||
return "MessageDisplayBookmarkCreator";
|
||||
}
|
||||
|
||||
Id nodeId;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_DISPLAY_BOOKMARK_CREATOR_H
|
||||
@@ -8,12 +8,11 @@ class MessageEditBookmark
|
||||
: public Message<MessageEditBookmark>
|
||||
{
|
||||
public:
|
||||
MessageEditBookmark(const Id id, const std::string& comment, const std::string& displayName, const std::string& categoryName, const bool isEdge)
|
||||
MessageEditBookmark(Id id, const std::string& comment, const std::string& displayName, const std::string& categoryName)
|
||||
: bookmarkId(id)
|
||||
, comment(comment)
|
||||
, displayName(displayName)
|
||||
, categoryName(categoryName)
|
||||
, isEdge(isEdge)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -30,7 +29,6 @@ public:
|
||||
const std::string comment;
|
||||
const std::string displayName;
|
||||
const std::string categoryName;
|
||||
const bool isEdge;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_EDIT_BOOKMARK_H
|
||||
Reference in New Issue
Block a user