|
|
|
@ -138,16 +138,16 @@ DigikamApp::DigikamApp()
|
|
|
|
|
|
|
|
|
|
d->cameraMediaList = new TDEPopupMenu;
|
|
|
|
|
|
|
|
|
|
connect(d->cameraMediaList, TQT_SIGNAL( aboutToShow() ),
|
|
|
|
|
this, TQT_SLOT(slotCameraMediaMenu()));
|
|
|
|
|
connect(d->cameraMediaList, TQ_SIGNAL( aboutToShow() ),
|
|
|
|
|
this, TQ_SLOT(slotCameraMediaMenu()));
|
|
|
|
|
|
|
|
|
|
d->cameraList = new CameraList(this, locateLocal("appdata", "cameras.xml"));
|
|
|
|
|
|
|
|
|
|
connect(d->cameraList, TQT_SIGNAL(signalCameraAdded(CameraType *)),
|
|
|
|
|
this, TQT_SLOT(slotCameraAdded(CameraType *)));
|
|
|
|
|
connect(d->cameraList, TQ_SIGNAL(signalCameraAdded(CameraType *)),
|
|
|
|
|
this, TQ_SLOT(slotCameraAdded(CameraType *)));
|
|
|
|
|
|
|
|
|
|
connect(d->cameraList, TQT_SIGNAL(signalCameraRemoved(CameraType *)),
|
|
|
|
|
this, TQT_SLOT(slotCameraRemoved(CameraType *)));
|
|
|
|
|
connect(d->cameraList, TQ_SIGNAL(signalCameraRemoved(CameraType *)),
|
|
|
|
|
this, TQ_SLOT(slotCameraRemoved(CameraType *)));
|
|
|
|
|
|
|
|
|
|
setupView();
|
|
|
|
|
setupStatusBar();
|
|
|
|
@ -193,11 +193,11 @@ DigikamApp::DigikamApp()
|
|
|
|
|
|
|
|
|
|
d->dcopIface = new DCOPIface(this, "camera");
|
|
|
|
|
|
|
|
|
|
connect(d->dcopIface, TQT_SIGNAL(signalCameraAutoDetect()),
|
|
|
|
|
this, TQT_SLOT(slotDcopCameraAutoDetect()));
|
|
|
|
|
connect(d->dcopIface, TQ_SIGNAL(signalCameraAutoDetect()),
|
|
|
|
|
this, TQ_SLOT(slotDcopCameraAutoDetect()));
|
|
|
|
|
|
|
|
|
|
connect(d->dcopIface, TQT_SIGNAL(signalDownloadImages( const TQString & )),
|
|
|
|
|
this, TQT_SLOT(slotDcopDownloadImages(const TQString &)));
|
|
|
|
|
connect(d->dcopIface, TQ_SIGNAL(signalDownloadImages( const TQString & )),
|
|
|
|
|
this, TQ_SLOT(slotDcopDownloadImages(const TQString &)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DigikamApp::~DigikamApp()
|
|
|
|
@ -329,7 +329,7 @@ void DigikamApp::autoDetect()
|
|
|
|
|
if(d->splashScreen)
|
|
|
|
|
d->splashScreen->message(i18n("Auto-detect camera"));
|
|
|
|
|
|
|
|
|
|
TQTimer::singleShot(0, this, TQT_SLOT(slotCameraAutoDetect()));
|
|
|
|
|
TQTimer::singleShot(0, this, TQ_SLOT(slotCameraAutoDetect()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DigikamApp::downloadFrom(const TQString &cameraGuiPath)
|
|
|
|
@ -343,7 +343,7 @@ void DigikamApp::downloadFrom(const TQString &cameraGuiPath)
|
|
|
|
|
if(d->splashScreen)
|
|
|
|
|
d->splashScreen->message(i18n("Opening Download Dialog"));
|
|
|
|
|
|
|
|
|
|
TQTimer::singleShot(0, this, TQT_SLOT(slotDownloadImages()));
|
|
|
|
|
TQTimer::singleShot(0, this, TQ_SLOT(slotDownloadImages()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -366,14 +366,14 @@ void DigikamApp::setupView()
|
|
|
|
|
setCentralWidget(d->view);
|
|
|
|
|
d->view->applySettings();
|
|
|
|
|
|
|
|
|
|
connect(d->view, TQT_SIGNAL(signalAlbumSelected(bool)),
|
|
|
|
|
this, TQT_SLOT(slotAlbumSelected(bool)));
|
|
|
|
|
connect(d->view, TQ_SIGNAL(signalAlbumSelected(bool)),
|
|
|
|
|
this, TQ_SLOT(slotAlbumSelected(bool)));
|
|
|
|
|
|
|
|
|
|
connect(d->view, TQT_SIGNAL(signalTagSelected(bool)),
|
|
|
|
|
this, TQT_SLOT(slotTagSelected(bool)));
|
|
|
|
|
connect(d->view, TQ_SIGNAL(signalTagSelected(bool)),
|
|
|
|
|
this, TQ_SLOT(slotTagSelected(bool)));
|
|
|
|
|
|
|
|
|
|
connect(d->view, TQT_SIGNAL(signalImageSelected(const TQPtrList<ImageInfo>&, bool, bool, const KURL::List&)),
|
|
|
|
|
this, TQT_SLOT(slotImageSelected(const TQPtrList<ImageInfo>&, bool, bool, const KURL::List&)));
|
|
|
|
|
connect(d->view, TQ_SIGNAL(signalImageSelected(const TQPtrList<ImageInfo>&, bool, bool, const KURL::List&)),
|
|
|
|
|
this, TQ_SLOT(slotImageSelected(const TQPtrList<ImageInfo>&, bool, bool, const KURL::List&)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DigikamApp::setupStatusBar()
|
|
|
|
@ -403,41 +403,41 @@ void DigikamApp::setupStatusBar()
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
connect(d->statusZoomBar, TQT_SIGNAL(signalZoomMinusClicked()),
|
|
|
|
|
d->view, TQT_SLOT(slotZoomOut()));
|
|
|
|
|
connect(d->statusZoomBar, TQ_SIGNAL(signalZoomMinusClicked()),
|
|
|
|
|
d->view, TQ_SLOT(slotZoomOut()));
|
|
|
|
|
|
|
|
|
|
connect(d->statusZoomBar, TQT_SIGNAL(signalZoomPlusClicked()),
|
|
|
|
|
d->view, TQT_SLOT(slotZoomIn()));
|
|
|
|
|
connect(d->statusZoomBar, TQ_SIGNAL(signalZoomPlusClicked()),
|
|
|
|
|
d->view, TQ_SLOT(slotZoomIn()));
|
|
|
|
|
|
|
|
|
|
connect(d->statusZoomBar, TQT_SIGNAL(signalZoomSliderChanged(int)),
|
|
|
|
|
this, TQT_SLOT(slotZoomSliderChanged(int)));
|
|
|
|
|
connect(d->statusZoomBar, TQ_SIGNAL(signalZoomSliderChanged(int)),
|
|
|
|
|
this, TQ_SLOT(slotZoomSliderChanged(int)));
|
|
|
|
|
|
|
|
|
|
connect(d->view, TQT_SIGNAL(signalThumbSizeChanged(int)),
|
|
|
|
|
this, TQT_SLOT(slotThumbSizeChanged(int)));
|
|
|
|
|
connect(d->view, TQ_SIGNAL(signalThumbSizeChanged(int)),
|
|
|
|
|
this, TQ_SLOT(slotThumbSizeChanged(int)));
|
|
|
|
|
|
|
|
|
|
connect(d->view, TQT_SIGNAL(signalZoomChanged(double, int)),
|
|
|
|
|
this, TQT_SLOT(slotZoomChanged(double, int)));
|
|
|
|
|
connect(d->view, TQ_SIGNAL(signalZoomChanged(double, int)),
|
|
|
|
|
this, TQ_SLOT(slotZoomChanged(double, int)));
|
|
|
|
|
|
|
|
|
|
connect(d->view, TQT_SIGNAL(signalTogglePreview(bool)),
|
|
|
|
|
this, TQT_SLOT(slotTogglePreview(bool)));
|
|
|
|
|
connect(d->view, TQ_SIGNAL(signalTogglePreview(bool)),
|
|
|
|
|
this, TQ_SLOT(slotTogglePreview(bool)));
|
|
|
|
|
|
|
|
|
|
connect(d->albumIconViewFilter, TQT_SIGNAL(signalResetTagFilters()),
|
|
|
|
|
this, TQT_SIGNAL(signalResetTagFilters()));
|
|
|
|
|
connect(d->albumIconViewFilter, TQ_SIGNAL(signalResetTagFilters()),
|
|
|
|
|
this, TQ_SIGNAL(signalResetTagFilters()));
|
|
|
|
|
|
|
|
|
|
connect(d->statusNavigateBar, TQT_SIGNAL(signalFirstItem()),
|
|
|
|
|
d->view, TQT_SLOT(slotFirstItem()));
|
|
|
|
|
connect(d->statusNavigateBar, TQ_SIGNAL(signalFirstItem()),
|
|
|
|
|
d->view, TQ_SLOT(slotFirstItem()));
|
|
|
|
|
|
|
|
|
|
connect(d->statusNavigateBar, TQT_SIGNAL(signalNextItem()),
|
|
|
|
|
d->view, TQT_SLOT(slotNextItem()));
|
|
|
|
|
connect(d->statusNavigateBar, TQ_SIGNAL(signalNextItem()),
|
|
|
|
|
d->view, TQ_SLOT(slotNextItem()));
|
|
|
|
|
|
|
|
|
|
connect(d->statusNavigateBar, TQT_SIGNAL(signalPrevItem()),
|
|
|
|
|
d->view, TQT_SLOT(slotPrevItem()));
|
|
|
|
|
connect(d->statusNavigateBar, TQ_SIGNAL(signalPrevItem()),
|
|
|
|
|
d->view, TQ_SLOT(slotPrevItem()));
|
|
|
|
|
|
|
|
|
|
connect(d->statusNavigateBar, TQT_SIGNAL(signalLastItem()),
|
|
|
|
|
d->view, TQT_SLOT(slotLastItem()));
|
|
|
|
|
connect(d->statusNavigateBar, TQ_SIGNAL(signalLastItem()),
|
|
|
|
|
d->view, TQ_SLOT(slotLastItem()));
|
|
|
|
|
|
|
|
|
|
connect(d->statusProgressBar, TQT_SIGNAL(signalCancelButtonPressed()),
|
|
|
|
|
this, TQT_SIGNAL(signalCancelButtonPressed()));
|
|
|
|
|
connect(d->statusProgressBar, TQ_SIGNAL(signalCancelButtonPressed()),
|
|
|
|
|
this, TQ_SIGNAL(signalCancelButtonPressed()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DigikamApp::setupAccelerators()
|
|
|
|
@ -446,52 +446,52 @@ void DigikamApp::setupAccelerators()
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Exit Preview Mode", i18n("Exit Preview"),
|
|
|
|
|
i18n("Exit preview mode"),
|
|
|
|
|
Key_Escape, this, TQT_SIGNAL(signalEscapePressed()),
|
|
|
|
|
Key_Escape, this, TQ_SIGNAL(signalEscapePressed()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Next Image Key_Space", i18n("Next Image"),
|
|
|
|
|
i18n("Next Image"),
|
|
|
|
|
Key_Space, this, TQT_SIGNAL(signalNextItem()),
|
|
|
|
|
Key_Space, this, TQ_SIGNAL(signalNextItem()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Previous Image SHIFT+Key_Space", i18n("Previous Image"),
|
|
|
|
|
i18n("Previous Image"),
|
|
|
|
|
SHIFT+Key_Space, this, TQT_SIGNAL(signalPrevItem()),
|
|
|
|
|
SHIFT+Key_Space, this, TQ_SIGNAL(signalPrevItem()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Previous Image Key_Backspace", i18n("Previous Image"),
|
|
|
|
|
i18n("Previous Image"),
|
|
|
|
|
Key_Backspace, this, TQT_SIGNAL(signalPrevItem()),
|
|
|
|
|
Key_Backspace, this, TQ_SIGNAL(signalPrevItem()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Next Image Key_Next", i18n("Next Image"),
|
|
|
|
|
i18n("Next Image"),
|
|
|
|
|
Key_Next, this, TQT_SIGNAL(signalNextItem()),
|
|
|
|
|
Key_Next, this, TQ_SIGNAL(signalNextItem()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Previous Image Key_Prior", i18n("Previous Image"),
|
|
|
|
|
i18n("Previous Image"),
|
|
|
|
|
Key_Prior, this, TQT_SIGNAL(signalPrevItem()),
|
|
|
|
|
Key_Prior, this, TQ_SIGNAL(signalPrevItem()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("First Image Key_Home", i18n("First Image"),
|
|
|
|
|
i18n("First Image"),
|
|
|
|
|
Key_Home, this, TQT_SIGNAL(signalFirstItem()),
|
|
|
|
|
Key_Home, this, TQ_SIGNAL(signalFirstItem()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Last Image Key_End", i18n("Last Image"),
|
|
|
|
|
i18n("Last Image"),
|
|
|
|
|
Key_End, this, TQT_SIGNAL(signalLastItem()),
|
|
|
|
|
Key_End, this, TQ_SIGNAL(signalLastItem()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Copy Album Items Selection CTRL+Key_C", i18n("Copy Album Items Selection"),
|
|
|
|
|
i18n("Copy Album Items Selection"),
|
|
|
|
|
CTRL+Key_C, this, TQT_SIGNAL(signalCopyAlbumItemsSelection()),
|
|
|
|
|
CTRL+Key_C, this, TQ_SIGNAL(signalCopyAlbumItemsSelection()),
|
|
|
|
|
false, true);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Paste Album Items Selection CTRL+Key_V", i18n("Paste Album Items Selection"),
|
|
|
|
|
i18n("Paste Album Items Selection"),
|
|
|
|
|
CTRL+Key_V, this, TQT_SIGNAL(signalPasteAlbumItemsSelection()),
|
|
|
|
|
CTRL+Key_V, this, TQ_SIGNAL(signalPasteAlbumItemsSelection()),
|
|
|
|
|
false, true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -508,11 +508,11 @@ void DigikamApp::setupActions()
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->themeMenuAction = new TDESelectAction(i18n("&Themes"), 0, actionCollection(), "theme_menu");
|
|
|
|
|
connect(d->themeMenuAction, TQT_SIGNAL(activated(const TQString&)),
|
|
|
|
|
this, TQT_SLOT(slotChangeTheme(const TQString&)));
|
|
|
|
|
connect(d->themeMenuAction, TQ_SIGNAL(activated(const TQString&)),
|
|
|
|
|
this, TQ_SLOT(slotChangeTheme(const TQString&)));
|
|
|
|
|
|
|
|
|
|
connect(ThemeEngine::instance(), TQT_SIGNAL(signalThemeChanged()),
|
|
|
|
|
this, TQT_SLOT(slotThemeChanged()));
|
|
|
|
|
connect(ThemeEngine::instance(), TQ_SIGNAL(signalThemeChanged()),
|
|
|
|
|
this, TQ_SLOT(slotThemeChanged()));
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
@ -520,37 +520,37 @@ void DigikamApp::setupActions()
|
|
|
|
|
"back",
|
|
|
|
|
ALT+Key_Left,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotAlbumHistoryBack()),
|
|
|
|
|
TQ_SLOT(slotAlbumHistoryBack()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_back");
|
|
|
|
|
d->backwardActionMenu->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
connect(d->backwardActionMenu->popupMenu(), TQT_SIGNAL(aboutToShow()),
|
|
|
|
|
this, TQT_SLOT(slotAboutToShowBackwardMenu()));
|
|
|
|
|
connect(d->backwardActionMenu->popupMenu(), TQ_SIGNAL(aboutToShow()),
|
|
|
|
|
this, TQ_SLOT(slotAboutToShowBackwardMenu()));
|
|
|
|
|
|
|
|
|
|
connect(d->backwardActionMenu->popupMenu(), TQT_SIGNAL(activated(int)),
|
|
|
|
|
d->view, TQT_SLOT(slotAlbumHistoryBack(int)));
|
|
|
|
|
connect(d->backwardActionMenu->popupMenu(), TQ_SIGNAL(activated(int)),
|
|
|
|
|
d->view, TQ_SLOT(slotAlbumHistoryBack(int)));
|
|
|
|
|
|
|
|
|
|
d->forwardActionMenu = new TDEToolBarPopupAction(i18n("Forward"),
|
|
|
|
|
"forward",
|
|
|
|
|
ALT+Key_Right,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotAlbumHistoryForward()),
|
|
|
|
|
TQ_SLOT(slotAlbumHistoryForward()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_forward");
|
|
|
|
|
d->forwardActionMenu->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
connect(d->forwardActionMenu->popupMenu(), TQT_SIGNAL(aboutToShow()),
|
|
|
|
|
this, TQT_SLOT(slotAboutToShowForwardMenu()));
|
|
|
|
|
connect(d->forwardActionMenu->popupMenu(), TQ_SIGNAL(aboutToShow()),
|
|
|
|
|
this, TQ_SLOT(slotAboutToShowForwardMenu()));
|
|
|
|
|
|
|
|
|
|
connect(d->forwardActionMenu->popupMenu(), TQT_SIGNAL(activated(int)),
|
|
|
|
|
d->view, TQT_SLOT(slotAlbumHistoryForward(int)));
|
|
|
|
|
connect(d->forwardActionMenu->popupMenu(), TQ_SIGNAL(activated(int)),
|
|
|
|
|
d->view, TQ_SLOT(slotAlbumHistoryForward(int)));
|
|
|
|
|
|
|
|
|
|
d->newAction = new TDEAction(i18n("&New..."),
|
|
|
|
|
"albumfolder-new",
|
|
|
|
|
TDEStdAccel::shortcut(TDEStdAccel::New),
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotNewAlbum()),
|
|
|
|
|
TQ_SLOT(slotNewAlbum()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_new");
|
|
|
|
|
d->newAction->setWhatsThis(i18n("Creates a new empty Album in the database."));
|
|
|
|
@ -561,8 +561,8 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_sort");
|
|
|
|
|
|
|
|
|
|
connect(d->albumSortAction, TQT_SIGNAL(activated(int)),
|
|
|
|
|
d->view, TQT_SLOT(slotSortAlbums(int)));
|
|
|
|
|
connect(d->albumSortAction, TQ_SIGNAL(activated(int)),
|
|
|
|
|
d->view, TQ_SLOT(slotSortAlbums(int)));
|
|
|
|
|
|
|
|
|
|
// Use same list order as in albumsettings enum
|
|
|
|
|
TQStringList sortActionList;
|
|
|
|
@ -580,8 +580,8 @@ void DigikamApp::setupActions()
|
|
|
|
|
d->recurseAlbumsAction->setWhatsThis(i18n("Activate this option to recursively show all sub-albums below "
|
|
|
|
|
"the current album."));
|
|
|
|
|
|
|
|
|
|
connect(d->recurseAlbumsAction, TQT_SIGNAL(toggled(bool)),
|
|
|
|
|
this, TQT_SLOT(slotRecurseAlbums(bool)));
|
|
|
|
|
connect(d->recurseAlbumsAction, TQ_SIGNAL(toggled(bool)),
|
|
|
|
|
this, TQ_SLOT(slotRecurseAlbums(bool)));
|
|
|
|
|
|
|
|
|
|
d->recurseTagsAction = new TDEToggleAction(i18n("Include Tag Sub-Tree"),
|
|
|
|
|
0,
|
|
|
|
@ -592,14 +592,14 @@ void DigikamApp::setupActions()
|
|
|
|
|
d->recurseTagsAction->setWhatsThis(i18n("Activate this option to show all images marked by the given tag "
|
|
|
|
|
"and its all its sub-tags."));
|
|
|
|
|
|
|
|
|
|
connect(d->recurseTagsAction, TQT_SIGNAL(toggled(bool)),
|
|
|
|
|
this, TQT_SLOT(slotRecurseTags(bool)));
|
|
|
|
|
connect(d->recurseTagsAction, TQ_SIGNAL(toggled(bool)),
|
|
|
|
|
this, TQ_SLOT(slotRecurseTags(bool)));
|
|
|
|
|
|
|
|
|
|
d->deleteAction = new TDEAction(i18n("Delete"),
|
|
|
|
|
"edit-delete",
|
|
|
|
|
0,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotDeleteAlbum()),
|
|
|
|
|
TQ_SLOT(slotDeleteAlbum()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_delete");
|
|
|
|
|
|
|
|
|
@ -607,7 +607,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"albumfolder-importimages",
|
|
|
|
|
CTRL+Key_I,
|
|
|
|
|
this,
|
|
|
|
|
TQT_SLOT(slotAlbumAddImages()),
|
|
|
|
|
TQ_SLOT(slotAlbumAddImages()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_addImages");
|
|
|
|
|
d->addImagesAction->setWhatsThis(i18n("Adds new items to the current Album."));
|
|
|
|
@ -616,7 +616,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"albumfolder-importdir",
|
|
|
|
|
0,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotAlbumImportFolder()),
|
|
|
|
|
TQ_SLOT(slotAlbumImportFolder()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_importFolder");
|
|
|
|
|
|
|
|
|
@ -624,7 +624,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"albumfolder-properties",
|
|
|
|
|
0,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotAlbumPropsEdit()),
|
|
|
|
|
TQ_SLOT(slotAlbumPropsEdit()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_propsEdit");
|
|
|
|
|
d->propsEditAction->setWhatsThis(i18n("Edit Album Properties and Collection information."));
|
|
|
|
@ -633,7 +633,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"rebuild",
|
|
|
|
|
Key_F5,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotAlbumRefresh()),
|
|
|
|
|
TQ_SLOT(slotAlbumRefresh()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_refresh");
|
|
|
|
|
d->refreshAlbumAction->setWhatsThis(i18n("Refresh all album contents"));
|
|
|
|
@ -642,7 +642,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"rebuild",
|
|
|
|
|
0,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotAlbumSyncPicturesMetadata()),
|
|
|
|
|
TQ_SLOT(slotAlbumSyncPicturesMetadata()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_syncmetadata");
|
|
|
|
|
d->syncAlbumMetadataAction->setWhatsThis(i18n("Updates all image metadata of the current "
|
|
|
|
@ -653,22 +653,22 @@ void DigikamApp::setupActions()
|
|
|
|
|
"konqueror",
|
|
|
|
|
0,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotAlbumOpenInKonqui()),
|
|
|
|
|
TQ_SLOT(slotAlbumOpenInKonqui()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_openinkonqui");
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->newTagAction = new TDEAction(i18n("New &Tag..."), "tag-new",
|
|
|
|
|
0, d->view, TQT_SLOT(slotNewTag()),
|
|
|
|
|
0, d->view, TQ_SLOT(slotNewTag()),
|
|
|
|
|
actionCollection(), "tag_new");
|
|
|
|
|
|
|
|
|
|
d->editTagAction = new TDEAction(i18n("Edit Tag Properties..."), "tag-properties",
|
|
|
|
|
0, d->view, TQT_SLOT(slotEditTag()),
|
|
|
|
|
0, d->view, TQ_SLOT(slotEditTag()),
|
|
|
|
|
actionCollection(), "tag_edit");
|
|
|
|
|
|
|
|
|
|
d->deleteTagAction = new TDEAction(i18n("Delete Tag"), "tag-delete",
|
|
|
|
|
0, d->view, TQT_SLOT(slotDeleteTag()),
|
|
|
|
|
0, d->view, TQ_SLOT(slotDeleteTag()),
|
|
|
|
|
actionCollection(), "tag_delete");
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
@ -677,7 +677,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"viewimage",
|
|
|
|
|
Key_F3,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImagePreview()),
|
|
|
|
|
TQ_SLOT(slotImagePreview()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_view");
|
|
|
|
|
|
|
|
|
@ -685,7 +685,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"editimage",
|
|
|
|
|
Key_F4,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImageEdit()),
|
|
|
|
|
TQ_SLOT(slotImageEdit()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_edit");
|
|
|
|
|
d->imageViewAction->setWhatsThis(i18n("Open the selected item in the image editor."));
|
|
|
|
@ -694,7 +694,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"lighttable",
|
|
|
|
|
CTRL+Key_L,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImageLightTable()),
|
|
|
|
|
TQ_SLOT(slotImageLightTable()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_lighttable");
|
|
|
|
|
d->imageLightTableAction->setWhatsThis(i18n("Place the selected items on the light table thumbbar."));
|
|
|
|
@ -703,7 +703,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"lighttableadd",
|
|
|
|
|
SHIFT+CTRL+Key_L,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImageAddToLightTable()),
|
|
|
|
|
TQ_SLOT(slotImageAddToLightTable()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_add_to_lighttable");
|
|
|
|
|
d->imageAddLightTableAction->setWhatsThis(i18n("Add selected items to the light table thumbbar."));
|
|
|
|
@ -712,7 +712,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"pencil",
|
|
|
|
|
Key_F2,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImageRename()),
|
|
|
|
|
TQ_SLOT(slotImageRename()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_rename");
|
|
|
|
|
d->imageRenameAction->setWhatsThis(i18n("Change the filename of the currently selected item."));
|
|
|
|
@ -722,7 +722,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"edittrash",
|
|
|
|
|
Key_Delete,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImageDelete()),
|
|
|
|
|
TQ_SLOT(slotImageDelete()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_delete");
|
|
|
|
|
|
|
|
|
@ -731,7 +731,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"edit-delete",
|
|
|
|
|
SHIFT+Key_Delete,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImageDeletePermanently()),
|
|
|
|
|
TQ_SLOT(slotImageDeletePermanently()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_delete_permanently");
|
|
|
|
|
|
|
|
|
@ -741,7 +741,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"edit-delete",
|
|
|
|
|
0,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImageDeletePermanentlyDirectly()),
|
|
|
|
|
TQ_SLOT(slotImageDeletePermanentlyDirectly()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_delete_permanently_directly");
|
|
|
|
|
|
|
|
|
@ -749,7 +749,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"edittrash",
|
|
|
|
|
0,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotImageTrashDirectly()),
|
|
|
|
|
TQ_SLOT(slotImageTrashDirectly()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_trash_directly");
|
|
|
|
|
|
|
|
|
@ -759,8 +759,8 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_sort");
|
|
|
|
|
|
|
|
|
|
connect(d->imageSortAction, TQT_SIGNAL(activated(int)),
|
|
|
|
|
d->view, TQT_SLOT(slotSortImages(int)));
|
|
|
|
|
connect(d->imageSortAction, TQ_SIGNAL(activated(int)),
|
|
|
|
|
d->view, TQ_SLOT(slotSortImages(int)));
|
|
|
|
|
|
|
|
|
|
// Use same list order as in albumsettings enum
|
|
|
|
|
TQStringList sortImagesActionList;
|
|
|
|
@ -775,8 +775,8 @@ void DigikamApp::setupActions()
|
|
|
|
|
|
|
|
|
|
TQSignalMapper *exifOrientationMapper = new TQSignalMapper( d->view );
|
|
|
|
|
|
|
|
|
|
connect(exifOrientationMapper, TQT_SIGNAL(mapped(int) ),
|
|
|
|
|
d->view, TQT_SLOT(slotImageExifOrientation(int)));
|
|
|
|
|
connect(exifOrientationMapper, TQ_SIGNAL(mapped(int) ),
|
|
|
|
|
d->view, TQ_SLOT(slotImageExifOrientation(int)));
|
|
|
|
|
|
|
|
|
|
d->imageExifOrientationActionMenu = new TDEActionMenu(i18n("Adjust Exif orientation tag"),
|
|
|
|
|
actionCollection(),
|
|
|
|
@ -841,29 +841,29 @@ void DigikamApp::setupActions()
|
|
|
|
|
d->imageExifOrientationActionMenu->insert(d->imageSetExifOrientation7Action);
|
|
|
|
|
d->imageExifOrientationActionMenu->insert(d->imageSetExifOrientation8Action);
|
|
|
|
|
|
|
|
|
|
connect(d->imageSetExifOrientation1Action, TQT_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQT_SLOT(map()));
|
|
|
|
|
connect(d->imageSetExifOrientation1Action, TQ_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
connect(d->imageSetExifOrientation2Action, TQT_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQT_SLOT(map()));
|
|
|
|
|
connect(d->imageSetExifOrientation2Action, TQ_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
connect(d->imageSetExifOrientation3Action, TQT_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQT_SLOT(map()));
|
|
|
|
|
connect(d->imageSetExifOrientation3Action, TQ_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
connect(d->imageSetExifOrientation4Action, TQT_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQT_SLOT(map()));
|
|
|
|
|
connect(d->imageSetExifOrientation4Action, TQ_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
connect(d->imageSetExifOrientation5Action, TQT_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQT_SLOT(map()));
|
|
|
|
|
connect(d->imageSetExifOrientation5Action, TQ_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
connect(d->imageSetExifOrientation6Action, TQT_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQT_SLOT(map()));
|
|
|
|
|
connect(d->imageSetExifOrientation6Action, TQ_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
connect(d->imageSetExifOrientation7Action, TQT_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQT_SLOT(map()));
|
|
|
|
|
connect(d->imageSetExifOrientation7Action, TQ_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
connect(d->imageSetExifOrientation8Action, TQT_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQT_SLOT(map()));
|
|
|
|
|
connect(d->imageSetExifOrientation8Action, TQ_SIGNAL(activated()),
|
|
|
|
|
exifOrientationMapper, TQ_SLOT(map()));
|
|
|
|
|
|
|
|
|
|
exifOrientationMapper->setMapping(d->imageSetExifOrientation1Action, 1);
|
|
|
|
|
exifOrientationMapper->setMapping(d->imageSetExifOrientation2Action, 2);
|
|
|
|
@ -880,7 +880,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
0,
|
|
|
|
|
CTRL+Key_A,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotSelectAll()),
|
|
|
|
|
TQ_SLOT(slotSelectAll()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"selectAll");
|
|
|
|
|
|
|
|
|
@ -888,7 +888,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
0,
|
|
|
|
|
CTRL+SHIFT+Key_A,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotSelectNone()),
|
|
|
|
|
TQ_SLOT(slotSelectNone()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"selectNone");
|
|
|
|
|
|
|
|
|
@ -896,17 +896,17 @@ void DigikamApp::setupActions()
|
|
|
|
|
0,
|
|
|
|
|
CTRL+Key_Asterisk,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotSelectInvert()),
|
|
|
|
|
TQ_SLOT(slotSelectInvert()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"selectInvert");
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->showMenuBarAction = KStdAction::showMenubar(this, TQT_SLOT(slotShowMenuBar()), actionCollection());
|
|
|
|
|
d->showMenuBarAction = KStdAction::showMenubar(this, TQ_SLOT(slotShowMenuBar()), actionCollection());
|
|
|
|
|
|
|
|
|
|
KStdAction::keyBindings(this, TQT_SLOT(slotEditKeys()), actionCollection());
|
|
|
|
|
KStdAction::configureToolbars(this, TQT_SLOT(slotConfToolbars()), actionCollection());
|
|
|
|
|
KStdAction::preferences(this, TQT_SLOT(slotSetup()), actionCollection());
|
|
|
|
|
KStdAction::keyBindings(this, TQ_SLOT(slotEditKeys()), actionCollection());
|
|
|
|
|
KStdAction::configureToolbars(this, TQ_SLOT(slotConfToolbars()), actionCollection());
|
|
|
|
|
KStdAction::preferences(this, TQ_SLOT(slotSetup()), actionCollection());
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
|
|
|
|
|
@ -914,7 +914,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"zoom-in",
|
|
|
|
|
CTRL+Key_Plus,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotZoomIn()),
|
|
|
|
|
TQ_SLOT(slotZoomIn()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_zoomin");
|
|
|
|
|
|
|
|
|
@ -922,7 +922,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"zoom-out",
|
|
|
|
|
CTRL+Key_Minus,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotZoomOut()),
|
|
|
|
|
TQ_SLOT(slotZoomOut()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_zoomout");
|
|
|
|
|
|
|
|
|
@ -930,7 +930,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"zoom-original",
|
|
|
|
|
ALT+CTRL+Key_0, // NOTE: Photoshop 7 use ALT+CTRL+0.
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotZoomTo100Percents()),
|
|
|
|
|
TQ_SLOT(slotZoomTo100Percents()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_zoomto100percents");
|
|
|
|
|
|
|
|
|
@ -938,7 +938,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"view_fit_window",
|
|
|
|
|
CTRL+SHIFT+Key_E,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotFitToWindow()),
|
|
|
|
|
TQ_SLOT(slotFitToWindow()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_zoomfit2window");
|
|
|
|
|
|
|
|
|
@ -947,7 +947,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"view-fullscreen",
|
|
|
|
|
CTRL+SHIFT+Key_F,
|
|
|
|
|
this,
|
|
|
|
|
TQT_SLOT(slotToggleFullScreen()),
|
|
|
|
|
TQ_SLOT(slotToggleFullScreen()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"full_screen");
|
|
|
|
|
d->fullScreenAction->setWhatsThis(i18n("Switch the window to full screen mode"));
|
|
|
|
@ -958,26 +958,26 @@ void DigikamApp::setupActions()
|
|
|
|
|
d->slideShowAction->setDelayed(false);
|
|
|
|
|
|
|
|
|
|
d->slideShowAllAction = new TDEAction(i18n("All"), 0, Key_F9,
|
|
|
|
|
d->view, TQT_SLOT(slotSlideShowAll()),
|
|
|
|
|
d->view, TQ_SLOT(slotSlideShowAll()),
|
|
|
|
|
actionCollection(), "slideshow_all");
|
|
|
|
|
d->slideShowAction->insert(d->slideShowAllAction);
|
|
|
|
|
|
|
|
|
|
d->slideShowSelectionAction = new TDEAction(i18n("Selection"), 0, ALT+Key_F9,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotSlideShowSelection()),
|
|
|
|
|
TQ_SLOT(slotSlideShowSelection()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"slideshow_selected");
|
|
|
|
|
d->slideShowAction->insert(d->slideShowSelectionAction);
|
|
|
|
|
|
|
|
|
|
d->slideShowRecursiveAction = new TDEAction(i18n("With All Sub-Albums"), 0, SHIFT+Key_F9,
|
|
|
|
|
d->view,
|
|
|
|
|
TQT_SLOT(slotSlideShowRecursive()),
|
|
|
|
|
TQ_SLOT(slotSlideShowRecursive()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"slideshow_recursive");
|
|
|
|
|
d->slideShowAction->insert(d->slideShowRecursiveAction);
|
|
|
|
|
|
|
|
|
|
d->quitAction = KStdAction::quit(this,
|
|
|
|
|
TQT_SLOT(slotExit()),
|
|
|
|
|
TQ_SLOT(slotExit()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"app_exit");
|
|
|
|
|
|
|
|
|
@ -985,7 +985,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"kdcraw",
|
|
|
|
|
0,
|
|
|
|
|
this,
|
|
|
|
|
TQT_SLOT(slotRawCameraList()),
|
|
|
|
|
TQ_SLOT(slotRawCameraList()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"help_rawcameralist");
|
|
|
|
|
|
|
|
|
@ -993,12 +993,12 @@ void DigikamApp::setupActions()
|
|
|
|
|
"kipi",
|
|
|
|
|
0,
|
|
|
|
|
this,
|
|
|
|
|
TQT_SLOT(slotShowKipiHelp()),
|
|
|
|
|
TQ_SLOT(slotShowKipiHelp()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"help_kipi");
|
|
|
|
|
|
|
|
|
|
d->tipAction = KStdAction::tipOfDay(this,
|
|
|
|
|
TQT_SLOT(slotShowTip()),
|
|
|
|
|
TQ_SLOT(slotShowTip()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"help_tipofday");
|
|
|
|
|
|
|
|
|
@ -1006,13 +1006,13 @@ void DigikamApp::setupActions()
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
this,
|
|
|
|
|
TQT_SLOT(slotDonateMoney()),
|
|
|
|
|
TQ_SLOT(slotDonateMoney()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"help_donatemoney");
|
|
|
|
|
|
|
|
|
|
d->contributeAction = new TDEAction(i18n("Contribute..."),
|
|
|
|
|
0, 0,
|
|
|
|
|
this, TQT_SLOT(slotContribute()),
|
|
|
|
|
this, TQ_SLOT(slotContribute()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"help_contribute");
|
|
|
|
|
|
|
|
|
@ -1021,50 +1021,50 @@ void DigikamApp::setupActions()
|
|
|
|
|
// -- Rating actions ---------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->rating0Star = new TDEAction(i18n("Assign Rating \"No Stars\""), CTRL+Key_0,
|
|
|
|
|
d->view, TQT_SLOT(slotAssignRatingNoStar()),
|
|
|
|
|
d->view, TQ_SLOT(slotAssignRatingNoStar()),
|
|
|
|
|
actionCollection(), "ratenostar");
|
|
|
|
|
d->rating1Star = new TDEAction(i18n("Assign Rating \"One Star\""), CTRL+Key_1,
|
|
|
|
|
d->view, TQT_SLOT(slotAssignRatingOneStar()),
|
|
|
|
|
d->view, TQ_SLOT(slotAssignRatingOneStar()),
|
|
|
|
|
actionCollection(), "rateonestar");
|
|
|
|
|
d->rating2Star = new TDEAction(i18n("Assign Rating \"Two Stars\""), CTRL+Key_2,
|
|
|
|
|
d->view, TQT_SLOT(slotAssignRatingTwoStar()),
|
|
|
|
|
d->view, TQ_SLOT(slotAssignRatingTwoStar()),
|
|
|
|
|
actionCollection(), "ratetwostar");
|
|
|
|
|
d->rating3Star = new TDEAction(i18n("Assign Rating \"Three Stars\""), CTRL+Key_3,
|
|
|
|
|
d->view, TQT_SLOT(slotAssignRatingThreeStar()),
|
|
|
|
|
d->view, TQ_SLOT(slotAssignRatingThreeStar()),
|
|
|
|
|
actionCollection(), "ratethreestar");
|
|
|
|
|
d->rating4Star = new TDEAction(i18n("Assign Rating \"Four Stars\""), CTRL+Key_4,
|
|
|
|
|
d->view, TQT_SLOT(slotAssignRatingFourStar()),
|
|
|
|
|
d->view, TQ_SLOT(slotAssignRatingFourStar()),
|
|
|
|
|
actionCollection(), "ratefourstar");
|
|
|
|
|
d->rating5Star = new TDEAction(i18n("Assign Rating \"Five Stars\""), CTRL+Key_5,
|
|
|
|
|
d->view, TQT_SLOT(slotAssignRatingFiveStar()),
|
|
|
|
|
d->view, TQ_SLOT(slotAssignRatingFiveStar()),
|
|
|
|
|
actionCollection(), "ratefivestar");
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
TDEAction* findAction = KStdAction::find(d->view, TQT_SLOT(slotNewQuickSearch()),
|
|
|
|
|
TDEAction* findAction = KStdAction::find(d->view, TQ_SLOT(slotNewQuickSearch()),
|
|
|
|
|
actionCollection(), "search_quick");
|
|
|
|
|
findAction->setText(i18n("Search..."));
|
|
|
|
|
findAction->setIconSet(BarIcon("filefind"));
|
|
|
|
|
|
|
|
|
|
TDEAction* advFindAction = KStdAction::find(d->view, TQT_SLOT(slotNewAdvancedSearch()),
|
|
|
|
|
TDEAction* advFindAction = KStdAction::find(d->view, TQ_SLOT(slotNewAdvancedSearch()),
|
|
|
|
|
actionCollection(), "search_advanced");
|
|
|
|
|
advFindAction->setText(i18n("Advanced Search..."));
|
|
|
|
|
advFindAction->setShortcut("Ctrl+Alt+F");
|
|
|
|
|
|
|
|
|
|
new TDEAction(i18n("Light Table"), "idea", Key_L,
|
|
|
|
|
d->view, TQT_SLOT(slotLightTable()), actionCollection(),
|
|
|
|
|
d->view, TQ_SLOT(slotLightTable()), actionCollection(),
|
|
|
|
|
"light_table");
|
|
|
|
|
|
|
|
|
|
new TDEAction(i18n("Scan for New Images"), "reload_page", 0,
|
|
|
|
|
this, TQT_SLOT(slotDatabaseRescan()), actionCollection(),
|
|
|
|
|
this, TQ_SLOT(slotDatabaseRescan()), actionCollection(),
|
|
|
|
|
"database_rescan");
|
|
|
|
|
|
|
|
|
|
new TDEAction(i18n("Rebuild All Thumbnails..."), "reload_page", 0,
|
|
|
|
|
this, TQT_SLOT(slotRebuildAllThumbs()), actionCollection(),
|
|
|
|
|
this, TQ_SLOT(slotRebuildAllThumbs()), actionCollection(),
|
|
|
|
|
"thumbs_rebuild");
|
|
|
|
|
|
|
|
|
|
new TDEAction(i18n("Update Metadata Database..."), "reload_page", 0,
|
|
|
|
|
this, TQT_SLOT(slotSyncAllPicturesMetadata()), actionCollection(),
|
|
|
|
|
this, TQ_SLOT(slotSyncAllPicturesMetadata()), actionCollection(),
|
|
|
|
|
"sync_metadata");
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
@ -1350,7 +1350,7 @@ void DigikamApp::slotExit()
|
|
|
|
|
if (d->fullScreen)
|
|
|
|
|
{
|
|
|
|
|
slotToggleFullScreen();
|
|
|
|
|
TQTimer::singleShot(0, this, TQT_SLOT(close()));
|
|
|
|
|
TQTimer::singleShot(0, this, TQ_SLOT(close()));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
close();
|
|
|
|
@ -1448,7 +1448,7 @@ void DigikamApp::slotDownloadImages( const TQString& folder)
|
|
|
|
|
{
|
|
|
|
|
d->cameraGuiPath = folder;
|
|
|
|
|
|
|
|
|
|
TQTimer::singleShot(0, this, TQT_SLOT(slotDownloadImages()));
|
|
|
|
|
TQTimer::singleShot(0, this, TQ_SLOT(slotDownloadImages()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1483,7 +1483,7 @@ void DigikamApp::slotDownloadImages()
|
|
|
|
|
"camera-photo",
|
|
|
|
|
0,
|
|
|
|
|
this,
|
|
|
|
|
TQT_SLOT(slotDownloadImages()),
|
|
|
|
|
TQ_SLOT(slotDownloadImages()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
d->cameraGuiPath.latin1() );
|
|
|
|
|
|
|
|
|
@ -1496,11 +1496,11 @@ void DigikamApp::slotDownloadImages()
|
|
|
|
|
"directory browse","Fixed", localUrl, TQDateTime::currentDateTime());
|
|
|
|
|
cgui->show();
|
|
|
|
|
|
|
|
|
|
connect(cgui, TQT_SIGNAL(signalLastDestination(const KURL&)),
|
|
|
|
|
d->view, TQT_SLOT(slotSelectAlbum(const KURL&)));
|
|
|
|
|
connect(cgui, TQ_SIGNAL(signalLastDestination(const KURL&)),
|
|
|
|
|
d->view, TQ_SLOT(slotSelectAlbum(const KURL&)));
|
|
|
|
|
|
|
|
|
|
connect(cgui, TQT_SIGNAL(signalAlbumSettingsChanged()),
|
|
|
|
|
this, TQT_SLOT(slotSetupChanged()));
|
|
|
|
|
connect(cgui, TQ_SIGNAL(signalAlbumSettingsChanged()),
|
|
|
|
|
this, TQ_SLOT(slotSetupChanged()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DigikamApp::slotCameraConnect()
|
|
|
|
@ -1527,11 +1527,11 @@ void DigikamApp::slotCameraConnect()
|
|
|
|
|
|
|
|
|
|
cgui->show();
|
|
|
|
|
|
|
|
|
|
connect(cgui, TQT_SIGNAL(signalLastDestination(const KURL&)),
|
|
|
|
|
d->view, TQT_SLOT(slotSelectAlbum(const KURL&)));
|
|
|
|
|
connect(cgui, TQ_SIGNAL(signalLastDestination(const KURL&)),
|
|
|
|
|
d->view, TQ_SLOT(slotSelectAlbum(const KURL&)));
|
|
|
|
|
|
|
|
|
|
connect(cgui, TQT_SIGNAL(signalAlbumSettingsChanged()),
|
|
|
|
|
this, TQT_SLOT(slotSetupChanged()));
|
|
|
|
|
connect(cgui, TQ_SIGNAL(signalAlbumSettingsChanged()),
|
|
|
|
|
this, TQ_SLOT(slotSetupChanged()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1541,7 +1541,7 @@ void DigikamApp::slotCameraAdded(CameraType *ctype)
|
|
|
|
|
if (!ctype) return;
|
|
|
|
|
|
|
|
|
|
TDEAction *cAction = new TDEAction(ctype->title(), "camera-photo", 0,
|
|
|
|
|
this, TQT_SLOT(slotCameraConnect()),
|
|
|
|
|
this, TQ_SLOT(slotCameraConnect()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
ctype->title().utf8());
|
|
|
|
|
d->cameraMenuAction->insert(cAction, 0);
|
|
|
|
@ -1559,8 +1559,8 @@ void DigikamApp::slotCameraMediaMenu()
|
|
|
|
|
KURL kurl("media:/");
|
|
|
|
|
TDEIO::ListJob *job = TDEIO::listDir(kurl, false, false);
|
|
|
|
|
|
|
|
|
|
connect( job, TQT_SIGNAL(entries(TDEIO::Job*,const TDEIO::UDSEntryList&)),
|
|
|
|
|
this, TQT_SLOT(slotCameraMediaMenuEntries(TDEIO::Job*,const TDEIO::UDSEntryList&)) );
|
|
|
|
|
connect( job, TQ_SIGNAL(entries(TDEIO::Job*,const TDEIO::UDSEntryList&)),
|
|
|
|
|
this, TQ_SLOT(slotCameraMediaMenuEntries(TDEIO::Job*,const TDEIO::UDSEntryList&)) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DigikamApp::slotCameraMediaMenuEntries( Job *, const UDSEntryList & list )
|
|
|
|
@ -1590,7 +1590,7 @@ void DigikamApp::slotCameraMediaMenuEntries( Job *, const UDSEntryList & list )
|
|
|
|
|
|
|
|
|
|
d->mediaItems[i] = path;
|
|
|
|
|
|
|
|
|
|
d->cameraMediaList->insertItem(name, this, TQT_SLOT(slotDownloadImagesFromMedia(int)), 0, i);
|
|
|
|
|
d->cameraMediaList->insertItem(name, this, TQ_SLOT(slotDownloadImagesFromMedia(int)), 0, i);
|
|
|
|
|
d->cameraMediaList->setItemParameter(i, i);
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
@ -1620,7 +1620,7 @@ void DigikamApp::slotCameraAutoDetect()
|
|
|
|
|
|
|
|
|
|
if (!ctype && retry)
|
|
|
|
|
{
|
|
|
|
|
TQTimer::singleShot(0, this, TQT_SLOT(slotCameraAutoDetect()));
|
|
|
|
|
TQTimer::singleShot(0, this, TQ_SLOT(slotCameraAutoDetect()));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1811,8 +1811,8 @@ void DigikamApp::loadPlugins()
|
|
|
|
|
|
|
|
|
|
d->kipiPluginLoader = new KIPI::PluginLoader( ignores, d->kipiInterface );
|
|
|
|
|
|
|
|
|
|
connect( d->kipiPluginLoader, TQT_SIGNAL( replug() ),
|
|
|
|
|
this, TQT_SLOT( slotKipiPluginPlug() ) );
|
|
|
|
|
connect( d->kipiPluginLoader, TQ_SIGNAL( replug() ),
|
|
|
|
|
this, TQ_SLOT( slotKipiPluginPlug() ) );
|
|
|
|
|
|
|
|
|
|
d->kipiPluginLoader->loadPlugins();
|
|
|
|
|
|
|
|
|
@ -1925,7 +1925,7 @@ void DigikamApp::loadCameras()
|
|
|
|
|
d->cameraMenuAction->popupMenu()->insertSeparator();
|
|
|
|
|
|
|
|
|
|
d->cameraMenuAction->insert(new TDEAction(i18n("Add Camera..."), 0,
|
|
|
|
|
this, TQT_SLOT(slotSetupCamera()),
|
|
|
|
|
this, TQ_SLOT(slotSetupCamera()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"camera_add"));
|
|
|
|
|
}
|
|
|
|
@ -1981,8 +1981,8 @@ void DigikamApp::slotRebuildAllThumbs()
|
|
|
|
|
|
|
|
|
|
BatchThumbsGenerator *thumbsGenerator = new BatchThumbsGenerator(this);
|
|
|
|
|
|
|
|
|
|
connect(thumbsGenerator, TQT_SIGNAL(signalRebuildAllThumbsDone()),
|
|
|
|
|
this, TQT_SLOT(slotRebuildAllThumbsDone()));
|
|
|
|
|
connect(thumbsGenerator, TQ_SIGNAL(signalRebuildAllThumbsDone()),
|
|
|
|
|
this, TQ_SLOT(slotRebuildAllThumbsDone()));
|
|
|
|
|
|
|
|
|
|
thumbsGenerator->exec();
|
|
|
|
|
}
|
|
|
|
@ -2001,8 +2001,8 @@ void DigikamApp::slotSyncAllPicturesMetadata()
|
|
|
|
|
|
|
|
|
|
BatchAlbumsSyncMetadata *syncMetadata = new BatchAlbumsSyncMetadata(this);
|
|
|
|
|
|
|
|
|
|
connect(syncMetadata, TQT_SIGNAL(signalComplete()),
|
|
|
|
|
this, TQT_SLOT(slotSyncAllPicturesMetadataDone()));
|
|
|
|
|
connect(syncMetadata, TQ_SIGNAL(signalComplete()),
|
|
|
|
|
this, TQ_SLOT(slotSyncAllPicturesMetadataDone()));
|
|
|
|
|
|
|
|
|
|
syncMetadata->exec();
|
|
|
|
|
}
|
|
|
|
|