VR-Forces 4.1 Class Documentation
uiForParameter.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: uiForParameter.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DTUIFORPARAMETER_H_
13 #define DTUIFORPARAMETER_H_
14 
15 #include "vrfutil/rwList.h"
16 #include "vrfutil/rwString.h"
18 #include "vrfutil/rwBoolean.h"
19 
20 class QWidget;
22 class DtModelSetEntry;
23 
25 
26 class DtUiForParameter;
27 
29 {
30  Q_OBJECT
31 
32 public:
34 
35  void setParent(DtUiForParameter* p) { myParent = p; };
36 
37 public slots:
38  virtual void uiEvent(const DtUiElementEvent&);
39 
40 signals:
41  void uiEventSignal(const DtUiElementEvent&);
42 
43 protected:
45 };
46 
48 {
49 public:
50 
53  (
54  const DtString& name,
55  DtReaderWriterRegistry* const parentRegistry = NULL
56  );
57 
59  virtual ~DtUiForParameter();
60 
63 
66 
67  const DtString& parameterType() const;
68  const DtString& objectTypeTemplate() const;
69  const DtString& inheritFrom() const;
70  const DtString& label() const;
71  bool canBeAssigned() const;
72  void setInheritFrom(const DtString&);
73 
74  virtual QWidget* createControls(DtVrfObjectParameters*, DtElementChangedCallbackFcn f, void* usr);
75 
76  virtual void inheritFrom(DtUiForParameter*);
77  virtual DtUiElement* findElement(const DtString&) const;
78  virtual bool isModified() const;
79 
81  virtual void mergeInto(const DtString& readerWriterName, bool after, DtUiElement* element);
82 
83  virtual DtUiForParameter* clone();
84 
88 
89  static void elementChangedCallback(DtUiElement* element, void* usr);
90  virtual void processElementChanged(DtUiElement* element);
92 
93  virtual void setModelModified(DtModelSetEntry*);
94  virtual void uiEvent(const DtUiElementEvent&);
95  virtual QMap<QString, QVariant> uiState() const;
96  virtual void setUiState(const QMap<QString, QVariant>&);
97 
98  DtUiForParameterSignaller* signalHandler() { return &mySignalHandler; };
99 
100 protected:
101  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath, const DtVariableBindingsList &);
102 
103  virtual void emptyList();
104 
105  virtual void copyList(const DtUiForParameter& orig);
106 
107 protected:
114 };
115 
117 {
118  return myParameterType;
119 }
120 
122 {
123  return myObjectTypeTemplate;
124 }
125 
127 {
128  return myInheritFrom;
129 }
130 
132 {
133  myInheritFrom = s;
134 }
135 
136 inline const DtString& DtUiForParameter::label() const
137 {
138  return myLabel;
139 }
140 
142 {
143  return myCanBeAssigned;
144 }
145 
146 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)