forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGvOptions.h
90 lines (67 loc) · 1.93 KB
/
GvOptions.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
84
85
86
87
88
89
90
/*
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#ifndef GVOPTIONS_H
#define GVOPTIONS_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_GvOptions.h"
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
#include <map>
namespace Monitor {
// forward decl
class GvOptionsDialog;
class GvOptionsData {
public:
std::string getDot() { return dotFile_; };
std::string getPng() { return pngFile_; };
std::string getBin() { return graphvizBin_; };
bool lrLayout() { return lrLayout_; };
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_; };
GvOptionsData();
private:
friend class GvOptionsDialog;
std::string dotFile_;
std::string pngFile_;
std::string graphvizBin_;
bool lrLayout_; // left right layout
bool abbrGUIDs_;
bool ignoreBuiltinTopics_;
bool hideTopics_;
bool ignoreHosts_;
bool ignoreProcs_;
bool ignorePubs_;
bool ignoreSubs_;
bool ignoreTransports_;
bool ignoreQos_;
};
class GvOptionsDialog : public QDialog {
Q_OBJECT
public:
static void dialogAction(QWidget *parent, GvOptionsData &gvOpt, bool* status);
static void getGvData(QWidget *parent, GvOptionsData &gvOpt);
protected:
GvOptionsDialog( QWidget* parent = 0);
private:
/// The dialog user interface.
Ui::GvOptionsDialog ui;
};
} // End of namespace Monitor
#endif