Skip to content

Commit

Permalink
[style dock] vectorize undo & redo button, create history symbol (#3187)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and NathanW2 committed Jun 9, 2016
1 parent 1b31f08 commit 7cfe7f8
Show file tree
Hide file tree
Showing 16 changed files with 306 additions and 29 deletions.
3 changes: 3 additions & 0 deletions images/images.qrc
Expand Up @@ -228,6 +228,7 @@
<file>themes/default/mActionHideAllLayers.png</file>
<file>themes/default/mActionHideAllLayers.svg</file>
<file>themes/default/mActionHideSelectedLayers.png</file>
<file>themes/default/mActionHistory.svg</file>
<file>themes/default/mActionIdentify.svg</file>
<file>themes/default/mActionIncreaseBrightness.svg</file>
<file>themes/default/mActionIncreaseContrast.svg</file>
Expand Down Expand Up @@ -277,6 +278,7 @@
<file>themes/default/mActionPropertyItem.svg</file>
<file>themes/default/mActionQgisHomePage.png</file>
<file>themes/default/mActionRaiseItems.png</file>
<file>themes/default/mActionRedo.svg</file>
<file>themes/default/mActionRedo.png</file>
<file>themes/default/mActionRefresh.png</file>
<file>themes/default/mActionRemove.png</file>
Expand Down Expand Up @@ -330,6 +332,7 @@
<file>themes/default/mActionToggleEditing.svg</file>
<file>themes/default/mActionTouch.svg</file>
<file>themes/default/mActionTouch2.png</file>
<file>themes/default/mActionUndo.svg</file>
<file>themes/default/mActionUndo.png</file>
<file>themes/default/mActionUngroupItems.png</file>
<file>themes/default/mActionUnselectAttributes.png</file>
Expand Down
107 changes: 107 additions & 0 deletions images/themes/default/mActionHistory.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions images/themes/default/mActionRedo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions images/themes/default/mActionUndo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -719,8 +719,8 @@ void QgsComposer::setupTheme()
mActionZoomActual->setIcon( QgsApplication::getThemeIcon( "/mActionZoomActual.svg" ) );
mActionMouseZoom->setIcon( QgsApplication::getThemeIcon( "/mActionZoomToArea.svg" ) );
mActionRefreshView->setIcon( QgsApplication::getThemeIcon( "/mActionDraw.svg" ) );
mActionUndo->setIcon( QgsApplication::getThemeIcon( "/mActionUndo.png" ) );
mActionRedo->setIcon( QgsApplication::getThemeIcon( "/mActionRedo.png" ) );
mActionUndo->setIcon( QgsApplication::getThemeIcon( "/mActionUndo.svg" ) );
mActionRedo->setIcon( QgsApplication::getThemeIcon( "/mActionRedo.svg" ) );
mActionAddImage->setIcon( QgsApplication::getThemeIcon( "/mActionAddImage.svg" ) );
mActionAddNewMap->setIcon( QgsApplication::getThemeIcon( "/mActionAddMap.svg" ) );
mActionAddNewLabel->setIcon( QgsApplication::getThemeIcon( "/mActionLabel.svg" ) );
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -2514,8 +2514,8 @@ void QgisApp::setTheme( const QString& theThemeName )
mActionDeleteSelected->setIcon( QgsApplication::getThemeIcon( "/mActionDeleteSelected.svg" ) );
mActionNodeTool->setIcon( QgsApplication::getThemeIcon( "/mActionNodeTool.png" ) );
mActionSimplifyFeature->setIcon( QgsApplication::getThemeIcon( "/mActionSimplify.png" ) );
mActionUndo->setIcon( QgsApplication::getThemeIcon( "/mActionUndo.png" ) );
mActionRedo->setIcon( QgsApplication::getThemeIcon( "/mActionRedo.png" ) );
mActionUndo->setIcon( QgsApplication::getThemeIcon( "/mActionUndo.svg" ) );
mActionRedo->setIcon( QgsApplication::getThemeIcon( "/mActionRedo.svg" ) );
mActionAddRing->setIcon( QgsApplication::getThemeIcon( "/mActionAddRing.png" ) );
mActionFillRing->setIcon( QgsApplication::getThemeIcon( "/mActionFillRing.svg" ) );
mActionAddPart->setIcon( QgsApplication::getThemeIcon( "/mActionAddPart.png" ) );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmapstylingwidget.cpp
Expand Up @@ -134,7 +134,7 @@ void QgsMapStylingWidget::setLayer( QgsMapLayer *layer )
QgsDebugMsg( QString( "ROW IS %1" ).arg( row ) );
}
}
mOptionsListWidget->addItem( new QListWidgetItem( QgsApplication::getThemeIcon( "mIconTreeView.png" ), "" ) );
mOptionsListWidget->addItem( new QListWidgetItem( QgsApplication::getThemeIcon( "mActionHistory.svg" ), "" ) );

if ( sameLayerType )
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -428,7 +428,7 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanv
mOptStackedWidget->indexOf( mOptsPage_Style ) );
}

mResetColorRenderingBtn->setIcon( QgsApplication::getThemeIcon( "/mActionUndo.png" ) );
mResetColorRenderingBtn->setIcon( QgsApplication::getThemeIcon( "/mActionUndo.svg" ) );

QString title = QString( tr( "Layer Properties - %1" ) ).arg( lyr->name() );
restoreOptionsBaseUi( title );
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsundowidget.cpp
Expand Up @@ -185,13 +185,13 @@ void QgsUndoWidget::setupUi( QWidget *UndoWidget )

undoButton = new QPushButton( dockWidgetContents );
undoButton->setObjectName( QString::fromUtf8( "undoButton" ) );
undoButton->setIcon( QgsApplication::getThemeIcon( "mActionUndo.png" ) );
undoButton->setIcon( QgsApplication::getThemeIcon( "mActionUndo.svg" ) );

gridLayout->addWidget( undoButton, 1, 0, 1, 1 );

redoButton = new QPushButton( dockWidgetContents );
redoButton->setObjectName( QString::fromUtf8( "redoButton" ) );
redoButton->setIcon( QgsApplication::getThemeIcon( "mActionRedo.png" ) );
redoButton->setIcon( QgsApplication::getThemeIcon( "mActionRedo.svg" ) );

gridLayout->addWidget( redoButton, 1, 1, 1, 1 );

Expand Down
4 changes: 2 additions & 2 deletions src/ui/composer/qgscomposerbase.ui
Expand Up @@ -638,7 +638,7 @@
<action name="mActionUndo">
<property name="icon">
<iconset>
<normalon>:/images/themes/default/mActionUndo.png</normalon>
<normalon>:/images/themes/default/mActionUndo.svg</normalon>
</iconset>
</property>
<property name="text">
Expand All @@ -654,7 +654,7 @@
<action name="mActionRedo">
<property name="icon">
<iconset resource="../../../images/images.qrc">
<normaloff>:/images/themes/default/mActionRedo.png</normaloff>:/images/themes/default/mActionRedo.png</iconset>
<normaloff>:/images/themes/default/mActionRedo.svg</normaloff>:/images/themes/default/mActionRedo.svg</iconset>
</property>
<property name="text">
<string>&amp;Redo</string>
Expand Down
4 changes: 2 additions & 2 deletions src/ui/qgisapp.ui
Expand Up @@ -663,7 +663,7 @@
<action name="mActionUndo">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionUndo.png</normaloff>:/images/themes/default/mActionUndo.png</iconset>
<normaloff>:/images/themes/default/mActionUndo.svg</normaloff>:/images/themes/default/mActionUndo.svg</iconset>
</property>
<property name="text">
<string>&amp;Undo</string>
Expand All @@ -675,7 +675,7 @@
<action name="mActionRedo">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionRedo.png</normaloff>:/images/themes/default/mActionRedo.png</iconset>
<normaloff>:/images/themes/default/mActionRedo.svg</normaloff>:/images/themes/default/mActionRedo.svg</iconset>
</property>
<property name="text">
<string>&amp;Redo</string>
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgslabelingguibase.ui
Expand Up @@ -204,7 +204,7 @@
</property>
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionUndo.png</normaloff>:/images/themes/default/mActionUndo.png</iconset>
<normaloff>:/images/themes/default/mActionUndo.svg</normaloff>:/images/themes/default/mActionUndo.svg</iconset>
</property>
</widget>
</item>
Expand Down

0 comments on commit 7cfe7f8

Please sign in to comment.