VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
propertyReaderWriter.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 "propertyItem.h"
11 
12 class DtString;
14 
15 typedef struct DtPropertyItemStruct
16 {
17  QString key;
20 
22 {
23  Q_OBJECT
24 
25 public:
26  DtPropertyReaderWriter(makVrv::DtDe&, DtPropertySheet*, const QString& title,
27  DtReaderWriter* var, DtReaderWriter* backup);
29  DtReaderWriter* var, DtReaderWriter* backup);
30 
31  virtual ~DtPropertyReaderWriter();
32 
33  static DtPropertyItem* create(makVrv::DtDe&, DtPropertySheet*, DtPropertyItem*, const QString& title,
34  DtReaderWriter* var, DtReaderWriter* backup);
35 
36  virtual void init();
37  virtual bool allowObjectType() const;
38  virtual bool isChanged() const;
39  virtual bool isNew() const;
40 
41 public:
42  static void addFactoryItem(const char* item, DtPICreator fcn);
45 
46 protected:
49 
50  // Sets up information based on current and backup list types. Assumes all list
51  // entries are of type reader/writer
52  virtual void setupListItems(DtReaderWriter* current, DtReaderWriter* backup,
53  DtPICreator itemToCreate);
54 
55  virtual void showEditor();
56 
57  virtual void restore();
58 
59 protected:
60  static QVector<DtPropertyItemStruct> myPropertyItemFactory;
61 };

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)