Révision 925ac0ca original.cpp
original.cpp | ||
---|---|---|
1 |
/** Classe original: nom du projet prototype :)
|
|
1 |
/** Classe RyXeo WebPhotoAlbum: fichier principal de l'application
|
|
2 | 2 |
* @see https://redmine.ryxeo.com/projects/ |
3 | 3 |
* @author 2012 Eric Seigne <eric.seigne@ryxeo.com> |
4 | 4 |
* @see The GNU Public License (GNU/GPL) v3 |
... | ... | |
77 | 77 |
|
78 | 78 |
ui->dateEdit->setDate(QDate::currentDate()); |
79 | 79 |
m_tools = new tools(m_baseDir, this); |
80 |
connect(m_tools, SIGNAL(signalUploadEnd()), this, SLOT(uploadEnd())); |
|
80 | 81 |
|
81 | 82 |
//============== l'étiquette invitant a déposer des images |
82 | 83 |
m_labelDeposez = new QLabel(trUtf8("Glissez-déposez ici les photos que vous voulez ajouter à cet album ..."),ui->lwPictures); |
... | ... | |
447 | 448 |
m_tools->parcoursRecursif(dir.absolutePath(),ui->treeWidget->currentItem()->text(0)); |
448 | 449 |
//qDebug() << m_fileListToUpload; |
449 | 450 |
m_tools->uploadRecursifGallery(ui->leFTPDirectory->text()); |
450 |
connect(m_tools, SIGNAL(signalUpload(int,int)), this, SLOT(updateProgressFichier(int,int)));
|
|
451 |
connect(m_tools, SIGNAL(signalUpload(int,int,QString)), this, SLOT(updateProgressFichier(int,int,QString)));
|
|
451 | 452 |
connect(m_tools, SIGNAL(signalUploadData(int,int)), this, SLOT(updateProgressData(int,int))); |
452 | 453 |
} |
453 | 454 |
|
... | ... | |
457 | 458 |
a->show(); |
458 | 459 |
} |
459 | 460 |
|
460 |
void original::updateProgressFichier(int total, int current) |
|
461 |
void original::updateProgressFichier(int total, int current, QString fileName)
|
|
461 | 462 |
{ |
462 | 463 |
ui->pbFTPFichier->setMaximum(total); |
463 | 464 |
ui->pbFTPFichier->setValue(current); |
465 |
ui->textBrowser->append(fileName + "\n"); |
|
464 | 466 |
} |
465 | 467 |
|
466 | 468 |
void original::updateProgressData(int total, int current) |
... | ... | |
506 | 508 |
} |
507 | 509 |
QApplication::restoreOverrideCursor(); |
508 | 510 |
} |
511 |
|
|
512 |
void original::uploadEnd() |
|
513 |
{ |
|
514 |
ui->textBrowser->append(trUtf8("Téléchargement terminé\n")); |
|
515 |
} |
Formats disponibles : Unified diff