From f084c604bb074b4a9ed56eeadb4aeb38e2c29424 Mon Sep 17 00:00:00 2001
From: Vincent Texier <vit@free.fr>
Date: Thu, 9 Jul 2015 11:10:46 +0200
Subject: [PATCH] Icon and tooltype on wot center button

---
 res/i18n/ts/fr_FR.ts               |  7 ++++++-
 res/icons/iconmonstr-home-icon.svg | 19 +++++++++++++++++++
 res/icons/icons.qrc                |  1 +
 res/ui/wot_tab.ui                  | 13 +++++++++++--
 4 files changed, 37 insertions(+), 3 deletions(-)
 create mode 100644 res/icons/iconmonstr-home-icon.svg

diff --git a/res/i18n/ts/fr_FR.ts b/res/i18n/ts/fr_FR.ts
index 2511799f..e229c68b 100644
--- a/res/i18n/ts/fr_FR.ts
+++ b/res/i18n/ts/fr_FR.ts
@@ -2194,13 +2194,18 @@ Veuillez rééssayer plus tard</translation>
     <message>
         <location filename="../../ui/wot_tab.ui" line="33"/>
         <source>Me</source>
-        <translation>Moi</translation>
+        <translation type="obsolete">Moi</translation>
     </message>
     <message>
         <location filename="../../../src/cutecoin/gui/wot_tab.py" line="28"/>
         <source>Research a pubkey, an uid...</source>
         <translation>Rechercher une clé publique, un uid...</translation>
     </message>
+    <message>
+        <location filename="../../ui/wot_tab.ui" line="33"/>
+        <source>Center the view on me</source>
+        <translation>Centrer la vue sur moi</translation>
+    </message>
 </context>
 <context>
     <name>self.config_dialog</name>
diff --git a/res/icons/iconmonstr-home-icon.svg b/res/icons/iconmonstr-home-icon.svg
new file mode 100644
index 00000000..2f3b90cf
--- /dev/null
+++ b/res/icons/iconmonstr-home-icon.svg
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+
+<!-- The icon can be used freely in both personal and commercial projects with no attribution required, but always appreciated. 
+You may NOT sub-license, resell, rent, redistribute or otherwise transfer the icon without express written permission from iconmonstr.com -->
+
+
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+
+	 width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
+
+<path id="home-icon" d="M257.122,165.188L414.22,301.287v143.779H300.098v-82.955h-85.953v82.955H100.023V302.369L257.122,165.188z
+
+	 M257.086,128.15l174.271,153.27L462,250.776L257.158,66.934L50,252.118l30.571,30.716L257.086,128.15z"/>
+
+</svg>
+
diff --git a/res/icons/icons.qrc b/res/icons/icons.qrc
index 0de88085..6bef064a 100644
--- a/res/icons/icons.qrc
+++ b/res/icons/icons.qrc
@@ -1,5 +1,6 @@
 <RCC>
   <qresource prefix="icons">
+    <file alias="home_icon">iconmonstr-home-icon.svg</file>
     <file alias="cutecoin_logo">logo.svg</file>
     <file alias="add_account_icon">noun_7440_cc.svg</file>
     <file alias="ucoin_info_icon">noun_76373_cc.svg</file>
diff --git a/res/ui/wot_tab.ui b/res/ui/wot_tab.ui
index 0a7b6565..d45e5e26 100644
--- a/res/ui/wot_tab.ui
+++ b/res/ui/wot_tab.ui
@@ -29,8 +29,15 @@
        <height>27</height>
       </size>
      </property>
+     <property name="toolTip">
+      <string>Center the view on me</string>
+     </property>
      <property name="text">
-      <string>Me</string>
+      <string/>
+     </property>
+     <property name="icon">
+      <iconset resource="../icons/icons.qrc">
+       <normaloff>:/icons/home_icon</normaloff>:/icons/home_icon</iconset>
      </property>
     </widget>
    </item>
@@ -50,7 +57,9 @@
    <header>cutecoin.gui.views.wot</header>
   </customwidget>
  </customwidgets>
- <resources/>
+ <resources>
+  <include location="../icons/icons.qrc"/>
+ </resources>
  <connections>
   <connection>
    <sender>pushButtonReset</sender>
-- 
GitLab