Skip to content

Commit

Permalink
Add icons for browser from Robert (gis theme only)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Oct 17, 2011
1 parent 80d7f83 commit 139e297
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@
<file>themes/default/plugins/north_arrow.png</file>
<file>themes/default/plugins/scale_bar.png</file>
<file>themes/default/mActionAddWfsLayer.png</file>
<file>themes/gis/mIconWms.png</file>
<file>themes/gis/mIconWfs.png</file>
<file>themes/gis/mIconSpatialite.png</file>
<file>themes/gis/mIconRaster.png</file>
<file>themes/gis/mIconPostgis.png</file>
<file>themes/gis/mIconConnect.png</file>
<file>themes/gis/mIconDbSchema.png</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Expand Down
Binary file added images/themes/gis/mIconConnect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/gis/mIconDbSchema.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/gis/mIconPostgis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/gis/mIconRaster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/gis/mIconSpatialite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/gis/mIconWfs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/themes/gis/mIconWms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/providers/postgres/qgspostgresdataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
QgsPGConnectionItem::QgsPGConnectionItem( QgsDataItem* parent, QString name, QString path )
: QgsDataCollectionItem( parent, name, path )
{
mIcon = QIcon( getThemePixmap( "mIconConnect.png" ) );
}

QgsPGConnectionItem::~QgsPGConnectionItem()
Expand Down Expand Up @@ -120,7 +121,7 @@ QString QgsPGLayerItem::createUri()
QgsPGSchemaItem::QgsPGSchemaItem( QgsDataItem* parent, QString name, QString path, QString connInfo, QVector<QgsPostgresLayerProperty> layerProperties )
: QgsDataCollectionItem( parent, name, path )
{
mIcon = QIcon( getThemePixmap( "mIconNamespace.png" ) );
mIcon = QIcon( getThemePixmap( "mIconDbSchema.png" ) );

// Populate everything, it costs nothing, all info about layers is collected
foreach( QgsPostgresLayerProperty layerProperty, layerProperties )
Expand Down Expand Up @@ -163,7 +164,7 @@ QgsPGSchemaItem::~QgsPGSchemaItem()
QgsPGRootItem::QgsPGRootItem( QgsDataItem* parent, QString name, QString path )
: QgsDataCollectionItem( parent, name, path )
{
//mIcon = QIcon( getThemePixmap( "mIconPg.png" ) );
mIcon = QIcon( getThemePixmap( "mIconPostgis.png" ) );
populate();
}

Expand Down
3 changes: 2 additions & 1 deletion src/providers/wfs/qgswfsdataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ QgsWFSLayerItem::~QgsWFSLayerItem()
QgsWFSConnectionItem::QgsWFSConnectionItem( QgsDataItem* parent, QString name, QString path )
: QgsDataCollectionItem( parent, name, path ), mName( name ), mConn( NULL )
{
mIcon = QIcon( getThemePixmap( "mIconConnect.png" ) );
}

QgsWFSConnectionItem::~QgsWFSConnectionItem()
Expand Down Expand Up @@ -113,7 +114,7 @@ void QgsWFSConnectionItem::deleteConnection()
QgsWFSRootItem::QgsWFSRootItem( QgsDataItem* parent, QString name, QString path )
: QgsDataCollectionItem( parent, name, path )
{
mIcon = QIcon( getThemePixmap( "mIconWms.png" ) );
mIcon = QIcon( getThemePixmap( "mIconWfs.png" ) );

populate();
}
Expand Down
3 changes: 2 additions & 1 deletion src/providers/wms/qgswmsdataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
QgsWMSConnectionItem::QgsWMSConnectionItem( QgsDataItem* parent, QString name, QString path )
: QgsDataCollectionItem( parent, name, path )
{
mIcon = QIcon( getThemePixmap( "mIconConnect.png" ) );
}

QgsWMSConnectionItem::~QgsWMSConnectionItem()
Expand Down Expand Up @@ -123,7 +124,7 @@ QgsWMSLayerItem::QgsWMSLayerItem( QgsDataItem* parent, QString name, QString pat

if ( mChildren.size() == 0 )
{
mIcon = QIcon( getThemePixmap( "mIconWmsLayer.png" ) );
mIcon = QIcon( getThemePixmap( "mIconRaster.png" ) );
}
mPopulated = true;
}
Expand Down

0 comments on commit 139e297

Please sign in to comment.