VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simulationCommandDialogInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvUtil/signalslib.h>
14 
17 #include <vrfutil/rwUUID.h>
18 
19 #include <QtWidgets/QWidget>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtSimEntry;
25  struct DtEntityState;
26  class DtSimObjectEntry;
27 }
28 
29 static const Qt::WindowFlags theSimulationCommandSetCreationFlags =
30  Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint;
31 
32 class QWidget;
33 class DtSimCommand;
34 class DtString;
35 class DtSimStatement;
36 
37 namespace makVrf
38 {
39  class DtSimulationCommandDialogInterface;
40 
41  //* This wrapper MUST be used for all sim commands that take an object. The subclass will be
42  //* implemented by the individual sim command dialogs to appropriately set the object name
43 
45  {
46  public:
49  virtual ~DtSimCommandObjectWrapper();
50 
51  virtual void setObject(const DtUUID&) = 0;
52  virtual DtUUID object() const = 0;
53 
54  virtual DtSimCommandObjectWrapper* clone() const = 0;
55 
56  DtSimCommand* simCommand()
57  {
58  return mySimCommand;
59  }
60 
61  const DtSimCommand* simCommand() const
62  {
63  return mySimCommand;
64  }
65 
66  protected:
69  };
70 
73  {
74  public:
75  virtual DtSimulationCommandDialogInterface* create(makVrv::DtDe&, QWidget* parent) = 0;
76  virtual bool supportsType(makVrv::DtDe&, const DtSimCommandMessageType&, const DtSimStatement* stmt) const = 0;
77  virtual DtUUID objectFromStatement(makVrv::DtDe&, const DtSimCommand*) const = 0;
78  };
79 
81  {
82  public:
83  //CTOR
84  DtSimulationCommandDialogInterface(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
85 
86  protected:
87  virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);
88 
90  virtual std::vector<std::string> commandDialogFiltersFor(const std::vector<makVrv::DtSimEntry*>& data, const DtSimStatement* stmt,
91  int& initialSelection) const;
92  };
93 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)