CONFIG += mobility c++11
MOBILITY =
QMAKE_CXXFLAGS += -fpermissive
-
+TRANSLATIONS = diary-mobile_fr.ts diary-mobile_en.ts
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
OTHER_FILES += \
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="en_US">
+<context>
+ <name>MainWindow</name>
+ <message>
+ <location filename="mainwindow.cpp" line="72"/>
+ <source>fichier initial</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="72"/>
+ <source>Entrez l'adresse du serveur où télécharger les premier boutons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="199"/>
+ <source>choice</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="199"/>
+ <source>Veuillez choisir une action.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="210"/>
+ <source>get file</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="214"/>
+ <source>box</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="229"/>
+ <source>set</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="240"/>
+ <source>Entrez l'ID du bouton à éditez</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="253"/>
+ <source>&File</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="254"/>
+ <source>&Start...</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="254"/>
+ <source>Ctrl+S</source>
+ <comment>File|Start</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="255"/>
+ <source>&Back</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="255"/>
+ <source>Ctrl+B</source>
+ <comment>File|Back</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="256"/>
+ <source>&DownloadUi</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="256"/>
+ <source>Ctrl+W</source>
+ <comment>File|Downlad</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="257"/>
+ <source>sendRAW</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="257"/>
+ <source>Ctrl+L</source>
+ <comment>File|Upload</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="259"/>
+ <source>Reset Ui</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="259"/>
+ <source>Ctrl+Z</source>
+ <comment>File|ResetUi</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="260"/>
+ <source>Reset RAW</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="261"/>
+ <source>&Quit...</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="261"/>
+ <source>Ctrl+Q</source>
+ <comment>File|Quit</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="265"/>
+ <source>A&dd buttons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="265"/>
+ <source>Ctrl+D</source>
+ <comment>Buttons|Add</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="266"/>
+ <source>Sa&v buttons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="266"/>
+ <source>Ctrl+V</source>
+ <comment>Buttons|Save</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="267"/>
+ <source>&Edit buttons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="267"/>
+ <source>Ctrl+E</source>
+ <comment>Buttons|&Edit</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="269"/>
+ <source>&View/Hide menu</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="269"/>
+ <source>Ctrl+T</source>
+ <comment>Buttons|View menu</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="272"/>
+ <source>Nouvelle entré</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="273"/>
+ <location filename="mainwindow.cpp" line="682"/>
+ <source>getButtons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="274"/>
+ <source>About Qt</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="274"/>
+ <source>ctrl+H</source>
+ <comment>Help|About Qt</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="275"/>
+ <source>C&reate Database</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="275"/>
+ <source>Ctrl+R</source>
+ <comment>Help|CreateDB</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="413"/>
+ <source>nouvelle entrée</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="435"/>
+ <source>Entrez son label</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="437"/>
+ <source>Entrez ses mots clé (no limit !)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="439"/>
+ <source>Entrez son action</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="473"/>
+ <source>chooseButtonDB</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="473"/>
+ <location filename="mainwindow.cpp" line="682"/>
+ <source>Entrez le mots-clé : </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="494"/>
+ <source>keyword</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="494"/>
+ <source>new keyword</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="496"/>
+ <source>label</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="496"/>
+ <source>new label</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="498"/>
+ <source>action</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="498"/>
+ <source>new action</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="542"/>
+ <source>RAWsent</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="542"/>
+ <source>sendRAW finish</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="625"/>
+ <source>Upload finish : </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="676"/>
+ <source>Uisent</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="676"/>
+ <source>savbuttons finish</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="fr_FR">
+<context>
+ <name>MainWindow</name>
+ <message>
+ <location filename="mainwindow.cpp" line="72"/>
+ <source>fichier initial</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="72"/>
+ <source>Entrez l'adresse du serveur où télécharger les premier boutons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="199"/>
+ <source>choice</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="199"/>
+ <source>Veuillez choisir une action.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="210"/>
+ <source>get file</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="214"/>
+ <source>box</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="229"/>
+ <source>set</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="240"/>
+ <source>Entrez l'ID du bouton à éditez</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="253"/>
+ <source>&File</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="254"/>
+ <source>&Start...</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="254"/>
+ <source>Ctrl+S</source>
+ <comment>File|Start</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="255"/>
+ <source>&Back</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="255"/>
+ <source>Ctrl+B</source>
+ <comment>File|Back</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="256"/>
+ <source>&DownloadUi</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="256"/>
+ <source>Ctrl+W</source>
+ <comment>File|Downlad</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="257"/>
+ <source>sendRAW</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="257"/>
+ <source>Ctrl+L</source>
+ <comment>File|Upload</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="259"/>
+ <source>Reset Ui</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="259"/>
+ <source>Ctrl+Z</source>
+ <comment>File|ResetUi</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="260"/>
+ <source>Reset RAW</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="261"/>
+ <source>&Quit...</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="261"/>
+ <source>Ctrl+Q</source>
+ <comment>File|Quit</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="265"/>
+ <source>A&dd buttons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="265"/>
+ <source>Ctrl+D</source>
+ <comment>Buttons|Add</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="266"/>
+ <source>Sa&v buttons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="266"/>
+ <source>Ctrl+V</source>
+ <comment>Buttons|Save</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="267"/>
+ <source>&Edit buttons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="267"/>
+ <source>Ctrl+E</source>
+ <comment>Buttons|&Edit</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="269"/>
+ <source>&View/Hide menu</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="269"/>
+ <source>Ctrl+T</source>
+ <comment>Buttons|View menu</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="272"/>
+ <source>Nouvelle entré</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="273"/>
+ <location filename="mainwindow.cpp" line="682"/>
+ <source>getButtons</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="274"/>
+ <source>About Qt</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="274"/>
+ <source>ctrl+H</source>
+ <comment>Help|About Qt</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="275"/>
+ <source>C&reate Database</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="275"/>
+ <source>Ctrl+R</source>
+ <comment>Help|CreateDB</comment>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="413"/>
+ <source>nouvelle entrée</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="435"/>
+ <source>Entrez son label</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="437"/>
+ <source>Entrez ses mots clé (no limit !)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="439"/>
+ <source>Entrez son action</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="473"/>
+ <source>chooseButtonDB</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message utf8="true">
+ <location filename="mainwindow.cpp" line="473"/>
+ <location filename="mainwindow.cpp" line="682"/>
+ <source>Entrez le mots-clé : </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="494"/>
+ <source>keyword</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="494"/>
+ <source>new keyword</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="496"/>
+ <source>label</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="496"/>
+ <source>new label</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="498"/>
+ <source>action</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="498"/>
+ <source>new action</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="542"/>
+ <source>RAWsent</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="542"/>
+ <source>sendRAW finish</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="625"/>
+ <source>Upload finish : </source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="676"/>
+ <source>Uisent</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="676"/>
+ <source>savbuttons finish</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
screen->show();
if((conf->value(QString("first")).toInt()==1)){
qDebug()<<"second";
- QString ser=QInputDialog::getText(this, "fichier initial", "Entrez l'adresse du serveur où télécharger les premier boutons", QLineEdit::Normal, conf->value(QString("download")).toString());
+ QString ser=QInputDialog::getText(this, trUtf8("fichier initial"), trUtf8("Entrez l'adresse du serveur où télécharger les premier boutons"), QLineEdit::Normal, conf->value(QString("download")).toString());
if(ser!="")conf->setValue(QString("download"), ser);
createDB();
downloadUi();
if(ok)conf->setValue(b[1], e);
}
else if(b[0]==QString("start")){
- getButtons(conf->value(QString("start")).toString());
+ start();
}
else if(b[0]==QString("new")){
entry(c);
}
else if(b[0]==QString("a/b")){
bool ok;
- QString e=QInputDialog::getItem(this, QString("choice"), QString("Veuillez choisir une action."), c.split(conf->value(QString("sepchc")).toString()), 0, 0, &ok);
+ QString e=QInputDialog::getItem(this, trUtf8("choice"), trUtf8("Veuillez choisir une action."), c.split(conf->value(QString("sepchc")).toString()), 0, 0, &ok);
if(ok)action(e);
}
else if(b[0]==QString("back")){
}
else if(b[0]==QString("setfile")){
bool ok;
- QString e=QFileDialog::getSaveFileName(this, QString("get file"), conf->value(b[1]).toString());
+ QString e=QFileDialog::getSaveFileName(this, trUtf8("get file"), conf->value(b[1]).toString());
if(ok)conf->setValue(b[1], e);
}
else if(b[0]==QString("box")){
- QMessageBox::information(this, QString("box"), c);
+ QMessageBox::information(this, trUtf8("box"), c);
}
else if(b[0]==QString("quit")){
int value=c.count(conf->value(QString("sqlval")).toString());
QList<QString> cmd({c});
if (value){
- for(int d=0; d<=value; d++){
+ for(int d=1; d<=value; d++){
bool ok;
- QString e=QInputDialog::getText(this, "set", c+" : "+d, QLineEdit::Normal, QString(""), &ok);
+ QString e=QInputDialog::getText(this, trUtf8("set"), c+" : "+d, QLineEdit::Normal, QString(""), &ok);
if(ok)cmd.append(e);
else break;// in case of break, exec complain about cmd size
}
QString e;
bool ok;
if(b.size()<=1){
- e=QInputDialog::getText(this, QString("ID"), QString("Entrez l'ID du bouton à éditez"), QLineEdit::Normal, QString(""), &ok);
+ e=QInputDialog::getText(this, QString("ID"), trUtf8("Entrez l'ID du bouton à éditez"), QLineEdit::Normal, QString(""), &ok);
if(ok)editButtonDB(e);
}
else editButtonDB(b[1]);
else getButtons(a);
}
void MainWindow::createMenuBar(){
- FileMenu=new QMenu(QString("&File"), this);
+ FileMenu=new QMenu(trUtf8("&File"), this);
FileMenu->addAction(trUtf8("&Start..."), this, SLOT(start()),QKeySequence(trUtf8("Ctrl+S", "File|Start")));
FileMenu->addAction(trUtf8("&Back"), this, SLOT(back()),QKeySequence(trUtf8("Ctrl+B", "File|Back")));
FileMenu->addAction(trUtf8("&DownloadUi"), this, SLOT(downloadUi()),QKeySequence(trUtf8("Ctrl+W", "File|Downlad")));
context.append(way.last());
if(a=="")label=context+" : ";
else label=context+", "+a+" : ";
- entry=QInputDialog::getText(this, QString("nouvelle entrée"), label, QLineEdit::Normal, "", &ok);
+ entry=QInputDialog::getText(this, trUtf8("nouvelle entrée"), label, QLineEdit::Normal, "", &ok);
if(ok==0)return;
QString c;
if(a=="")c=context+" : "+entry;
qDebug()<<"addButtonDB()";
bool ok=0;
QString cur=label->text();
- QString a, b, c=QInputDialog::getText(this, QString("label"), QString("Entrez son label"),QLineEdit::Normal, QString(""), &ok);
+ QString a, b, c=QInputDialog::getText(this, QString("label"), trUtf8("Entrez son label"),QLineEdit::Normal, QString(""), &ok);
if ((c=="")||(ok==0))return;
- b=QInputDialog::getText(this, QString("keyword"), QString("Entrez ses mots clé (no limit !)"), QLineEdit::Normal, cur, &ok);
+ b=QInputDialog::getText(this, QString("keyword"), trUtf8("Entrez ses mots clé (no limit !)"), QLineEdit::Normal, cur, &ok);
if ((b=="")||(ok==0))return;
- a=QInputDialog::getText(this, QString("action"), QString("Entrez son action"), QLineEdit::Normal, c, &ok);
+ a=QInputDialog::getText(this, QString("action"), trUtf8("Entrez son action"), QLineEdit::Normal, c, &ok);
if ((a=="")||(ok==0))return;
insertButton(b, c, a);
return;
}
void MainWindow::chooseButtonDB(){
QString a;
- if(conf->value(QString("askkeyword")).toBool())a=QInputDialog::getText(this, QString("chooseButtonDB"), QString("Entrez le mots-clé : "), QLineEdit::Normal, label->text());
+ if(conf->value(QString("askkeyword")).toBool())a=QInputDialog::getText(this, trUtf8("chooseButtonDB"), trUtf8("Entrez le mots-clé : "), QLineEdit::Normal, label->text());
else a=label->text();
chooseButtonDB(a);
}
QString keyword=q->value(1).toString();
QString label=q->value(2).toString();
QString action=q->value(3).toString();
- const QString tmpkeyword=QInputDialog::getText(this, "keyword", "new keyword", QLineEdit::Normal, keyword, &ok);
+ const QString tmpkeyword=QInputDialog::getText(this, trUtf8("keyword"), trUtf8("new keyword"), QLineEdit::Normal, keyword, &ok);
if(!ok)return;
- const QString tmplabel=QInputDialog::getText(this, "label", "new label", QLineEdit::Normal, label, &ok);
+ const QString tmplabel=QInputDialog::getText(this, trUtf8("label"), trUtf8("new label"), QLineEdit::Normal, label, &ok);
if(!ok)return;
- const QString tmpaction=QInputDialog::getText(this, "action", "new action", QLineEdit::Normal, action, &ok);
+ const QString tmpaction=QInputDialog::getText(this, trUtf8("action"), trUtf8("new action"), QLineEdit::Normal, action, &ok);
if(!ok)return;
if((tmpkeyword=="")||(tmplabel=="")||(tmpaction=="")){
//exec(QList<QString>({conf->value(QString("deletebuttons")).toString(), a}));
}
void MainWindow::RAWsent(){
qDebug()<<"RAWsent";
- QMessageBox::information(this, "RAWsent", "sendRAW finish");
+ QMessageBox::information(this, trUtf8("RAWsent"), trUtf8("sendRAW finish"));
}
void MainWindow::back(){
flush();
}
void MainWindow::datasent(){
qDebug()<<"datasent";
- QString texte="Upload finish : ";
+ QString texte=trUtf8("Upload finish : ");
texte=texte+conf->value(QString("uploadDB")).toString();
qDebug()<<"texte : "<<texte;
}
void MainWindow::Uisent(){
qDebug()<<"Uisent";
- QMessageBox::information(this, "Uisent", "savbuttons finish");
+ QMessageBox::information(this, trUtf8("Uisent"), trUtf8("savbuttons finish"));
}
void MainWindow::resetRAW(){
exec(QList<QString>({"delete from raw;"}));
}
void MainWindow::getButtons(){
- const QString a=QInputDialog::getText(this, QString("getButtons"), QString("Entrez le mots-clé : "));
+ const QString a=QInputDialog::getText(this, trUtf8("getButtons"), trUtf8("Entrez le mots-clé : "));
getButtons(a);
}
void MainWindow::insertButton(const QString & keyword, const QString & label, const QString & action){