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
定义
class_forward.h:16
ARCS_CLASS_FORWARD
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
定义
class_forward.h:68
arcs::aubo_scope::PopupNode
定义
popup_node.h:12
arcs::aubo_scope::PopupNode::d_
void * d_
定义
popup_node.h:50
arcs::aubo_scope::PopupNode::getMessage
std::string getMessage()
arcs::aubo_scope::PopupNode::Type
Type
定义
popup_node.h:15
arcs::aubo_scope::PopupNode::WARNING
@ WARNING
定义
popup_node.h:17
arcs::aubo_scope::PopupNode::ERROR
@ ERROR
定义
popup_node.h:18
arcs::aubo_scope::PopupNode::MESSAGE
@ MESSAGE
定义
popup_node.h:16
arcs::aubo_scope::PopupNode::DataSwitch
friend class DataSwitch
定义
popup_node.h:48
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::ProgramNode
ProgramNode(ProgramNode &f)
arcs::aubo_scope
定义
contribution_provider.h:8
arcs
定义
contribution_provider.h:7
program_node.h
include
aubo_caps
domain
program
nodes
builtin
popup_node.h
制作者
1.16.1