VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGridLinesSelectionToolbar.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <vrvCoreQt/DtToolbar.h>
14 
16 #include <vrvCoreQt/DtMenu.h>
17 
19 
21 
22 #include <QtCore/QCoreApplication>
23 
24 #include <string>
25 
26 namespace makVrv
27 {
28  class DtDe;
29 
36  {
37  Q_DECLARE_TR_FUNCTIONS(DtGridLinesSelectionToolbar)
38 
39  public:
40 
43 
45  virtual ~DtGridLinesSelectionToolbar();
46 
48  virtual QToolBar* createToolbar(DtDe&, QWidget* parent);
49 
50 
52  DtGridLinesSelectionToolbar() = delete;
56  DtGridLinesSelectionToolbar &operator=(const DtGridLinesSelectionToolbar &) = delete;
57 
58  };
59 
66  {
67  public:
69  DtGridLinesSelectionItem(DtDe& myDe, const std::string& menuItemId);
70 
72  virtual ~DtGridLinesSelectionItem() = default;
73 
77  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent) override;
78 
83  virtual void setValue(bool val) override;
84 
87  virtual bool getValue() const override;
88 
98  virtual void updateItemState();
99 
101  DtGridLinesSelectionItem() = delete;
105  DtGridLinesSelectionItem &operator=(const DtGridLinesSelectionItem &) = delete;
106 
107  protected:
108 
110  virtual void collapseSeparators(QToolBar* toolbar);
111 
115  virtual void slot_displayEngineInitialized();
116 
119  virtual void slot_terrainLoaded();
120 
123  virtual void slot_terrainCleared();
124 
125  // Check the unit type for the current coordinate system against the unit type used by the item's
126  // grid type. Return true they match, false otherwise. Called by updateItemState().
127  virtual bool isEnabled();
128 
129  protected:
133  };
134 
138  {
139  public:
140  DtMgrsSelectionItem(DtDe& myDe);
141  virtual ~DtMgrsSelectionItem() = default;
142 
144  DtMgrsSelectionItem() = delete;
146  DtMgrsSelectionItem(const DtMgrsSelectionItem &) = delete;
148  DtMgrsSelectionItem &operator=(const DtMgrsSelectionItem &) = delete;
149  };
150 
154  {
155  public:
156  DtGarsSelectionItem(DtDe& myDe);
157  virtual ~DtGarsSelectionItem() = default;
158 
160  DtGarsSelectionItem() = delete;
162  DtGarsSelectionItem(const DtGarsSelectionItem &) = delete;
164  DtGarsSelectionItem &operator=(const DtGarsSelectionItem &) = delete;
165  };
166 
171  {
172  public:
173  DtDmsSelectionItem(DtDe& myDe);
174  virtual ~DtDmsSelectionItem() = default;
175 
177  DtDmsSelectionItem() = delete;
179  DtDmsSelectionItem(const DtDmsSelectionItem &) = delete;
181  DtDmsSelectionItem &operator=(const DtDmsSelectionItem &) = delete;
182  };
183 
188  {
189  public:
190  DtDdmSelectionItem(DtDe& myDe);
191  virtual ~DtDdmSelectionItem() = default;
192 
194  DtDdmSelectionItem() = delete;
196  DtDdmSelectionItem(const DtDdmSelectionItem &) = delete;
198  DtDdmSelectionItem &operator=(const DtDdmSelectionItem &) = delete;
199  };
200 
204  {
205  public:
206  DtDecSelectionItem(DtDe& myDe);
207  virtual ~DtDecSelectionItem() = default;
208 
210  DtDecSelectionItem() = delete;
212  DtDecSelectionItem(const DtDecSelectionItem &) = delete;
214  DtDecSelectionItem &operator=(const DtDecSelectionItem &) = delete;
215  };
216 
220  {
221  public:
222  DtUtmSelectionItem(DtDe& myDe);
223  virtual ~DtUtmSelectionItem() = default;
224 
226  DtUtmSelectionItem() = delete;
228  DtUtmSelectionItem(const DtUtmSelectionItem &) = delete;
230  DtUtmSelectionItem &operator=(const DtUtmSelectionItem &) = delete;
231  };
232 
237  {
238  public:
240  virtual ~DtDatabaseSelectionItem() = default;
241 
243  DtDatabaseSelectionItem() = delete;
247  DtDatabaseSelectionItem &operator=(const DtDatabaseSelectionItem &) = delete;
248  };
249 }
The base class for VR-Vantage toolbars.
Definition: DtToolbar.h:26
DtDatabaseSelectionItem is a DtGridLinesSelectionItem for cartesian database grid lines...
Definition: DtGridLinesSelectionToolbar.h:236
DtGarsSelectionItem is a DtGridLinesSelectionItem for GARS grid lines.
Definition: DtGridLinesSelectionToolbar.h:153
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
CoordSys
Enumeration of the different coordinate system types.
Definition: DtDisplayUnitsSettingsRecord.h:30
DtSignalConnectionManager myConnections
Definition: DtGridLinesSelectionToolbar.h:132
Toolbar for selecting Grid Lines. This toolbar supports allowing which buttons will appear dynamicall...
Definition: DtGridLinesSelectionToolbar.h:35
Base class item builder for settings toggle items The menu id string is &quot;DtViewSettingsItem&quot;.
Definition: DtCheckedItem.h:22
bool myTerrainLoaded
Definition: DtGridLinesSelectionToolbar.h:131
DtDmsSelectionItem is a DtGridLinesSelectionItem for Geodetic degrees / minutes / seconds labeled gri...
Definition: DtGridLinesSelectionToolbar.h:170
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Contains makVrv::DtToolbar class declaration.
DtGridLinesSelectionItem provides a common base class for all the items on the DtGridLinesSelectionTo...
Definition: DtGridLinesSelectionToolbar.h:65
Contains makVrv::DtCheckedItem class.
Contains the DtGridLinesSettingsRecord class declaration.
Base class to provide boost signal/slot management.
DtDdmSelectionItem is a DtGridLinesSelectionItem for Geodetic degrees / decimal minutes labeled grid ...
Definition: DtGridLinesSelectionToolbar.h:187
DtMgrsSelectionItem is a DtGridLinesSelectionItem for MGRS grid lines.
Definition: DtGridLinesSelectionToolbar.h:137
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
makArchives::DtDisplayUnitsSettingsRecord::CoordSys myGridType
Definition: DtGridLinesSelectionToolbar.h:130
DtUtmSelectionItem is a DtGridLinesSelectionItem for UTM grid lines.
Definition: DtGridLinesSelectionToolbar.h:219
DtDecSelectionItem is a DtGridLinesSelectionItem for Geodetic decimal degrees labeled grid lines...
Definition: DtGridLinesSelectionToolbar.h:203

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)