VR-Forces 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 #include <vlpi/patchIdentifier.h>
15 
16 namespace makVrf
17 {
18 
19  class DtUnitPatchSelectionEntryWidget;
20 
22  { Q_OBJECT;
23  public:
24 
26  DtSetUnitPatchesDialog( makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0 );
27 
29  virtual ~DtSetUnitPatchesDialog() override;
30 
32  virtual DtPatchIdentifier primaryUnitPatch() const;
33 
35  virtual DtPatchIdentifier secondaryUnitPatch() const;
36 
38  virtual void setUnitPatches( const DtPatchIdentifier& primaryPatchId,
39  const DtPatchIdentifier& secondaryPatchId = DtPatchIdentifier::nullIdentifier() );
40 
41  protected:
42 
43  virtual QWidget* contents(const std::set<makVrv::DtUniqueID>& data) override;
44 
46  virtual void setupGui(const std::set<makVrv::DtUniqueID>& data) override;
47 
48  virtual void slot_onPatchSelectionChanged( const DtPatchIdentifier& primaryPatchId, const DtPatchIdentifier& secondaryPatchId );
49 
50  virtual void sendPatchSetRequest( const DtPatchIdentifier& primaryPatchId, const DtPatchIdentifier& secondaryPatchId );
51 
52  virtual void sendRequest() override;
53 
54  virtual void cancel() override;
55 
56  protected:
57 
58  virtual void setupStatement(const DtSimStatement* statement) override;
59 
60  public:
61 
62  DtPatchIdentifier myInitialPrimaryUnitPatch;
63  DtPatchIdentifier myInitialSecondaryUnitPatch;
64 
66 
67  };
68 
69 
71  {
72  public:
73  virtual DtTaskSetDialogInterface* create(makVrv::DtDe& de, QWidget* parent) override;
74  virtual bool supportsType(
75  makVrv::DtDe& de, const DtSetMessageType& type, const DtSimStatement* statement) const override;
76  };
77 
78 }
Definition: taskSetDialogInterface.h:63
Definition: baseTaskSetDialogInterface.h:35
Definition: setUnitPatchesDialog.h:21
Definition: taskSetDialogInterface.h:82
DtUnitPatchSelectionEntryWidget * myPatchSelectionWidget
Definition: setUnitPatchesDialog.h:65
DtPatchIdentifier myInitialPrimaryUnitPatch
Definition: setUnitPatchesDialog.h:62
Contains makVrf::DtBaseTaskSetDialogInterface class. This is the interface for the dialog used by mos...
Definition: setUnitPatchesDialog.h:70
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:76
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
DtPatchIdentifier myInitialSecondaryUnitPatch
Definition: setUnitPatchesDialog.h:63

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)