All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EnumObjectType.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file EnumObjectType.cpp
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 // TerraLib
29 #include "EnumObjectType.h"
30 
32  m_rectangleItem(0),
33  m_mapItem(0),
34  m_paperItem(0),
35  m_legendItem(0),
36  m_propertiesWindow(0),
37  m_displayWindow(0),
38  m_objectInspectorWindow(0),
39  m_toolbar(0),
40  m_gridSettings(0),
41  m_gridPlanarItem(0),
42  m_gridGeodesicItem(0),
43  m_itemGroup(0),
44  m_scaleItem(0),
45  m_pageSetup(0),
46  m_imageItem(0),
47  m_systematicScale(0),
48  m_pointItem(0),
49  m_arrowItem(0),
50  m_ellipseItem(0),
51  m_titleItem(0),
52  m_textGridItem(0),
53  m_editTemplate(0),
54  m_textGridSettings(0),
55  m_legendChildItem(0),
56  m_lineItem(0),
57  m_polygonItem(0),
58  m_balloonItem(0),
59  m_barCodeItem(0),
60  m_gridMapItem(0),
61  m_mapLayerChoice(0),
62  m_northItem(0),
63  m_mapLocationItem(0),
64  m_objectUnknown(0)
65 {
66  init();
67 }
68 
70 {
71  if(m_objectUnknown)
72  {
73  delete m_objectUnknown;
74  m_objectUnknown = 0;
75  }
76 
77  if(m_rectangleItem)
78  {
79  delete m_rectangleItem;
80  m_rectangleItem = 0;
81  }
82 
83  if(m_paperItem)
84  {
85  delete m_paperItem;
86  m_paperItem = 0;
87  }
88 
89  if(m_legendItem)
90  {
91  delete m_legendItem;
92  m_legendItem = 0;
93  }
94 
95  if(m_propertiesWindow)
96  {
97  delete m_propertiesWindow;
98  m_propertiesWindow = 0;
99  }
100 
101  if(m_displayWindow)
102  {
103  delete m_displayWindow;
104  m_displayWindow = 0;
105  }
106 
107  if(m_objectInspectorWindow)
108  {
109  delete m_objectInspectorWindow;
110  m_objectInspectorWindow = 0;
111  }
112 
113  if(m_toolbar)
114  {
115  delete m_toolbar;
116  m_toolbar = 0;
117  }
118 
119  if(m_gridSettings)
120  {
121  delete m_gridSettings;
122  m_gridSettings = 0;
123  }
124 
125  if(m_gridPlanarItem)
126  {
127  delete m_gridPlanarItem;
128  m_gridPlanarItem = 0;
129  }
130 
131  if(m_gridGeodesicItem)
132  {
133  delete m_gridGeodesicItem;
134  m_gridGeodesicItem = 0;
135  }
136 
137  if(m_itemGroup)
138  {
139  delete m_itemGroup;
140  m_itemGroup = 0;
141  }
142 
143  if(m_scaleItem)
144  {
145  delete m_scaleItem;
146  m_scaleItem = 0;
147  }
148 
149  if(m_pageSetup)
150  {
151  delete m_pageSetup;
152  m_pageSetup = 0;
153  }
154 
155  if(m_imageItem)
156  {
157  delete m_imageItem;
158  m_imageItem = 0;
159  }
160 
161  if(m_systematicScale)
162  {
163  delete m_systematicScale;
164  m_systematicScale = 0;
165  }
166 
167  if(m_pointItem)
168  {
169  delete m_pointItem;
170  m_pointItem = 0;
171  }
172 
173  if(m_arrowItem)
174  {
175  delete m_arrowItem;
176  m_arrowItem = 0;
177  }
178 
179  if(m_ellipseItem)
180  {
181  delete m_ellipseItem;
182  m_ellipseItem = 0;
183  }
184 
185  if(m_titleItem)
186  {
187  delete m_titleItem;
188  m_titleItem = 0;
189  }
190 
191  if(m_textGridItem)
192  {
193  delete m_textGridItem;
194  m_textGridItem = 0;
195  }
196 
197  if(m_editTemplate)
198  {
199  delete m_editTemplate;
200  m_editTemplate = 0;
201  }
202 
203  if(m_textGridSettings)
204  {
205  delete m_textGridSettings;
206  m_textGridSettings = 0;
207  }
208 
209  if(m_objectUnknown)
210  {
211  delete m_objectUnknown;
212  m_objectUnknown = 0;
213  }
214 
215  if(m_legendChildItem)
216  {
217  delete m_legendChildItem;
218  m_legendChildItem = 0;
219  }
220 
221  if(m_textItem)
222  {
223  delete m_textItem;
224  m_textItem = 0;
225  }
226 
227  if(m_lineItem)
228  {
229  delete m_lineItem;
230  m_lineItem = 0;
231  }
232 
233  if(m_polygonItem)
234  {
235  delete m_polygonItem;
236  m_polygonItem = 0;
237  }
238 
239  if(m_balloonItem)
240  {
241  delete m_balloonItem;
242  m_balloonItem = 0;
243  }
244 
245  if(m_barCodeItem)
246  {
247  delete m_barCodeItem;
248  m_barCodeItem = 0;
249  }
250 
251  if(m_gridMapItem)
252  {
253  delete m_gridMapItem;
254  m_gridMapItem = 0;
255  }
256 
257 }
258 
260 {
261  m_objectUnknown = new EnumType(0, "None", this);
262  m_enums.push_back(m_objectUnknown);
263 
264  m_rectangleItem = new EnumType(1, "Rectangle_Item", this);
265  m_enums.push_back(m_rectangleItem);
266 
267  m_mapItem = new EnumType(2, "Map_Item", this);
268  m_enums.push_back(m_mapItem);
269 
270  m_paperItem = new EnumType(4, "Paper_Item", this);
271  m_enums.push_back(m_paperItem);
272 
273  m_legendItem = new EnumType(5, "Legend_Item", this);
274  m_enums.push_back(m_legendItem);
275 
276  m_propertiesWindow = new EnumType(6, "Properties_Window", this);
277  m_enums.push_back(m_propertiesWindow);
278 
279  m_displayWindow = new EnumType(7, "Display_Window", this);
280  m_enums.push_back(m_displayWindow);
281 
282  m_objectInspectorWindow = new EnumType(8, "ObjectInspector_Window", this);
283  m_enums.push_back(m_objectInspectorWindow);
284 
285  m_toolbar = new EnumType(9, "Toolbar", this);
286  m_enums.push_back(m_toolbar);
287 
288  m_gridSettings = new EnumType(10, "Grid_Settings", this);
289  m_enums.push_back(m_gridSettings);
290 
291  m_gridPlanarItem = new EnumType(11, "Grid_Planar_Item", this);
292  m_enums.push_back(m_gridPlanarItem);
293 
294  m_gridGeodesicItem = new EnumType(12, "Grid_Geodesic_Item", this);
295  m_enums.push_back(m_gridGeodesicItem);
296 
297  m_textItem = new EnumType(15, "Text_Item", this);
298  m_enums.push_back(m_textItem);
299 
300  m_itemGroup = new EnumType(16, "Item_Group", this);
301  m_enums.push_back(m_itemGroup);
302 
303  m_scaleItem = new EnumType(17, "Scale_Item", this);
304  m_enums.push_back(m_scaleItem);
305 
306  m_pageSetup = new EnumType(18, "Page_Setup", this);
307  m_enums.push_back(m_pageSetup);
308 
309  m_imageItem = new EnumType(19, "Image_Item", this);
310  m_enums.push_back(m_imageItem);
311 
312  m_systematicScale = new EnumType(20, "Systematic_Scale", this);
313  m_enums.push_back(m_systematicScale);
314 
315  m_pointItem = new EnumType(21, "Point_Item", this);
316  m_enums.push_back(m_pointItem);
317 
318  m_arrowItem = new EnumType(22, "Arrow_Item", this);
319  m_enums.push_back(m_arrowItem);
320 
321  m_ellipseItem = new EnumType(23, "Ellipse_Item", this);
322  m_enums.push_back(m_ellipseItem);
323 
324  m_titleItem = new EnumType(24, "Title_Item", this);
325  m_enums.push_back(m_titleItem);
326 
327  m_textGridItem = new EnumType(25, "TextGrid_Item", this);
328  m_enums.push_back(m_textGridItem);
329 
330  m_editTemplate = new EnumType(27, "Edit_Template", this);
331  m_enums.push_back(m_editTemplate);
332 
333  m_textGridSettings = new EnumType(29, "Text_Grid_Settings", this);
334  m_enums.push_back(m_textGridSettings);
335 
336  m_legendChildItem = new EnumType(30, "Legend_Child_Item", this);
337  m_enums.push_back(m_legendChildItem);
338 
339  m_movingItemGroup = new EnumType(31, "Moving_Item_Group", this);
340  m_enums.push_back(m_movingItemGroup);
341 
342  m_lineItem = new EnumType(32, "Line_Item", this);
343  m_enums.push_back(m_lineItem);
344 
345  m_polygonItem = new EnumType(33, "Polygon_Item", this);
346  m_enums.push_back(m_polygonItem);
347 
348  m_balloonItem = new EnumType(34, "Balloon_Item", this);
349  m_enums.push_back(m_balloonItem);
350 
351  m_barCodeItem = new EnumType(35, "BarCode_Item", this);
352  m_enums.push_back(m_barCodeItem);
353 
354  m_gridMapItem = new EnumType(36, "GridMap_Item", this);
355  m_enums.push_back(m_gridMapItem);
356 
357  m_mapLayerChoice = new EnumType(37, "Map_Layout_Choice", this);
358  m_enums.push_back(m_mapLayerChoice);
359 
360  m_northItem = new EnumType(38, "North_Item", this);
361  m_enums.push_back(m_northItem);
362 
363  m_mapLocationItem = new EnumType(39, "Map_Location_Item", this);
364  m_enums.push_back(m_mapLocationItem);
365 }
366 
368 {
369  return m_rectangleItem;
370 }
371 
373 {
374  return m_lineItem;
375 }
376 
378 {
379  return m_polygonItem;
380 }
381 
383 {
384  return m_balloonItem;
385 }
386 
388 {
389  return m_barCodeItem;
390 }
391 
393 {
394  return m_gridMapItem;
395 }
396 
398 {
399  return m_mapItem;
400 }
401 
403 {
404  return m_paperItem;
405 }
406 
408 {
409  return m_legendItem;
410 }
411 
413 {
414  return m_propertiesWindow;
415 }
416 
418 {
419  return m_displayWindow;
420 }
421 
423 {
424  return m_objectInspectorWindow;
425 }
426 
428 {
429  return m_toolbar;
430 }
431 
433 {
434  return m_gridSettings;
435 }
436 
438 {
439  return m_gridPlanarItem;
440 }
441 
443 {
444  return m_gridGeodesicItem;
445 }
446 
448 {
449  return m_itemGroup;
450 }
451 
453 {
454  return m_movingItemGroup;
455 }
456 
457 
459 {
460  return m_scaleItem;
461 }
462 
464 {
465  return m_pageSetup;
466 }
467 
469 {
470  return m_imageItem;
471 }
472 
474 {
475  return m_systematicScale;
476 }
477 
479 {
480  return m_pointItem;
481 }
482 
484 {
485  return m_arrowItem;
486 }
487 
489 {
490  return m_ellipseItem;
491 }
492 
494 {
495  return m_titleItem;
496 }
497 
499 {
500  return m_textGridItem;
501 }
502 
504 {
505  return m_editTemplate;
506 }
507 
509 {
510  return m_textGridSettings;
511 }
512 
514 {
515  return m_legendChildItem;
516 }
517 
519 {
520  return m_textItem;
521 }
522 
524 {
525  return m_objectUnknown;
526 }
527 
529 {
530  return m_mapLayerChoice;
531 }
532 
534 {
535  return m_northItem;
536 }
537 
539 {
540  return m_mapLocationItem;
541 }
542 
543 
544 
545 
546 
547 
548 
virtual EnumType * getLineItem() const
Returns value that represents line (MVC Component) type belonging to enumeration. ...
virtual EnumType * getTextGridSettings() const
Returns value that represents text grid settings (MVC widget) type belonging to enumeration.
virtual EnumType * getEllipseItem() const
Returns value that represents ellipse (MVC Component) type belonging to enumeration.
virtual EnumType * getObjectInspectorWindow() const
Returns value that represents object inspector widget (MVC widget) type belonging to enumeration...
virtual EnumType * getGridSettings() const
Returns value that represents GridSettings window (MVC dialog) type belonging to enumeration.
virtual void init()
Reimplemented from AbstractEnum.
virtual EnumType * getTitleItem() const
Returns value that represents title (MVC Component) type belonging to enumeration.
virtual EnumType * getMapLocationItem() const
Returns value that represents map location (MVC Component) type belonging to enumeration.
virtual EnumType * getPageSetup() const
Returns value that represents page setup window (MVC dialog) type belonging to enumeration.
virtual EnumType * getPaperItem() const
Returns value that represents paper (MVC Component) type belonging to enumeration.
virtual EnumType * getGridGeodesicItem() const
Returns value that represents grid geodesic type belonging to enumeration.
virtual ~EnumObjectType()
Destructor.
virtual EnumType * getBarCodeItem() const
Returns value that represents barcode (MVC Component) type belonging to enumeration.
virtual EnumType * getNorthItem() const
Returns value that represents north (MVC Component) type belonging to enumeration.
virtual EnumType * getObjectUnknown() const
Returns value that represents unknown type belonging to enumeration.
virtual EnumType * getPointItem() const
Returns value that represents point (MVC Component) type belonging to enumeration.
virtual EnumType * getGridPlanarItem() const
Returns value that represents grid planar type belonging to enumeration.
virtual EnumType * getBalloonItem() const
Returns value that represents balloon (MVC Component) type belonging to enumeration.
virtual EnumType * getImageItem() const
Returns value that represents image (MVC Component) type belonging to enumeration.
virtual EnumType * getItemGroup() const
Returns value that represents item group (MVC Component) type belonging to enumeration.
virtual EnumType * getTextItem() const
Returns value that represents text (MVC Component) type belonging to enumeration. ...
virtual EnumType * getPolygonItem() const
Returns value that represents polygon (MVC Component) type belonging to enumeration.
virtual EnumType * getDisplayWindow() const
Returns value that represents QGraphicsView widget (MVC widget) type belonging to enumeration...
virtual EnumType * getTextGridItem() const
Returns value that represents text grid (MVC Component) type belonging to enumeration.
virtual EnumType * getToolbar() const
Returns value that represents toolbar widget (MVC widget) type belonging to enumeration.
virtual EnumType * getEditTemplate() const
Returns value that represents edit template widget (MVC widget) type belonging to enumeration...
virtual EnumType * getMovingItemGroup() const
Returns value that represents moving item group (MVC Component) type belonging to enumeration...
virtual EnumType * getArrowItem() const
Returns value that represents arrow (MVC Component) type belonging to enumeration.
virtual EnumType * getMapLayerChoice() const
Returns value that represents map layer choice (MVC Component) type belonging to enumeration.
virtual EnumType * getLegendItem() const
Returns value that represents legend (MVC Component) type belonging to enumeration.
virtual EnumType * getSystematicScale() const
Returns value that represents systematic scale window (MVC dialog) type belonging to enumeration...
virtual EnumType * getRectangleItem() const
Returns value that represents rectangle (MVC Component) type belonging to enumeration.
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
Definition: EnumType.h:48
virtual EnumType * getGridMapItem() const
Returns value that represents gridmapitem (MVC Component) type belonging to enumeration.
virtual EnumType * getMapItem() const
Returns value that represents map (MVC Component) type belonging to enumeration.
virtual EnumType * getPropertiesWindow() const
Returns value that represents properties widget (MVC widget) type belonging to enumeration.
virtual EnumType * getScaleItem() const
Returns value that represents scale (MVC Component) type belonging to enumeration.
Class to represent a graphic object (MVC component) and widget object (MVC widget) type enumeration...
virtual EnumType * getLegendChildItem() const
Returns value that represents legend child (MVC Component) type belonging to enumeration.