MAK Data Logger API Documentation for DIS
lgrTrafficAnalyzerPrefPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2012 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrTrafficAnalyzerPrefPage_H_
10 #define lgrTrafficAnalyzerPrefPage_H_
11 
12 #if DtHLA
13 
14 #include "lgrSimGui.h"
15 #include "preferencesPage.h"
16 #include <commonWidgets/preciseTimeEdit.h>
17 #include <vlutil/vlString.h>
18 
19 class QLabel;
20 class QPushButton;
21 class QLineEdit;
22 class QComboBox;
23 class QCheckBox;
24 class QSpinBox;
25 class DtDatatypeViewer;
26 class DtDelimiterViewer;
28 class DtDatatypeManager;
29 class DtOMTTree;
31 
32 namespace MAKLogger
33 {
34  class DtLgrFullInterface;
35  class DtLgrGuiModel;
36 
39  class DT_DLL_LGRSIMGUI DtLgrTrafficAnalyzerPrefPage : public DtPage
40  {
41  Q_OBJECT
42 
43  public:
44 
46  DtLgrTrafficAnalyzerPrefPage(const DtLgrFullInterface* lgrInterface,
47  DtLgrGuiModel* model, QWidget* parent, Qt::WindowFlags f = 0);
48 
50  virtual ~DtLgrTrafficAnalyzerPrefPage();
51 
53  virtual QIcon icon();
54 
56  virtual QString title();
57 
59  virtual const std::string& pageClassName() const;
60 
62  static const std::string& thePageClassName();
63 
65  virtual void load();
66 
68  virtual void accept();
69 
71  virtual void reject();
72 
74  enum DtCoordSysOption
75  {
76  DtDefaultCoordSys,
77  DtAlternateCoordSys
78  };
79 
80  public slots:
81 
82  void editDelimiters();
83  void editDatatypes();
84 
85  void acceptDelimiters();
86  void rejectDelimiters();
87  void acceptDatatypes();
88  void rejectDatatypes();
89 
92  void checkTrafficAnalyzerEnabled(bool connected);
93 
94  protected:
95 
97  virtual void activate();
98 
100  virtual void deactivate();
101 
102  protected:
103 
104  const DtLgrFullInterface* myInterface;
105  DtLgrGuiModel* myModel;
106 
107  QDialog* myDatatypeDialog;
108  DtDatatypeViewer* myDatatypeViewer;
109 
110  QDialog* myDelimiterDialog;
111  DtDelimiterViewer* myDelimiterViewer;
112 
113  QCheckBox* myEnableCheckBox;
114 
115  QLabel* myMaxInteractionsLabel;
116  QSpinBox* myMaxInteractionsSpinBox;
117 
118  QLabel* myDefaultEnumSizeLabel;
119  QSpinBox* myDefaultEnumSizeSpinBox;
120 
121  QLabel* myFloatPrecLabel;
122  QSpinBox* myFloatPrecSpinBox;
123 
124  QLabel* myDefaultDelimLabel;
125  QLineEdit* myDefaultDelimLineEdit;
126 
127  QLabel* myDelimsLabel;
128  QPushButton* myDelimsEditButton;
129 
130  QLabel* myDatatypesLabel;
131  QPushButton* myDatatypesEditButton;
132 
133  QLabel* myLocationCoordLabel;
134  QComboBox* myLocationCoordComboBox;
135 
136  QLabel* myOrientationCoordLabel;
137  QComboBox* myOrientationCoordComboBox;
138 
139  QLabel* myVelocityCoordLabel;
140  QComboBox* myVelocityCoordComboBox;
141 
142  QLabel* myEntityTypeCoordLabel;
143  QComboBox* myEntityTypeCoordComboBox;
144 
145  //Pointers - Not owned by this class
146  DtTrafficAnalyzerConfig* myConfigFile;
147  DtDatatypeManager* myDtManager;
148  DtOMTTree* myOMTTree;
149 
150  static const QString theEnableToolTip;
151  static const QString theMaxInteractionsToolTip;
152  static const QString theDefaultEnumSizeToolTip;
153  static const QString theFloatPrecToolTip;
154  static const QString theDefaultDelimToolTip;
155  static const QString theDelimsToolTip;
156  static const QString theDelimsDisabledToolTip;
157  static const QString theDatatypesToolTip;
158  static const QString theDatatypesDisabledToolTip;
159  static const QString theLocationCoordToolTip;
160  static const QString theOrientationCoordToolTip;
161  static const QString theVelocityCoordToolTip;
162  static const QString theEntityTypeCoordToolTip;
163  };
164 
165 }
166 #endif
167 #endif
168 
169 

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)