VR-Forces 4.2 Class Documentation
forcesEditor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <vrvUtil/DtVirtualBaseClass.h>
13 #include <QtGui/QDialog>
14 
15 class QPushButton;
16 class QListWidget;
17 class DtModelSet;
18 
22 {
23  Q_OBJECT
24 
25 public:
26  DtForcesEditor(makVrv::DtDe&, QWidget* parent, const Qt::WindowFlags& flags = 0);
27  virtual ~DtForcesEditor();
28 
29  virtual void init();
30 
31 protected:
32  virtual void keyPressEvent(QKeyEvent *e);
33  virtual bool eventFilter(QObject*, QEvent*);
34 
35 protected slots:
36  virtual void itemSelectionChanged();
37  virtual void addForce();
38  virtual void editForce();
39  virtual void removeForce();
40 
41 signals:
42  void entryModified();
43  void forcesModified();
44 
45 protected:
46  QListWidget* myForces;
50  makVrv::DtDe& myDe;
51 };
52 
54 class DT_DLL_entityeditorimpl DtForcesEditorCreator : public makVrv::DtVirtualBaseClass
55 {
56 public:
58  DtForcesEditorCreator(makVrv::DtDe&);
59 
61  virtual ~DtForcesEditorCreator();
62 
64  static DtForcesEditorCreator& instance(makVrv::DtDe&);
65 
67  static void registerInstance(makVrv::DtDe&, DtForcesEditorCreator*);
68 
70  virtual DtForcesEditor* create(QWidget* parent);
71 
72 protected:
73  makVrv::DtDe& myDe;
74 };

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)