| 334 | } |
| 335 | |
| 336 | void MainWindowImpl::openMultipageFile(QString fileName) |
| 337 | { |
| 338 | DialogMultipageEditor *dlg = new DialogMultipageEditor(this); |
| 339 | |
| 340 | statusBar()->showMessage(tr("Analyzing the file. It may take a while, please wait...")); |
| 341 | QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); |
| 342 | dlg->readFile(fileName); |
| 343 | QApplication::restoreOverrideCursor(); |
| 344 | statusBar()->clearMessage(); |
| 345 | |
| 346 | dlg->exec(); |
| 347 | |
| 348 | if (dlg->result() == 1) { |
| 349 | QStringList fileNames = dlg->fileNames(); |
| 350 | loadFiles(fileNames); |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | void MainWindowImpl::dropped(QStringList fileNames, QStringList directories) |
| 355 | { |