Skip to content

File tree

2 files changed

+1
-87
lines changed

2 files changed

+1
-87
lines changed
 

‎src/designer/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ libqgis_designerwidgets_RES = qgisdesignerwidgets.qrc.cpp
4040
libqgis_designerwidgets_QRC = qgisdesignerwidgets.qrc
4141

4242

43-
## $(libqgis_designerwidgets_la_MOC) \
4443
libqgis_designerwidgets_la_SOURCES = qgsprojectionselectorwidget.cpp \
44+
$(libqgis_designerwidgets_la_MOC) \
4545
$(libqgis_designerwidgets_QRC) \
4646
$(libqgis_designerwidgets_RES)
4747

‎src/gui/qgisapp.cpp

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ static void setTitleBarText_( QWidget & qgisApp )
228228
createToolBars();
229229
createStatusBar();
230230
setTheme(mThemeName);
231-
setupToolbarPopups(mThemeName);
232231
updateRecentProjectPaths();
233232
createCanvas();
234233
createOverview();
@@ -967,90 +966,6 @@ void QgisApp::setTheme(QString theThemeName)
967966
mActionAddWmsLayer->setIconSet(QIcon(QPixmap(myIconPath + "/mActionAddWmsLayer.png")));
968967
mActionInOverview->setIconSet(QIcon(QPixmap(myIconPath + "/mActionInOverview.png")));
969968
}
970-
void QgisApp::setupToolbarPopups(QString mThemeName)
971-
{
972-
// Disabled by Tim for now during qt4 port - FIXME!!!!
973-
//
974-
// Additional note by Tim. Popup tool icons are not nice UI
975-
// they are confusing for the user. We should get rid of using them
976-
//
977-
978-
// 23:25 < timlinux> I'm also proposing to do away with popup toolicons
979-
// 23:25 < timlinux> they are yuk from a ui perspective
980-
// 23:25 < timlinux> imho
981-
// 23:25 < gsherman> what are they?
982-
// 23:25 < timlinux> e.g. digitising tool icon
983-
// 23:25 < timlinux> where you have to hold and choose sub icon
984-
// 23:25 < timlinux> ala ffox back button
985-
// 23:26 < gsherman> that will clutter the ui to have all those floating around
986-
// 23:28 < timlinux> but they are no better than using menus to select the same actions
987-
// 23:28 < timlinux> .e.g. show / hide all in overview
988-
// 23:29 < timlinux> 2 clicks to achieve action from toolicon popup
989-
// 23:29 < timlinux> 2 clicks from menu
990-
// 23:29 < timlinux> so having it on icon bar offers no advantage
991-
// 23:29 < timlinux> be better to juditiously remove stuff from the icon bars imho
992-
// 23:30 < timlinux> ditto for show / hide all layers icon group
993-
// 23:31 < timlinux> and digitising icon should simply be changed based on the context
994-
// 23:31 < timlinux> e.g. if you start digitising a line layer, the digitising icon should reflect that lines will be digitised if line layer is active
995-
// 23:32 < timlinux> point and poly icons are then extraneaous
996-
997-
998-
/*
999-
// setup the toolbar popup menus that create a single toolbar icon
1000-
// and a menu that is popped up when the mouse is held down (ala
1001-
// the famous web browser Back button)
1002-
QString myIconPath = mAppDir +"/share/qgis/themes/" + mThemeName;
1003-
1004-
// Setup the overview tools
1005-
// the toolbutton for the overview group:
1006-
tbtnOverviewTools->setIconSet(QIcon(QPixmap(myIconPath + "/mActionAddAllToOverview.png")));
1007-
toolPopupOverviews = new Q3PopupMenu();
1008-
toolPopupOverviews->insertItem(QIcon(QPixmap(myIconPath + "/mActionAddAllToOverview.png")),
1009-
tr("Add all layers to the overview map"),
1010-
this, SLOT(addAllToOverview()));
1011-
toolPopupOverviews->insertItem(QIcon(QPixmap(myIconPath + "/mActionRemoveAllFromOverview.png")),
1012-
tr("Remove all layers from the overview map"),
1013-
this, SLOT(removeAllFromOverview()));
1014-
tbtnOverviewTools->setMenu(toolPopupOverviews);
1015-
tbtnOverviewTools->setPopupMode(QToolButton::MenuButtonPopup);
1016-
// connect the top overview tool to the appropriate slot
1017-
connect(tbtnOverviewTools, SIGNAL(clicked()), this, SLOT(addAllToOverview()));
1018-
1019-
// setup the add/remove all tools
1020-
// the toolbutton for the display group:
1021-
tbtnDisplayTools->setIconSet(QIcon(QPixmap(myIconPath + "/mActionShowAllLayers.png")));
1022-
toolPopupDisplay = new Q3PopupMenu();
1023-
toolPopupDisplay->insertItem(QIcon(QPixmap(myIconPath + "/mActionShowAllLayers.png")),
1024-
tr("Show all layers"),
1025-
this, SLOT(showAllLayers()));
1026-
toolPopupDisplay->insertItem(QIcon(QPixmap(myIconPath + "/mActionHideAllLayers.png")),
1027-
tr("Hide all layers"),
1028-
this, SLOT(hideAllLayers()));
1029-
tbtnDisplayTools->setMenu(toolPopupDisplay);
1030-
tbtnDisplayTools->setPopupMode(QToolButton::MenuButtonPopup);
1031-
// connect the top overview tool to the appropriate slot
1032-
connect(tbtnDisplayTools, SIGNAL(clicked()), this, SLOT(showAllLayers()));
1033-
1034-
// setup the capture (digitize) tools
1035-
// the toolbutton for the capture group:
1036-
tbtnCaptureTools->setIconSet(QIcon(QPixmap(myIconPath + "/mActionCapturePoint.png")));
1037-
toolPopupCapture = new Q3PopupMenu();
1038-
toolPopupCapture->insertItem(QIcon(QPixmap(myIconPath + "/mActionCapturePoint.png")),
1039-
tr("Capture points"),
1040-
this, SLOT(capturePoint()),0,0);
1041-
toolPopupCapture->insertItem(QIcon(QPixmap(myIconPath + "/mActionCaptureLine.png")),
1042-
tr("Capture lines"),
1043-
this, SLOT(captureLine()),0,1);
1044-
toolPopupCapture->insertItem(QIcon(QPixmap(myIconPath + "/mActionCapturePolygon.png")),
1045-
tr("Capture polygons"),
1046-
this, SLOT(capturePolygon()),0,2);
1047-
toolPopupCapture->insertItem(QIcon(QPixmap(myIconPath + "/delete_selected.png")),
1048-
tr("Delete selection"),
1049-
this, SLOT(deleteSelected()),0,3);
1050-
tbtnCaptureTools->setMenu(toolPopupCapture);
1051-
tbtnCaptureTools->setPopupMode(QToolButton::MenuButtonPopup);
1052-
*/
1053-
}
1054969

1055970
void QgisApp::setupConnections()
1056971
{
@@ -4210,7 +4125,6 @@ void QgisApp::options()
42104125
{
42114126
// set the theme if it changed
42124127
setTheme(optionsDialog->theme());
4213-
setupToolbarPopups(optionsDialog->theme());
42144128
// set the visible flag for new layers
42154129
mAddedLayersVisible = optionsDialog->newVisible();
42164130
QSettings mySettings;

0 commit comments

Comments
 (0)
Please sign in to comment.