VR-Forces 4.1 Class Documentation
formationHierarchyView.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: formationHierarchyView.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DTFORMATIONHIERARCHYVIEW_H_
13 #define DTFORMATIONHIERARCHYVIEW_H_
14 
17 
18 class QMenu;
21 class DtModelSetEntry;
23 
25 {
26 public:
27  DtHierarchyItem() : DtEntityPaletteItem(), myParent(0) {};
28 
29  virtual QVariant data(int col, int role) const;
30  virtual QList<QVariant> proxyForces() const;
31 
32  void setParent(DtFormationHierarchyView* p) { myParent = p; };
33 
34 protected:
35  DtFormationHierarchyView* myParent;
36 };
37 
39 {
40  Q_OBJECT
41 
42 public:
44 
45  virtual QTreeWidgetItem* addHierarchyItem(const DtObjectType&, QTreeWidgetItem* parent = NULL);
46 
47  void setEventSignaller(DtUiAggregateCompositionSignalHandler* s) { myEventSignaller = s; };
48  void setParent(DtUiAggregateCompositionEditor* p) { myParent = p; };
49 
50  virtual void init();
51 
53  virtual void selectPath(const QString&, bool signal = false);
54 
55  virtual void expandPath(const QStringList& path, bool expand, bool signal = false);
56 
57  virtual QString selectionPath(QTreeWidgetItem*) const;
58  virtual QString selectionPath(const QList<QTreeWidgetItem*>&) const;
59 
60  void setModelSetEntry(DtModelSetEntry* e) { myModelSetEntry = e; };
61  DtModelSetEntry* modelSetEntry() { return myModelSetEntry; };
62 
63 protected:
65  virtual void itemRightClicked(QTreeWidgetItem* lvi, QMouseEvent* e);
66  virtual QMenu* createRightClickMenu();
67 
68 protected:
72 };
73 
74 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)