VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sensorInformationPage.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 class QHBoxLayout;
16 class QRadioButton;
17 class QGroupBox;
18 class QTabWidget;
19 class DtRwPropertiesList;
20 
21 namespace makVrf
22 {
23  namespace makVrfGuiObjectInformationQt
24  {
26  {
27  Q_OBJECT
28 
29  protected:
30  typedef std::map<DtString, QTreeWidgetItem*> Jams;
31 
32  public:
33 
35  DtSensorInformationPage(makVrv::DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::SubWindow);
36 
38  virtual ~DtSensorInformationPage();
39 
40  virtual bool sortBySensor() const;
41  virtual bool sortByContact() const;
42 
44  virtual QIcon icon();
45 
47  virtual QString title();
48 
50  virtual const std::string& pageClassName() const;
51 
53  static const std::string& thePageClassName();
54 
55  virtual DtInformationDialogPageLogic* createLogic();
56 
57  virtual void setupJammingAttacks(const DtRwPropertiesList*, bool* radarsJammed = 0);
58  virtual void setupJammingDefends(const DtRwPropertiesList*, bool* radarsJammed = 0);
59 
61  virtual QWidget* widgetRepresentation(QWidget* parent, makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
62 
64  virtual bool showTitleWithWidget() const
65  {
66  return true;
67  }
68 
69  protected:
70  virtual ShowStatus setupGui(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
71  virtual void activate();
72 
73  virtual void setupSensorInformationPage(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
74 
76  virtual void setupJammingPage(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>*);
77 
79 
80  virtual void setupJams(Jams& currentJams, QTreeWidget* treeData, const DtRwPropertiesList* jams,
81  const DtString& source, bool* radarsJammed = 0);
82 
83  protected slots:
84  virtual void onSortByChanged();
85 
86  public:
87  QWidget* mySensorPage;
88  QGroupBox* mySortBy;
89  QHBoxLayout* mySortByLayout;
90  QRadioButton* mySortByContact;
91  QRadioButton* mySortBySensor;
92 
93  QWidget* myJammingPage;
98 
100 
103  };
104 
107  }
108 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)