logic: add menu action for graph 'save as image' (issue #426) (#1104)

This commit is contained in:
miltolstoy
2020-11-18 16:19:27 +01:00
committed by GitHub
parent 8b8c186697
commit 8990eb320d
6 changed files with 64 additions and 2 deletions
+1
View File
@@ -489,6 +489,7 @@ add_files(
utility/messaging/type/graph/MessageGraphNodeHide.h
utility/messaging/type/graph/MessageGraphNodeMove.h
utility/messaging/type/graph/MessageScrollGraph.h
utility/messaging/type/graph/MessageSaveAsImage.h
utility/messaging/type/history/MessageHistoryToPosition.h
utility/messaging/type/history/MessageHistoryRedo.h
@@ -0,0 +1,20 @@
#ifndef MESSAGE_SAVE_AS_IMAGE_H
#define MESSAGE_SAVE_AS_IMAGE_H
#include "Message.h"
class MessageSaveAsImage: public Message<MessageSaveAsImage>
{
public:
MessageSaveAsImage(QString path) : path(path) {}
static const std::string getStaticType()
{
return "MessageSaveAsImage";
}
QString path;
};
#endif /* MESSAGE_SAVE_AS_IMAGE_H */