VR-Forces 4.1 Class Documentation
DtSimulationCommandDialogInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: DtSimulationCommandDialogInterface.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrvUtil/signalslib.h>
17 
20 
21 #include <QtGui/QWidget>
22 
23 namespace makVrv
24 {
25  class DtDe;
26  class DtSimEntry;
27  struct DtEntityState;
28  class DtSimObjectEntry;
29 }
30 
31 static const Qt::WindowFlags theSimulationCommandSetCreationFlags =
32  Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint;
33 
34 class QWidget;
35 class DtSimCommand;
36 class DtString;
37 class DtSimStatement;
38 
39 namespace makVrf
40 {
41  class DtSimulationCommandDialogInterface;
42 
43  //* This wrapper MUST be used for all sim commands that take an object. The subclass will be
44  //* implemented by the individual sim command dialogs to appropriately set the object name
45 
47  {
48  public:
51  virtual ~DtSimCommandObjectWrapper();
52 
53  virtual void setObjectName(const DtString&) = 0;
54  virtual DtString objectName() const = 0;
55 
56  virtual DtSimCommandObjectWrapper* clone() const = 0;
57 
58  DtSimCommand* simCommand()
59  {
60  return mySimCommand;
61  }
62 
63  const DtSimCommand* simCommand() const
64  {
65  return mySimCommand;
66  }
67 
68  protected:
70  };
71 
74  {
75  public:
76  virtual DtSimulationCommandDialogInterface* create(makVrv::DtDe&, QWidget* parent) = 0;
77  virtual bool supportsType(makVrv::DtDe&, const DtSimCommandMessageType&, const DtSimStatement* stmt) const = 0;
78  virtual std::string objectNameFromStatement(const DtSimCommand*) const = 0;
79  };
80 
82  {
83  public:
84  //CTOR
85  DtSimulationCommandDialogInterface(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
86 
87  protected:
88  virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);
89  };
90 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)