forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNodeOptions.h
83 lines (63 loc) · 1.78 KB
/
NodeOptions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#ifndef NODEOPTIONS_H
#define NODEOPTIONS_H
// Tell GCC to ignore implicitly declared copy methods as long as
// Qt is not compliant.
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#include "ui_NodeOptions.h"
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
#include <map>
namespace Monitor {
// forward decl
class NodeOptionsDialog;
class NodeOptionsData {
public:
bool hideParentChild() { return parentChild_; };
bool hidePubSub() { return pubSub_; };
bool abbrGUIDs() { return abbrGUIDs_; };
bool ignoreBuiltinTopics() { return ignoreBuiltinTopics_; };
bool hideTopics() { return hideTopics_; };
bool ignoreHosts() { return ignoreHosts_; };
bool ignoreProcs() { return ignoreProcs_; };
bool ignorePubs() { return ignorePubs_; };
bool ignoreSubs() { return ignoreSubs_; };
bool ignoreTransports() { return ignoreTransports_; };
bool ignoreQos() { return ignoreQos_; };
NodeOptionsData();
private:
friend class NodeOptionsDialog;
bool parentChild_;
bool pubSub_;
bool abbrGUIDs_;
bool ignoreBuiltinTopics_;
bool hideTopics_;
bool ignoreHosts_;
bool ignoreProcs_;
bool ignorePubs_;
bool ignoreSubs_;
bool ignoreTransports_;
bool ignoreQos_;
};
class NodeOptionsDialog : public QDialog {
Q_OBJECT
public:
static void dialogAction(QWidget *parent, NodeOptionsData &nodeOpt, bool* status);
static void getNodeData(QWidget *parent, NodeOptionsData &nodeOpt);
protected:
NodeOptionsDialog( QWidget* parent = 0);
private:
/// The dialog user interface.
Ui::NodeOptionsDialog ui;
};
} // End of namespace Monitor
#endif