From: Norbert Moutarde Date: Wed, 28 May 2014 09:16:36 +0000 (+0200) Subject: mistake again ... X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=2aef8b8e0301ce9563fd005a3700d980c2e8333f;p=diary-mobile.git mistake again ... --- diff --git a/README.md b/README.md index 5ab6559..cd3e00b 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ ftp://[user]:[pass]@[hostname]/[filename] todo : -add autoupdate feature, buttons in action, and ... +add autoupdate feature, and ... diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml new file mode 100644 index 0000000..e4b8cda --- /dev/null +++ b/android/AndroidManifest.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/diary-mobile.pro b/diary-mobile.pro index 8979512..c683f3e 100644 --- a/diary-mobile.pro +++ b/diary-mobile.pro @@ -32,6 +32,8 @@ ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android OTHER_FILES += \ android/AndroidManifest.xml \ ui.sql \ - README.md + README.md \ + android/AndroidManifest.xml \ + jean_victor_balin_book.png ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android diff --git a/jean_victor_balin_book.png b/jean_victor_balin_book.png new file mode 100644 index 0000000..e8902f5 Binary files /dev/null and b/jean_victor_balin_book.png differ diff --git a/mainwindow.cpp b/mainwindow.cpp index 6919dd7..3e7515c 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -350,12 +350,12 @@ void MainWindow::firstrun(){ conf->setValue(QString("maxcolumn"), QVariant(2)); conf->setValue(QString("maxline"), QVariant(5)); conf->setValue(QString("SQLsettings"), QVariant("connect_timeout=10000")); - conf->setValue(QString("button"), QVariant("background-color: yellow;border-style: outset;border-width: 7px;border-radius: 10px;border-color: beige;font: bold 15px;padding: 6px;")); + 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("menu"), QVariant(1)); - conf->setValue(QString("download"), QVariant("http://gaby:sha1sum@www.nothing2do.eu/diary/ui.sql")); - conf->setValue(QString("uploadRAW"), QVariant("ftp://nothing2do.eu_diary:200386@ftp.alwaysdata.com/raw")); - conf->setValue(QString("uploadUi"), QVariant("ftp://nothing2do.eu_diary:200386@ftp.alwaysdata.com/ui.sql")); - conf->setValue(QString("start"), QVariant("Montpellier")); + conf->setValue(QString("download"), QVariant("http://www.nothing2do.eu/ui.sql")); + conf->setValue(QString("uploadRAW"), QVariant("ftp://:@/raw")); + conf->setValue(QString("uploadUi"), QVariant("ftp://:@/ui.sql")); + conf->setValue(QString("start"), QVariant("begin")); conf->setValue(QString("restore"), QVariant("http://www.abc.de/db")); conf->setValue(QString("db"), QVariant("/data/data/eu.nothing2do.diarymobile/files/db")); conf->setValue(QString("selectbuttons"), QVariant("select keyword,label,action from ui order by label;")); @@ -369,11 +369,7 @@ void MainWindow::firstrun(){ conf->setValue(QString("deletebutton"), QVariant("delete from ui where id=?")); conf->setValue(QString("testbuttons"), QVariant("select id,keyword from ui where label=? and action=?;")); conf->setValue(QString("volumdown"), QVariant("back")); -<<<<<<< HEAD conf->setValue(QString("volumup"), QVariant("Montpellier")); -======= - conf->setValue(QString("volumup"), QVariant("begin")); ->>>>>>> 388baafb8a2a686f467cd1605a7ba5037fb1fe0c qDebug()<<"firstrun() finished"; } QString &MainWindow::get(int row, int column){ @@ -434,7 +430,7 @@ void MainWindow::addButtonDB(){ if ((b=="")||(ok==0))return; a=QInputDialog::getText(this, QString("action"), QString("Entrez son action"), QLineEdit::Normal, c, &ok); if ((a=="")||(ok==0))return; - insertbutton(b, c, a); + insertButton(b, c, a); return; } void MainWindow::getButtons(const QString &b){ @@ -491,7 +487,7 @@ void MainWindow::editButtonDB(const QString & a){ if(!ok)return; if((keyword=="")||(label=="")||(action=="")){ //exec(QList({conf->value(QString("deletebuttons")).toString(), a})); - removebutton(keyword, label, action); + removeButton(keyword, label, action); return; } exec(QList({conf->value(QString("updatebuttons")).toString(), keyword, label, action, a})); @@ -609,42 +605,6 @@ void MainWindow::readButtons(const QByteArray &in){ qDebug()<<"q->exec() : "<exec()<<" lastError()="<lastError(); }; -<<<<<<< HEAD -======= - - /*QDomDocument a("buttons"); - if (!a.setContent(in)){ - qDebug()<<"a.setcontent failed"; - return; - } - QDomElement root = a.documentElement(); - QDomNode n = root.firstChild(); - QList cmd; - while(!n.isNull()) { - QDomNode e = n.firstChild(); - //if((cmd.size()<1)&&(n.isText()))e.toText().nodeValue(); - qDebug()<<"n.nodeName()="< tmp; - tmp.append(conf->value(QString("testbuttons")).toString()); - tmp.append(label); - tmp.append(action); - exec(tmp); - q->first(); - int count=0; - QString key=keyword, id=q->value(0).toString(); - while(q->isValid()){ - count++; - QString cur=q->value(1).toString(); - if(key!=cur)key=key+" "+cur; - q->next(); - } - if(count==1)exec(QList({conf->value(QString("deletebuttons")).toString(), id})); - else{exec(QList({conf->value(QString("updatebuttons")).toString(), key, label, action, id})); - - } -}