VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
propertyRWList.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 "propertyReaderWriter.h"
11 
12 class DtRwList;
13 
15 {
16  Q_OBJECT
17 
18 public:
19  DtPropertyRWList(makVrv::DtDe&, DtPropertySheet*, const QString& title,
20  DtReaderWriter* var, DtReaderWriter* backup);
22  DtReaderWriter* var, DtReaderWriter* backup);
23 
24  static DtPropertyItem* create(makVrv::DtDe&, DtPropertySheet*, DtPropertyItem*, const QString& title,
25  DtReaderWriter* var, DtReaderWriter* backup);
26 
27  // Sets up information based on current and backup list types. Assumes all list
28  // entries are of type reader/writer
29  virtual void setupListItems(DtPICreator itemToCreate);
30 
31  // Override to prevent reader/writer init adding two copies of everything by
32  // calling DtPropertyItem::init()
33  virtual void init();
34 
35  // Removes list item from list. If there returns true
36  virtual bool remove(DtRwList* list, DtReaderWriter* item, bool backup = true);
37 
38  // Deletes all children and then reinitializes list
39  virtual void recreateItems();
40 
41  // Restores lists, but not menu items
42  virtual void internalRestore();
43 
44 public slots:
45  // Will go through all children, and, if any are changed, call either restore or updateValue
46  // on them
47  virtual void childUpdated();
48 
49  // Restores original list from backup list
50  virtual void restore();
51 
52  // Removes the particular item from the current list and hiding the property item
53  // associated with it.
54  virtual void deleteItem(DtPropertyItem*);
55 
56  virtual bool isChanged() const;
57 
58  virtual void savedOpdFile();
59 
60 signals:
62 
63 protected:
64  virtual void initConnections(DtPropertyItem*);
65  virtual void restoreList();
66  virtual DtPropertyItem* addPropertyItem(DtPICreator itemToCreate,
67  DtReaderWriter* rwCurrentType, DtReaderWriter* rwBackupType, bool createPropertyItem = true);
68 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)