VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfOpdEditorApplication.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vrvUtil/signalslib.h>
10 
11 #include <QtCore/QThread>
12 #include <QtCore/QTextStream>
13 #include <QtCore/QFile>
14 
16 class DtFilename;
20 
21 class DtStdinReader : public QThread
22 {
23  Q_OBJECT
24 
25 public:
26  DtStdinReader();
27  virtual ~DtStdinReader();
28 
29  virtual void run();
30 
31 signals:
32  void inputReceived(const QString&);
33 
34 protected:
35  QTextStream* myInput;
36  QFile myFile;
37 };
38 
39 const char USE_COMM_CHANNEL[] = "useCommChannel";
40 const char SELECT_SYSTEM_FILE[] = "selectSystemFile";
41 const char SYSTEM_EDITING_MODE[] = "systemEditingMode";
42 const char EXTENDED_MODE[] = "extendedMode";
43 
45 {
46 
47  Q_OBJECT
48 
49 public:
50 
51  // Constructor
53 
54  // Destructor
56 
57  // Override to call loadParameterDocDB.
58  virtual void initialize(int argc, char** argv);
59 
60  // If not loaded, loads them
62 
64 
65  // If comms are enabled, sends the message, listing the system files
66  virtual void sendCommMessage(const QString& message, const QStringList& systems);
67 
70 
73 
76 
77  virtual void addParameterType(const char* parm, const char* parmLike, DtSimObjectParametersCreatorFcn fcn = NULL) ;
78  virtual void addController(const char* controllerName, const char* descriptorName, DtComponentDescriptorCreatorFcn fcn = NULL) ;
79  virtual void addSensor(const char* sensorName, const char* descriptorName, DtComponentDescriptorCreatorFcn fcn = NULL) ;
80  virtual void addActuator(const char* actuatorName, const char* descriptorName, DtComponentDescriptorCreatorFcn fcn = NULL) ;
81 
82 protected:
83 
84  // Loads in the contents of the parameter documentation database (used
85  // to provide context-sensitive help). Returns true if at least one
86  // parameter documentation file is loaded, false otherwise. Called from
87  // init.
88  virtual bool loadParameterDocDB(DtReaderWriterClassDocDB& parameterDocDB);
89 
90  // Returns new instance of a DtReaderWriterClassDocDB. Called from init.
92 
94 
95 protected:
97  virtual void setupMenu();
98 
99 protected slots:
100  virtual void inputReceived(const QString&);
101 
102 protected:
107 };

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)