@@ -80,10 +80,12 @@ class QgsGPSInformationWidget;
80
80
#include " qgspoint.h"
81
81
#include " qgssnappingdialog.h"
82
82
83
+ #include " ui_qgisapp.h"
84
+
83
85
/* ! \class QgisApp
84
86
* \brief Main window for the Qgis application
85
87
*/
86
- class QgisApp : public QMainWindow
88
+ class QgisApp : public QMainWindow , private Ui ::MainWindow
87
89
{
88
90
Q_OBJECT
89
91
public:
@@ -213,39 +215,28 @@ class QgisApp : public QMainWindow
213
215
// ! Actions to be inserted in menus and toolbars
214
216
QAction *actionNewProject () { return mActionNewProject ; }
215
217
QAction *actionOpenProject () { return mActionOpenProject ; }
216
- QAction *actionFileSeparator1 () { return mActionFileSeparator1 ; }
217
218
QAction *actionSaveProject () { return mActionSaveProject ; }
218
219
QAction *actionSaveProjectAs () { return mActionSaveProjectAs ; }
219
220
QAction *actionSaveMapAsImage () { return mActionSaveMapAsImage ; }
220
- QAction *actionFileSeparator2 () { return mActionFileSeparator2 ; }
221
221
QAction *actionProjectProperties () { return mActionProjectProperties ; }
222
- QAction *actionFileSeparator3 () { return mActionFileSeparator3 ; }
223
222
QAction *actionNewPrintComposer () { return mActionNewPrintComposer ; }
224
- QAction *actionFileSeparator4 () { return mActionFileSeparator4 ; }
225
223
QAction *actionExit () { return mActionExit ; }
226
224
227
225
QAction *actionCutFeatures () { return mActionCutFeatures ; }
228
226
QAction *actionCopyFeatures () { return mActionCopyFeatures ; }
229
227
QAction *actionPasteFeatures () { return mActionPasteFeatures ; }
230
- QAction *actionEditSeparator1 () { return mActionEditSeparator1 ; }
231
228
QAction *actionCapturePoint () { return mActionCapturePoint ; }
232
229
QAction *actionCaptureLine () { return mActionCaptureLine ; }
233
230
QAction *actionCapturePolygon () { return mActionCapturePolygon ; }
234
231
QAction *actionDeleteSelected () { return mActionDeleteSelected ; }
235
232
QAction *actionMoveFeature () { return mActionMoveFeature ; }
236
233
QAction *actionSplitFeatures () { return mActionSplitFeatures ; }
237
- #if 0 //These three tools are deprecated - use node tool rather...
238
- QAction *actionAddVertex() { return mActionAddVertex; }
239
- QAction *actionDeleteVertex() { return mActionDeleteVertex; }
240
- QAction *actionMoveVertex() { return mActionMoveVertex; }
241
- #endif
242
234
QAction *actionAddRing () { return mActionAddRing ; }
243
235
QAction *actionAddIsland () { return mActionAddIsland ; }
244
236
QAction *actionSimplifyFeature () { return mActionSimplifyFeature ; }
245
237
QAction *actionDeleteRing () { return mActionDeleteRing ; }
246
238
QAction *actionDeletePart () { return mActionDeletePart ; }
247
239
QAction *actionNodeTool () { return mActionNodeTool ; }
248
- QAction *actionEditSeparator2 () { return mActionEditSeparator2 ; }
249
240
QAction *actionSnappingOptions () { return mActionSnappingOptions ; }
250
241
251
242
QAction *actionPan () { return mActionPan ; }
@@ -259,19 +250,16 @@ class QgisApp : public QMainWindow
259
250
QAction *actionIdentify () { return mActionIdentify ; }
260
251
QAction *actionMeasure () { return mActionMeasure ; }
261
252
QAction *actionMeasureArea () { return mActionMeasureArea ; }
262
- QAction *actionViewSeparator1 () { return mActionViewSeparator1 ; }
263
253
QAction *actionZoomFullExtent () { return mActionZoomFullExtent ; }
264
254
QAction *actionZoomToLayer () { return mActionZoomToLayer ; }
265
255
QAction *actionZoomToSelected () { return mActionZoomToSelected ; }
266
256
QAction *actionZoomLast () { return mActionZoomLast ; }
267
257
QAction *actionZoomNext () { return mActionZoomNext ; }
268
258
QAction *actionZoomActualSize () { return mActionZoomActualSize ; }
269
- QAction *actionViewSeparator2 () { return mActionViewSeparator2 ; }
270
259
QAction *actionMapTips () { return mActionMapTips ; }
271
260
QAction *actionNewBookmark () { return mActionNewBookmark ; }
272
261
QAction *actionShowBookmarks () { return mActionShowBookmarks ; }
273
262
QAction *actionDraw () { return mActionDraw ; }
274
- QAction *actionViewSeparator3 () { return mActionViewSeparator3 ; }
275
263
276
264
QAction *actionNewVectorLayer () { return mActionNewVectorLayer ; }
277
265
QAction *actionNewSpatialLiteLayer () { return mActionNewSpatialiteLayer ; }
@@ -280,7 +268,6 @@ class QgisApp : public QMainWindow
280
268
QAction *actionAddPgLayer () { return mActionAddPgLayer ; }
281
269
QAction *actionAddSpatiaLiteLayer () { return mActionAddSpatiaLiteLayer ; };
282
270
QAction *actionAddWmsLayer () { return mActionAddWmsLayer ; }
283
- QAction *actionLayerSeparator1 () { return mActionLayerSeparator1 ; }
284
271
QAction *actionOpenTable () { return mActionOpenTable ; }
285
272
QAction *actionToggleEditing () { return mActionToggleEditing ; }
286
273
QAction *actionSaveEdits () { return mActionSaveEdits ; }
@@ -292,41 +279,32 @@ class QgisApp : public QMainWindow
292
279
QAction *actionGpsTool () { return mActionGpsTool ; }
293
280
QAction *actionLayerProperties () { return mActionLayerProperties ; }
294
281
QAction *actionLayerSubsetString () { return mActionLayerSubsetString ; }
295
- QAction *actionLayerSeparator2 () { return mActionLayerSeparator2 ; }
296
282
QAction *actionAddToOverview () { return mActionAddToOverview ; }
297
283
QAction *actionAddAllToOverview () { return mActionAddAllToOverview ; }
298
284
QAction *actionRemoveAllFromOverview () { return mActionRemoveAllFromOverview ; }
299
- QAction *actionLayerSeparator3 () { return mActionLayerSeparator3 ; }
300
285
QAction *actionHideAllLayers () { return mActionHideAllLayers ; }
301
286
QAction *actionShowAllLayers () { return mActionShowAllLayers ; }
302
287
303
288
QAction *actionManagePlugins () { return mActionManagePlugins ; }
304
- QAction *actionPluginSeparator1 () { return mActionPluginSeparator1 ; }
305
289
QAction *actionPluginListSeparator () { return mActionPluginSeparator1 ; }
306
- QAction *actionPluginSeparator2 () { return mActionPluginSeparator2 ; }
307
290
QAction *actionPluginPythonSeparator () { return mActionPluginSeparator2 ; }
308
291
QAction *actionShowPythonDialog () { return mActionShowPythonDialog ; }
309
292
310
293
QAction *actionToggleFullScreen () { return mActionToggleFullScreen ; }
311
- QAction *actionSettingsSeparator1 () { return mActionSettingsSeparator1 ; }
312
294
QAction *actionOptions () { return mActionOptions ; }
313
295
QAction *actionCustomProjection () { return mActionCustomProjection ; }
314
296
QAction *actionConfigureShortcuts () { return mActionConfigureShortcuts ; }
315
297
316
298
#ifdef Q_WS_MAC
317
299
QAction *actionWindowMinimize () { return mActionWindowMinimize ; }
318
300
QAction *actionWindowZoom () { return mActionWindowZoom ; }
319
- QAction *actionWindowSeparator1 () { return mActionWindowSeparator1 ; }
320
301
QAction *actionWindowAllToFront () { return mActionWindowAllToFront ; }
321
- QAction *actionWindowSeparator2 () { return mActionWindowSeparator2 ; }
322
302
#endif
323
303
324
304
QAction *actionHelpContents () { return mActionHelpContents ; }
325
305
QAction *actionHelpAPI () { return mActionHelpAPI ; }
326
- QAction *actionHelpSeparator1 () { return mActionHelpSeparator1 ; }
327
306
QAction *actionQgisHomePage () { return mActionQgisHomePage ; }
328
307
QAction *actionCheckQgisVersion () { return mActionCheckQgisVersion ; }
329
- QAction *actionHelpSeparator2 () { return mActionHelpSeparator2 ; }
330
308
QAction *actionAbout () { return mActionAbout ; }
331
309
QAction *actionSponsors () { return mActionSponsors ; }
332
310
@@ -878,138 +856,8 @@ class QgisApp : public QMainWindow
878
856
bool createDB ();
879
857
void createMapTips ();
880
858
881
- // toolbars ---------------------------------------
882
- QToolBar *mFileToolBar ;
883
- QToolBar *mLayerToolBar ;
884
- QToolBar *mMapNavToolBar ;
885
- QToolBar *mDigitizeToolBar ;
886
- QToolBar *mAdvancedDigitizeToolBar ;
887
- QToolBar *mAttributesToolBar ;
888
- QToolBar *mPluginToolBar ;
889
- QToolBar *mHelpToolBar ;
890
- QToolBar *mRasterToolBar ;
891
- QToolBar *mLabelToolBar ;
892
-
893
859
// actions for menus and toolbars -----------------
894
860
895
- QAction *mActionNewProject ;
896
- QAction *mActionOpenProject ;
897
- QAction *mActionFileSeparator1 ;
898
- QAction *mActionSaveProject ;
899
- QAction *mActionSaveProjectAs ;
900
- QAction *mActionSaveMapAsImage ;
901
- QAction *mActionFileSeparator2 ;
902
- QAction *mActionProjectProperties ;
903
- QAction *mActionFileSeparator3 ;
904
- QAction *mActionNewPrintComposer ;
905
- QAction *mActionShowComposerManager ;
906
- QAction *mActionFileSeparator4 ;
907
- QAction *mActionExit ;
908
-
909
- QAction *mActionUndo ;
910
- QAction *mActionRedo ;
911
- QAction *mActionEditSeparator0 ;
912
- QAction *mActionCutFeatures ;
913
- QAction *mActionCopyFeatures ;
914
- QAction *mActionPasteFeatures ;
915
- QAction *mActionEditSeparator1 ;
916
- QAction *mActionCapturePoint ;
917
- QAction *mActionCaptureLine ;
918
- QAction *mActionCapturePolygon ;
919
- QAction *mActionDeleteSelected ;
920
- QAction *mActionMoveFeature ;
921
- QAction *mActionReshapeFeatures ;
922
- QAction *mActionSplitFeatures ;
923
- #if 0 // deprecated
924
- QAction *mActionAddVertex;
925
- QAction *mActionDeleteVertex;
926
- QAction *mActionMoveVertex;
927
- #endif
928
- QAction *mActionAddRing ;
929
- QAction *mActionAddIsland ;
930
- QAction *mActionEditSeparator2 ;
931
- QAction *mActionSimplifyFeature ;
932
- QAction *mActionDeleteRing ;
933
- QAction *mActionDeletePart ;
934
- QAction *mActionMergeFeatures ;
935
- QAction *mActionMergeFeatureAttributes ;
936
- QAction *mActionNodeTool ;
937
- QAction *mActionRotatePointSymbols ;
938
- QAction *mActionEditSeparator3 ;
939
- QAction *mActionSnappingOptions ;
940
-
941
- QAction *mActionPan ;
942
- QAction *mActionZoomIn ;
943
- QAction *mActionZoomOut ;
944
- QAction *mActionViewSeparator1 ;
945
- QAction *mActionSelect ;
946
- QAction *mActionSelectRectangle ;
947
- QAction *mActionSelectPolygon ;
948
- QAction *mActionSelectFreehand ;
949
- QAction *mActionSelectRadius ;
950
- QAction *mActionDeselectAll ;
951
- QAction *mActionViewSeparator2 ;
952
- QAction *mActionIdentify ;
953
- QAction *mActionMeasure ;
954
- QAction *mActionMeasureAngle ;
955
- QAction *mActionMeasureArea ;
956
- QAction *mActionViewSeparator3 ;
957
- QAction *mActionZoomFullExtent ;
958
- QAction *mActionZoomToLayer ;
959
- QAction *mActionZoomToSelected ;
960
- QAction *mActionZoomLast ;
961
- QAction *mActionZoomNext ;
962
- QAction *mActionZoomActualSize ;
963
- QAction *mActionViewSeparator4 ;
964
- QAction *mActionMapTips ;
965
- QAction *mActionNewBookmark ;
966
- QAction *mActionShowBookmarks ;
967
- QAction *mActionDraw ;
968
- QAction *mActionViewSeparator5 ;
969
- QAction *mActionTextAnnotation ;
970
- QAction *mActionFormAnnotation ;
971
- QAction *mActionAnnotation ;
972
- QAction *mActionLabeling ;
973
-
974
- QAction *mActionNewVectorLayer ;
975
- QAction *mActionNewSpatialiteLayer ;
976
- QAction *mActionShowRasterCalculator ;
977
- QAction *mActionAddOgrLayer ;
978
- QAction *mActionAddRasterLayer ;
979
- QAction *mActionAddPgLayer ;
980
- QAction *mActionAddSpatiaLiteLayer ;
981
- QAction *mActionAddWmsLayer ;
982
- QAction *mActionLayerSeparator1 ;
983
- QAction *mActionOpenTable ;
984
- QAction *mActionToggleEditing ;
985
- QAction *mActionSaveEdits ;
986
- QAction *mActionLayerSaveAs ;
987
- QAction *mActionLayerSelectionSaveAs ;
988
- QAction *mActionRemoveLayer ;
989
- QAction *mActionSetLayerCRS ;
990
- QAction *mActionTileScale ;
991
- QAction *mActionGpsTool ;
992
- QAction *mActionLayerProperties ;
993
- QAction *mActionLayerSubsetString ;
994
- QAction *mActionLayerSeparator2 ;
995
- QAction *mActionAddToOverview ;
996
- QAction *mActionAddAllToOverview ;
997
- QAction *mActionRemoveAllFromOverview ;
998
- QAction *mActionLayerSeparator3 ;
999
- QAction *mActionHideAllLayers ;
1000
- QAction *mActionShowAllLayers ;
1001
-
1002
- QAction *mActionManagePlugins ;
1003
- QAction *mActionPluginSeparator1 ;
1004
- QAction *mActionPluginSeparator2 ;
1005
- QAction *mActionShowPythonDialog ;
1006
-
1007
- QAction *mActionToggleFullScreen ;
1008
- QAction *mActionSettingsSeparator1 ;
1009
- QAction *mActionOptions ;
1010
- QAction *mActionCustomProjection ;
1011
- QAction *mActionConfigureShortcuts ;
1012
-
1013
861
#ifdef Q_WS_MAC
1014
862
QAction *mActionWindowMinimize ;
1015
863
QAction *mActionWindowZoom ;
@@ -1019,41 +867,19 @@ class QgisApp : public QMainWindow
1019
867
QActionGroup *mWindowActions ;
1020
868
#endif
1021
869
1022
- QAction *mActionHelpContents ;
1023
- QAction *mActionHelpAPI ;
1024
- QAction *mActionHelpSeparator1 ;
1025
- QAction *mActionQgisHomePage ;
1026
- QAction *mActionCheckQgisVersion ;
1027
- QAction *mActionHelpSeparator2 ;
1028
- QAction *mActionAbout ;
1029
- QAction *mActionSponsors ;
1030
-
1031
- QAction *mActionLocalHistogramStretch ;
1032
-
1033
- QAction *mActionMoveLabel ;
1034
- QAction *mActionRotateLabel ;
1035
- QAction *mActionChangeLabelProperties ;
1036
-
1037
- QAction *mActionUseRendererV2 ;
1038
- QAction *mActionStyleManagerV2 ;
870
+ QAction* mActionPluginSeparator1 ;
871
+ QAction* mActionPluginSeparator2 ;
1039
872
1040
873
// action groups ----------------------------------
1041
874
QActionGroup *mMapToolGroup ;
1042
875
1043
876
// menus ------------------------------------------
1044
- QMenu *mFileMenu ;
1045
- QMenu *mEditMenu ;
1046
- QMenu *mRecentProjectsMenu ;
1047
- QMenu *mViewMenu ;
1048
- QMenu *mPanelMenu ;
1049
- QMenu *mToolbarMenu ;
1050
- QMenu *mLayerMenu ;
1051
- QMenu *mSettingsMenu ;
877
+
1052
878
#ifdef Q_WS_MAC
1053
879
QMenu *mWindowMenu ;
1054
880
#endif
1055
- QMenu *mPrintComposersMenu ;
1056
- QMenu *mHelpMenu ;
881
+ QMenu *mPanelMenu ;
882
+ QMenu *mToolbarMenu ;
1057
883
1058
884
// docks ------------------------------------------
1059
885
QDockWidget *mLegendDock ;
@@ -1132,12 +958,8 @@ class QgisApp : public QMainWindow
1132
958
QToolButton * mOnTheFlyProjectionStatusButton ;
1133
959
// ! Popup menu
1134
960
QMenu * mPopupMenu ;
1135
- // ! Top level plugin menu
1136
- QMenu *mPluginMenu ;
1137
961
// ! Top level database menu
1138
962
QMenu *mDatabaseMenu ;
1139
- // ! Top level raster menu
1140
- QMenu *mRasterMenu ;
1141
963
// ! Popup menu for the map overview tools
1142
964
QMenu *toolPopupOverviews;
1143
965
// ! Popup menu for the display tools
0 commit comments