VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtObjectsListPanel.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvCoreQt/vrvCoreQt.h>
12 #include <vrvCoreQt/DtPage.h>
13 #include <QtGui/QWidget>
15 #include <vrvCoreQt/DtDockable.h>
16 
17 class QTabWidget;
18 class QVBoxLayout;
19 
20 namespace makVrv
21 {
22  //class DtObjectsListPage;
23  class DtEntityListWidget;
24  class DtDe;
25  class DtInputDriver;
26  class DtObserver;
27 
31  {
32  Q_OBJECT
33 
34  public:
35 
37  virtual ~DtObjectsListPanel();
38 
40  virtual QIcon icon();
41 
43  virtual QString title();
44 
46  virtual const std::string& pageClassName() const;
47 
49  DtEntityListWidget* entityList() const;
50 
51  protected:
52 
55 
57  DtObjectsListPanel(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
58 
60  virtual void activate();
61 
63  virtual void deactivate();
64 
65  virtual void createEntityListView();
66 
68  virtual void initConnections(QWidget* list);
69 
71  void setAttachMode( DtObserverObject::AttachType attachType );
72 
73  void attachSelected();
74 
76  void onInputDriverCreated( DtInputDriver* inputDriver );
77 
79  void onInputDriverAboutToBeDestroyed( DtInputDriver* inputDriver );
80 
81  signals:
82 
83  void rightClickOnItem( QPoint where );
84 
85  void deleteRequested();
86 
87  public slots:
88 
90  virtual void tick();
91 
92  virtual void onRightClicked( QPoint where );
93 
94  // slot called when an object is double clicked in the list
95  virtual void onDoubleClicked( DtUniqueID elementID );
96 
97  private:
98 
101 
103  DtObjectsListPanel& operator=(const DtObjectsListPanel& orig);
104 
105  protected:
106 
107  QVBoxLayout* myLayout;
110  std::string myClassName;
111  };
112 
116  {
117  public:
118 
121 
123  virtual ~DtObjectsListPageCreator();
124 
128  virtual std::string pageClassName() const;
129 
131  virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
132  };
133 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)