| 226 | } |
| 227 | |
| 228 | bool QNapiApp::showScanDialog(QString init_dir) { |
| 229 | if (!f_scan) f_scan = new frmScan(); |
| 230 | |
| 231 | if (f_scan->isVisible()) { |
| 232 | f_scan->raise(); |
| 233 | return false; |
| 234 | } |
| 235 | |
| 236 | f_scan->setInitDir(init_dir); |
| 237 | |
| 238 | bool result = false; |
| 239 | |
| 240 | if (f_scan->exec() == QDialog::Accepted) { |
| 241 | result = true; |
| 242 | progress()->enqueueFiles(f_scan->getSelectedFiles()); |
| 243 | progress()->download(); |
| 244 | } |
| 245 | |
| 246 | delete f_scan; |
| 247 | f_scan = 0; |
| 248 | return result; |
| 249 | } |
| 250 | |
| 251 | void QNapiApp::showConvertDialog() { |
| 252 | if (!f_convert) f_convert = new frmConvert(); |
no test coverage detected