VR-Forces 4.2 Class Documentation
enumerationWidget.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 <QtGui/QWidget>
14 #include <vrvUtil/DtVirtualBaseClass.h>
16 
17 class QLabel;
18 class QPushButton;
19 
21 {
22  Q_OBJECT
23 
24 public:
25 
27  DtEnumerationWidget(makVrv::DtDe&, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
28 
30  virtual ~DtEnumerationWidget();
31 
33  virtual void init();
34  virtual void setObjectType(const makVrf::DtEntityMapperKey&);
35  virtual void clearContents();
36  virtual const makVrf::DtEntityMapperKey& objectType() const;
37 
38  virtual void setMatchingTypeEnabled(bool);
39  virtual bool matchingTypeEnabled() const;
40  virtual void setMatchingType(const makVrf::DtEntityMapperKey&);
41  virtual const makVrf::DtEntityMapperKey& matchingType() const;
42 
43 public slots:
44  virtual bool changeEnumeration();
45  virtual void canSetEnumerationWithMatchingType(const DtObjectType&, const DtObjectType&);
46  virtual void canSetEnumeration(const DtObjectType&);
47 
48 signals:
49  void typeChanged(const makVrf::DtEntityMapperKey&);
50  void typeChangedWithMatchingType(const makVrf::DtEntityMapperKey&, const makVrf::DtEntityMapperKey&);
51 
52 protected:
53  QLabel* myEnumeration;
57  makVrv::DtDe& myDe;
59 };
60 
62 {
63  return myMatchingTypeEnabled;
64 }
65 
67 {
68  return myObjectType;
69 }
70 
72 {
73  return myMatchingType;
74 }
75 
77 class DT_DLL_entityeditorimpl DtEnumerationWidgetCreator : public makVrv::DtVirtualBaseClass
78 {
79 public:
81  DtEnumerationWidgetCreator(makVrv::DtDe&);
82 
84  virtual ~DtEnumerationWidgetCreator();
85 
87  static DtEnumerationWidgetCreator& instance(makVrv::DtDe&);
88 
90  static void registerInstance(makVrv::DtDe&, DtEnumerationWidgetCreator*);
91 
93  virtual DtEnumerationWidget* create(QWidget* parent);
94 
95 protected:
96  makVrv::DtDe& myDe;
97 };

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)