VR-Forces 4.3 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) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: DtObjectsListPanel.h,v $ $Revision: 1.22 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #pragma once
13 
14 #include <vrvCoreQt/vrvCoreQt.h>
15 #include <vrvCoreQt/DtPage.h>
16 #include <QtGui/QWidget>
18 #include <vrvCoreQt/DtDockable.h>
19 
20 class QTabWidget;
21 class QVBoxLayout;
22 
23 namespace makVrv
24 {
25  //class DtObjectsListPage;
26  class DtEntityListWidget;
27  class DtDe;
28  class DtInputDriver;
29  class DtObserver;
30 
34  {
35  Q_OBJECT
36 
37  public:
38 
40  virtual ~DtObjectsListPanel();
41 
43  virtual QIcon icon();
44 
46  virtual QString title();
47 
49  virtual const std::string& pageClassName() const;
50 
52  DtEntityListWidget* entityList() const;
53 
54  protected:
55 
58 
60  DtObjectsListPanel(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
61 
63  virtual void activate();
64 
66  virtual void deactivate();
67 
68  virtual void createEntityListView();
69 
71  virtual void initConnections(QWidget* list);
72 
74  void setAttachMode( DtObserverObject::AttachType attachType );
75 
76  void attachSelected();
77 
79  void onInputDriverCreated( DtInputDriver* inputDriver );
80 
82  void onInputDriverAboutToBeDestroyed( DtInputDriver* inputDriver );
83 
84  signals:
85 
86  void rightClickOnItem( QPoint where );
87 
88  void deleteRequested();
89 
90  public slots:
91 
93  virtual void tick();
94 
95  virtual void onRightClicked( QPoint where );
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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)