MAK RTIspy API Documentation for HLA Evolved
fileConsoleWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: fileConsoleWidget.h,v $ $Revision: 1.14 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef fileConsoleWidget_H_
10 #define fileConsoleWidget_H_
11 
14 
15 #include "rtiMsConfig.h"
16 #include "consoleWidget.h"
17 #include <vlutil/vlSmartPointers.h>
18 
19 class QFile;
20 
28 {
29  Q_OBJECT
30 
31 public:
32 
35  DtFileConsoleWidget( int updateInterval = 400, QWidget* parent = 0, Qt::WindowFlags f = 0 );
36 
38  virtual ~DtFileConsoleWidget();
39 
40 private:
41 
44 
46  DtFileConsoleWidget& operator=(DtFileConsoleWidget const&);
47 
48 public:
49 
51  virtual void setLogFile( const QString& logFileName );
52 
54  virtual QString logFileName();
55 
58  virtual void setName( const QString& name );
59 
61  virtual QString name();
62 
65  virtual void setId( int id );
66 
68  virtual int id();
69 
71  virtual void setUpdateInterval( int interval );
72 public slots:
73 
76  virtual void updateConsole();
77 
80  virtual void updateNotifyLevel( MAKRti::DtNotifyLevelType level );
81 
82 signals:
83 
85  void notifyLevelUpdated( int id, MAKRti::DtNotifyLevelType level );
86 
87 protected:
88 
90  virtual void hideEvent(QHideEvent *event);
91 
93  virtual void showEvent(QShowEvent *event);
94 
95 protected:
96 
98  virtual void saveToFile();
99 
101  QFile* myLogFile;
102 
104  QString myName;
105 
107  int myId;
108 
110  QTimer* myUpdateTimer;
111 
114 
115 };
116 
117 #endif

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)