]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
I've made deb (know as debug var) usefull when on the road !
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Wed, 18 Jun 2014 15:26:48 +0000 (17:26 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Wed, 18 Jun 2014 15:26:48 +0000 (17:26 +0200)
diary-mobile_en_EN.ts
diary-mobile_fr_FR.ts
mainwindow.cpp
mainwindow.h

index f4618894b770dadf9630d068265c7b02beea198d..f6985ca154f3417f5a9f68e3a6bc4d6ca9ac5328 100644 (file)
 <context>
     <name>MainWindow</name>
     <message>
-        <location filename="mainwindow.cpp" line="69"/>
-        <source>first button file</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="245"/>
         <location filename="mainwindow.cpp" line="248"/>
+        <location filename="mainwindow.cpp" line="251"/>
         <source>get file</source>
         <comment>title to ask file</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="257"/>
+        <location filename="mainwindow.cpp" line="260"/>
         <source>box</source>
         <comment>box title to show a text</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="272"/>
+        <location filename="mainwindow.cpp" line="275"/>
         <source>set</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="283"/>
+        <location filename="mainwindow.cpp" line="286"/>
         <source>Enter ID of button to edit</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="366"/>
+        <location filename="mainwindow.cpp" line="371"/>
         <source>Ctrl+S</source>
         <comment>File|Start</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="367"/>
+        <location filename="mainwindow.cpp" line="372"/>
         <source>Ctrl+B</source>
         <comment>File|Back</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="369"/>
+        <location filename="mainwindow.cpp" line="374"/>
         <source>Ctrl+L</source>
         <comment>File|Upload</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="371"/>
+        <location filename="mainwindow.cpp" line="376"/>
         <source>Ctrl+Q</source>
         <comment>File|Quit</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="548"/>
+        <location filename="mainwindow.cpp" line="554"/>
         <source>New entry</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="383"/>
+        <location filename="mainwindow.cpp" line="388"/>
         <source>ctrl+H</source>
         <comment>Help|About Qt</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="368"/>
+        <location filename="mainwindow.cpp" line="373"/>
         <source>&amp;View/Hide menu</source>
         <comment>File|View/Hide menu</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="373"/>
-        <source>&amp;Data</source>
-        <comment>top menu</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="374"/>
-        <source>&amp;Download</source>
-        <comment>Data|Downlad</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="374"/>
-        <source>Ctrl+W</source>
-        <comment>Data|Downlad</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="375"/>
-        <source>A&amp;dd</source>
-        <comment>Data|Add</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="375"/>
-        <source>Ctrl+D</source>
-        <comment>Data|Add</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="376"/>
-        <source>Sa&amp;v</source>
-        <comment>Data|Sav</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="376"/>
-        <source>Ctrl+V</source>
-        <comment>Data|Save</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="377"/>
-        <source>Reset</source>
-        <comment>Data|Reset</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="377"/>
-        <source>Ctrl+Z</source>
-        <comment>Data|Reset</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="378"/>
-        <source>&amp;Edit</source>
-        <comment>Data|Edit</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="378"/>
-        <source>Ctrl+E</source>
-        <comment>Data|&amp;Edit</comment>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
-        <location filename="mainwindow.cpp" line="384"/>
+        <location filename="mainwindow.cpp" line="389"/>
         <source>Ctrl+R</source>
         <comment>Help|CreateDB</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="384"/>
+        <location filename="mainwindow.cpp" line="389"/>
         <source>C&amp;reate Database</source>
         <comment>Hack|Create</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="385"/>
+        <location filename="mainwindow.cpp" line="390"/>
         <source>Download sql</source>
         <comment>Hack|download sql</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="570"/>
+        <location filename="mainwindow.cpp" line="576"/>
         <source>label</source>
         <comment>Title of box where ask for new button&apos;s label</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="570"/>
+        <location filename="mainwindow.cpp" line="576"/>
         <source>Enter his label</source>
         <comment>his/her/?they? I&apos;ve forget my school lesson</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="572"/>
+        <location filename="mainwindow.cpp" line="578"/>
         <source>keyword</source>
         <comment>Title of box where ask for new button&apos;s keyword</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="572"/>
+        <location filename="mainwindow.cpp" line="578"/>
         <source>Enter they keyword (no limit !)</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="574"/>
+        <location filename="mainwindow.cpp" line="580"/>
         <source>action</source>
         <comment>Title of box where ask for new button&apos;s action</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="574"/>
+        <location filename="mainwindow.cpp" line="580"/>
         <source>Enter his action</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="368"/>
+        <location filename="mainwindow.cpp" line="373"/>
         <source>Ctrl+T</source>
         <comment>File|View menu</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="69"/>
+        <location filename="mainwindow.cpp" line="70"/>
         <source>Enter the URL to download the init file</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="171"/>
+        <location filename="mainwindow.cpp" line="70"/>
+        <source>init file</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="157"/>
+        <source>action</source>
+        <comment>box title to debug action</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="172"/>
         <source>Variable&apos;s name ?</source>
         <comment>text to ask value&apos;s name before changing it (set)</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="183"/>
-        <location filename="mainwindow.cpp" line="207"/>
+        <location filename="mainwindow.cpp" line="184"/>
+        <location filename="mainwindow.cpp" line="208"/>
         <source>Error</source>
         <comment>title if action(&quot;set&quot;) has too much value</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="183"/>
-        <location filename="mainwindow.cpp" line="207"/>
+        <location filename="mainwindow.cpp" line="184"/>
+        <location filename="mainwindow.cpp" line="208"/>
         <source>Too much value in button&apos;s action</source>
         <comment>text if action(&quot;set&quot;) has too much value</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="187"/>
+        <location filename="mainwindow.cpp" line="188"/>
         <source>variable text change</source>
         <comment>title to warn about variable content change</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="187"/>
-        <location filename="mainwindow.cpp" line="253"/>
+        <location filename="mainwindow.cpp" line="188"/>
+        <location filename="mainwindow.cpp" line="256"/>
         <source>value of </source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="195"/>
-        <location filename="mainwindow.cpp" line="243"/>
+        <location filename="mainwindow.cpp" line="196"/>
+        <location filename="mainwindow.cpp" line="246"/>
         <source>Variable&apos;s name ?</source>
         <comment>text to ask value&apos;s name before changing it (setint)</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="211"/>
+        <location filename="mainwindow.cpp" line="212"/>
         <source>variable integer change</source>
         <comment>title to warn about variable content change</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="211"/>
+        <location filename="mainwindow.cpp" line="212"/>
         <source>Value of </source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="222"/>
+        <location filename="mainwindow.cpp" line="223"/>
         <source>choice</source>
         <comment>title of box who ask multiple choice</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="222"/>
+        <location filename="mainwindow.cpp" line="223"/>
         <source>Please choose an action.</source>
         <comment>text to ask multiple choice</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="253"/>
+        <location filename="mainwindow.cpp" line="256"/>
         <source>variable file change</source>
         <comment>title to warn about variable content change</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="290"/>
+        <location filename="mainwindow.cpp" line="293"/>
         <source>Error</source>
         <comment>title if action(&quot;edit&quot;) has too much value</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="290"/>
+        <location filename="mainwindow.cpp" line="293"/>
         <source>Too much value in button&apos;s action</source>
         <comment>text if action(&quot;edit&quot;) has too much value</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="305"/>
+        <location filename="mainwindow.cpp" line="308"/>
         <source>URL</source>
         <comment>title to download a custom file from URL</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="305"/>
+        <location filename="mainwindow.cpp" line="308"/>
         <source>Enter the URL of the file</source>
         <comment>label to download a custom file</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="307"/>
-        <location filename="mainwindow.cpp" line="311"/>
+        <location filename="mainwindow.cpp" line="310"/>
+        <location filename="mainwindow.cpp" line="314"/>
         <source>File</source>
         <comment>title to write a file downloaded from URL</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="307"/>
-        <location filename="mainwindow.cpp" line="311"/>
+        <location filename="mainwindow.cpp" line="310"/>
+        <location filename="mainwindow.cpp" line="314"/>
         <source>Enter the name of the file</source>
         <comment>label to write the downloaded data</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="350"/>
+        <location filename="mainwindow.cpp" line="353"/>
         <source>Error</source>
         <comment>title of box if action(&quot;read&quot; has too much (or too &quot;less&quot;) value</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="350"/>
+        <location filename="mainwindow.cpp" line="353"/>
         <source>Bad number of value</source>
         <comment>text of box if action(&quot;read&quot;) has too much (or too &quot;less&quot;) value</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="365"/>
+        <location filename="mainwindow.cpp" line="370"/>
         <source>&amp;File</source>
         <comment>top menu</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="366"/>
+        <location filename="mainwindow.cpp" line="371"/>
         <source>&amp;Start</source>
         <comment>File|Start</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="367"/>
+        <location filename="mainwindow.cpp" line="372"/>
         <source>&amp;Back</source>
         <comment>File|Back</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="369"/>
+        <location filename="mainwindow.cpp" line="374"/>
         <source>sendRAW</source>
         <comment>File|SendRAW</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="370"/>
+        <location filename="mainwindow.cpp" line="375"/>
         <source>Reset RAW</source>
         <comment>File|resetRAW</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="370"/>
+        <location filename="mainwindow.cpp" line="375"/>
         <source>Ctrl+E</source>
         <comment>File|Reset</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="371"/>
+        <location filename="mainwindow.cpp" line="376"/>
         <source>&amp;Quit</source>
         <comment>File|Quit</comment>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="mainwindow.cpp" line="378"/>
+        <source>&amp;Button</source>
+        <comment>top menu</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="379"/>
+        <source>&amp;Download</source>
+        <comment>Button|Downlad</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="379"/>
+        <source>Ctrl+W</source>
+        <comment>Button|Downlad</comment>
+        <translation type="unfinished"></translation>
+    </message>
     <message>
         <location filename="mainwindow.cpp" line="380"/>
+        <source>A&amp;dd</source>
+        <comment>Button|Add</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="380"/>
+        <source>Ctrl+D</source>
+        <comment>Button|Add</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="381"/>
+        <source>Sa&amp;v</source>
+        <comment>Button|Sav</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="381"/>
+        <source>Ctrl+V</source>
+        <comment>Button|Save</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="382"/>
+        <source>Reset</source>
+        <comment>Button|Reset</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="382"/>
+        <source>Ctrl+Z</source>
+        <comment>Button|Reset</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="383"/>
+        <source>&amp;Edit</source>
+        <comment>Button|Edit</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="383"/>
+        <source>Ctrl+E</source>
+        <comment>Button|&amp;Edit</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="385"/>
         <source>&amp;Hack</source>
         <comment>top menu</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="381"/>
+        <location filename="mainwindow.cpp" line="386"/>
         <source>New entry</source>
         <comment>Hack|Entry</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="382"/>
+        <location filename="mainwindow.cpp" line="387"/>
         <source>Action</source>
         <comment>Hack|Action</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="383"/>
+        <location filename="mainwindow.cpp" line="388"/>
         <source>About Qt</source>
         <comment>Hack|About Qt</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="779"/>
+        <location filename="mainwindow.cpp" line="786"/>
         <source>upload</source>
         <comment>pop-up title when data has been sent</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="946"/>
+        <location filename="mainwindow.cpp" line="865"/>
+        <source>action</source>
+        <comment>box title to debug insert</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="889"/>
+        <source>key</source>
+        <comment>box title to debug remove</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="956"/>
         <source>tmp URL</source>
         <comment>Title of box where ask for button file&apos;s URL</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="946"/>
+        <location filename="mainwindow.cpp" line="956"/>
         <source>Enter URL</source>
         <comment>Label of box where ask for button file&apos;s URL</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="957"/>
+        <location filename="mainwindow.cpp" line="967"/>
         <source>action</source>
         <comment>Title of box where ask for a custom action</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="957"/>
+        <location filename="mainwindow.cpp" line="967"/>
         <source>Enter your action</source>
         <comment>Label of box where ask for custom action</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="611"/>
+        <location filename="mainwindow.cpp" line="617"/>
         <source>Enter the keyword : </source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="611"/>
+        <location filename="mainwindow.cpp" line="617"/>
         <source>chooseDB</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="642"/>
+        <location filename="mainwindow.cpp" line="648"/>
         <source>keyword</source>
         <comment>Title of box where ask for button&apos;s keyword</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="642"/>
+        <location filename="mainwindow.cpp" line="648"/>
         <source>new keyword</source>
         <comment>question to get new button&apos;s keyword</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="644"/>
+        <location filename="mainwindow.cpp" line="650"/>
         <source>label</source>
         <comment>Title of box where ask for button&apos;s label</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="644"/>
+        <location filename="mainwindow.cpp" line="650"/>
         <source>new label</source>
         <comment>question to get new button&apos;s label</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="646"/>
+        <location filename="mainwindow.cpp" line="652"/>
         <source>action</source>
         <comment>Title of box where ask for button&apos;s action</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="646"/>
+        <location filename="mainwindow.cpp" line="652"/>
         <source>new action</source>
         <comment>question to get new button&apos;s action</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="691"/>
+        <location filename="mainwindow.cpp" line="698"/>
         <source>RAWsent</source>
         <comment>message title when data has been send</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="691"/>
+        <location filename="mainwindow.cpp" line="698"/>
         <source>sendRAW finish</source>
         <comment>message text when data has been send</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="775"/>
+        <location filename="mainwindow.cpp" line="782"/>
         <source>Upload finish : </source>
         <comment>pop-up when data has been sent</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="834"/>
+        <location filename="mainwindow.cpp" line="841"/>
         <source>Uisent</source>
         <comment>pop-up title when buttons has been sent</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="834"/>
-        <source>savbuttons finish</source>
+        <location filename="mainwindow.cpp" line="841"/>
+        <source>sav finish</source>
+        <oldsource>savbuttons finish</oldsource>
         <comment>pop-up text when buttons has been sent</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="840"/>
+        <location filename="mainwindow.cpp" line="847"/>
         <source>Enter the keyword : </source>
         <comment>ask keyword to get buttons</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="840"/>
+        <location filename="mainwindow.cpp" line="847"/>
         <source>getButtons</source>
         <comment>title to ask keyword fot getbuttons</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="899"/>
+        <location filename="mainwindow.cpp" line="909"/>
         <source>writeFile</source>
         <comment>pop-up title when file has been written</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="899"/>
+        <location filename="mainwindow.cpp" line="909"/>
         <source>File written : </source>
         <translation type="unfinished"></translation>
     </message>
index 9c46d5a8a5bd7ccafd6e31e6c070e045a637fbc9..f5bdf947c302c3a9f89a14f4c024241920f3642c 100644 (file)
@@ -4,9 +4,8 @@
 <context>
     <name>MainWindow</name>
     <message>
-        <location filename="mainwindow.cpp" line="69"/>
         <source>first button file</source>
-        <translation>Premier fichier de bouton</translation>
+        <translation type="obsolete">Premier fichier de bouton</translation>
     </message>
     <message>
         <source>Enter the URL to download the first buttons file</source>
         <translation type="obsolete">choisissez une action</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="245"/>
         <location filename="mainwindow.cpp" line="248"/>
+        <location filename="mainwindow.cpp" line="251"/>
         <source>get file</source>
         <comment>title to ask file</comment>
         <translation>choisissez un fichier</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="257"/>
+        <location filename="mainwindow.cpp" line="260"/>
         <source>box</source>
         <comment>box title to show a text</comment>
         <translation>info</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="272"/>
+        <location filename="mainwindow.cpp" line="275"/>
         <source>set</source>
         <translation>définir</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="283"/>
+        <location filename="mainwindow.cpp" line="286"/>
         <source>Enter ID of button to edit</source>
         <translation>Entrez l&apos;ID du bouton à éditer</translation>
     </message>
@@ -52,7 +51,7 @@
         <translation type="obsolete">&amp;Départ</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="366"/>
+        <location filename="mainwindow.cpp" line="371"/>
         <source>Ctrl+S</source>
         <comment>File|Start</comment>
         <translation>Ctrl+D</translation>
@@ -62,7 +61,7 @@
         <translation type="obsolete">&amp;Retour</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="367"/>
+        <location filename="mainwindow.cpp" line="372"/>
         <source>Ctrl+B</source>
         <comment>File|Back</comment>
         <translation>Ctrl+R</translation>
         <translation type="obsolete">Voir/Cacher le menu</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="369"/>
+        <location filename="mainwindow.cpp" line="374"/>
         <source>sendRAW</source>
         <comment>File|SendRAW</comment>
         <translation>Envoyer les données</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="370"/>
+        <location filename="mainwindow.cpp" line="375"/>
         <source>Reset RAW</source>
         <comment>File|resetRAW</comment>
         <translation>Réinitialiser les donnés</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="370"/>
+        <location filename="mainwindow.cpp" line="375"/>
         <source>Ctrl+E</source>
         <comment>File|Reset</comment>
         <translation>Ctrl+E</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="371"/>
+        <location filename="mainwindow.cpp" line="376"/>
         <source>&amp;Quit</source>
         <comment>File|Quit</comment>
         <translation>&amp;Quitter</translation>
         <translation type="obsolete">Envoyer les données</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="369"/>
+        <location filename="mainwindow.cpp" line="374"/>
         <source>Ctrl+L</source>
         <comment>File|Upload</comment>
         <translation>Ctrl+L</translation>
         <translation type="obsolete">&amp;Quitter</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="371"/>
+        <location filename="mainwindow.cpp" line="376"/>
         <source>Ctrl+Q</source>
         <comment>File|Quit</comment>
         <translation>Ctrl+Q</translation>
         <translation type="obsolete">Voir/Cacher le menu</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="69"/>
+        <location filename="mainwindow.cpp" line="70"/>
         <source>Enter the URL to download the init file</source>
         <translation>Entrez l&apos;URL pour téléchargez le fichier d&apos;initialisation</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="171"/>
+        <location filename="mainwindow.cpp" line="70"/>
+        <source>init file</source>
+        <translation>fichier d&apos;initialisation</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="157"/>
+        <source>action</source>
+        <comment>box title to debug action</comment>
+        <translation>action</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="172"/>
         <source>Variable&apos;s name ?</source>
         <comment>text to ask value&apos;s name before changing it (set)</comment>
         <translation>Nom de la variable</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="183"/>
-        <location filename="mainwindow.cpp" line="207"/>
+        <location filename="mainwindow.cpp" line="184"/>
+        <location filename="mainwindow.cpp" line="208"/>
         <source>Error</source>
         <comment>title if action(&quot;set&quot;) has too much value</comment>
         <translation>Erreur</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="183"/>
-        <location filename="mainwindow.cpp" line="207"/>
+        <location filename="mainwindow.cpp" line="184"/>
+        <location filename="mainwindow.cpp" line="208"/>
         <source>Too much value in button&apos;s action</source>
         <comment>text if action(&quot;set&quot;) has too much value</comment>
         <translation>Trop de mots dans l&apos;action du bouton</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="187"/>
+        <location filename="mainwindow.cpp" line="188"/>
         <source>variable text change</source>
         <comment>title to warn about variable content change</comment>
         <translation>changement du contenu de la variable</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="187"/>
-        <location filename="mainwindow.cpp" line="253"/>
+        <location filename="mainwindow.cpp" line="188"/>
+        <location filename="mainwindow.cpp" line="256"/>
         <source>value of </source>
         <translation>Valeur de </translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="195"/>
-        <location filename="mainwindow.cpp" line="243"/>
+        <location filename="mainwindow.cpp" line="196"/>
+        <location filename="mainwindow.cpp" line="246"/>
         <source>Variable&apos;s name ?</source>
         <comment>text to ask value&apos;s name before changing it (setint)</comment>
         <translation>Nom de la variable ?</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="211"/>
+        <location filename="mainwindow.cpp" line="212"/>
         <source>variable integer change</source>
         <comment>title to warn about variable content change</comment>
         <translation>changement de valeur</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="211"/>
+        <location filename="mainwindow.cpp" line="212"/>
         <source>Value of </source>
         <translation>Valeur de </translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="222"/>
+        <location filename="mainwindow.cpp" line="223"/>
         <source>choice</source>
         <comment>title of box who ask multiple choice</comment>
         <translation>Choix</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="222"/>
+        <location filename="mainwindow.cpp" line="223"/>
         <source>Please choose an action.</source>
         <comment>text to ask multiple choice</comment>
         <translation>Choisissez une action</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="253"/>
+        <location filename="mainwindow.cpp" line="256"/>
         <source>variable file change</source>
         <comment>title to warn about variable content change</comment>
         <translation>changement de valeur</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="290"/>
+        <location filename="mainwindow.cpp" line="293"/>
         <source>Error</source>
         <comment>title if action(&quot;edit&quot;) has too much value</comment>
         <translation>Erreur</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="290"/>
+        <location filename="mainwindow.cpp" line="293"/>
         <source>Too much value in button&apos;s action</source>
         <comment>text if action(&quot;edit&quot;) has too much value</comment>
         <translation>Trop de mots dans l&apos;action du bouton</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="305"/>
+        <location filename="mainwindow.cpp" line="308"/>
         <source>URL</source>
         <comment>title to download a custom file from URL</comment>
         <translation>Source</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="305"/>
+        <location filename="mainwindow.cpp" line="308"/>
         <source>Enter the URL of the file</source>
         <comment>label to download a custom file</comment>
         <translation>Entrez l&apos;URL des données</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="307"/>
-        <location filename="mainwindow.cpp" line="311"/>
+        <location filename="mainwindow.cpp" line="310"/>
+        <location filename="mainwindow.cpp" line="314"/>
         <source>File</source>
         <comment>title to write a file downloaded from URL</comment>
         <translation>Fichier</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="307"/>
-        <location filename="mainwindow.cpp" line="311"/>
+        <location filename="mainwindow.cpp" line="310"/>
+        <location filename="mainwindow.cpp" line="314"/>
         <source>Enter the name of the file</source>
         <comment>label to write the downloaded data</comment>
         <translation>Entrez le nom du fichier</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="350"/>
+        <location filename="mainwindow.cpp" line="353"/>
         <source>Error</source>
         <comment>title of box if action(&quot;read&quot; has too much (or too &quot;less&quot;) value</comment>
         <translation>Erreur</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="350"/>
+        <location filename="mainwindow.cpp" line="353"/>
         <source>Bad number of value</source>
         <comment>text of box if action(&quot;read&quot;) has too much (or too &quot;less&quot;) value</comment>
         <translation>Mauvais &quot;nombre&quot; de mot</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="365"/>
+        <location filename="mainwindow.cpp" line="370"/>
         <source>&amp;File</source>
         <comment>top menu</comment>
         <translation>&amp;Fichier</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="366"/>
+        <location filename="mainwindow.cpp" line="371"/>
         <source>&amp;Start</source>
         <comment>File|Start</comment>
         <translation>&amp;Départ</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="367"/>
+        <location filename="mainwindow.cpp" line="372"/>
         <source>&amp;Back</source>
         <comment>File|Back</comment>
         <translation>&amp;Retour</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="368"/>
+        <location filename="mainwindow.cpp" line="373"/>
         <source>Ctrl+T</source>
         <comment>File|View menu</comment>
         <translation>Ctrl+M</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="368"/>
+        <location filename="mainwindow.cpp" line="373"/>
         <source>&amp;View/Hide menu</source>
         <comment>File|View/Hide menu</comment>
         <translation>Voir/Cacher le menu</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="373"/>
+        <location filename="mainwindow.cpp" line="378"/>
+        <source>&amp;Button</source>
+        <comment>top menu</comment>
+        <translation>Boutons</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="379"/>
+        <source>&amp;Download</source>
+        <comment>Button|Downlad</comment>
+        <translation>&amp;Téléchargement</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="379"/>
+        <source>Ctrl+W</source>
+        <comment>Button|Downlad</comment>
+        <translation>Ctrl+D</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="380"/>
+        <source>A&amp;dd</source>
+        <comment>Button|Add</comment>
+        <translation>Nouveau</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="380"/>
+        <source>Ctrl+D</source>
+        <comment>Button|Add</comment>
+        <translation>Ctrl+J</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="381"/>
+        <source>Sa&amp;v</source>
+        <comment>Button|Sav</comment>
+        <translation>Sauvegardez</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="381"/>
+        <source>Ctrl+V</source>
+        <comment>Button|Save</comment>
+        <translation>Ctrl+V</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="382"/>
+        <source>Reset</source>
+        <comment>Button|Reset</comment>
+        <translation>Remise à zéro</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="382"/>
+        <source>Ctrl+Z</source>
+        <comment>Button|Reset</comment>
+        <translation>Ctrl+Z</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="383"/>
+        <source>&amp;Edit</source>
+        <comment>Button|Edit</comment>
+        <translation>Edition</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="383"/>
+        <source>Ctrl+E</source>
+        <comment>Button|&amp;Edit</comment>
+        <translation>Ctrl+E</translation>
+    </message>
+    <message>
         <source>&amp;Data</source>
         <comment>top menu</comment>
-        <translation>Données</translation>
+        <translation type="obsolete">Données</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="374"/>
         <source>&amp;Download</source>
         <comment>Data|Downlad</comment>
-        <translation>&amp;Téléchargement</translation>
+        <translation type="obsolete">&amp;Téléchargement</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="374"/>
         <source>Ctrl+W</source>
         <comment>Data|Downlad</comment>
-        <translation>Ctrl+T</translation>
+        <translation type="obsolete">Ctrl+T</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="375"/>
         <source>A&amp;dd</source>
         <comment>Data|Add</comment>
-        <translation>Nouveau</translation>
+        <translation type="obsolete">Nouveau</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="375"/>
         <source>Ctrl+D</source>
         <comment>Data|Add</comment>
-        <translation>Nouveau</translation>
+        <translation type="obsolete">Nouveau</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="376"/>
         <source>Sa&amp;v</source>
         <comment>Data|Sav</comment>
-        <translation>Sauvegardez</translation>
+        <translation type="obsolete">Sauvegardez</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="376"/>
         <source>Ctrl+V</source>
         <comment>Data|Save</comment>
-        <translation>Ctrl+V</translation>
+        <translation type="obsolete">Ctrl+V</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="377"/>
         <source>Reset</source>
         <comment>Data|Reset</comment>
-        <translation>Remise à zéro</translation>
+        <translation type="obsolete">Remise à zéro</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="377"/>
         <source>Ctrl+Z</source>
         <comment>Data|Reset</comment>
-        <translation>Ctrl+Z</translation>
+        <translation type="obsolete">Ctrl+Z</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="378"/>
         <source>&amp;Edit</source>
         <comment>Data|Edit</comment>
-        <translation>Edition</translation>
+        <translation type="obsolete">Edition</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="378"/>
         <source>Ctrl+E</source>
         <comment>Data|&amp;Edit</comment>
-        <translation>Ctrl+E</translation>
+        <translation type="obsolete">Ctrl+E</translation>
     </message>
     <message>
         <source>&amp;Download</source>
         <translation type="obsolete">Editer</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="380"/>
+        <location filename="mainwindow.cpp" line="385"/>
         <source>&amp;Hack</source>
         <comment>top menu</comment>
         <translation>&amp;Hack</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="381"/>
+        <location filename="mainwindow.cpp" line="386"/>
         <source>New entry</source>
         <comment>Hack|Entry</comment>
         <translation>Nouvelle entrée</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="382"/>
+        <location filename="mainwindow.cpp" line="387"/>
         <source>Action</source>
         <comment>Hack|Action</comment>
         <translation>Action</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="383"/>
+        <location filename="mainwindow.cpp" line="388"/>
         <source>About Qt</source>
         <comment>Hack|About Qt</comment>
         <translation>A propos de Qt</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="779"/>
+        <location filename="mainwindow.cpp" line="786"/>
         <source>upload</source>
         <comment>pop-up title when data has been sent</comment>
         <translation>Envoie</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="946"/>
+        <location filename="mainwindow.cpp" line="865"/>
+        <source>action</source>
+        <comment>box title to debug insert</comment>
+        <translation>action</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="889"/>
+        <source>key</source>
+        <comment>box title to debug remove</comment>
+        <translation>clé</translation>
+    </message>
+    <message>
+        <location filename="mainwindow.cpp" line="956"/>
         <source>tmp URL</source>
         <comment>Title of box where ask for button file&apos;s URL</comment>
         <translation>URL temporaire</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="946"/>
+        <location filename="mainwindow.cpp" line="956"/>
         <source>Enter URL</source>
         <comment>Label of box where ask for button file&apos;s URL</comment>
         <translation>Entrez l&apos;URL</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="957"/>
+        <location filename="mainwindow.cpp" line="967"/>
         <source>action</source>
         <comment>Title of box where ask for a custom action</comment>
         <translation>action</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="957"/>
+        <location filename="mainwindow.cpp" line="967"/>
         <source>Enter your action</source>
         <comment>Label of box where ask for custom action</comment>
         <translation>Entrez votre action</translation>
         <translation type="obsolete">Aide</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="548"/>
+        <location filename="mainwindow.cpp" line="554"/>
         <source>New entry</source>
         <translation>Nouvelle entrée</translation>
     </message>
         <translation type="obsolete">A propos de Qt</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="383"/>
+        <location filename="mainwindow.cpp" line="388"/>
         <source>ctrl+H</source>
         <comment>Help|About Qt</comment>
         <translation>Ctrl+A</translation>
         <translation type="obsolete">C&amp;réer une base de donné</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="384"/>
+        <location filename="mainwindow.cpp" line="389"/>
         <source>Ctrl+R</source>
         <comment>Help|CreateDB</comment>
         <translation>Ctrl+R</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="384"/>
+        <location filename="mainwindow.cpp" line="389"/>
         <source>C&amp;reate Database</source>
         <comment>Hack|Create</comment>
         <translation>C&amp;réer une base de donné</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="385"/>
+        <location filename="mainwindow.cpp" line="390"/>
         <source>Download sql</source>
         <comment>Hack|download sql</comment>
         <translation>Télécharger un fichier sql</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="570"/>
+        <location filename="mainwindow.cpp" line="576"/>
         <source>label</source>
         <comment>Title of box where ask for new button&apos;s label</comment>
         <translation>Etiquette</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="570"/>
+        <location filename="mainwindow.cpp" line="576"/>
         <source>Enter his label</source>
         <comment>his/her/?they? I&apos;ve forget my school lesson</comment>
         <translation>Entrez son étiquette</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="572"/>
+        <location filename="mainwindow.cpp" line="578"/>
         <source>keyword</source>
         <comment>Title of box where ask for new button&apos;s keyword</comment>
         <translation>mot-clé</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="572"/>
+        <location filename="mainwindow.cpp" line="578"/>
         <source>Enter they keyword (no limit !)</source>
         <translation>Entrez les mots clé (no limit !)</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="574"/>
+        <location filename="mainwindow.cpp" line="580"/>
         <source>action</source>
         <comment>Title of box where ask for new button&apos;s action</comment>
         <translation>action</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="574"/>
+        <location filename="mainwindow.cpp" line="580"/>
         <source>Enter his action</source>
         <translation>Entrez son action</translation>
     </message>
         <translation type="obsolete">chooseButtonDB</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="611"/>
+        <location filename="mainwindow.cpp" line="617"/>
         <source>Enter the keyword : </source>
         <translation>Entrez le mot-clé : </translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="611"/>
+        <location filename="mainwindow.cpp" line="617"/>
         <source>chooseDB</source>
         <translation>choisirBD</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="642"/>
+        <location filename="mainwindow.cpp" line="648"/>
         <source>keyword</source>
         <comment>Title of box where ask for button&apos;s keyword</comment>
         <translation>mot-clé</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="642"/>
+        <location filename="mainwindow.cpp" line="648"/>
         <source>new keyword</source>
         <comment>question to get new button&apos;s keyword</comment>
         <translation>nouveau mot-clé</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="644"/>
+        <location filename="mainwindow.cpp" line="650"/>
         <source>label</source>
         <comment>Title of box where ask for button&apos;s label</comment>
         <translation>étiquette</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="644"/>
+        <location filename="mainwindow.cpp" line="650"/>
         <source>new label</source>
         <comment>question to get new button&apos;s label</comment>
         <translation>nouvel étiquette</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="646"/>
+        <location filename="mainwindow.cpp" line="652"/>
         <source>action</source>
         <comment>Title of box where ask for button&apos;s action</comment>
         <translation>action</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="646"/>
+        <location filename="mainwindow.cpp" line="652"/>
         <source>new action</source>
         <comment>question to get new button&apos;s action</comment>
         <translation>nouvelle action</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="691"/>
+        <location filename="mainwindow.cpp" line="698"/>
         <source>RAWsent</source>
         <comment>message title when data has been send</comment>
         <translation>RAWsent</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="691"/>
+        <location filename="mainwindow.cpp" line="698"/>
         <source>sendRAW finish</source>
         <comment>message text when data has been send</comment>
         <translation>données envoyées</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="775"/>
+        <location filename="mainwindow.cpp" line="782"/>
         <source>Upload finish : </source>
         <comment>pop-up when data has been sent</comment>
         <translation>Upload finit : </translation>
         <translation type="obsolete">uploadDB</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="834"/>
+        <location filename="mainwindow.cpp" line="841"/>
         <source>Uisent</source>
         <comment>pop-up title when buttons has been sent</comment>
         <translation>Envoyé</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="834"/>
-        <source>savbuttons finish</source>
+        <location filename="mainwindow.cpp" line="841"/>
+        <source>sav finish</source>
+        <oldsource>savbuttons finish</oldsource>
         <comment>pop-up text when buttons has been sent</comment>
         <translation>boutons sauvegardés sur le serveur</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="840"/>
+        <location filename="mainwindow.cpp" line="847"/>
         <source>Enter the keyword : </source>
         <comment>ask keyword to get buttons</comment>
         <translation>Entrez le mot-clé : </translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="840"/>
+        <location filename="mainwindow.cpp" line="847"/>
         <source>getButtons</source>
         <comment>title to ask keyword fot getbuttons</comment>
         <translation>getBoutons</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="899"/>
+        <location filename="mainwindow.cpp" line="909"/>
         <source>writeFile</source>
         <comment>pop-up title when file has been written</comment>
         <translation>fichier</translation>
     </message>
     <message>
-        <location filename="mainwindow.cpp" line="899"/>
+        <location filename="mainwindow.cpp" line="909"/>
         <source>File written : </source>
         <translation>Fichier écrit : </translation>
     </message>
index 1be1a527291a81612b9603f2f1a9b480c7d127e7..ebacc372b77e9dda0e8cfbca50a879a33ad5ed26 100644 (file)
@@ -68,8 +68,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
         qDebug()<<"second";
         bool ok;
         QString ser=QInputDialog::getText(this, trUtf8("init file"), trUtf8("Enter the URL to download the init file"), QLineEdit::Normal, conf->value(QString("init")).toString(), &ok);
-        if((ok)&&(ser!=""))conf->setValue(QString("init"), ser);
-        else qApp->quit();
+        conf->setValue(QString("init"), ser);
         downSQL(ser);
         conf->setValue(QString("first"), 2);
     };
@@ -232,7 +231,7 @@ void MainWindow::action(const QString &a){
             int e;
             if(bs>1)e=b[2].toInt(&ok);
             else e=1;
-            for(int bcl=0;bcl<e;bcl++){
+            for(int bcl=1;bcl<e;bcl++){
                 way.removeLast();
             }
         }else{
@@ -376,12 +375,12 @@ void MainWindow::createMenuBar(){
     FileMenu->addAction(trUtf8("Reset RAW", "File|resetRAW"), this, SLOT(resetRAW()), QKeySequence(trUtf8("Ctrl+E", "File|Reset")));
     FileMenu->addAction(trUtf8("&Quit", "File|Quit"), this, SLOT(quit()),QKeySequence(trUtf8("Ctrl+Q", "File|Quit")));
     menuBar()->addMenu(FileMenu);
-    EditMenu=new QMenu(trUtf8("&Data", "top menu"));
-    EditMenu->addAction(trUtf8("&Download", "Data|Downlad"), this, SLOT(downloadData()),QKeySequence(trUtf8("Ctrl+W", "Data|Downlad")));
-    EditMenu->addAction(trUtf8("A&dd", "Data|Add"), this, SLOT(addDB()), QKeySequence(trUtf8("Ctrl+D", "Data|Add")));
-    EditMenu->addAction(trUtf8("Sa&v", "Data|Sav"), this, SLOT(savData()), QKeySequence(trUtf8("Ctrl+V", "Data|Save")));
-    EditMenu->addAction(trUtf8("Reset", "Data|Reset"), this, SLOT(reset()), QKeySequence(trUtf8("Ctrl+Z", "Data|Reset")));
-    EditMenu->addAction(trUtf8("&Edit", "Data|Edit"), this, SLOT(chooseDB()), QKeySequence(trUtf8("Ctrl+E", "Data|&Edit")));
+    EditMenu=new QMenu(trUtf8("&Button", "top menu"));
+    EditMenu->addAction(trUtf8("&Download", "Button|Downlad"), this, SLOT(downloadData()),QKeySequence(trUtf8("Ctrl+W", "Button|Downlad")));
+    EditMenu->addAction(trUtf8("A&dd", "Button|Add"), this, SLOT(addDB()), QKeySequence(trUtf8("Ctrl+D", "Button|Add")));
+    EditMenu->addAction(trUtf8("Sa&v", "Button|Sav"), this, SLOT(savData()), QKeySequence(trUtf8("Ctrl+V", "Button|Save")));
+    EditMenu->addAction(trUtf8("Reset", "Button|Reset"), this, SLOT(reset()), QKeySequence(trUtf8("Ctrl+Z", "Button|Reset")));
+    EditMenu->addAction(trUtf8("&Edit", "Button|Edit"), this, SLOT(chooseDB()), QKeySequence(trUtf8("Ctrl+E", "Button|&Edit")));
     menuBar()->addMenu(EditMenu);
     HackMenu=new QMenu(trUtf8("&Hack", "top menu"));
     HackMenu->addAction(trUtf8("New entry", "Hack|Entry"), this, SLOT(entry()));
@@ -470,8 +469,8 @@ void MainWindow::firstrun(){
     conf->setValue(QString("maxline"), QVariant(3));
     conf->setValue(QString("SQLsettings"), QVariant("connect_timeout=10000"));
     conf->setValue(QString("button"), QVariant("background-color: red;border-style: outset;border-width: 7px;border-radius: 10px;border-color: beige;font: bold 15px;padding: 6px;"));
-    conf->setValue(QString("buttonbefore"), QVariant("border-style: outset"));
-    conf->setValue(QString("buttonafter"), QVariant("border-style: inset"));
+    conf->setValue(QString("buttonbefore"), QVariant("outset"));
+    conf->setValue(QString("buttonafter"), QVariant("inset"));
     conf->setValue(QString("menu"), QVariant(0));
     conf->setValue(QString("download"), QVariant("http://www.nothing2do.eu/"+conf->value(QString("filebuttons")).toString()));
     conf->setValue(QString("init"), QVariant("http://www.nothing2do.eu/init"));
@@ -486,7 +485,7 @@ void MainWindow::firstrun(){
     conf->setValue(QString("selectraw"), QVariant("select date,texte from raw order by date;"));
     conf->setValue(QString("menuback"), QVariant("-menuback"));
     conf->setValue(QString("choosebuttons"), QVariant("select id,label from ui where keyword like ? order by label;"));
-    conf->setValue(QString("addbuttons"), QVariant("insert into ui (label, keyword, action) values (:label, :keyword, :action)"));
+    conf->setValue(QString("addbuttons"), QVariant("insert into ui (keyword, label, action) values (:keyword, :label, :action)"));
     conf->setValue(QString("getbuttons"), QVariant("select label,action from ui where keyword like ? order by label;"));
     conf->setValue(QString("editbuttons"), QVariant("select id,keyword,label,action from ui where id=?;"));
     conf->setValue(QString("updatebuttons"), QVariant("update ui set keyword=?, label=?, action=? where id=?;"));
@@ -499,7 +498,7 @@ void MainWindow::firstrun(){
     conf->setValue(QString("saychange"), QVariant(0));
     conf->setValue(QString("sepcmd"), QVariant("!@!"));
     conf->setValue(QString("sepchc"), QVariant("!#!"));
-    conf->setValue(QString("sepraw"), QVariant(" "));
+    conf->setValue(QString("sepcolraw"), QVariant(" "));
     conf->setValue(QString("sepcolbuttons"), QVariant("$"));
     conf->setValue(QString("sqlval"), QVariant("?"));
     conf->setValue(QString("always"), QVariant("+always"));
@@ -670,12 +669,13 @@ void MainWindow::writeData(){
     conf->setValue(QString("lastdownload"), QDateTime::currentDateTime().toString(Qt::ISODate));
 }
 void MainWindow::sendRAW(){
-    //send(QString("raw"))
+    //sav(QString("raw"))
     exec(QList<QString> ({conf->value(QString("selectraw")).toString()}));
     QFile a(conf->value(QString("fileraw")).toString());
     a.open(QIODevice::WriteOnly|QIODevice::Text);
     QTextStream b(&a);
-    int c=conf->value(QString("columnraw")).toInt()-1;
+    //int c=conf->value(QString("columnraw")).toInt()-1;
+    int c=q->record().count()-1;
     QString sep=conf->value(QString("sepraw")).toString();
     while (q->next()) {
         for (int i=0; i<c; i++){
@@ -838,7 +838,7 @@ void MainWindow::sav(const QString & a){
 }
 void MainWindow::Uisent(){
     qDebug()<<"Uisent";
-    QMessageBox::information(this, trUtf8("Uisent", "pop-up title when buttons has been sent"), trUtf8("savbuttons finish", "pop-up text when buttons has been sent"));
+    QMessageBox::information(this, trUtf8("Uisent", "pop-up title when buttons has been sent"), trUtf8("sav finish", "pop-up text when buttons has been sent"));
 }
 void MainWindow::reset(const QString & a){
     exec(QList<QString>({"delete from "+a+";"}));
@@ -854,39 +854,42 @@ void MainWindow::insert(const QString & a, const QString & keyword, const QStrin
     tmp.append(action);
     exec(tmp);
     q->first();
-    int count=0;
-    QString key=keyword, id=q->value(0).toString();
+    //int count=0;
+    QString key=q->value(1).toString();
+    QVariant id=q->value(0);
     while(q->next()){
-        count++;
-        key=q->value(1).toString()+" "+key;
+        //count++;
+        key+=" "+q->value(1).toString();
     }
-    if(count==0)exec(QList<QString>({conf->value(QString("add")+a).toString(), label, key, action}));
-    else{exec(QList<QString>({conf->value(QString("update")+a).toString(), key, label, action, id}));
+    if(!key.contains(keyword))key+=keyword;// it is possible to have 2 buttons with same label and action ? I've sayd "no"
+    if(deb)QMessageBox::information(this, trUtf8("action", "box title to debug insert"), QString("insert : key="+key+" label="+label+" action="+action));
+    if(!id.isValid())exec(QList<QString>({conf->value(QString("add")+a).toString(), key, label, action}));
+    else{exec(QList<QString>({conf->value(QString("update")+a).toString(), key, label, action, id.toString()}));
+    };
 
-    }
 }
 void MainWindow::remove(const QString & a, const QString & keyword, const QString & label, const QString & action){
-    qDebug()<<"remove : a="<<a<<"keyword="<<keyword<<" label="<<label<<" action="<<action;
     QList<QString> tmp;
     tmp.append(conf->value(QString("test")+a).toString());
-
     tmp.append(label);
     tmp.append(action);
     qDebug()<<"tmp.size()="<<tmp.size()<<" tmp[0]="<<tmp[0];
     exec(tmp);
     q->first();
-    int count=1;
-    QString key=q->value(1).toString(), id=q->value(0).toString(), cur;
-    while(q->next()){//la boucle ne sert que si il y a plusieurs entré avec les même label et action or insertButton nous l'interdit !
-        count++;
+    //int count=1;
+    QString key=q->value(1).toString(), cur;
+    QVariant id=q->value(0);
+    while(q->next()){//la boucle ne sert que si il y a plusieurs entré avec les même label et action or insert nous l'interdit !
+        //count++;
         cur=q->value(1).toString();
         key=key+" "+cur;
     }
     qDebug()<<"key="<<key<<" keyword="<<keyword;
     key.replace(keyword, QString(""));
-    if(key==QString(" ").repeated(key.size()))exec(QList<QString>({conf->value(QString("delete")+a).toString(), id}));
+    if(deb)QMessageBox::information(this, trUtf8("key", "box title to debug remove"), QString("remove : id="+id.toString()+" key="+key+" label="+label+" action="+action));
+    if(key==QString(" ").repeated(key.size()))exec(QList<QString>({conf->value(QString("delete")+a).toString(), id.toString()}));
     else{
-        exec(QList<QString>({conf->value(QString("updatebuttons")).toString(), key, label, action, id}));
+        exec(QList<QString>({conf->value(QString("update")+a).toString(), key, label, action, id.toString()}));
     }
 }
 void MainWindow::writeTr(){
index 8e2afd62b40878a9079e4faf15c98c0d27636266..d2c95e99a4962cafe568d174241b6719b338c416 100644 (file)
@@ -204,9 +204,7 @@ private:
     QSettings *conf;
     QString tmp, tmp2, file, lastprint;//host, user, tmp, password, servercert,database;
     QMenu *FileMenu, *EditMenu, *HackMenu;
-    //unsigned short int port;// j'ai lu les docs sur internet et 0<="unsigned short int"<65536
     QSignalMapper *signalmap;
-    //QMap<const QString, const CLabel*> widget;
     QList<QString> way;
     QSqlDatabase db;
     QSqlQuery *q, *qq;
@@ -215,7 +213,7 @@ private:
     QNetworkAccessManager *net;
     QNetworkReply * rep;
     bool orientation;//0=portrait 1=paysage (size.width() > size.height())
-    bool deb;
+    unsigned short int deb;
     QVideoWidget * videoWidget;
 };