VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
planTriggerItem.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class DtTriggerStmt;
15 class QWidget;
16 class QToolButton;
17 class QLabel;
18 
19 namespace makVrf
20 {
21  class DtPlanTriggerItem;
22 
25  {
26  Q_OBJECT
27 
28  public:
30 
31  virtual ~DtItemHandler() override;
32 
33  protected slots:
34  virtual void removeButtonPressed();
35  virtual void editButtonPressed();
36 
37  protected:
39  };
40 
43  {
44  public:
45  DtPlanTriggerItem(makVrv::DtDe&, const QString& title, DtPlanListBoxItem*);
46  virtual ~DtPlanTriggerItem() override;
47 
50  virtual void updateTrigger(const DtTriggerStmt*);
51 
52  virtual void setTrigger(const DtTriggerStmt*);
53  virtual makVrv::DtUniqueID entityId() const override;
54 
55  const DtUUID& triggerUUID() const;
56 
57  virtual DtTriggerStmt* trigger() const;
58 
59  virtual void planUpdated() override;
60  virtual QVariant data(int col, int role) const override;
61 
62  virtual void triggerStateChanged();
63 
64  virtual bool isCopyable() const override;
65  virtual void planLockStatusChanged(bool) override;
66 
67  protected:
68  virtual void updateTrigger();
69 
70  protected:
71  DtTriggerStmt* myTriggerStatement = nullptr;
73  QWidget* myButtons;
78  };
79 
81  {
82  public:
85 
87  virtual ~DtPlanTriggerItemCreator() override;
88 
89  static DtPlanTriggerItemCreator& instance(makVrv::DtDe& de);
90  static void registerInstance(makVrv::DtDe& de, DtPlanTriggerItemCreator*);
91 
92  virtual DtPlanTriggerItem* create(DtPlanListBoxItem*);
93 
94  protected:
96  };
97 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtItemHandler myItemHandler
Definition: planTriggerItem.h:77
DtPlanTriggerItem * myHolder
Definition: planTriggerItem.h:38
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
makVrv::DtDe & myDe
Definition: planTriggerItem.h:95
QToolButton * myEditButton
Definition: planTriggerItem.h:75
DtPlanListBoxItem * myMainPlan
Definition: planTriggerItem.h:72
QWidget * myButtons
Definition: planTriggerItem.h:73
QToolButton * myRemoveButton
Definition: planTriggerItem.h:74
Handles signals for the plan trigger item since tree widget items are not QObjects.
Definition: planTriggerItem.h:24
This item will be the root node for a plan item – this will create children of type DtPlanStatementIt...
Definition: planListBoxItem.h:32
Definition: planTriggerItem.h:80
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
QLabel * myState
Definition: planTriggerItem.h:76
This item will be the root node for a trigger item – this will create children of type DtPlanStatemen...
Definition: planTriggerItem.h:42
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
Definition: triggerStmt.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)