VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
planListBoxItem.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 
12 #include <vrvCore/DtUniqueID.h>
13 
14 #include <vrfplan/stmtIndex.h>
15 #include <vlutil/vlString.h>
16 
17 #include <QtGui/QImage>
18 #include <QtWidgets/QTreeWidget>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 }
24 
25 namespace makVrf
26 {
27  class DtPlanTreeWidget;
28 
30  {
31  public:
32  DtPlanListBoxItem(makVrv::DtDe&, DtSimBlock*, const QString & text = QString::null, int step = -1, makVrv::DtUniqueID id = 0);
33  DtPlanListBoxItem(makVrv::DtDe&, DtSimBlock*, const DtPlanListBoxItem* parentItem, const DtStmtIndex& index,
34  const QString& indent, int step = -1, makVrv::DtUniqueID id = 0);
35  virtual ~DtPlanListBoxItem();
36 
37  virtual void setStatementIndex(const DtStmtIndex index);
38  virtual const DtStmtIndex& statementIndex() const;
39 
40  virtual void setIndent(const QString& indent);
41  virtual const QString& indent() const;
42 
43  virtual void setBlockIndex(int index);
44  virtual int blockIndex() const;
45 
46  virtual void setPlanText(const QString&);
47 
48  virtual void setEntityId(makVrv::DtUniqueID id);
49  const makVrv::DtUniqueID& entityId() const;
50 
51  DtSimBlock* parentBlock() const { return myParentBlock; };
52  DtSimBlock* blockHeader() const { return myBlockHeader; };
53  DtSimStatement* parentStatement() const;
54 
56  DtSimStatement* blockStatement() const;
57  DtSimStatement* parentBlockStatement() const;
58  DtSimStatement* statement() const;
59 
61  virtual QString planItemText() const;
62 
63  QTreeWidgetItem* prev();
64 
67  virtual void setCurrent(bool);
68  bool current() const;
69 
71  virtual QVariant data(int col, int role) const;
72  virtual QString stringRep() const;
73 
74  virtual void setDraggingOver(bool);
75  bool draggingOver() const { return myDraggingOver; };
76 
77  bool isLastStatementInBlock() const;
78  bool isFirstStatementInBlock() const;
79 
80  virtual bool within(DtSimBlock*) const;
81  virtual bool within(DtSimStatement*) const;
82 
83  protected:
86  QString myIndent;
88  bool myCurrent;
90  int myStep;
96  };
97 
98  inline bool DtPlanListBoxItem::current() const
99  {
100  return myCurrent;
101  }
102 }
bool myDraggingOver
Definition: planListBoxItem.h:89
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
makVrv::DtDe & myDe
Definition: planListBoxItem.h:84
class DtStmtIndex:
Definition: stmtIndex.h:24
This class will support the listing of plan items and the dragging/dropping thereof.
Definition: planTreeWidget.h:52
bool myCurrent
Definition: planListBoxItem.h:88
DtPlanTreeWidget * myPlanTreeWidget
Definition: planListBoxItem.h:93
int myStep
Definition: planListBoxItem.h:90
QString myIndent
Definition: planListBoxItem.h:86
class DtSimBlock:
Definition: simBlock.h:27
Definition: planListBoxItem.h:29
bool draggingOver() const
Definition: planListBoxItem.h:75
bool current() const
Definition: planListBoxItem.h:98
class DtSimStatement:
Definition: simStatement.h:38
Contains makVrv::DtUniqueID type.
DtSimBlock * myBlockHeader
Definition: planListBoxItem.h:92
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
DtSimBlock * myParentBlock
Definition: planListBoxItem.h:91
DtSimBlock * blockHeader() const
Definition: planListBoxItem.h:52
makVrv::DtUniqueID myEntityId
Definition: planListBoxItem.h:95
int myBlockIndex
Definition: planListBoxItem.h:87
DtStmtIndex myStatementIndex
Definition: planListBoxItem.h:85
DtSimBlock * parentBlock() const
Definition: planListBoxItem.h:51
const DtPlanListBoxItem * myParentItem
Definition: planListBoxItem.h:94

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)