| 372 | } |
| 373 | |
| 374 | void LibraryWindow::doDialogs() |
| 375 | { |
| 376 | createLibraryDialog = new CreateLibraryDialog(this); |
| 377 | renameLibraryDialog = new RenameLibraryDialog(this); |
| 378 | propertiesDialog = new PropertiesDialog(this); |
| 379 | comicVineDialog = new ComicVineDialog(this); |
| 380 | exportLibraryDialog = new ExportLibraryDialog(this); |
| 381 | importLibraryDialog = new ImportLibraryDialog(this); |
| 382 | exportComicsInfoDialog = new ExportComicsInfoDialog(this); |
| 383 | importComicsInfoDialog = new ImportComicsInfoDialog(this); |
| 384 | addLibraryDialog = new AddLibraryDialog(this); |
| 385 | optionsDialog = new OptionsDialog(this); |
| 386 | optionsDialog->restoreOptions(settings); |
| 387 | |
| 388 | editShortcutsDialog = new EditShortcutsDialog(this); |
| 389 | actions.setUpShortcutsManagement(editShortcutsDialog); |
| 390 | |
| 391 | #ifdef SERVER_RELEASE |
| 392 | serverConfigDialog = new ServerConfigDialog(this); |
| 393 | #endif |
| 394 | |
| 395 | had = new HelpAboutDialog(this); // TODO load data. |
| 396 | QString sufix = QLocale::system().name(); |
| 397 | if (QFile(":/files/about_" + sufix + ".html").exists()) |
| 398 | had->loadAboutInformation(":/files/about_" + sufix + ".html"); |
| 399 | else |
| 400 | had->loadAboutInformation(":/files/about.html"); |
| 401 | |
| 402 | if (QFile(":/files/helpYACReaderLibrary_" + sufix + ".html").exists()) |
| 403 | had->loadHelp(":/files/helpYACReaderLibrary_" + sufix + ".html"); |
| 404 | else |
| 405 | had->loadHelp(":/files/helpYACReaderLibrary.html"); |
| 406 | } |
| 407 | |
| 408 | void LibraryWindow::doModels() |
| 409 | { |
nothing calls this directly
no test coverage detected