AuboCaps
0.6.0
Main Page
Namespaces
Classes
Files
File List
File Members
include
aubo_caps
domain
program
nodes
builtin
popup_node.h
Go to the documentation of this file.
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::aubo_scope::ARCS_CLASS_FORWARD
ARCS_CLASS_FORWARD(GripForceCapability)
arcs::aubo_scope::PopupNode
Definition:
popup_node.h:11
arcs::aubo_scope::ProgramNode
Definition:
program_node.h:18
arcs::aubo_scope::PopupNode::WARNING
Definition:
popup_node.h:17
ARCS_ABI_EXPORT
#define ARCS_ABI_EXPORT
Definition:
class_forward.h:16
arcs::aubo_scope::PopupNode::Type
Type
Definition:
popup_node.h:14
arcs::aubo_scope::PopupNode::MESSAGE
Definition:
popup_node.h:16
arcs
Definition:
contribution_provider.h:7
program_node.h
Generated by
1.8.11