MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
datatypeViewer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2024 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: datatypeViewer.h,v $ $Revision: 266449 $ $State: Exp $
7 *******************************************************************************/
8 
9 #pragma once
11 
12 #include <QWidget>
13 #include <QScrollArea>
14 #include <QShowEvent>
15 #include <QHideEvent>
16 #include <QCloseEvent>
17 
18 #include <string>
19 
20 #include <map>
21 #include <set>
22 
23 class DtDatatypeManager;
24 class DtDatatypeChooser;
25 
26 
27 // Panel that shows all available datatypes and how they relate to
28 // representations. You can also use this panel to edit the
29 // datatype to representation matrix.
31 {
32  Q_OBJECT
33 
34 public:
35 
36  // Constructor
37  DtDatatypeViewer(QWidget* parent = 0, const char * name = 0,
38  Qt::WindowFlags f = Qt::WindowFlags());
39 
40  virtual ~DtDatatypeViewer();
41 
42  virtual void fillBasicDatatypeList(DtDatatypeManager* manager);
43 
44  virtual void updateDatatypesInManager(DtDatatypeManager* manager);
45 
46  virtual void clearUpdates();
47 
48 public slots:
49 
50  virtual void datatypeChanged(const QString& name, const QString& datatype);
51 
52 
53 signals:
54  //Functions used to signal show/hide
55  void hideWidget();
56  void showWidget();
57  void closeWidget();
58 
59 protected:
60 
61  //Functions used to signal show/hide
62  virtual void hideEvent ( QHideEvent * );
63  virtual void showEvent ( QShowEvent * );
64  virtual void closeEvent ( QCloseEvent * );
65 
66  virtual DtDatatypeChooser* createDatatypeChooser(DtDatatypeManager* manager,
67  QString datatypeName, QString repName);
68 
69 protected:
70 
71  QScrollArea* myScrollView;
73 
75  std::map<QString, QString> myUpdatedDatatypes;
76 
77 private: //Class is not copyable
78 
79  // Copy Constructor
81 
82  // Assignment Operator
83  DtDatatypeViewer& operator=(const DtDatatypeViewer& rhs);
84 
85 
86 };
Definition: datatypeChooser.h:20
This class handles the conversion between a byte stream and an English readable view of the data in a...
Definition: datatypeManager.h:41
QScrollArea * myScrollView
Definition: datatypeViewer.h:71
QWidget * myScrollViewBox
Definition: datatypeViewer.h:72
Definition: datatypeViewer.h:30
#define DT_DLL_TRFCANLZR
Definition: trafficAnalyzerPlugin.h:18
std::map< QString, QString > myUpdatedDatatypes
Map of updates name and datatype pairs.
Definition: datatypeViewer.h:75

Document ID: Generated on Fri May 31 15:45:35 EDT 2024 from SVN revision 266500
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)