VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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  static DtPropertyItem* create(makVrv::DtDe&, DtPropertySheet*, DtPropertyItem*, const QString& title,
32  DtReaderWriter* var, DtReaderWriter* backup);
33 
34  virtual void init();
35  virtual bool allowObjectType() const;
36  virtual bool isChanged() const;
37  virtual bool isNew() const;
38 
39 public:
40  static void addFactoryItem(const char* item, DtPICreator fcn);
43 
44 protected:
47 
48  // Sets up information based on current and backup list types. Assumes all list
49  // entries are of type reader/writer
50  virtual void setupListItems(DtReaderWriter* current, DtReaderWriter* backup,
51  DtPICreator itemToCreate);
52 
53  virtual void showEditor();
54 
55  virtual void restore();
56 
57 protected:
58  static QVector<DtPropertyItemStruct> myPropertyItemFactory;
59 };

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)