MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
QTimer * myUpdateTimer
Console display refresh timer.
Definition: fileConsoleWidget.h:110
int myId
ID used to identify this console in its emitted signals.
Definition: fileConsoleWidget.h:107
Contains the DtCommentTranslator class declaration.
QFile * myLogFile
The log file used as input to the console display.
Definition: fileConsoleWidget.h:101
Provides the GUI for a console which displays the contents of a log file.
Definition: fileConsoleWidget.h:27
QString myName
Name given to this console.
Definition: fileConsoleWidget.h:104
int myUpdateInterval
The interval, in msecs, at which the console will be refreshed.
Definition: fileConsoleWidget.h:113
virtual void saveToFile()
Saves the console output to a file.
Qt widget that provides the GUI for a console display.
Definition: consoleWidget.h:34
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:122
void notifyLevelUpdated(MAKRti::DtNotifyLevelType notifyLevel)
Signals that the notify level has been updated by the user.

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)