VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setUnitPatchesDialog.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 namespace makVrf
16 {
17 
18  class DtUnitPatchSelectionEntryWidget;
19 
21  { Q_OBJECT;
22  public:
23 
25  DtSetUnitPatchesDialog( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0 );
26 
28  virtual ~DtSetUnitPatchesDialog();
29 
31  virtual DtPatchIdentifier primaryUnitPatch() const;
32 
34  virtual DtPatchIdentifier secondaryUnitPatch() const;
35 
37  virtual void setUnitPatches( const DtPatchIdentifier& primaryPatchId,
38  const DtPatchIdentifier& secondaryPatchId = DtPatchIdentifier::nullIdentifier() );
39 
40  protected:
41 
42  virtual QWidget* contents( const std::vector<makVrv::DtSimEntry*>& data );
43 
45  virtual void setupGui( const std::vector<makVrv::DtSimEntry*>& data );
46 
47  virtual void slot_onPatchSelectionChanged( const DtPatchIdentifier& primaryPatchId, const DtPatchIdentifier& secondaryPatchId );
48 
49  virtual void sendPatchSetRequest( const DtPatchIdentifier& primaryPatchId, const DtPatchIdentifier& secondaryPatchId );
50 
51  virtual void sendRequest();
52 
53  virtual void cancel();
54 
55  protected:
56 
57  virtual void setupStatement( const DtSimStatement* statement );
58 
59  public:
60 
61  DtPatchIdentifier myInitialPrimaryUnitPatch;
62  DtPatchIdentifier myInitialSecondaryUnitPatch;
63 
65 
66  };
67 
68 
70  {
71  public:
72  virtual DtTaskSetDialogInterface* create( makVrv::DtDe& de, QWidget* parent );
73  bool supportsType( makVrv::DtDe& de, const DtSetMessageType& type, const DtSimStatement* statement ) const;
74  };
75 
76 }
Definition: taskSetDialogInterface.h:65
Definition: baseTaskSetDialogInterface.h:34
Definition: setUnitPatchesDialog.h:20
Definition: taskSetDialogInterface.h:84
DtUnitPatchSelectionEntryWidget * myPatchSelectionWidget
Definition: setUnitPatchesDialog.h:64
DtPatchIdentifier myInitialPrimaryUnitPatch
Definition: setUnitPatchesDialog.h:61
Contains makVrf::DtBaseTaskSetDialogInterface class. This is the interface for the dialog used by mos...
Definition: setUnitPatchesDialog.h:69
Widget that allows the selection of a force.
Definition: unitPatchSelectionEntryWidget.h:33
class DtSimStatement:
Definition: simStatement.h:38
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
DtPatchIdentifier myInitialSecondaryUnitPatch
Definition: setUnitPatchesDialog.h:62

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)