@@ -1021,44 +1021,14 @@ void QgisApp::createActions()
1021
1021
mActionAbout ->setMenuRole ( QAction::AboutRole ); // put in application menu on Mac OS X
1022
1022
connect ( mActionAbout , SIGNAL ( triggered () ), this , SLOT ( about () ) );
1023
1023
1024
- // %%%
1025
- mActionUseRendererV2 = new QAction ( " V2" , this );
1026
- mActionUseRendererV2 ->setStatusTip ( tr ( " Toggles renderer V2 for current layer" ) );
1027
- connect ( mActionUseRendererV2 , SIGNAL ( triggered () ), this , SLOT ( toggleRendererV2 () ) );
1028
-
1029
- // %%%
1030
- mActionStyleManagerV2 = new QAction ( " MGR" , this );
1024
+ mActionStyleManagerV2 = new QAction ( tr (" Style manager..." ), this );
1031
1025
mActionStyleManagerV2 ->setStatusTip ( tr ( " Show style manager V2" ) );
1032
1026
connect ( mActionStyleManagerV2 , SIGNAL ( triggered () ), this , SLOT ( showStyleManagerV2 () ) );
1033
1027
}
1034
1028
1035
1029
#include " qgsstylev2.h"
1036
- #include " qgssymbolv2.h"
1037
- #include " qgsrendererv2.h"
1038
- #include " qgsrendererv2propertiesdialog.h"
1039
1030
#include " qgsstylev2managerdialog.h"
1040
1031
1041
-
1042
-
1043
- void QgisApp::toggleRendererV2 ()
1044
- {
1045
- QgsMapLayer* layer = activeLayer ();
1046
- if (layer == NULL || layer->type () != QgsMapLayer::VectorLayer)
1047
- {
1048
- QMessageBox::information (this , " sorry" , " Give me a vector layer!" );
1049
- return ;
1050
- }
1051
- QgsVectorLayer* vlayer = static_cast <QgsVectorLayer*>(layer);
1052
-
1053
- QgsRendererV2PropertiesDialog dlg (vlayer, QgsStyleV2::defaultStyle (), this );
1054
- if (!dlg.exec ())
1055
- return ;
1056
-
1057
- mMapLegend ->refreshLayerSymbology ( vlayer->getLayerID (), false );
1058
-
1059
- refreshMapCanvas ();
1060
- }
1061
-
1062
1032
void QgisApp::showStyleManagerV2 ()
1063
1033
{
1064
1034
QgsStyleV2ManagerDialog dlg (QgsStyleV2::defaultStyle (), QgsApplication::userStyleV2Path (), this );
@@ -1227,6 +1197,7 @@ void QgisApp::createMenus()
1227
1197
mActionEditSeparator3 = mEditMenu ->addSeparator ();
1228
1198
mEditMenu ->addAction ( mActionOptions );
1229
1199
mEditMenu ->addAction ( mActionConfigureShortcuts );
1200
+ mEditMenu ->addAction ( mActionStyleManagerV2 );
1230
1201
mEditMenu ->addAction ( mActionCustomProjection );
1231
1202
}
1232
1203
@@ -1317,6 +1288,7 @@ void QgisApp::createMenus()
1317
1288
1318
1289
mSettingsMenu ->addAction ( mActionProjectProperties );
1319
1290
mSettingsMenu ->addAction ( mActionCustomProjection );
1291
+ mSettingsMenu ->addAction ( mActionStyleManagerV2 );
1320
1292
mSettingsMenu ->addAction ( mActionConfigureShortcuts );
1321
1293
mSettingsMenu ->addAction ( mActionOptions );
1322
1294
}
@@ -1385,8 +1357,6 @@ void QgisApp::createToolBars()
1385
1357
mFileToolBar ->addAction ( mActionAddSpatiaLiteLayer );
1386
1358
#endif
1387
1359
mFileToolBar ->addAction ( mActionAddWmsLayer );
1388
- mFileToolBar ->addAction ( mActionUseRendererV2 );
1389
- mFileToolBar ->addAction ( mActionStyleManagerV2 );
1390
1360
mToolbarMenu ->addAction ( mFileToolBar ->toggleViewAction () );
1391
1361
//
1392
1362
// Layer Toolbar
0 commit comments