Skip to content

Commit 53ace62

Browse files
author
wonder
committed
Removed temporary symbology-ng buttons from the tool bar, style manager is now accessible from options menu.
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11175 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 974d9e5 commit 53ace62

File tree

2 files changed

+3
-34
lines changed

2 files changed

+3
-34
lines changed

src/app/qgisapp.cpp

+3-33
Original file line numberDiff line numberDiff line change
@@ -1021,44 +1021,14 @@ void QgisApp::createActions()
10211021
mActionAbout->setMenuRole( QAction::AboutRole ); // put in application menu on Mac OS X
10221022
connect( mActionAbout, SIGNAL( triggered() ), this, SLOT( about() ) );
10231023

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 );
10311025
mActionStyleManagerV2->setStatusTip( tr( "Show style manager V2" ) );
10321026
connect( mActionStyleManagerV2, SIGNAL( triggered() ), this, SLOT( showStyleManagerV2() ) );
10331027
}
10341028

10351029
#include "qgsstylev2.h"
1036-
#include "qgssymbolv2.h"
1037-
#include "qgsrendererv2.h"
1038-
#include "qgsrendererv2propertiesdialog.h"
10391030
#include "qgsstylev2managerdialog.h"
10401031

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-
10621032
void QgisApp::showStyleManagerV2()
10631033
{
10641034
QgsStyleV2ManagerDialog dlg(QgsStyleV2::defaultStyle(), QgsApplication::userStyleV2Path(), this);
@@ -1227,6 +1197,7 @@ void QgisApp::createMenus()
12271197
mActionEditSeparator3 = mEditMenu->addSeparator();
12281198
mEditMenu->addAction( mActionOptions );
12291199
mEditMenu->addAction( mActionConfigureShortcuts );
1200+
mEditMenu->addAction( mActionStyleManagerV2 );
12301201
mEditMenu->addAction( mActionCustomProjection );
12311202
}
12321203

@@ -1317,6 +1288,7 @@ void QgisApp::createMenus()
13171288

13181289
mSettingsMenu->addAction( mActionProjectProperties );
13191290
mSettingsMenu->addAction( mActionCustomProjection );
1291+
mSettingsMenu->addAction( mActionStyleManagerV2 );
13201292
mSettingsMenu->addAction( mActionConfigureShortcuts );
13211293
mSettingsMenu->addAction( mActionOptions );
13221294
}
@@ -1385,8 +1357,6 @@ void QgisApp::createToolBars()
13851357
mFileToolBar->addAction( mActionAddSpatiaLiteLayer );
13861358
#endif
13871359
mFileToolBar->addAction( mActionAddWmsLayer );
1388-
mFileToolBar->addAction( mActionUseRendererV2 );
1389-
mFileToolBar->addAction( mActionStyleManagerV2 );
13901360
mToolbarMenu->addAction( mFileToolBar->toggleViewAction() );
13911361
//
13921362
// Layer Toolbar

src/app/qgisapp.h

-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,6 @@ class QgisApp : public QMainWindow
607607
//! Stops rendering of the main map
608608
void stopRendering();
609609

610-
void toggleRendererV2();
611610
void showStyleManagerV2();
612611

613612
signals:

0 commit comments

Comments
 (0)