MAK Data Logger API Documentation for DIS
lgrRemoteMainWindow.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "lgrRemoteGui.h"
12 #include "lgrMenu.h"
13 #include "remoteControlInterface.h"
18 
19 #include <commonWidgets/dynamicMenuBar.h>
20 #include <QtGui/QMainWindow>
21 
22 class QAction;
23 class QMenu;
24 class DtString;
25 class QDialog;
26 class QObject;
27 class QString;
28 class QStyle;
29 class QWidget;
30 
31 namespace MAKLogger
32 {
34  class DtLgrRemoteConnection;
35  class DtLgrRemoteDisplayInfo;
36  class DtLgrRemoteLoggerView;
37  class DtRemoteControlInterface;
38  class DtRemoteControlDomainInterface;
39  class DtRemoteControlSystemInterface;
40  class DtRemoteControlPlaybackInterface;
41  class DtRemoteControlRecordInterface;
42  class DtRemoteControlEditorInterface;
43  class DtRemoteControlSimulationInterface;
44  class DtRemoteControlSharedInterface;
45  class DtTimeComponent;
46  class DtLgrCtrlGuiCommandLine;
47 
49  {
50  Q_OBJECT
51 
52  public:
54  DtLgrRemoteMainWindow(DtRemoteControlInterface* remoteControlInterface);
55 
57  virtual ~DtLgrRemoteMainWindow();
58 
60  virtual void initialize(QObject* eventhandler, const DtLgrCtrlGuiCommandLine& options);
61 
62  //Controls
64  virtual bool openFile(DtFilename fileName, bool constructFilename);
65 
67  virtual void closeFile();
68 
70  virtual void play( int lgrMode );
71 
73  virtual void pause();
74 
76  virtual void stop();
77 
79  virtual void setSpeed( double, bool );
80 
82  virtual void increaseSpeed();
83 
85  virtual void decreaseSpeed();
86 
88  virtual void jumpToStart();
89 
91  virtual void jumpToEnd();
92 
94  virtual void toggleLoopAtEnd();
95 
97  virtual void record(DtFilename& filename, bool constructFilename);
98 
100  virtual void startRecording();
101 
102  //Connection
104  virtual void connectionDialog();
105 
107  virtual void connect();
108 
110  virtual void disconnect();
111 
113  virtual QString getLoggerFileFilter() const;
114 
116  virtual QString getRemoteControlLoggerFileFilter() const;
117 
119  virtual QString getDefaultLoggerFileDirectory() const;
120 
122  virtual double refreshRate();
123 
125  virtual void setRefreshRate( double rr );
126 
127  virtual DtLgrRemoteMainWindow* window();
128 
129  virtual const DtTimeComponent& displayTime() const;
130 
131  virtual QObject* eventHandler();
132 
133  MAKCommonWidgets::DtDynamicMenuBar& dynamicMenuBar();
134 
136 
137  virtual bool bypassRemoteLoggerFile() const;
138  virtual void setBypassRemoteLoggerFile(bool enableBypass);
140 
142 
143  virtual bool constructFilename() const;
144  virtual void setConstructFilename(bool enableConstuct);
146 
148  virtual DtLgrRemoteConnection* connection();
149 
151  virtual DtLgrRemoteDisplayInfo* displayInfo();
152 
153 
154  //Interfaces
156 
157  const DtRemoteControlInterface* fullRemoteControlInterface() const;
158  DtRemoteControlInterface* fullRemoteControlInterface();
159  const DtRemoteControlPlaybackInterface* remoteControlPlaybackInterface() const;
160  DtRemoteControlPlaybackInterface* remoteControlPlaybackInterface();
161  const DtRemoteControlRecordInterface* remoteControlRecordInterface() const;
162  DtRemoteControlRecordInterface* remoteControlRecordInterface();
163  const DtRemoteControlEditorInterface* remoteControlEditorInterface() const;
164  DtRemoteControlEditorInterface* remoteControlEditorInterface();
165  const DtRemoteControlSimulationInterface* remoteControlSimulationInterface() const;
166  DtRemoteControlSimulationInterface* remoteControlSimulationInterface();
167  const DtRemoteControlSystemInterface* remoteControlSystemInterface() const;
168  DtRemoteControlSystemInterface* remoteControlSystemInterface();
170 
171  public slots:
172 
174  void updateInterfaces();
175 
176  public:
177 
178  static const QString& titleBarText();
179  static void setTitleBarText(const QString& val);
180  static const QString& shortTitleBarText();
181  static void setShortTitleBarText(const QString& val);
182  static const QString& guiConfigFileName();
183  static void setGuiConfigFileName(const QString& val);
184 
185  protected:
186 
187  void closeEvent(QCloseEvent *event);
188  void addNewMenu( DtLgrMenu* menu, QString previousMenuName = QString() );
189  void addMenu( QString previousMenuName, DtLgrMenu* menu );
190  void addNewToolbar( QWidget* widget, QString toolbarName);
191  void browseOpenLoggerFile(QString title);
192 
193  protected:
194 
196  const DtEntityIdentifier myLgrEntityID;
198 
199  MAKCommonWidgets::DtDynamicMenuBar* myMenuBar;
200 
202  QTimer* myUpdateTimer;
205 
206  DtFilename myFile;
210 
211  protected:
212 
213  static QString theTitleBarText;
214  static QString theShortTitleBarText;
215  static QString theGuiConfigFileName;
216 
217  private:
220 
222  DtLgrRemoteMainWindow& operator=(const DtLgrRemoteMainWindow& orig);
223 
224  };
225 }

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)