|
|
|
@ -363,25 +363,18 @@ void UBDocumentController::setupViews() |
|
|
|
|
|
|
|
|
|
connect(mDocumentUI->thumbnailWidget, SIGNAL(sceneDropped(UBDocumentProxy*, int, int)), this, SLOT(moveSceneToIndex ( UBDocumentProxy*, int, int))); |
|
|
|
|
connect(mDocumentUI->thumbnailWidget, SIGNAL(resized()), this, SLOT(thumbnailViewResized())); |
|
|
|
|
connect(mDocumentUI->thumbnailWidget, SIGNAL(mouseDoubleClick(QGraphicsItem*, int)), |
|
|
|
|
this, SLOT(pageDoubleClicked(QGraphicsItem*, int))); |
|
|
|
|
connect(mDocumentUI->thumbnailWidget, SIGNAL(mouseClick(QGraphicsItem*, int)), |
|
|
|
|
this, SLOT(pageClicked(QGraphicsItem*, int))); |
|
|
|
|
connect(mDocumentUI->thumbnailWidget, SIGNAL(mouseDoubleClick(QGraphicsItem*, int)), this, SLOT(pageDoubleClicked(QGraphicsItem*, int))); |
|
|
|
|
connect(mDocumentUI->thumbnailWidget, SIGNAL(mouseClick(QGraphicsItem*, int)), this, SLOT(pageClicked(QGraphicsItem*, int))); |
|
|
|
|
|
|
|
|
|
connect(mDocumentUI->thumbnailWidget->scene(), SIGNAL(selectionChanged()), |
|
|
|
|
this, SLOT(pageSelectionChanged())); |
|
|
|
|
connect(mDocumentUI->thumbnailWidget->scene(), SIGNAL(selectionChanged()), this, SLOT(pageSelectionChanged())); |
|
|
|
|
|
|
|
|
|
connect(UBPersistenceManager::persistenceManager(), SIGNAL(documentCreated(UBDocumentProxy*)), |
|
|
|
|
this, SLOT(addDocumentInTree(UBDocumentProxy*))); |
|
|
|
|
connect(UBPersistenceManager::persistenceManager(), SIGNAL(documentCreated(UBDocumentProxy*)), this, SLOT(addDocumentInTree(UBDocumentProxy*))); |
|
|
|
|
|
|
|
|
|
connect(UBPersistenceManager::persistenceManager(), SIGNAL(documentMetadataChanged(UBDocumentProxy*)), |
|
|
|
|
this, SLOT(updateDocumentInTree(UBDocumentProxy*))); |
|
|
|
|
connect(UBPersistenceManager::persistenceManager(), SIGNAL(documentMetadataChanged(UBDocumentProxy*)), this, SLOT(updateDocumentInTree(UBDocumentProxy*))); |
|
|
|
|
|
|
|
|
|
connect(UBPersistenceManager::persistenceManager(), SIGNAL(documentSceneCreated(UBDocumentProxy*, int)), |
|
|
|
|
this, SLOT(documentSceneChanged(UBDocumentProxy*, int))); |
|
|
|
|
connect(UBPersistenceManager::persistenceManager(), SIGNAL(documentSceneCreated(UBDocumentProxy*, int)), this, SLOT(documentSceneChanged(UBDocumentProxy*, int))); |
|
|
|
|
|
|
|
|
|
connect(UBPersistenceManager::persistenceManager(), SIGNAL(documentSceneWillBeDeleted(UBDocumentProxy*, int)), |
|
|
|
|
this, SLOT(documentSceneChanged(UBDocumentProxy*, int))); |
|
|
|
|
connect(UBPersistenceManager::persistenceManager(), SIGNAL(documentSceneWillBeDeleted(UBDocumentProxy*, int)), this, SLOT(documentSceneChanged(UBDocumentProxy*, int))); |
|
|
|
|
|
|
|
|
|
mDocumentUI->thumbnailWidget->setBackgroundBrush(UBSettings::documentViewLightColor); |
|
|
|
|
|
|
|
|
@ -996,7 +989,7 @@ void UBDocumentController::addFolderOfImages() |
|
|
|
|
|
|
|
|
|
if (importedImageNumber == 0) |
|
|
|
|
{ |
|
|
|
|
showMessage(tr("Folder does not contain any image files!")); |
|
|
|
|
showMessage(tr("Folder does not contain any image files")); |
|
|
|
|
UBApplication::applicationController->showDocument(); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|