MAK Data Logger API Documentation for HLA
delimiterViewer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: delimiterViewer.h,v $ $Revision: 119313 $ $State: Exp $
7 *******************************************************************************/
8 
9 #pragma once
10 #include "trafficAnalyzerPlugin.h"
11 
12 #pragma warning(disable : 4100)
13 
14 #include <QWidget>
15 #include <QScrollArea>
16 #include <QShowEvent>
17 #include <QHideEvent>
18 #include <QCloseEvent>
19 
20 #include <vlutil/vlString.h>
21 
22 #include <map>
23 #include <set>
24 
25 class DtDatatypeManager;
26 class DtDelimiterChooser;
27 class Q3VBox;
28 class DtOMTTree;
29 
30 // Panel that shows all available datatypes and how they relate to
31 // representations. You can also use this panel to edit the
32 // datatype to representation matrix.
34 {
35  Q_OBJECT
36 
37 public:
38 
39  // Constructor
40  DtDelimiterViewer(QWidget* parent = 0, const char * name = 0,
41  Qt::WFlags f = 0);
42 
43  virtual ~DtDelimiterViewer();
44 
45  virtual void fillDelimiterList(DtDatatypeManager* manager, DtOMTTree* omtTree);
46 
47  virtual void updateDelimitersInManager(DtDatatypeManager* manager);
48 
49  virtual void clearUpdates();
50 
51 public slots:
52 
53  virtual void delimiterChanged(const QString& name, const QString& datatype);
54  virtual void delimiterEnabled(const QString& name, const QString& datatype, bool b);
55 
56 signals:
57  //Functions used to signal show/hide
58  void hideWidget();
59  void showWidget();
60  void closeWidget();
61 
62 protected:
63 
64  //Functions used to signal show/hide
65  virtual void hideEvent ( QHideEvent * );
66  virtual void showEvent ( QShowEvent * );
67  virtual void closeEvent ( QCloseEvent * );
68 
69 protected:
70  virtual DtDelimiterChooser* createDelimiterChooser(DtString datatypeName,
71  DtString repName, bool enabled);
72 
73 protected:
74 
75  QScrollArea* myScrollView;
77 
79  std::map<QString, QString> myUpdatedDelimiters;
81  std::set<QString> myRemovedDelimiters;
82 
83 private: //Class is not copyable
84 
85  // Copy Constructor
87 
88  // Assignment Operator
89  DtDelimiterViewer& operator=(const DtDelimiterViewer& rhs);
90 
91 
92 };

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)