EnumModeType.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 EnumGridStyleType.cpp
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 // TerraLib
29 #include "EnumModeType.h"
30 
32  m_modeNone(0),
33  m_modeSelectByBox(0),
34  m_modeSelect(0),
35  m_modeArrowCursor(0),
36  m_modePan(0),
37  m_modeZoomIn(0),
38  m_modeZoomOut(0),
39  m_modeMapPan(0),
40  m_modeMapZoomIn(0),
41  m_modeMapZoomOut(0),
42  m_modeCreateMap(0),
43  m_modeCreateLegend(0),
44  m_modeCreateRectangle(0),
45  m_modeCreateText(0),
46  m_modeCreateItemGroup(0),
47  m_modeUnitsMetricsChange(0),
48  m_modeExportPropsJSON(0),
49  m_modeImportJSONProps(0),
50  m_modeNewTemplate(0),
51  m_modeCreateScale(0),
52  m_modeGroup(0),
53  m_modeUngroup(0),
54  m_modeActiveLinesIntersectionMouse(0),
55  m_modeOffLinesIntersectionMouse(0),
56  m_modePrinter(0),
57  m_modeExit(0),
58  m_modeSceneZoom(0),
59  m_modeBringToFront(0),
60  m_modeSendToBack(0),
61  m_modeRecompose(0),
62  m_modeCreateImage(0),
63  m_modePageConfig(0),
64  m_modeSystematicScale(0),
65  m_modeCreatePoint(0),
66  m_modeCreateArrow(0),
67  m_modeCreateEllipse(0),
68  m_modeCreateTitle(0),
69  m_modeCreateTextGrid(0),
70  m_modeWidgetView(0),
71  m_modeWidgetInspector(0),
72  m_modeWidgetProperties(0),
73  m_modeWidgetToolbar(0),
74  m_modeMapCreateTextGrid(0),
75  m_modeMapCreateTextMap(0),
76  m_modeAlignCenterHorizontal(0),
77  m_modeAlignCenterVertical(0),
78  m_modeAlignLeft(0),
79  m_modeAlignRight(0),
80  m_modeAlignTop(0),
81  m_modeAlignBottom(0),
82  m_modeRemoveObject(0),
83  m_modeUndo(0),
84  m_modeRedo(0),
85  m_modeDrawSelectionMap(0),
86  m_modeCreateLegendChild(0),
87  m_modeLegendChildAsObject(0),
88  m_modelObjectToImage(0),
89  m_inspectorCurrentItemChanged(0),
90  m_modelExportToPDF(0),
91  m_modeCreateLine(0),
92  m_modeCreatePolygon(0),
93  m_modeCreateBalloon(0),
94  m_modeCreateBarCode(0),
95  m_modeCreateGridMap(0),
96  m_coordWait(0),
97  m_modeCreateGridPlanar(0),
98  m_modeCreateGridGeodesic(0),
99  m_modeCreateNorth(0),
100  m_modeCreateMapLocation(0)
101 {
102  init();
103 }
104 
106 {
107  if(m_modeSelect)
108  {
109  delete m_modeSelect;
110  m_modeSelect = 0;
111  }
112  if(m_modeArrowCursor)
113  {
114  delete m_modeArrowCursor;
115  m_modeArrowCursor = 0;
116  }
117  if(m_modePan)
118  {
119  delete m_modePan;
120  m_modePan = 0;
121  }
122  if(m_modeZoomIn)
123  {
124  delete m_modeZoomIn;
125  m_modeZoomIn = 0;
126  }
127  if(m_modeZoomOut)
128  {
129  delete m_modeZoomOut;
130  m_modeZoomOut = 0;
131  }
132  if(m_modeMapPan)
133  {
134  delete m_modeMapPan;
135  m_modeMapPan = 0;
136  }
137  if(m_modeMapZoomIn)
138  {
139  delete m_modeMapZoomIn;
140  m_modeMapZoomIn = 0;
141  }
142  if(m_modeMapZoomOut)
143  {
144  delete m_modeMapZoomOut;
145  m_modeMapZoomOut = 0;
146  }
147  if(m_modeCreateMap)
148  {
149  delete m_modeCreateMap;
150  m_modeCreateMap = 0;
151  }
152  if(m_modeCreateLegend)
153  {
154  delete m_modeCreateLegend;
155  m_modeCreateLegend = 0;
156  }
157  if(m_modeCreateRectangle)
158  {
159  delete m_modeCreateRectangle;
160  m_modeCreateRectangle = 0;
161  }
162  if(m_modeCreateText)
163  {
164  delete m_modeCreateText;
165  m_modeCreateText = 0;
166  }
167  if(m_modeCreateItemGroup)
168  {
169  delete m_modeCreateItemGroup;
170  m_modeCreateItemGroup = 0;
171  }
172  if(m_modeUnitsMetricsChange)
173  {
174  delete m_modeUnitsMetricsChange;
175  m_modeUnitsMetricsChange = 0;
176  }
177  if(m_modeExportPropsJSON)
178  {
179  delete m_modeExportPropsJSON;
180  m_modeExportPropsJSON = 0;
181  }
182  if(m_modeImportJSONProps)
183  {
184  delete m_modeImportJSONProps;
185  m_modeImportJSONProps = 0;
186  }
187  if(m_modeNewTemplate)
188  {
189  delete m_modeNewTemplate;
190  m_modeNewTemplate = 0;
191  }
192  if(m_modeCreateScale)
193  {
194  delete m_modeCreateScale;
195  m_modeCreateScale = 0;
196  }
197  if(m_modeGroup)
198  {
199  delete m_modeGroup;
200  m_modeGroup = 0;
201  }
202  if(m_modeUngroup)
203  {
204  delete m_modeUngroup;
205  m_modeUngroup = 0;
206  }
207  if(m_modeActiveLinesIntersectionMouse)
208  {
209  delete m_modeActiveLinesIntersectionMouse;
210  m_modeActiveLinesIntersectionMouse = 0;
211  }
212  if(m_modeOffLinesIntersectionMouse)
213  {
214  delete m_modeOffLinesIntersectionMouse;
215  m_modeOffLinesIntersectionMouse = 0;
216  }
217  if(m_modePrinter)
218  {
219  delete m_modePrinter;
220  m_modePrinter = 0;
221  }
222  if(m_modeExit)
223  {
224  delete m_modeExit;
225  m_modeExit = 0;
226  }
227  if(m_modeSceneZoom)
228  {
229  delete m_modeSceneZoom;
230  m_modeSceneZoom = 0;
231  }
232  if(m_modeBringToFront)
233  {
234  delete m_modeBringToFront;
235  m_modeBringToFront = 0;
236  }
237  if(m_modeSendToBack)
238  {
239  delete m_modeSendToBack;
240  m_modeSendToBack = 0;
241  }
242  if(m_modeRecompose)
243  {
244  delete m_modeRecompose;
245  m_modeRecompose = 0;
246  }
247  if(m_modeCreateImage)
248  {
249  delete m_modeCreateImage;
250  m_modeCreateImage = 0;
251  }
252  if(m_modePageConfig)
253  {
254  delete m_modePageConfig;
255  m_modePageConfig = 0;
256  }
257  if(m_modeSystematicScale)
258  {
259  delete m_modeSystematicScale;
260  m_modeSystematicScale = 0;
261  }
262  if(m_modeCreatePoint)
263  {
264  delete m_modeCreatePoint;
265  m_modeCreatePoint = 0;
266  }
267  if(m_modeCreateArrow)
268  {
269  delete m_modeCreateArrow;
270  m_modeCreateArrow = 0;
271  }
272  if(m_modeCreateEllipse)
273  {
274  delete m_modeCreateEllipse;
275  m_modeCreateEllipse = 0;
276  }
277  if(m_modeCreateTitle)
278  {
279  delete m_modeCreateTitle;
280  m_modeCreateTitle = 0;
281  }
282  if(m_modeCreateTextGrid)
283  {
284  delete m_modeCreateTextGrid;
285  m_modeCreateTextGrid = 0;
286  }
287  if(m_modeWidgetView)
288  {
289  delete m_modeWidgetView;
290  m_modeWidgetView = 0;
291  }
292  if(m_modeWidgetInspector)
293  {
294  delete m_modeWidgetInspector;
295  m_modeWidgetInspector = 0;
296  }
297  if(m_modeWidgetProperties)
298  {
299  delete m_modeWidgetProperties;
300  m_modeWidgetProperties = 0;
301  }
302  if(m_modeWidgetToolbar)
303  {
304  delete m_modeWidgetToolbar;
305  m_modeWidgetToolbar = 0;
306  }
307  if(m_modeMapCreateTextGrid)
308  {
309  delete m_modeMapCreateTextGrid;
310  m_modeMapCreateTextGrid = 0;
311  }
312  if(m_modeMapCreateTextMap)
313  {
314  delete m_modeMapCreateTextMap;
315  m_modeMapCreateTextMap = 0;
316  }
317  if(m_modeAlignCenterHorizontal)
318  {
319  delete m_modeAlignCenterHorizontal;
320  m_modeAlignCenterHorizontal = 0;
321  }
322  if(m_modeAlignCenterVertical)
323  {
324  delete m_modeAlignCenterVertical;
325  m_modeAlignCenterVertical = 0;
326  }
327  if(m_modeAlignLeft)
328  {
329  delete m_modeAlignLeft;
330  m_modeAlignLeft = 0;
331  }
332  if(m_modeAlignRight)
333  {
334  delete m_modeAlignRight;
335  m_modeAlignRight = 0;
336  }
337  if(m_modeAlignTop)
338  {
339  delete m_modeAlignTop;
340  m_modeAlignTop = 0;
341  }
342  if(m_modeAlignBottom)
343  {
344  delete m_modeAlignBottom;
345  m_modeAlignBottom = 0;
346  }
347  if(m_modeRemoveObject)
348  {
349  delete m_modeRemoveObject;
350  m_modeRemoveObject = 0;
351  }
352  if(m_modeNone)
353  {
354  delete m_modeRemoveObject;
355  m_modeRemoveObject = 0;
356  }
357  if(m_modeUndo)
358  {
359  delete m_modeUndo;
360  m_modeUndo = 0;
361  }
362  if(m_modeRedo)
363  {
364  delete m_modeRedo;
365  m_modeRedo = 0;
366  }
367  if(m_modeDrawSelectionMap)
368  {
369  delete m_modeDrawSelectionMap;
370  m_modeDrawSelectionMap = 0;
371  }
372  if(m_modeCreateLegendChild)
373  {
374  delete m_modeCreateLegendChild;
375  m_modeCreateLegendChild = 0;
376  }
377  if(m_modeLegendChildAsObject)
378  {
379  delete m_modeLegendChildAsObject;
380  m_modeLegendChildAsObject = 0;
381  }
382  if(m_modelObjectToImage)
383  {
384  delete m_modelObjectToImage;
385  m_modelObjectToImage = 0;
386  }
387  if(m_inspectorCurrentItemChanged)
388  {
389  delete m_inspectorCurrentItemChanged;
390  m_inspectorCurrentItemChanged = 0;
391  }
392  if(m_modelExportToPDF)
393  {
394  delete m_modelExportToPDF;
395  m_modelExportToPDF = 0;
396  }
397 
398  if(m_modeCreateLine)
399  {
400  delete m_modeCreateLine;
401  m_modeCreateLine = 0;
402  }
403 
404  if(m_modeCreatePolygon)
405  {
406  delete m_modeCreatePolygon;
407  m_modeCreatePolygon = 0;
408  }
409 
410  if(m_modeCreateBalloon)
411  {
412  delete m_modeCreateBalloon;
413  m_modeCreateBalloon = 0;
414  }
415 
416  if(m_modeCreateBarCode)
417  {
418  delete m_modeCreateBarCode;
419  m_modeCreateBarCode = 0;
420  }
421 
422  if(m_modeCreateGridMap)
423  {
424  delete m_modeCreateGridMap;
425  m_modeCreateGridMap = 0;
426  }
427 
428  if(m_coordWait)
429  {
430  delete m_coordWait;
431  m_coordWait = 0;
432  }
433 
434  if(m_modeCreateGridPlanar)
435  {
436  delete m_modeCreateGridPlanar;
437  m_modeCreateGridPlanar = 0;
438  }
439 
440  if(m_modeCreateGridGeodesic)
441  {
442  delete m_modeCreateGridGeodesic;
443  m_modeCreateGridGeodesic = 0;
444  }
445 }
446 
448 {
449  m_modeNone = new EnumType(0, "None", this);
450  m_modeNone->setLabel("None");
451  m_enums.push_back(m_modeNone);
452 
453  m_modeSelectByBox = new EnumType(1, "SelectByBox", this);
454  m_modeSelectByBox->setLabel("Select By Box");
455  m_modeSelectByBox->setType(te::layout::EnumTool);
456  m_enums.push_back(m_modeSelectByBox);
457 
458  m_modeSelect = new EnumType(2, "Select", this);
459  m_modeSelect->setLabel("Select");
460  m_enums.push_back(m_modeSelect);
461 
462  m_modeArrowCursor = new EnumType(3, "ArrowCursor", this);
463  m_modeArrowCursor->setLabel("Arrow Cursor");
464  m_modeArrowCursor->setType(te::layout::EnumAction);
465  m_enums.push_back(m_modeArrowCursor);
466 
467  m_modePan = new EnumType(4, "Pan", this);
468  m_modePan->setLabel("Pan");
469  m_modePan->setType(te::layout::EnumTool);
470  m_enums.push_back(m_modePan);
471 
472  m_modeZoomIn = new EnumType(5, "ZoomIn", this);
473  m_modeZoomIn->setLabel("Zoom In");
474  m_modeZoomIn->setType(te::layout::EnumTool);
475  m_enums.push_back(m_modeZoomIn);
476 
477  m_modeZoomOut = new EnumType(7, "ZoomOut", this);
478  m_modeZoomOut->setLabel("ZoomOut");
479  m_modeZoomOut->setType(te::layout::EnumTool);
480  m_enums.push_back(m_modeZoomOut);
481 
482  m_modeMapPan = new EnumType(8, "MapPan", this);
483  m_modeMapPan->setLabel("Map Pan");
484  m_modeMapPan->setType(te::layout::EnumTool);
485  m_enums.push_back(m_modeMapPan);
486 
487  m_modeMapZoomIn = new EnumType(9, "MapZoomIn", this);
488  m_modeMapZoomIn->setLabel("Map Zoom In");
489  m_modeMapZoomIn->setType(te::layout::EnumTool);
490  m_enums.push_back(m_modeMapZoomIn);
491 
492  m_modeMapZoomOut = new EnumType(10, "MapZoomOut", this);
493  m_modeMapZoomOut->setLabel("Map Zoom Out");
494  m_modeMapZoomOut->setType(te::layout::EnumTool);
495  m_enums.push_back(m_modeMapZoomOut);
496 
497  m_modeCreateMap = new EnumType(11, "CreateMap", this);
498  m_modeCreateMap->setLabel("Create Map Component");
499  m_modeCreateMap->setType(te::layout::EnumCreate);
500  m_enums.push_back(m_modeCreateMap);
501 
502  m_modeCreateLegend = new EnumType(13, "CreateLegend", this);
503  m_modeCreateLegend->setLabel("Create Legend Component");
504  m_modeCreateLegend->setType(te::layout::EnumCreate);
505  m_enums.push_back(m_modeCreateLegend);
506 
507  m_modeCreateRectangle = new EnumType(14, "CreateRectangle", this);
508  m_modeCreateRectangle->setLabel("Create Rectangle Component");
509  m_modeCreateRectangle->setType(te::layout::EnumCreate);
510  m_enums.push_back(m_modeCreateRectangle);
511 
512  m_modeCreateText = new EnumType(15, "CreateText", this);
513  m_modeCreateText->setLabel("Create Text Component");
514  m_modeCreateText->setType(te::layout::EnumCreate);
515  m_enums.push_back(m_modeCreateText);
516 
517  m_modeCreateItemGroup = new EnumType(16, "CreateItemGroup", this);
518  m_modeCreateItemGroup->setLabel("Create Item Group Component");
519  m_modeCreateItemGroup->setType(te::layout::EnumCreate);
520  m_enums.push_back(m_modeCreateItemGroup);
521 
522  m_modeUnitsMetricsChange = new EnumType(17, "UnitsMetricsChange", this);
523  m_modeUnitsMetricsChange->setLabel("Unit Metric Change");
524  m_modeUnitsMetricsChange->setType(te::layout::EnumAction);
525  m_enums.push_back(m_modeUnitsMetricsChange);
526 
527  m_modeExportPropsJSON = new EnumType(18, "ExportPropsJSON", this);
528  m_modeExportPropsJSON->setLabel("Export Properties To JSON");
529  m_modeExportPropsJSON->setType(te::layout::EnumDialog);
530  m_enums.push_back(m_modeExportPropsJSON);
531 
532  m_modeImportJSONProps = new EnumType(19, "ImportJSONProps", this);
533  m_modeImportJSONProps->setLabel("Import JSON To Properties");
534  m_modeImportJSONProps->setType(te::layout::EnumDialog);
535  m_enums.push_back(m_modeImportJSONProps);
536 
537  m_modeNewTemplate = new EnumType(20, "NewTemplate", this);
538  m_modeNewTemplate->setLabel("New Template");
539  m_modeNewTemplate->setType(te::layout::EnumAction);
540  m_enums.push_back(m_modeNewTemplate);
541 
542  m_modeCreateScale = new EnumType(21, "CreateScale", this);
543  m_modeCreateScale->setLabel("Create Scale Component");
544  m_modeCreateScale->setType(te::layout::EnumCreate);
545  m_enums.push_back(m_modeCreateScale);
546 
547  m_modeGroup = new EnumType(22, "Group", this);
548  m_modeGroup->setLabel("Group");
549  m_modeGroup->setType(te::layout::EnumAction);
550  m_enums.push_back(m_modeGroup);
551 
552  m_modeUngroup = new EnumType(23, "Ungroup", this);
553  m_modeUngroup->setLabel("Ungroup");
554  m_modeUngroup->setType(te::layout::EnumAction);
555  m_enums.push_back(m_modeUngroup);
556 
557  m_modeActiveLinesIntersectionMouse = new EnumType(24, "ActiveLinesIntersectionMouse", this);
558  m_modeActiveLinesIntersectionMouse->setLabel("Active Lines That Intersection Mouse");
559  m_modeActiveLinesIntersectionMouse->setType(te::layout::EnumTool);
560  m_enums.push_back(m_modeActiveLinesIntersectionMouse);
561 
562  m_modeOffLinesIntersectionMouse = new EnumType(25, "OffLinesIntersectionMouse", this);
563  m_modeOffLinesIntersectionMouse->setLabel("Off Lines That Intersection Mouse");
564  m_modeOffLinesIntersectionMouse->setType(te::layout::EnumTool);
565  m_enums.push_back(m_modeOffLinesIntersectionMouse);
566 
567  m_modePrinter = new EnumType(26, "Printer", this);
568  m_modePrinter->setLabel("Printer");
569  m_modePrinter->setType(te::layout::EnumDialog);
570  m_enums.push_back(m_modePrinter);
571 
572  m_modeExit = new EnumType(27, "Exit", this);
573  m_modeExit->setLabel("Exit");
574  m_modeExit->setType(te::layout::EnumAction);
575  m_enums.push_back(m_modeExit);
576 
577  m_modeSceneZoom = new EnumType(28, "SceneZoom", this);
578  m_modeSceneZoom->setLabel("Scene Zoom");
579  m_modeSceneZoom->setType(te::layout::EnumAction);
580  m_enums.push_back(m_modeSceneZoom);
581 
582  m_modeBringToFront = new EnumType(29, "BringToFront", this);
583  m_modeBringToFront->setLabel("Bring To Front");
584  m_modeBringToFront->setType(te::layout::EnumAction);
585  m_enums.push_back(m_modeBringToFront);
586 
587  m_modeSendToBack = new EnumType(30, "SendToBack", this);
588  m_modeSendToBack->setLabel("Send To Back");
589  m_modeSendToBack->setType(te::layout::EnumAction);
590  m_enums.push_back(m_modeSendToBack);
591 
592  m_modeRecompose = new EnumType(31, "Recompose", this);
593  m_modeRecompose->setLabel("Recompose");
594  m_modeRecompose->setType(te::layout::EnumAction);
595  m_enums.push_back(m_modeRecompose);
596 
597  m_modeCreateImage = new EnumType(32, "CreateImage", this);
598  m_modeCreateImage->setLabel("Create Image Component");
599  m_modeCreateImage->setType(te::layout::EnumCreate);
600  m_enums.push_back(m_modeCreateImage);
601 
602  m_modePageConfig = new EnumType(33, "PageConfig", this);
603  m_modePageConfig->setLabel("Open Page Config");
604  m_modePageConfig->setType(te::layout::EnumDialog);
605  m_enums.push_back(m_modePageConfig);
606 
607  m_modeSystematicScale = new EnumType(34, "SystematicScale", this);
608  m_modeSystematicScale->setLabel("Systematic Scale");
609  m_modeSystematicScale->setType(te::layout::EnumDialog);
610  m_enums.push_back(m_modeSystematicScale);
611 
612  m_modeCreatePoint = new EnumType(35, "CreatePoint", this);
613  m_modeCreatePoint->setLabel("Create Point Component");
614  m_modeCreatePoint->setType(te::layout::EnumCreate);
615  m_enums.push_back(m_modeCreatePoint);
616 
617  m_modeCreateArrow = new EnumType(36, "CreateArrow", this);
618  m_modeCreateArrow->setLabel("Create Arrow Component");
619  m_modeCreateArrow->setType(te::layout::EnumCreate);
620  m_enums.push_back(m_modeCreateArrow);
621 
622  m_modeCreateEllipse = new EnumType(37, "CreateEllipse", this);
623  m_modeCreateEllipse->setLabel("Create Ellipse Component");
624  m_modeCreateEllipse->setType(te::layout::EnumCreate);
625  m_enums.push_back(m_modeCreateEllipse);
626 
627  m_modeCreateTitle = new EnumType(38, "CreateTitle", this);
628  m_modeCreateTitle->setLabel("Create Title Component");
629  m_modeCreateTitle->setType(te::layout::EnumCreate);
630  m_enums.push_back(m_modeCreateTitle);
631 
632  m_modeCreateTextGrid = new EnumType(39, "CreateTextGrid", this);
633  m_modeCreateTextGrid->setLabel("Create Text Grid");
634  m_modeCreateTextGrid->setType(te::layout::EnumCreate);
635  m_enums.push_back(m_modeCreateTextGrid);
636 
637  m_modeWidgetView = new EnumType(41, "WidgetView", this);
638  m_modeWidgetView->setLabel("Widget View");
639  m_modeWidgetView->setType(te::layout::EnumDialog);
640  m_enums.push_back(m_modeWidgetView);
641 
642  m_modeWidgetInspector = new EnumType(42, "WidgetInspector", this);
643  m_modeWidgetInspector->setLabel("Widget Inspector");
644  m_modeWidgetInspector->setType(te::layout::EnumDialog);
645  m_enums.push_back(m_modeWidgetInspector);
646 
647  m_modeWidgetProperties = new EnumType(43, "WidgetProperties", this);
648  m_modeWidgetProperties->setLabel("Widget Properties");
649  m_modeWidgetProperties->setType(te::layout::EnumDialog);
650  m_enums.push_back(m_modeWidgetProperties);
651 
652  m_modeWidgetToolbar = new EnumType(44, "WidgetToolbar", this);
653  m_modeWidgetToolbar->setLabel("Widget Toolbar");
654  m_enums.push_back(m_modeWidgetToolbar);
655 
656  m_modeMapCreateTextGrid = new EnumType(45, "CreateTextGrid", this);
657  m_modeMapCreateTextGrid->setLabel("Create TextGrid Component");
658  m_modeMapCreateTextGrid->setType(te::layout::EnumCreate);
659  m_enums.push_back(m_modeMapCreateTextGrid);
660 
661  m_modeMapCreateTextMap = new EnumType(46, "CreateTextMap", this);
662  m_modeMapCreateTextMap->setLabel("Create Text of a Map");
663  m_modeMapCreateTextMap->setType(te::layout::EnumCreate);
664  m_enums.push_back(m_modeMapCreateTextMap);
665 
666  m_modeAlignCenterHorizontal = new EnumType(47, "AlignCenterHorizontal", this);
667  m_modeAlignCenterHorizontal->setLabel("Align center horizontal");
668  m_modeAlignCenterHorizontal->setType(te::layout::EnumAction);
669  m_enums.push_back(m_modeAlignCenterHorizontal);
670 
671  m_modeAlignCenterVertical = new EnumType(48, "AlignCenterVertical", this);
672  m_modeAlignCenterVertical->setLabel("Align center vertical");
673  m_modeAlignCenterVertical->setType(te::layout::EnumAction);
674  m_enums.push_back(m_modeAlignCenterVertical);
675 
676  m_modeAlignLeft = new EnumType(49, "AlignLeft", this);
677  m_modeAlignLeft->setLabel("Align Left");
678  m_modeAlignLeft->setType(te::layout::EnumAction);
679  m_enums.push_back(m_modeAlignLeft);
680 
681  m_modeAlignRight = new EnumType(50, "AlignRight", this);
682  m_modeAlignRight->setLabel("Align Right");
683  m_modeAlignRight->setType(te::layout::EnumAction);
684  m_enums.push_back(m_modeAlignRight);
685 
686  m_modeAlignTop = new EnumType(51, "AlignTop", this);
687  m_modeAlignTop->setLabel("Align Top");
688  m_modeAlignTop->setType(te::layout::EnumAction);
689  m_enums.push_back(m_modeAlignTop);
690 
691  m_modeAlignBottom = new EnumType(52, "AlignBottom", this);
692  m_modeAlignBottom->setLabel("Align Bottom");
693  m_modeAlignBottom->setType(te::layout::EnumAction);
694  m_enums.push_back(m_modeAlignBottom);
695 
696  m_modeRemoveObject = new EnumType(53, "RemoveObject", this);
697  m_modeRemoveObject->setLabel("Remove Component");
698  m_modeRemoveObject->setType(te::layout::EnumAction);
699  m_enums.push_back(m_modeRemoveObject);
700 
701  m_modeUndo = new EnumType(54, "Undo", this);
702  m_modeUndo->setLabel("Undo");
703  m_modeUndo->setType(te::layout::EnumAction);
704  m_enums.push_back(m_modeUndo);
705 
706  m_modeRedo = new EnumType(55, "Redo", this);
707  m_modeRedo->setLabel("Redo");
708  m_modeRedo->setType(te::layout::EnumAction);
709  m_enums.push_back(m_modeRedo);
710 
711  m_modeDrawSelectionMap = new EnumType(56, "DrawSelectionMap", this);
712  m_modeDrawSelectionMap->setLabel("Draw Selection Map");
713  m_modeDrawSelectionMap->setType(te::layout::EnumAction);
714  m_enums.push_back(m_modeDrawSelectionMap);
715 
716  m_modeCreateLegendChild = new EnumType(57, "CreateLegendChild", this);
717  m_modeCreateLegendChild->setLabel("Create Legend Child Component");
718  m_modeCreateLegendChild->setType(te::layout::EnumCreate);
719  m_enums.push_back(m_modeCreateLegendChild);
720 
721  m_modeLegendChildAsObject = new EnumType(58, "LegendChildAsObject", this);
722  m_modeLegendChildAsObject->setLabel("Create Legend Child As Text Component");
723  m_modeLegendChildAsObject->setType(te::layout::EnumTool);
724  m_enums.push_back(m_modeLegendChildAsObject);
725 
726  m_modelObjectToImage = new EnumType(59, "ObjectToImage", this);
727  m_modelObjectToImage->setLabel("Selected Component To Image");
728  m_modelObjectToImage->setType(te::layout::EnumDialog);
729  m_enums.push_back(m_modelObjectToImage);
730 
731  m_inspectorCurrentItemChanged = new EnumType(60, "InspectorItemChanged", this);
732  m_inspectorCurrentItemChanged->setLabel("Inspector Item Changed");
733  m_inspectorCurrentItemChanged->setType(te::layout::EnumAction);
734  m_enums.push_back(m_inspectorCurrentItemChanged);
735 
736  m_modelExportToPDF = new EnumType(61, "ExporttoPDF", this);
737  m_modelExportToPDF->setLabel("Export To PDF");
738  m_modelExportToPDF->setType(te::layout::EnumDialog);
739  m_enums.push_back(m_modelExportToPDF);
740 
741  m_modeCreateLine = new EnumType(62, "Create Line", this);
742  m_modeCreateLine->setLabel("Create Line");
743  m_modeCreateLine->setType(te::layout::EnumCreate);
744  m_enums.push_back(m_modeCreateLine);
745 
746  m_modeCreatePolygon = new EnumType(63, "Create Polygon", this);
747  m_modeCreatePolygon->setLabel("Create Polygon");
748  m_modeCreatePolygon->setType(te::layout::EnumCreate);
749  m_enums.push_back(m_modeCreatePolygon);
750 
751  m_modeCreateBalloon = new EnumType (64, "Create Balloon", this);
752  m_modeCreateBalloon->setLabel("Create Balloon");
753  m_modeCreateBalloon->setType(te::layout::EnumCreate);
754  m_enums.push_back(m_modeCreateBalloon);
755 
756  m_modeCreateBarCode = new EnumType(65, "Create BarCode", this);
757  m_modeCreateBarCode->setLabel("Create BarCode");
758  m_modeCreateBarCode->setType(te::layout::EnumCreate);
759  m_enums.push_back(m_modeCreateBarCode);
760 
761  m_modeCreateGridMap = new EnumType(66, "Create GridMap", this);
762  m_modeCreateGridMap->setLabel("Create GridMap");
763  m_modeCreateGridMap->setType(te::layout::EnumCreate);
764  m_enums.push_back(m_modeCreateGridMap);
765 
766  m_coordWait = new EnumType (67, "Wait View", this);
767  m_coordWait->setLabel("Wait View");
768  m_coordWait->setType(te::layout::EnumAction);
769  m_enums.push_back(m_coordWait);
770 
771  m_modeCreateGridPlanar = new EnumType(68, "Create Grid Planar", this);
772  m_modeCreateGridPlanar->setLabel("Create Grid Planar");
773  m_modeCreateGridPlanar->setType(te::layout::EnumCreate);
774  m_enums.push_back(m_modeCreateGridPlanar);
775 
776  m_modeCreateGridGeodesic = new EnumType(69, "Create Grid Geodesic", this);
777  m_modeCreateGridGeodesic->setLabel("Create Grid Geodesic");
778  m_modeCreateGridGeodesic->setType(te::layout::EnumCreate);
779  m_enums.push_back(m_modeCreateGridGeodesic);
780 
781  m_modeCreateNorth = new EnumType(70, "Create North", this);
782  m_modeCreateNorth->setLabel("Create North");
783  m_modeCreateNorth->setType(te::layout::EnumCreate);
784  m_enums.push_back(m_modeCreateNorth);
785 
786  m_modeCreateMapLocation = new EnumType(71, "Create Map Location", this);
787  m_modeCreateMapLocation->setLabel("Create Map Location");
788  m_modeCreateMapLocation->setType(te::layout::EnumCreate);
789  m_enums.push_back(m_modeCreateMapLocation);
790 }
791 
793 {
794  return m_modeSelectByBox;
795 }
796 
798 {
799  return m_modeSelect;
800 }
801 
803 {
804  return m_modeArrowCursor;
805 }
806 
808 {
809  return m_modePan;
810 }
811 
813 {
814  return m_modeZoomIn;
815 }
816 
818 {
819  return m_modeZoomOut;
820 }
821 
823 {
824  return m_modeMapPan;
825 }
826 
828 {
829  return m_modeMapZoomIn;
830 }
831 
833 {
834  return m_modeMapZoomOut;
835 }
836 
838 {
839  return m_modeCreateMap;
840 }
841 
843 {
844  return m_modeCreateLegend;
845 }
846 
848 {
849  return m_modeCreateRectangle;
850 }
851 
853 {
854  return m_modeCreateText;
855 }
856 
858 {
859  return m_modeCreateItemGroup;
860 }
861 
863 {
864  return m_modeUnitsMetricsChange;
865 }
866 
868 {
869  return m_modeExportPropsJSON;
870 }
871 
873 {
874  return m_modeImportJSONProps;
875 }
876 
878 {
879  return m_modeNewTemplate;
880 }
881 
883 {
884  return m_modeCreateScale;
885 }
886 
888 {
889  return m_modeGroup;
890 }
891 
893 {
894  return m_modeUngroup;
895 }
896 
898 {
899  return m_modeActiveLinesIntersectionMouse;
900 }
901 
903 {
904  return m_modeOffLinesIntersectionMouse;
905 }
906 
908 {
909  return m_modePrinter;
910 }
911 
913 {
914  return m_modeExit;
915 }
916 
918 {
919  return m_modeSceneZoom;
920 }
921 
923 {
924  return m_modeBringToFront;
925 }
926 
928 {
929  return m_modeSendToBack;
930 }
931 
933 {
934  return m_modeRecompose;
935 }
936 
938 {
939  return m_modeCreateImage;
940 }
941 
943 {
944  return m_modePageConfig;
945 }
946 
948 {
949  return m_modeSystematicScale;
950 }
951 
953 {
954  return m_modeCreatePoint;
955 }
956 
958 {
959  return m_modeCreateArrow;
960 }
961 
963 {
964  return m_modeCreateEllipse;
965 }
966 
968 {
969  return m_modeCreateTitle;
970 }
971 
973 {
974  return m_modeCreateTextGrid;
975 }
976 
978 {
979  return m_modeWidgetView;
980 }
981 
983 {
984  return m_modeWidgetInspector;
985 }
986 
988 {
989  return m_modeWidgetProperties;
990 }
991 
993 {
994  return m_modeWidgetToolbar;
995 }
996 
998 {
999  return m_modeMapCreateTextGrid;
1000 }
1001 
1003 {
1004  return m_modeMapCreateTextMap;
1005 }
1006 
1008 {
1009  return m_modeAlignCenterHorizontal;
1010 }
1011 
1013 {
1014  return m_modeAlignCenterVertical;
1015 }
1016 
1018 {
1019  return m_modeAlignLeft;
1020 }
1021 
1023 {
1024  return m_modeAlignRight;
1025 }
1026 
1028 {
1029  return m_modeAlignTop;
1030 }
1031 
1033 {
1034  return m_modeAlignBottom;
1035 }
1036 
1038 {
1039  return m_modeRemoveObject;
1040 }
1041 
1043 {
1044  return m_modeNone;
1045 }
1046 
1048 {
1049  return m_modeUndo;
1050 }
1051 
1053 {
1054  return m_modeRedo;
1055 }
1056 
1058 {
1059  return m_modeDrawSelectionMap;
1060 }
1061 
1063 {
1064  return m_modeCreateLegendChild;
1065 }
1066 
1068 {
1069  return m_modeLegendChildAsObject;
1070 }
1071 
1073 {
1074  return m_modelObjectToImage;
1075 }
1076 
1078 {
1079  return m_inspectorCurrentItemChanged;
1080 }
1081 
1083 {
1084  return m_modelExportToPDF;
1085 }
1086 
1088 {
1089  return m_modeCreateLine;
1090 }
1091 
1093 {
1094  return m_modeCreatePolygon;
1095 }
1096 
1098 {
1099  return m_modeCreateBalloon;
1100 }
1101 
1103 {
1104  return m_coordWait;
1105 }
1106 
1108 {
1109  return m_modeCreateBarCode;
1110 }
1111 
1113 {
1114  return m_modeCreateGridMap;
1115 }
1116 
1118 {
1119  return m_modeCreateGridPlanar;
1120 }
1121 
1123 {
1124  return m_modeCreateGridGeodesic;
1125 }
1126 
1128 {
1129  return m_modeCreateNorth;
1130 }
1131 
1133 {
1134  return m_modeCreateMapLocation;
1135 }
1136 
1137 
1138 
virtual EnumType * getModeWidgetView() const
Returns value that represents QGraphicsView widget mode type belonging to enumeration.
virtual EnumType * getModeObjectToImage() const
Returns value that represents object to image (MVC Component to image. Ex.: .png) mode type belonging...
virtual EnumType * getModeCreateTextGrid() const
Returns value that represents create text grid mode type belonging to enumeration.
virtual EnumType * getModeDrawSelectionMap() const
Returns value that represents draw selection map (MapDisplay proxy) mode type belonging to enumeratio...
EnumTool
Definition: AbstractType.h:135
virtual EnumType * getModeRedo() const
Returns value that represents redo mode type belonging to enumeration.
virtual EnumType * getModeSendToBack() const
Returns value that represents send to back mode type belonging to enumeration.
virtual EnumType * getModeRecompose() const
Returns value that represents recompose mode type belonging to enumeration.
virtual EnumType * getModeBringToFront() const
Returns value that represents bring to front mode type belonging to enumeration.
virtual EnumType * getModeExportToPDF() const
Returns value that represents export to PDF mode type belonging to enumeration.
virtual void init()
Reimplemented from AbstractEnum.
virtual EnumType * getModeMapZoomIn() const
Returns value that represents map zoom in mode type belonging to enumeration.
virtual EnumType * getModeSelectByBox() const
Returns value that represents select by box mode type belonging to enumeration.
virtual EnumType * getModeCreateRectangle() const
Returns value that represents create rectangle mode type belonging to enumeration.
virtual EnumType * getModeCreateText() const
Returns value that represents create text mode type belonging to enumeration.
virtual EnumType * getModeMapCreateTextGrid() const
Returns value that represents create text grid (vectorize) mode type belonging to enumeration...
virtual EnumType * getModeLegendChildAsObject() const
Returns value that represents legend child as object (vectorize) mode type belonging to enumeration...
virtual EnumType * getModeCreateLegendChild() const
Returns value that represents create legend child mode type belonging to enumeration.
virtual EnumType * getModeUngroup() const
Returns value that represents ungroup mode type belonging to enumeration.
virtual EnumType * getModeExportPropsJSON() const
Returns value that represents export properties to json mode type belonging to enumeration.
virtual EnumType * getModeCoordWait() const
Returns value that represents wait coordinate mode type belonging to enumeration. ...
EnumAction
Definition: AbstractType.h:136
virtual EnumType * getModeUndo() const
Returns value that represents undo mode type belonging to enumeration.
virtual EnumType * getModeSceneZoom() const
Returns value that represents scene zoom mode type belonging to enumeration.
virtual EnumType * getModeZoomOut() const
Returns value that represents zoom out mode type belonging to enumeration.
virtual ~EnumModeType()
Destructor.
virtual EnumType * getModeExit() const
Returns value that represents exit mode type belonging to enumeration.
virtual EnumType * getModeCreateLegend() const
Returns value that represents create legend mode type belonging to enumeration.
virtual EnumType * getModeAlignCenterVertical() const
Returns value that represents align center vertical mode type belonging to enumeration.
virtual EnumType * getModeCreateItemGroup() const
Returns value that represents create item group mode type belonging to enumeration.
virtual EnumType * getModeActiveLinesIntersectionMouse() const
Returns value that represents active lines intersection mouse mode type belonging to enumeration...
virtual EnumType * getModeNewTemplate() const
Returns value that represents new template mode type belonging to enumeration.
EnumCreate
Definition: AbstractType.h:134
virtual EnumType * getModeUnitsMetricsChange() const
Returns value that represents units metrics change mode type belonging to enumeration.
virtual EnumType * getModeCreateTitle() const
Returns value that represents create title mode type belonging to enumeration.
virtual EnumType * getModeSelect() const
Returns value that represents select mode type belonging to enumeration.
virtual EnumType * getModeCreateMapLocation() const
Returns value that represents create map location mode type belonging to enumeration.
virtual EnumType * getModeAlignRight() const
Returns value that represents align right mode type belonging to enumeration.
virtual EnumType * getModeNone() const
Returns value that represents none mode type belonging to enumeration.
virtual EnumType * getModeCreatePolygon() const
Returns value that represents create polygon mode type belonging to enumeration.
virtual EnumType * getModeOffLinesIntersectionMouse() const
Returns value that represents off lines intersection mouse mode type belonging to enumeration...
virtual EnumType * getModeCreateGridMap() const
Returns value that represents wait coordinate mode type belonging to enumeration. ...
virtual EnumType * getModeMapPan() const
Returns value that represents map pan mode type belonging to enumeration.
virtual EnumType * getModeInspectorCurrentItemChanged() const
Returns value that represents object inspector current item changed type belonging to enumeration...
Class to represent a mode type enumeration. Ex.: select, pan, create text, etc. The type of mode is u...
virtual EnumType * getModeAlignLeft() const
Returns value that represents align left mode type belonging to enumeration.
virtual EnumType * getModePan() const
Returns value that represents pan mode type belonging to enumeration.
virtual EnumType * getModeCreateLine() const
Returns value that represents create line mode type belonging to enumeration.
virtual EnumType * getModeAlignBottom() const
Returns value that represents align bottom mode type belonging to enumeration.
virtual EnumType * getModeAlignCenterHorizontal() const
Returns value that represents align center horizontal mode type belonging to enumeration.
virtual EnumType * getModeGroup() const
Returns value that represents group mode type belonging to enumeration.
virtual EnumType * getModeMapZoomOut() const
Returns value that represents map zoom out mode type belonging to enumeration.
virtual EnumType * getModeCreateEllipse() const
Returns value that represents create ellipse mode type belonging to enumeration.
virtual EnumType * getModeZoomIn() const
Returns value that represents zoom in mode 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 * getModeMapCreateTextMap() const
Returns value that represents create text map (vectorize) mode type belonging to enumeration.
virtual EnumType * getModeCreatePoint() const
Returns value that represents create point mode type belonging to enumeration.
virtual EnumType * getModePrinter() const
Returns value that represents printer mode type belonging to enumeration.
virtual EnumType * getModeCreateNorth() const
Returns value that represents create north mode type belonging to enumeration.
virtual EnumType * getModeCreateBarCode() const
Returns value that represents wait coordinate mode type belonging to enumeration. ...
virtual EnumType * getModeImportJSONProps() const
Returns value that represents import properties from json mode type belonging to enumeration.
virtual EnumType * getModeWidgetToolbar() const
Returns value that represents Toolbar widget mode type belonging to enumeration.
virtual EnumType * getModeCreateBalloon() const
Returns value that represents create balloon mode type belonging to enumeration.
virtual EnumType * getModeCreateGridPlanar() const
Returns value that represents create grid planar mode type belonging to enumeration.
virtual EnumType * getModeArrowCursor() const
Returns value that represents arrow mode type belonging to enumeration.
virtual EnumType * getModeCreateScale() const
Returns value that represents create scale mode type belonging to enumeration.
virtual EnumType * getModeSystematicScale() const
Returns value that represents systematic scale mode type belonging to enumeration.
virtual EnumType * getModeCreateArrow() const
Returns value that represents create arrow mode type belonging to enumeration.
virtual EnumType * getModeRemoveObject() const
Returns value that represents remove object (MVC component) mode type belonging to enumeration...
virtual EnumType * getModeCreateMap() const
Returns value that represents create map mode type belonging to enumeration.
virtual EnumType * getModePageConfig() const
Returns value that represents page configuration mode type belonging to enumeration.
EnumModeType()
Constructor.
virtual EnumType * getModeCreateImage() const
Returns value that represents create image mode type belonging to enumeration.
virtual EnumType * getModeWidgetInspector() const
Returns value that represents Object Inspector widget mode type belonging to enumeration.
virtual EnumType * getModeCreateGridGeodesic() const
Returns value that represents create grid geodesic mode type belonging to enumeration.
virtual EnumType * getModeWidgetProperties() const
Returns value that represents Properties widget mode type belonging to enumeration.
virtual EnumType * getModeAlignTop() const
Returns value that represents align top mode type belonging to enumeration.