Skip to content
Permalink
Browse files

Merge pull request #3114 from SrNetoChan/new_icons

Adds File Formats mime Icons for debian and rpm
  • Loading branch information
jef-n committed May 27, 2016
2 parents 70c5ab6 + fb2d5e7 commit 7e9a0a78ffe6ed8533c602b9b25748c86deb3e7d
Showing with 85 additions and 5 deletions.
  1. +8 −0 debian/mime/application/x-qgis-composer-template.desktop
  2. +8 −0 debian/mime/application/x-qgis-layer-definition.desktop
  3. +1 −1 debian/mime/application/x-qgis-layer-settings.desktop
  4. +1 −1 debian/mime/application/x-qgis-project.desktop
  5. BIN debian/qgis-mime-icon128x128.png
  6. BIN debian/qgis-mime-icon16x16.png
  7. BIN debian/qgis-mime-icon192x192.png
  8. BIN debian/qgis-mime-icon22x22.png
  9. BIN debian/qgis-mime-icon24x24.png
  10. BIN debian/qgis-mime-icon256x256.png
  11. BIN debian/qgis-mime-icon32x32.png
  12. BIN debian/qgis-mime-icon36x36.png
  13. BIN debian/qgis-mime-icon42x42.png
  14. BIN debian/qgis-mime-icon48x48.png
  15. BIN debian/qgis-mime-icon512x512.png
  16. BIN debian/qgis-mime-icon64x64.png
  17. BIN debian/qgis-mime-icon72x72.png
  18. BIN debian/qgis-mime-icon80x80.png
  19. BIN debian/qgis-mime-icon8x8.png
  20. BIN debian/qgis-mime-icon96x96.png
  21. BIN debian/qgis-qgs128x128.png
  22. BIN debian/qgis-qgs16x16.png
  23. BIN debian/qgis-qgs192x192.png
  24. BIN debian/qgis-qgs22x22.png
  25. BIN debian/qgis-qgs24x24.png
  26. BIN debian/qgis-qgs256x256.png
  27. BIN debian/qgis-qgs32x32.png
  28. BIN debian/qgis-qgs36x36.png
  29. BIN debian/qgis-qgs42x42.png
  30. BIN debian/qgis-qgs48x48.png
  31. BIN debian/qgis-qgs512x512.png
  32. BIN debian/qgis-qgs64x64.png
  33. BIN debian/qgis-qgs72x72.png
  34. BIN debian/qgis-qgs80x80.png
  35. BIN debian/qgis-qgs8x8.png
  36. BIN debian/qgis-qgs96x96.png
  37. BIN debian/qgis-qlr128x128.png
  38. BIN debian/qgis-qlr16x16.png
  39. BIN debian/qgis-qlr192x192.png
  40. BIN debian/qgis-qlr22x22.png
  41. BIN debian/qgis-qlr24x24.png
  42. BIN debian/qgis-qlr256x256.png
  43. BIN debian/qgis-qlr32x32.png
  44. BIN debian/qgis-qlr36x36.png
  45. BIN debian/qgis-qlr42x42.png
  46. BIN debian/qgis-qlr48x48.png
  47. BIN debian/qgis-qlr512x512.png
  48. BIN debian/qgis-qlr64x64.png
  49. BIN debian/qgis-qlr72x72.png
  50. BIN debian/qgis-qlr80x80.png
  51. BIN debian/qgis-qlr8x8.png
  52. BIN debian/qgis-qlr96x96.png
  53. BIN debian/qgis-qml128x128.png
  54. BIN debian/qgis-qml16x16.png
  55. BIN debian/qgis-qml192x192.png
  56. BIN debian/qgis-qml22x22.png
  57. BIN debian/qgis-qml24x24.png
  58. BIN debian/qgis-qml256x256.png
  59. BIN debian/qgis-qml32x32.png
  60. BIN debian/qgis-qml36x36.png
  61. BIN debian/qgis-qml42x42.png
  62. BIN debian/qgis-qml48x48.png
  63. BIN debian/qgis-qml512x512.png
  64. BIN debian/qgis-qml64x64.png
  65. BIN debian/qgis-qml72x72.png
  66. BIN debian/qgis-qml80x80.png
  67. BIN debian/qgis-qml8x8.png
  68. BIN debian/qgis-qml96x96.png
  69. BIN debian/qgis-qpt128x128.png
  70. BIN debian/qgis-qpt16x16.png
  71. BIN debian/qgis-qpt192x192.png
  72. BIN debian/qgis-qpt22x22.png
  73. BIN debian/qgis-qpt24x24.png
  74. BIN debian/qgis-qpt256x256.png
  75. BIN debian/qgis-qpt32x32.png
  76. BIN debian/qgis-qpt36x36.png
  77. BIN debian/qgis-qpt42x42.png
  78. BIN debian/qgis-qpt48x48.png
  79. BIN debian/qgis-qpt512x512.png
  80. BIN debian/qgis-qpt64x64.png
  81. BIN debian/qgis-qpt72x72.png
  82. BIN debian/qgis-qpt80x80.png
  83. BIN debian/qgis-qpt8x8.png
  84. BIN debian/qgis-qpt96x96.png
  85. +1 −1 debian/qgis.desktop
  86. +3 −0 debian/qgis.mime
  87. +28 −2 debian/qgis.xml
  88. +8 −0 debian/rules
  89. +27 −0 rpm/sources/qgis-mime.xml
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-qgis-composer-template
Hidden=false
Comment=QGIS composer template
Icon=qgis-qpt-mime
Patterns=*.qpt;
Name[en_US]=x-qgis-composer-template.desktop
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-qgis-layer-definition
Hidden=false
Comment=QGIS layer definition
Icon=qgis-qlr-mime
Patterns=*.qlr;
Name[en_US]=x-qgis-layer-definition.desktop
@@ -4,5 +4,5 @@ MimeType=application/x-qgis-layer-settings
Hidden=false
Comment=QGIS layer settings
Comment[de]=QGIS Layer Einstellungen
Icon=qgis-mime
Icon=qgis-qml-mime
Patterns=*.qml;
@@ -5,5 +5,5 @@ Hidden=false
Comment=QGIS Project
Comment[de]=QGIS-Projekt
Patterns=*.qgs;
Icon=qgis-mime
Icon=qgis-qgs-mime
X-KDE-IsAlso=application/x-qgis
Binary file not shown.
BIN -711 Bytes (50%) debian/qgis-mime-icon16x16.png
Binary file not shown.
Binary file not shown.
BIN -635 Bytes (61%) debian/qgis-mime-icon22x22.png
Binary file not shown.
BIN -658 Bytes (63%) debian/qgis-mime-icon24x24.png
Binary file not shown.
Binary file not shown.
BIN -959 Bytes (63%) debian/qgis-mime-icon32x32.png
Binary file not shown.
BIN -1.14 KB (61%) debian/qgis-mime-icon36x36.png
Binary file not shown.
BIN -1.42 KB (61%) debian/qgis-mime-icon42x42.png
Binary file not shown.
BIN -1.79 KB (59%) debian/qgis-mime-icon48x48.png
Binary file not shown.
Binary file not shown.
BIN -3.06 KB (54%) debian/qgis-mime-icon64x64.png
Binary file not shown.
BIN -3.67 KB (52%) debian/qgis-mime-icon72x72.png
Binary file not shown.
BIN -4.48 KB (50%) debian/qgis-mime-icon80x80.png
Binary file not shown.
BIN -249 Bytes (59%) debian/qgis-mime-icon8x8.png
Binary file not shown.
BIN -6.04 KB (47%) debian/qgis-mime-icon96x96.png
Binary file not shown.
Binary file not shown.
BIN +744 Bytes debian/qgis-qgs16x16.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
BIN +371 Bytes debian/qgis-qgs8x8.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
BIN +760 Bytes debian/qgis-qlr16x16.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
BIN +381 Bytes debian/qgis-qlr8x8.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
BIN +764 Bytes debian/qgis-qml16x16.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
BIN +383 Bytes debian/qgis-qml8x8.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
BIN +718 Bytes debian/qgis-qpt16x16.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
BIN +358 Bytes debian/qgis-qpt8x8.png
Diff not rendered.
Diff not rendered.
@@ -53,5 +53,5 @@ Exec=/usr/bin/qgis %F
Terminal=false
StartupNotify=false
Categories=Qt;Education;Science;Geography;
MimeType=application/x-qgis-project;image/tiff;image/jpeg;image/jp2;application/x-raster-aig;application/x-raster-ecw;application/x-raster-mrsid;application/x-mapinfo-mif;application/x-esri-shape;
MimeType=application/x-qgis-project;application/x-qgis-layer-settings;application/x-qgis-layer-definition;application/x-qgis-composer-template;image/tiff;image/jpeg;image/jp2;application/x-raster-aig;application/x-raster-ecw;application/x-raster-mrsid;application/x-mapinfo-mif;application/x-esri-shape;
Keywords=map;globe;postgis;wms;wfs;ogc;osgeo;
@@ -7,3 +7,6 @@ application/x-raster-mrsid; qgis '%s'; description="MrSID raster data"; test=tes
application/x-raster-mif; qgis '%s'; description="MapInfo file"; test=test -n "$DISPLAY"; nametemplate=%s.mif; priority=2
application/x-esri-shape; qgis '%s'; description="ESRI shape file"; test=test -n "$DISPLAY"; nametemplate=%s.shp; priority=2
application/x-qgis-project; qgis '%s'; description="QGIS Project"; test=test -n "$DISPLAY"; nametemplate=%s.qgs
application/x-qgis-layer-settings; qgis '%s'; description="QGIS Layer Settings"; test=test -n "$DISPLAY"; nametemplate=%s.qml
application/x-qgis-layer-definition; qgis '%s'; description="QGIS Layer Definition"; test=test -n "$DISPLAY"; nametemplate=%s.qlr
application/x-qgis-composer-template; qgis '%s'; description="QGIS Composer Template"; test=test -n "$DISPLAY"; nametemplate=%s.qpt
@@ -6,7 +6,7 @@
<comment xml:lang="de">QGIS-Projekt</comment>
<sub-class-of type="application/xml"/>
<alias type="application/x-qgis"/>
<icon name="qgis-mime"/>
<icon name="qgis-qgs"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis projectname"/>
@@ -19,14 +19,40 @@
<comment>QGIS layer settings</comment>
<comment xml:lang="de">QGIS Layer Einstellungen</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-mime"/>
<icon name="qgis-qml"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qml"/>
</mime-type>

<mime-type type="application/x-qgis-layer-definition">
<comment>QGIS layer definition</comment>
<comment xml:lang="de">QGIS Layer definition</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qlr"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qlr"/>
</mime-type>

<mime-type type="application/x-qgis-composer-template">
<comment>QGIS composer template</comment>
<comment xml:lang="de">QGIS Komponist Vorlage</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qpt"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qpt"/>
</mime-type>

<mime-type type="application/x-esri-shape">
<comment>ESRI shape file</comment>
@@ -305,6 +305,14 @@ override_dh_auto_install:
install -o root -g root -m 644 $(CURDIR)/debian/qgis-mime-icon$${size}.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/$${size}/mimetypes/qgis-mime.png ; \
done

# Install QGIS file formats icons
for file_type in qgs qlr qml qpt; do \
for size in 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512; do \
install -o root -g root -d $(CURDIR)/debian/tmp/usr/share/icons/hicolor/$${size}/mimetypes ; \
install -o root -g root -m 644 $(CURDIR)/debian/qgis-$${file_type}-mime$${size}.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/$${size}/mimetypes/qgis-qgs.png ; \
done
done

# Install application icon
for size in 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512; do \
install -o root -g root -d $(CURDIR)/debian/tmp/usr/share/icons/hicolor/$${size}/apps ; \
@@ -25,4 +25,31 @@
</magic>
<glob pattern="*.qml"/>
</mime-type>

<mime-type type="application/x-qgis-layer-definition">
<comment>QGIS layer definition</comment>
<comment xml:lang="de">QGIS Layer definition</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qlr"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qlr"/>
</mime-type>

<mime-type type="application/x-qgis-composer-template">
<comment>QGIS composer template</comment>
<comment xml:lang="de">QGIS Komponist Vorlage</comment>
<sub-class-of type="application/xml"/>
<icon name="qgis-qpt"/>
<magic priority="50">
<match type="string" offset="0" value="&lt;!DOCTYPE qgis">
<match type="string" offset="0:256" value="&lt;qgis version"/>
</match>
</magic>
<glob pattern="*.qpt"/>
</mime-type>

</mime-info>

0 comments on commit 7e9a0a7

Please sign in to comment.
You can’t perform that action at this time.