}
else if(b[0]==QString("sav")){
+ Msav.lock();
+
sav(c);
}
else if(b[0]==QString("back")){
conf->setValue(QString("password"), QVariant("pass"));
conf->setValue(QString("fileraw"), QVariant("raw"));
conf->setValue(QString("filebuttons"), QVariant("ui.sql+"));
- conf->setValue(QString("maxcolumn"), QVariant(2));
+ conf->setValue(QString("maxcolumn"), QVariant(3));
conf->setValue(QString("maxline"), QVariant(3));
conf->setValue(QString("SQLsettings"), QVariant("connect_timeout=10000"));
conf->setValue(QString("buttons"), QVariant("background-color: red;border-style: outset;border-width: 7px;border-radius: 10px;border-color: beige;font: bold 15px;padding: 6px;"));
void MainWindow::sav(const QString & a){
exec(QList<QString> ({conf->value(QString("select")+a).toString()}));
QString tmp="file"+a;
+ savtitle=a;
QFile b(conf->value(tmp).toString());
b.open(QIODevice::WriteOnly);
QTextStream c(&b);
}
void MainWindow::Uisent(){
qDebug()<<"Uisent";
- QMessageBox::information(this, trUtf8("Uisent", "pop-up title when data has been sent"), trUtf8("sav finish", "pop-up text when data has been sent"));
+ Msav.unlock();
+ QMessageBox::information(this, trUtf8("Uisent", "pop-up title when data has been sent"), trUtf8(QString("sav finish of "+savtitle).toStdString().c_str(), "pop-up text when data has been sent"));
}
void MainWindow::resetRAW(){
exec(QList<QString>({"delete from raw;"}));
//QScrollArea * scroll;
QMediaPlayer *video;
QMediaPlaylist *playlist;
- QMutex sql,updatelocker,d;
+ QMutex sql,updatelocker,d,Msav;
QWidget *screen;
QGridLayout *grid;
QLabel *label;
QSettings *conf;
- QString tmp, tmp2, file, lastprint, currenttype;//host, user, tmp, password, servercert,database;
+ QString tmp, tmp2, file, lastprint, currenttype, savtitle;//host, user, tmp, password, servercert,database;
QMenu *FileMenu, *EditMenu, *HackMenu;
QSignalMapper *signalmap;
QStringList way;
QNetworkReply * rep;
bool orienta;//0=portrait 1=paysage (size.width() > size.height())
unsigned short int deb;
+ unsigned int page;
QVideoWidget * videoWidget;
};