VR-Forces 4.7 Class Documentation
 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 
13 #include <vrfplan/stmtIndex.h>
14 #include <vlutil/vlString.h>
15 
16 #include <QtGui/QImage>
17 #include <QtWidgets/QTreeWidget>
18 
19 namespace makVrf
20 {
21  class DtPlanTreeWidget;
22 
24  {
25  public:
26  DtPlanListBoxItem(DtSimBlock*, const QString & text = QString::null, int step = -1);
27  DtPlanListBoxItem(DtSimBlock*, const DtPlanListBoxItem* parentItem, const DtStmtIndex& index,
28  const QString& indent, int step = -1);
29  virtual ~DtPlanListBoxItem();
30 
31  virtual void setStatementIndex(const DtStmtIndex index);
32  virtual const DtStmtIndex& statementIndex() const;
33 
34  virtual void setIndent(const QString& indent);
35  virtual const QString& indent() const;
36 
37  virtual void setBlockIndex(int index);
38  virtual int blockIndex() const;
39 
40  virtual void setPlanText(const QString&);
41 
42  DtSimBlock* parentBlock() const { return myParentBlock; };
43  DtSimBlock* blockHeader() const { return myBlockHeader; };
44  DtSimStatement* parentStatement() const;
45 
47  DtSimStatement* blockStatement() const;
48  DtSimStatement* parentBlockStatement() const;
49  DtSimStatement* statement() const;
50 
52  virtual QString planItemText() const;
53 
54  QTreeWidgetItem* prev();
55 
58  virtual void setCurrent(bool);
59  bool current() const;
60 
62  virtual QVariant data(int col, int role) const;
63  virtual QString stringRep() const;
64 
65  virtual void setDraggingOver(bool);
66  bool draggingOver() const { return myDraggingOver; };
67 
68  bool isLastStatementInBlock() const;
69  bool isFirstStatementInBlock() const;
70 
71  virtual bool within(DtSimBlock*) const;
72  virtual bool within(DtSimStatement*) const;
73 
74  protected:
76  QString myIndent;
78  bool myCurrent;
80  int myStep;
85  };
86 
87  inline bool DtPlanListBoxItem::current() const
88  {
89  return myCurrent;
90  }
91 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)