VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
globalPlansDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #if !defined(Q_MOC_RUN)
16 #include "globalPlansWidgetUi.hpp"
17 #include <vrfutil/uuid.h>
18 #endif
19 
20 #include <QtWidgets/QDialog>
21 #include "boost/unordered/unordered_map.hpp"
22 
23 namespace makVrv
24 {
25  class DtDe;
26 }
27 
28 namespace makVrf
29 {
30  class DtGlobalPlansLogic;
31 
33  : public QDialog
35  {
36  Q_OBJECT
37 
38  public:
39  //CTOR
40  DtGlobalPlansDialog(makVrv::DtDe& de, QWidget* parent = 0, const Qt::WindowFlags& flags = 0);
41 
42  //DTOR
43  virtual ~DtGlobalPlansDialog() override;
44 
46  virtual QWidget* widget() override {
47  return this;
48  }
49 
50  virtual void setShowObjectConsoleWarningIcon(bool) override;
51  virtual bool showObjectConsoleWarningIcon() const override;
52  virtual void setHasMessagesWaiting(makVrv::DtUniqueID, bool) override;
53  virtual void setHasQuestionsWaiting(makVrv::DtUniqueID, bool) override;
54  virtual void editGlobalPlan(makVrv::DtUniqueID, const std::string& showValue = "") override;
55  virtual void setCanCreateGlobalPlan(bool) override;
56 
57  protected:
58 
59  virtual bool itemSelected() const override;
60  virtual void setEditPlanEnabled(bool) override;
61  virtual void setEditPlanNameEnabled(bool);
62  virtual void setDeletePlanEnabled(bool) override;
63  virtual void setLaunchButtonEnabled(bool) override;
64  virtual void setInformationButtonEnabled(bool) override;
65  virtual void clearGlobalPlansList() override;
66  virtual void addGlobalPlan(const DtUUID& planUUID, const QString& planName,
67  const DtSimulationAddress& simulationAddress, bool isQuickLaunch, bool isLaunched,
68  const DtString& quickLaunchIcon) override;
69  virtual void changeGlobalPlanName(const DtUUID& planUUID, const QString& name) override;
70  virtual void removeGlobalPlansForBackend(const DtSimulationAddress&) override;
71  virtual QTreeWidgetItem* globalPlanItem(const DtUUID&);
72 
75  virtual void removePlansFromBackendNotInList(
76  const std::vector<DtUUID>&, const DtSimulationAddress& addr) override;
77  virtual bool hasPlanNamed(const QString&) const override;
78 
79  virtual DtSimulationAddress simulationAddressForPlan(const DtUUID&) const override;
80 
81  protected slots:
82  virtual void onSelectedItemsChanged();
83  virtual void onClose();
84  virtual void onEditSelectedPlan();
85  virtual void onEditSelectedPlanName();
86  virtual void onNewPlan();
87  virtual void onShowInformation();
88  virtual void onDeleteSelectedPlan();
89  virtual void onProcessItemDoubleClicked(QTreeWidgetItem*, int);
90  virtual bool getSelectedGlobalPlan(DtUUID& plan, DtSimulationAddress& simulationAddress) const override;
91  virtual void updateIcon(const DtUUID&);
92  virtual void onLaunchGlobalPlan();
93 
94  public:
95  Ui_GlobalPlansWidgetUi myUiImpl;
96 
97  protected:
101 
102  enum Flags
103  {
104  HasWarning = 0x00000001,
105  HasQuestion = 0x00000002,
106  };
107 
108  typedef boost::unordered_map<DtUUID, int> HasAwaiting;
110  };
111 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtGlobalPlansLogic * myLogic
Definition: globalPlansDialog.h:99
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
boost::unordered_map< DtUUID, int > HasAwaiting
Definition: globalPlansDialog.h:108
Definition: globalPlansLogic.h:39
Contains the DtUUID class declaration.
Definition: globalPlansDialogInterface.h:27
Ui_GlobalPlansWidgetUi myUiImpl
Definition: globalPlansDialog.h:95
HasAwaiting myHasAwaiting
Definition: globalPlansDialog.h:109
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
virtual QWidget * widget() override
Returns widget that represents this dialog.
Definition: globalPlansDialog.h:46
bool myShowObjectConsoleWarningIcon
Definition: globalPlansDialog.h:100
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
Flags
Definition: globalPlansDialog.h:102
makVrv::DtDe & myDe
Definition: globalPlansDialog.h:98
Definition: globalPlansDialog.h:32

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)