VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bhaveNewCrowdItemDialogInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: bhave3DNewCrowdItemDialogInterface.h,v $ $Revision: 1.1 $ $State: Exp $
7 ** Created: 10/26/09 MEM
8 *******************************************************************************/
9 
12 
13 #ifndef bhave3DNewCrowdItemDialogInterface_H_
14 #define bhave3DNewCrowdItemDialogInterface_H_
15 
17 #include <vlutil/vlString.h>
18 
19 #include <QtCore/QString>
20 
22 #include <vrftasks/simTask.h>
24 
25 namespace BHAVE
26 {
27  namespace BHAVE3DGui
28  {
30  {
31 
32  public:
33 
34  DtCreateItemData() : myNumToCreate(0), myPlacementType(DtString::nullString()), mySet(NULL), myTask(NULL) {};
35 
37  myNumToCreate(orig.myNumToCreate),
38  myEntityText(orig.myEntityText),
39  myPlacementType(orig.myPlacementType),
40  myEntityMapperKey(orig.myEntityMapperKey),
41  mySet(NULL),
42  myTask(NULL)
43  {
44  if (orig.mySet)
45  {
46  mySet = orig.mySet->clone("Set");
47  }
48 
49  if (orig.myTask)
50  {
51  myTask = orig.myTask->clone("Task");
52  }
53  };
54 
55  virtual ~DtCreateItemData() { delete mySet; delete myTask; };
56 
57  DtCreateItemData& operator=(const DtCreateItemData& rhs)
58  {
59  myNumToCreate = rhs.myNumToCreate;
60  myEntityText = rhs.myEntityText;
61  myPlacementType = rhs.myPlacementType;
62  myEntityMapperKey = rhs.myEntityMapperKey;
63  delete mySet; mySet = NULL;
64  delete myTask; myTask = NULL;
65  if (rhs.mySet)
66  {
67  mySet = rhs.mySet->clone("Set");
68  }
69 
70  if (rhs.myTask)
71  {
72  myTask = rhs.myTask->clone("Task");
73  }
74 
75  return *this;
76  }
77 
83  QString myEntityText;
84  };
85 
88  {
89 
90  public:
91 
94 
97 
98  virtual bool init(DtCreateItemData* initialData = NULL) = 0;
99 
100  virtual void disableMenus() = 0;
101  virtual void enableMenus() = 0;
102  };
103  }
104 }
105 
106 #endif

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)