AuboStudio SDK 0.6.3

popup_node.h
浏览该文件的文档.
1 #ifndef AUBO_SCOPE_POPUP_NODE_H
2 #define AUBO_SCOPE_POPUP_NODE_H
3
4 #include <string>
5 #include <aubo_caps/domain/program/nodes/program_node.h>
6
7 namespace arcs {
8 namespace aubo_scope {
9 ARCS_CLASS_FORWARD(PopupNode);
10
11 class ARCS_ABI_EXPORT PopupNode : public ProgramNode
12 {
13 public:
14 enum Type
15 {
16 MESSAGE,
17 WARNING,
18 ERROR
19 };
20
21 PopupNode(PopupNode &f);
22 PopupNode(PopupNode &&f);
23 virtual ~PopupNode();
24
25 /**
26 *
27 * @param message the message in the pop up for the end user
28 * @return this node
29 * @throws IllegalStateException if called from a Swing-based AuboCap
30 * outside of an {@link UndoableChanges} scope (see also {@link
31 * UndoRedoManager})
32 */
33
34 void setMessage(std::string message);
35 std::string getMessage();
36 /**
37 *
38 * @param type the type of pop up
39 * @return this node
40 * @throws IllegalStateException if called from a Swing-based AuboCap
41 * outside of an {@link UndoableChanges} scope (see also {@link
42 * UndoRedoManager})
43 */
44 void setType(Type type);
45 Type getType() const;
46
47 private:
48 friend class DataSwitch;
49 PopupNode();
50 void *d_{ nullptr };
51 };
52
53 } // namespace aubo_scope
54 } // namespace arcs
55 #endif // AUBO_SCOPE_POPUP_NODE_H
ARCS_ABI_EXPORT
#define ARCS_ABI_EXPORT
Definition: class_forward.h:16
arcs::aubo_scope::PopupNode
Definition: popup_node.h:12
arcs::aubo_scope::PopupNode::getMessage
std::string getMessage()
arcs::aubo_scope::PopupNode::Type
Type
Definition: popup_node.h:15
arcs::aubo_scope::PopupNode::WARNING
@ WARNING
Definition: popup_node.h:17
arcs::aubo_scope::PopupNode::MESSAGE
@ MESSAGE
Definition: popup_node.h:16
arcs::aubo_scope::PopupNode::setType
void setType(Type type)
arcs::aubo_scope::PopupNode::getType
Type getType() const
arcs::aubo_scope::PopupNode::PopupNode
PopupNode(PopupNode &f)
arcs::aubo_scope::PopupNode::setMessage
void setMessage(std::string message)
arcs::aubo_scope::PopupNode::~PopupNode
virtual ~PopupNode()
arcs::aubo_scope::PopupNode::PopupNode
PopupNode(PopupNode &&f)
arcs::aubo_scope::PopupNode::PopupNode
PopupNode()
arcs::aubo_scope::ProgramNode
Definition: program_node.h:19
arcs::aubo_scope::ARCS_CLASS_FORWARD
ARCS_CLASS_FORWARD(GripForceCapability)
arcs
Definition: contribution_provider.h:7
program_node.h