VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
opdParameterPropertySheet.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vrvUtil/signalslib.h>
9 
10 #include "propertySheet.h"
11 #include <vlutil/vlString.h>
12 #include <vlpi/entityType.h>
13 #include <map>
14 
15 class DtReaderWriter;
18 
20 {
21  Q_OBJECT
22 
23 public:
26 
29 
30  // Looks up the closest parameter documentation for the given item. Assumes
31  // that item has a DtReaderWriter object associated with it. If it cannot
32  // find an entry for the given item, it recursively looks up the tree for
33  // the closest DtReaderWriter parent object that has documentation.
35  DtReaderWriterClassMemberDataRecord& rwClassMemberDataRec) const;
36 
37  // Update parameter reference display widget with documentation associated
38  // with selected item.
40 
41  void setReadOnly(bool b) { myReadOnly = b; };
42 
43  // So there may be instances where you need to inspect the entity type for a platform file but that's no
44  // longer stored here, it's in the .entity file. So here's a generic mapping for parameter types
45  // to the most basic entity type that describe the type. For example, ground params will map to 1:1:-1:-1:-1:-1:-1
46  virtual const DtEntityType& getEntityTypeFromParamType(const DtString& paramType);
47  virtual void addEntityTypeParamMapping(const DtString& paramType, const DtEntityType& type);
48 
49 protected:
50  virtual void valueUpdated(DtPropertyItem*);
51  virtual void valueRestored(DtPropertyItem*);
52  virtual void valueAdded(DtPropertyItem* newItem, DtPropertyItem* parent, DtPropertyCreationDialog*, bool isNew = false);
53  virtual void addListVariable(DtReaderWriter* p, const char* var);
54  virtual void addBooleanVariable(DtReaderWriter* p, const char* var);
55 
56  // Returns the class type of the DtReaderWriter that contains the given
57  // item. Assumes that item has a DtReaderWriter object associated with it.
58  // Returns empty string if parent cannot be found.
59  virtual DtString lookupParentRwType(DtPropertyItem* item) const;
60 
61 public slots:
62 
63  // Override to handle context-senstive help
64  virtual void selectionChanged(const QItemSelection&, const QItemSelection&);
65 
66 signals:
68 
69 protected:
71  bool myReadOnly;
72  std::map<DtString,DtEntityType> myParamToEntityTypeMap;
73 };
74 
76 {
77  return myObjectParameters;
78 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)