VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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>
16 
17 class QLabel;
18 class QPushButton;
19 class QCheckBox;
20 
22 {
23  Q_OBJECT
24 
25 public:
26 
28  DtEnumerationWidget(makVrv::DtDe&, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
29 
31  virtual ~DtEnumerationWidget();
32 
34  virtual void init(bool showSubordinateChangeCheckbox);
35  virtual void setObjectType(const makVrf::DtEntityMapperKey&);
36  virtual void clearContents();
37  virtual const makVrf::DtEntityMapperKey& objectType() const;
38 
39  virtual void setMatchingTypeEnabled(bool);
40  virtual bool matchingTypeEnabled() const;
41  virtual void setMatchingType(const makVrf::DtEntityMapperKey&);
42  virtual const makVrf::DtEntityMapperKey& matchingType() const;
43 
44 public slots:
45  virtual bool changeEnumeration(const QString& title = "", bool okEnabled = false);
46  virtual void canSetEnumerationWithMatchingType(const DtObjectType&, const DtObjectType&);
47  virtual void canSetEnumeration(const DtObjectType&);
48 
49 signals:
50  void typeChanged(const makVrf::DtEntityMapperKey&, bool);
51  void typeChangedWithMatchingType(const makVrf::DtEntityMapperKey&, const makVrf::DtEntityMapperKey&, bool);
52 
53 public:
56 
57 protected:
63 };
64 
66 {
67  return myMatchingTypeEnabled;
68 }
69 
71 {
72  return myObjectType;
73 }
74 
76 {
77  return myMatchingType;
78 }
79 
82 {
83 public:
86 
88  virtual ~DtEnumerationWidgetCreator();
89 
91  static DtEnumerationWidgetCreator& instance(makVrv::DtDe&);
92 
94  static void registerInstance(makVrv::DtDe&, DtEnumerationWidgetCreator*);
95 
97  virtual DtEnumerationWidget* create(QWidget* parent);
98 
99 protected:
101 };

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)