MAK RTIspy API Documentation for HLA 1.3
fileConsoleWidget.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: fileConsoleWidget.h,v $ $Revision: 1.14 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef fileConsoleWidget_H_
00010 #define fileConsoleWidget_H_
00011 
00014 
00015 #include "rtiMsConfig.h"
00016 #include "consoleWidget.h"
00017 #include <vlutil/vlSmartPointers.h>
00018 
00019 class QFile;
00020 
00027 class DT_DLL_ASSISTANTAPP DtFileConsoleWidget : public DtConsoleWidget
00028 {
00029    Q_OBJECT
00030 
00031 public:
00032 
00035    DtFileConsoleWidget( int updateInterval = 400, QWidget* parent = 0, Qt::WindowFlags f = 0 );
00036 
00038    virtual ~DtFileConsoleWidget();
00039 
00040 private:
00041 
00043    DtFileConsoleWidget( DtFileConsoleWidget const&);
00044 
00046    DtFileConsoleWidget& operator=(DtFileConsoleWidget const&);
00047 
00048 public:
00049 
00051    virtual void setLogFile( const QString& logFileName );
00052 
00054    virtual QString logFileName();
00055 
00058    virtual void setName( const QString& name );
00059 
00061    virtual QString name();
00062 
00065    virtual void setId( int id );
00066 
00068    virtual int id();
00069 
00071    virtual void setUpdateInterval( int interval );
00072 public slots:
00073 
00076    virtual void updateConsole();
00077 
00080    virtual void updateNotifyLevel( MAKRti::DtNotifyLevelType level );
00081 
00082 signals:
00083 
00085    void notifyLevelUpdated( int id, MAKRti::DtNotifyLevelType level );
00086 
00087 protected:
00088 
00090    virtual void hideEvent(QHideEvent *event);
00091 
00093    virtual void showEvent(QShowEvent *event);
00094    
00095 protected:
00096 
00098    virtual void saveToFile();
00099 
00101    QFile* myLogFile;
00102 
00104    QString myName;
00105 
00107    int myId;
00108 
00110    QTimer* myUpdateTimer;
00111 
00113    int myUpdateInterval;
00114 
00115 };
00116 
00117 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)