|
|
|
@ -109,7 +109,7 @@ namespace Digikam
|
|
|
|
|
DigikamApp* DigikamApp::m_instance = 0;
|
|
|
|
|
|
|
|
|
|
DigikamApp::DigikamApp()
|
|
|
|
|
: KMainWindow( 0, "Digikam" )
|
|
|
|
|
: TDEMainWindow( 0, "Digikam" )
|
|
|
|
|
{
|
|
|
|
|
d = new DigikamAppPriv;
|
|
|
|
|
m_instance = this;
|
|
|
|
@ -136,7 +136,7 @@ DigikamApp::DigikamApp()
|
|
|
|
|
|
|
|
|
|
AlbumLister::instance();
|
|
|
|
|
|
|
|
|
|
d->cameraMediaList = new KPopupMenu;
|
|
|
|
|
d->cameraMediaList = new TDEPopupMenu;
|
|
|
|
|
|
|
|
|
|
connect(d->cameraMediaList, TQT_SIGNAL( aboutToShow() ),
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotCameraMediaMenu()));
|
|
|
|
@ -256,7 +256,7 @@ void DigikamApp::show()
|
|
|
|
|
|
|
|
|
|
// Display application window.
|
|
|
|
|
|
|
|
|
|
KMainWindow::show();
|
|
|
|
|
TDEMainWindow::show();
|
|
|
|
|
|
|
|
|
|
// Report errors from ICC repository path.
|
|
|
|
|
|
|
|
|
@ -293,31 +293,31 @@ void DigikamApp::show()
|
|
|
|
|
slotThumbSizeChanged(d->albumSettings->getDefaultIconSize());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const TQPtrList<KAction>& DigikamApp::menuImageActions()
|
|
|
|
|
const TQPtrList<TDEAction>& DigikamApp::menuImageActions()
|
|
|
|
|
{
|
|
|
|
|
return d->kipiImageActions;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const TQPtrList<KAction>& DigikamApp::menuBatchActions()
|
|
|
|
|
const TQPtrList<TDEAction>& DigikamApp::menuBatchActions()
|
|
|
|
|
{
|
|
|
|
|
return d->kipiBatchActions;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const TQPtrList<KAction>& DigikamApp::menuAlbumActions()
|
|
|
|
|
const TQPtrList<TDEAction>& DigikamApp::menuAlbumActions()
|
|
|
|
|
{
|
|
|
|
|
return d->kipiAlbumActions;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const TQPtrList<KAction> DigikamApp::menuImportActions()
|
|
|
|
|
const TQPtrList<TDEAction> DigikamApp::menuImportActions()
|
|
|
|
|
{
|
|
|
|
|
TQPtrList<KAction> importMenu;
|
|
|
|
|
TQPtrList<TDEAction> importMenu;
|
|
|
|
|
importMenu = d->kipiFileActionsImport;
|
|
|
|
|
importMenu.append( d->albumImportAction );
|
|
|
|
|
importMenu.append( d->addImagesAction );
|
|
|
|
|
return importMenu;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const TQPtrList<KAction> DigikamApp::menuExportActions()
|
|
|
|
|
const TQPtrList<TDEAction> DigikamApp::menuExportActions()
|
|
|
|
|
{
|
|
|
|
|
return d->kipiFileActionsExport;
|
|
|
|
|
}
|
|
|
|
@ -442,7 +442,7 @@ void DigikamApp::setupStatusBar()
|
|
|
|
|
|
|
|
|
|
void DigikamApp::setupAccelerators()
|
|
|
|
|
{
|
|
|
|
|
d->accelerators = new KAccel(this);
|
|
|
|
|
d->accelerators = new TDEAccel(this);
|
|
|
|
|
|
|
|
|
|
d->accelerators->insert("Exit Preview Mode", i18n("Exit Preview"),
|
|
|
|
|
i18n("Exit preview mode"),
|
|
|
|
@ -499,7 +499,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
{
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->cameraMenuAction = new KActionMenu(i18n("&Camera"),
|
|
|
|
|
d->cameraMenuAction = new TDEActionMenu(i18n("&Camera"),
|
|
|
|
|
"digitalcam",
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"camera_menu");
|
|
|
|
@ -507,7 +507,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->themeMenuAction = new KSelectAction(i18n("&Themes"), 0, actionCollection(), "theme_menu");
|
|
|
|
|
d->themeMenuAction = new TDESelectAction(i18n("&Themes"), 0, actionCollection(), "theme_menu");
|
|
|
|
|
connect(d->themeMenuAction, TQT_SIGNAL(activated(const TQString&)),
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotChangeTheme(const TQString&)));
|
|
|
|
|
|
|
|
|
@ -516,7 +516,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->backwardActionMenu = new KToolBarPopupAction(i18n("&Back"),
|
|
|
|
|
d->backwardActionMenu = new TDEToolBarPopupAction(i18n("&Back"),
|
|
|
|
|
"back",
|
|
|
|
|
ALT+Key_Left,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -531,7 +531,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
connect(d->backwardActionMenu->popupMenu(), TQT_SIGNAL(activated(int)),
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotAlbumHistoryBack(int)));
|
|
|
|
|
|
|
|
|
|
d->forwardActionMenu = new KToolBarPopupAction(i18n("Forward"),
|
|
|
|
|
d->forwardActionMenu = new TDEToolBarPopupAction(i18n("Forward"),
|
|
|
|
|
"forward",
|
|
|
|
|
ALT+Key_Right,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -546,16 +546,16 @@ void DigikamApp::setupActions()
|
|
|
|
|
connect(d->forwardActionMenu->popupMenu(), TQT_SIGNAL(activated(int)),
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotAlbumHistoryForward(int)));
|
|
|
|
|
|
|
|
|
|
d->newAction = new KAction(i18n("&New..."),
|
|
|
|
|
d->newAction = new TDEAction(i18n("&New..."),
|
|
|
|
|
"albumfolder-new",
|
|
|
|
|
KStdAccel::shortcut(KStdAccel::New),
|
|
|
|
|
TDEStdAccel::shortcut(TDEStdAccel::New),
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
|
TQT_SLOT(slotNewAlbum()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_new");
|
|
|
|
|
d->newAction->setWhatsThis(i18n("Creates a new empty Album in the database."));
|
|
|
|
|
|
|
|
|
|
d->albumSortAction = new KSelectAction(i18n("&Sort Albums"),
|
|
|
|
|
d->albumSortAction = new TDESelectAction(i18n("&Sort Albums"),
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
@ -571,7 +571,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
sortActionList.append(i18n("By Date"));
|
|
|
|
|
d->albumSortAction->setItems(sortActionList);
|
|
|
|
|
|
|
|
|
|
d->recurseAlbumsAction = new KToggleAction(i18n("Include Album Sub-Tree"),
|
|
|
|
|
d->recurseAlbumsAction = new TDEToggleAction(i18n("Include Album Sub-Tree"),
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(this),
|
|
|
|
|
0,
|
|
|
|
@ -583,7 +583,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
connect(d->recurseAlbumsAction, TQT_SIGNAL(toggled(bool)),
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRecurseAlbums(bool)));
|
|
|
|
|
|
|
|
|
|
d->recurseTagsAction = new KToggleAction(i18n("Include Tag Sub-Tree"),
|
|
|
|
|
d->recurseTagsAction = new TDEToggleAction(i18n("Include Tag Sub-Tree"),
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(this),
|
|
|
|
|
0,
|
|
|
|
@ -595,7 +595,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
connect(d->recurseTagsAction, TQT_SIGNAL(toggled(bool)),
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRecurseTags(bool)));
|
|
|
|
|
|
|
|
|
|
d->deleteAction = new KAction(i18n("Delete"),
|
|
|
|
|
d->deleteAction = new TDEAction(i18n("Delete"),
|
|
|
|
|
"editdelete",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -603,7 +603,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_delete");
|
|
|
|
|
|
|
|
|
|
d->addImagesAction = new KAction( i18n("Add Images..."),
|
|
|
|
|
d->addImagesAction = new TDEAction( i18n("Add Images..."),
|
|
|
|
|
"albumfolder-importimages",
|
|
|
|
|
CTRL+Key_I,
|
|
|
|
|
TQT_TQOBJECT(this),
|
|
|
|
@ -612,7 +612,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"album_addImages");
|
|
|
|
|
d->addImagesAction->setWhatsThis(i18n("Adds new items to the current Album."));
|
|
|
|
|
|
|
|
|
|
d->albumImportAction = new KAction( i18n("Add Folders..."),
|
|
|
|
|
d->albumImportAction = new TDEAction( i18n("Add Folders..."),
|
|
|
|
|
"albumfolder-importdir",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -620,7 +620,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_importFolder");
|
|
|
|
|
|
|
|
|
|
d->propsEditAction = new KAction( i18n("Properties..."),
|
|
|
|
|
d->propsEditAction = new TDEAction( i18n("Properties..."),
|
|
|
|
|
"albumfolder-properties",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -629,7 +629,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"album_propsEdit");
|
|
|
|
|
d->propsEditAction->setWhatsThis(i18n("Edit Album Properties and Collection information."));
|
|
|
|
|
|
|
|
|
|
d->refreshAlbumAction = new KAction( i18n("Refresh"),
|
|
|
|
|
d->refreshAlbumAction = new TDEAction( i18n("Refresh"),
|
|
|
|
|
"rebuild",
|
|
|
|
|
Key_F5,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -638,7 +638,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"album_refresh");
|
|
|
|
|
d->refreshAlbumAction->setWhatsThis(i18n("Refresh all album contents"));
|
|
|
|
|
|
|
|
|
|
d->syncAlbumMetadataAction = new KAction( i18n("Synchronize Images with Database"),
|
|
|
|
|
d->syncAlbumMetadataAction = new TDEAction( i18n("Synchronize Images with Database"),
|
|
|
|
|
"rebuild",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -649,7 +649,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"album with the contents of the digiKam database "
|
|
|
|
|
"(image metadata will be over-written with data from the database)."));
|
|
|
|
|
|
|
|
|
|
d->openInKonquiAction = new KAction( i18n("Open in File Manager"),
|
|
|
|
|
d->openInKonquiAction = new TDEAction( i18n("Open in File Manager"),
|
|
|
|
|
"konqueror",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -659,21 +659,21 @@ void DigikamApp::setupActions()
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->newTagAction = new KAction(i18n("New &Tag..."), "tag-new",
|
|
|
|
|
d->newTagAction = new TDEAction(i18n("New &Tag..."), "tag-new",
|
|
|
|
|
0, TQT_TQOBJECT(d->view), TQT_SLOT(slotNewTag()),
|
|
|
|
|
actionCollection(), "tag_new");
|
|
|
|
|
|
|
|
|
|
d->editTagAction = new KAction(i18n("Edit Tag Properties..."), "tag-properties",
|
|
|
|
|
d->editTagAction = new TDEAction(i18n("Edit Tag Properties..."), "tag-properties",
|
|
|
|
|
0, TQT_TQOBJECT(d->view), TQT_SLOT(slotEditTag()),
|
|
|
|
|
actionCollection(), "tag_edit");
|
|
|
|
|
|
|
|
|
|
d->deleteTagAction = new KAction(i18n("Delete Tag"), "tag-delete",
|
|
|
|
|
d->deleteTagAction = new TDEAction(i18n("Delete Tag"), "tag-delete",
|
|
|
|
|
0, TQT_TQOBJECT(d->view), TQT_SLOT(slotDeleteTag()),
|
|
|
|
|
actionCollection(), "tag_delete");
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->imagePreviewAction = new KToggleAction(i18n("View..."),
|
|
|
|
|
d->imagePreviewAction = new TDEToggleAction(i18n("View..."),
|
|
|
|
|
"viewimage",
|
|
|
|
|
Key_F3,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -681,7 +681,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_view");
|
|
|
|
|
|
|
|
|
|
d->imageViewAction = new KAction(i18n("Edit..."),
|
|
|
|
|
d->imageViewAction = new TDEAction(i18n("Edit..."),
|
|
|
|
|
"editimage",
|
|
|
|
|
Key_F4,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -690,7 +690,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"image_edit");
|
|
|
|
|
d->imageViewAction->setWhatsThis(i18n("Open the selected item in the image editor."));
|
|
|
|
|
|
|
|
|
|
d->imageLightTableAction = new KAction(i18n("Place onto Light Table"),
|
|
|
|
|
d->imageLightTableAction = new TDEAction(i18n("Place onto Light Table"),
|
|
|
|
|
"lighttable",
|
|
|
|
|
CTRL+Key_L,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -699,7 +699,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"image_lighttable");
|
|
|
|
|
d->imageLightTableAction->setWhatsThis(i18n("Place the selected items on the light table thumbbar."));
|
|
|
|
|
|
|
|
|
|
d->imageAddLightTableAction = new KAction(i18n("Add to Light Table"),
|
|
|
|
|
d->imageAddLightTableAction = new TDEAction(i18n("Add to Light Table"),
|
|
|
|
|
"lighttableadd",
|
|
|
|
|
SHIFT+CTRL+Key_L,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -708,7 +708,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"image_add_to_lighttable");
|
|
|
|
|
d->imageAddLightTableAction->setWhatsThis(i18n("Add selected items to the light table thumbbar."));
|
|
|
|
|
|
|
|
|
|
d->imageRenameAction = new KAction(i18n("Rename..."),
|
|
|
|
|
d->imageRenameAction = new TDEAction(i18n("Rename..."),
|
|
|
|
|
"pencil",
|
|
|
|
|
Key_F2,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -718,7 +718,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
d->imageRenameAction->setWhatsThis(i18n("Change the filename of the currently selected item."));
|
|
|
|
|
|
|
|
|
|
// Pop up dialog to ask user whether to move to trash
|
|
|
|
|
d->imageDeleteAction = new KAction(i18n("Delete"),
|
|
|
|
|
d->imageDeleteAction = new TDEAction(i18n("Delete"),
|
|
|
|
|
"edittrash",
|
|
|
|
|
Key_Delete,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -727,7 +727,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"image_delete");
|
|
|
|
|
|
|
|
|
|
// Pop up dialog to ask user whether to permanently delete
|
|
|
|
|
d->imageDeletePermanentlyAction = new KAction(i18n("Delete permanently"),
|
|
|
|
|
d->imageDeletePermanentlyAction = new TDEAction(i18n("Delete permanently"),
|
|
|
|
|
"editdelete",
|
|
|
|
|
SHIFT+Key_Delete,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -737,7 +737,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
|
|
|
|
|
// These two actions are hidden, no menu entry, no toolbar entry, no shortcut.
|
|
|
|
|
// Power users may add them.
|
|
|
|
|
d->imageDeletePermanentlyDirectlyAction = new KAction(i18n("Delete permanently without confirmation"),
|
|
|
|
|
d->imageDeletePermanentlyDirectlyAction = new TDEAction(i18n("Delete permanently without confirmation"),
|
|
|
|
|
"editdelete",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -745,7 +745,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_delete_permanently_directly");
|
|
|
|
|
|
|
|
|
|
d->imageTrashDirectlyAction = new KAction(i18n("Move to trash without confirmation"),
|
|
|
|
|
d->imageTrashDirectlyAction = new TDEAction(i18n("Move to trash without confirmation"),
|
|
|
|
|
"edittrash",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -753,7 +753,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_trash_directly");
|
|
|
|
|
|
|
|
|
|
d->imageSortAction = new KSelectAction(i18n("&Sort Images"),
|
|
|
|
|
d->imageSortAction = new TDESelectAction(i18n("&Sort Images"),
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
@ -778,54 +778,54 @@ void DigikamApp::setupActions()
|
|
|
|
|
connect(exifOrientationMapper, TQT_SIGNAL(mapped(int) ),
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotImageExifOrientation(int)));
|
|
|
|
|
|
|
|
|
|
d->imageExifOrientationActionMenu = new KActionMenu(i18n("Adjust Exif orientation tag"),
|
|
|
|
|
d->imageExifOrientationActionMenu = new TDEActionMenu(i18n("Adjust Exif orientation tag"),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_set_exif_orientation");
|
|
|
|
|
d->imageExifOrientationActionMenu->setDelayed(false);
|
|
|
|
|
|
|
|
|
|
d->imageSetExifOrientation1Action = new KAction(i18n("Normal"),
|
|
|
|
|
d->imageSetExifOrientation1Action = new TDEAction(i18n("Normal"),
|
|
|
|
|
0,
|
|
|
|
|
d->imageExifOrientationActionMenu,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_set_exif_orientation_normal");
|
|
|
|
|
d->imageSetExifOrientation2Action = new KAction(i18n("Flipped Horizontally"),
|
|
|
|
|
d->imageSetExifOrientation2Action = new TDEAction(i18n("Flipped Horizontally"),
|
|
|
|
|
0,
|
|
|
|
|
d->imageExifOrientationActionMenu,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_set_exif_orientation_flipped_horizontal");
|
|
|
|
|
d->imageSetExifOrientation3Action = new KAction(i18n("Rotated Upside Down"),
|
|
|
|
|
d->imageSetExifOrientation3Action = new TDEAction(i18n("Rotated Upside Down"),
|
|
|
|
|
0,
|
|
|
|
|
d->imageExifOrientationActionMenu,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_set_exif_orientation_rotated_upside_down");
|
|
|
|
|
d->imageSetExifOrientation4Action = new KAction(i18n("Flipped Vertically"),
|
|
|
|
|
d->imageSetExifOrientation4Action = new TDEAction(i18n("Flipped Vertically"),
|
|
|
|
|
0,
|
|
|
|
|
d->imageExifOrientationActionMenu,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_set_exif_orientation_flipped_vertically");
|
|
|
|
|
d->imageSetExifOrientation5Action = new KAction(i18n("Rotated Right / Horiz. Flipped"),
|
|
|
|
|
d->imageSetExifOrientation5Action = new TDEAction(i18n("Rotated Right / Horiz. Flipped"),
|
|
|
|
|
0,
|
|
|
|
|
d->imageExifOrientationActionMenu,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_set_exif_orientation_rotated_right_hor_flipped");
|
|
|
|
|
d->imageSetExifOrientation6Action = new KAction(i18n("Rotated Right"),
|
|
|
|
|
d->imageSetExifOrientation6Action = new TDEAction(i18n("Rotated Right"),
|
|
|
|
|
0,
|
|
|
|
|
d->imageExifOrientationActionMenu,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_set_exif_orientation_rotated_right");
|
|
|
|
|
d->imageSetExifOrientation7Action = new KAction(i18n("Rotated Right / Vert. Flipped"),
|
|
|
|
|
d->imageSetExifOrientation7Action = new TDEAction(i18n("Rotated Right / Vert. Flipped"),
|
|
|
|
|
0,
|
|
|
|
|
d->imageExifOrientationActionMenu,
|
|
|
|
|
0,
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"image_set_exif_orientation_rotated_right_ver_flipped");
|
|
|
|
|
d->imageSetExifOrientation8Action = new KAction(i18n("Rotated Left"),
|
|
|
|
|
d->imageSetExifOrientation8Action = new TDEAction(i18n("Rotated Left"),
|
|
|
|
|
0,
|
|
|
|
|
d->imageExifOrientationActionMenu,
|
|
|
|
|
0,
|
|
|
|
@ -876,7 +876,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->selectAllAction = new KAction(i18n("Select All"),
|
|
|
|
|
d->selectAllAction = new TDEAction(i18n("Select All"),
|
|
|
|
|
0,
|
|
|
|
|
CTRL+Key_A,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -884,7 +884,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"selectAll");
|
|
|
|
|
|
|
|
|
|
d->selectNoneAction = new KAction(i18n("Select None"),
|
|
|
|
|
d->selectNoneAction = new TDEAction(i18n("Select None"),
|
|
|
|
|
0,
|
|
|
|
|
CTRL+SHIFT+Key_A,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -892,7 +892,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"selectNone");
|
|
|
|
|
|
|
|
|
|
d->selectInvertAction = new KAction(i18n("Invert Selection"),
|
|
|
|
|
d->selectInvertAction = new TDEAction(i18n("Invert Selection"),
|
|
|
|
|
0,
|
|
|
|
|
CTRL+Key_Asterisk,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -910,7 +910,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->zoomPlusAction = new KAction(i18n("Zoom In"),
|
|
|
|
|
d->zoomPlusAction = new TDEAction(i18n("Zoom In"),
|
|
|
|
|
"viewmag+",
|
|
|
|
|
CTRL+Key_Plus,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -918,7 +918,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_zoomin");
|
|
|
|
|
|
|
|
|
|
d->zoomMinusAction = new KAction(i18n("Zoom Out"),
|
|
|
|
|
d->zoomMinusAction = new TDEAction(i18n("Zoom Out"),
|
|
|
|
|
"viewmag-",
|
|
|
|
|
CTRL+Key_Minus,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -926,7 +926,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_zoomout");
|
|
|
|
|
|
|
|
|
|
d->zoomTo100percents = new KAction(i18n("Zoom to 100%"),
|
|
|
|
|
d->zoomTo100percents = new TDEAction(i18n("Zoom to 100%"),
|
|
|
|
|
"viewmag1",
|
|
|
|
|
ALT+CTRL+Key_0, // NOTE: Photoshop 7 use ALT+CTRL+0.
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -934,7 +934,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"album_zoomto100percents");
|
|
|
|
|
|
|
|
|
|
d->zoomFitToWindowAction = new KAction(i18n("Fit to &Window"),
|
|
|
|
|
d->zoomFitToWindowAction = new TDEAction(i18n("Fit to &Window"),
|
|
|
|
|
"view_fit_window",
|
|
|
|
|
CTRL+SHIFT+Key_E,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
@ -943,7 +943,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
"album_zoomfit2window");
|
|
|
|
|
|
|
|
|
|
// Do not use std KDE action for full screen because action text is too large for app. toolbar.
|
|
|
|
|
d->fullScreenAction = new KToggleAction(i18n("Full Screen"),
|
|
|
|
|
d->fullScreenAction = new TDEToggleAction(i18n("Full Screen"),
|
|
|
|
|
"window_fullscreen",
|
|
|
|
|
CTRL+SHIFT+Key_F,
|
|
|
|
|
TQT_TQOBJECT(this),
|
|
|
|
@ -952,24 +952,24 @@ void DigikamApp::setupActions()
|
|
|
|
|
"full_screen");
|
|
|
|
|
d->fullScreenAction->setWhatsThis(i18n("Switch the window to full screen mode"));
|
|
|
|
|
|
|
|
|
|
d->slideShowAction = new KActionMenu(i18n("Slideshow"), "slideshow",
|
|
|
|
|
d->slideShowAction = new TDEActionMenu(i18n("Slideshow"), "slideshow",
|
|
|
|
|
actionCollection(), "slideshow");
|
|
|
|
|
|
|
|
|
|
d->slideShowAction->setDelayed(false);
|
|
|
|
|
|
|
|
|
|
d->slideShowAllAction = new KAction(i18n("All"), 0, Key_F9,
|
|
|
|
|
d->slideShowAllAction = new TDEAction(i18n("All"), 0, Key_F9,
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotSlideShowAll()),
|
|
|
|
|
actionCollection(), "slideshow_all");
|
|
|
|
|
d->slideShowAction->insert(d->slideShowAllAction);
|
|
|
|
|
|
|
|
|
|
d->slideShowSelectionAction = new KAction(i18n("Selection"), 0, ALT+Key_F9,
|
|
|
|
|
d->slideShowSelectionAction = new TDEAction(i18n("Selection"), 0, ALT+Key_F9,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
|
TQT_SLOT(slotSlideShowSelection()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"slideshow_selected");
|
|
|
|
|
d->slideShowAction->insert(d->slideShowSelectionAction);
|
|
|
|
|
|
|
|
|
|
d->slideShowRecursiveAction = new KAction(i18n("With All Sub-Albums"), 0, SHIFT+Key_F9,
|
|
|
|
|
d->slideShowRecursiveAction = new TDEAction(i18n("With All Sub-Albums"), 0, SHIFT+Key_F9,
|
|
|
|
|
TQT_TQOBJECT(d->view),
|
|
|
|
|
TQT_SLOT(slotSlideShowRecursive()),
|
|
|
|
|
actionCollection(),
|
|
|
|
@ -981,7 +981,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"app_exit");
|
|
|
|
|
|
|
|
|
|
d->rawCameraListAction = new KAction(i18n("Supported RAW Cameras"),
|
|
|
|
|
d->rawCameraListAction = new TDEAction(i18n("Supported RAW Cameras"),
|
|
|
|
|
"kdcraw",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(this),
|
|
|
|
@ -989,7 +989,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"help_rawcameralist");
|
|
|
|
|
|
|
|
|
|
d->kipiHelpAction = new KAction(i18n("Kipi Plugins Handbook"),
|
|
|
|
|
d->kipiHelpAction = new TDEAction(i18n("Kipi Plugins Handbook"),
|
|
|
|
|
"kipi",
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(this),
|
|
|
|
@ -1002,7 +1002,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"help_tipofday");
|
|
|
|
|
|
|
|
|
|
d->donateMoneyAction = new KAction(i18n("Donate..."),
|
|
|
|
|
d->donateMoneyAction = new TDEAction(i18n("Donate..."),
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
|
TQT_TQOBJECT(this),
|
|
|
|
@ -1010,7 +1010,7 @@ void DigikamApp::setupActions()
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"help_donatemoney");
|
|
|
|
|
|
|
|
|
|
d->contributeAction = new KAction(i18n("Contribute..."),
|
|
|
|
|
d->contributeAction = new TDEAction(i18n("Contribute..."),
|
|
|
|
|
0, 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotContribute()),
|
|
|
|
|
actionCollection(),
|
|
|
|
@ -1020,50 +1020,50 @@ void DigikamApp::setupActions()
|
|
|
|
|
|
|
|
|
|
// -- Rating actions ---------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
d->rating0Star = new KAction(i18n("Assign Rating \"No Stars\""), CTRL+Key_0,
|
|
|
|
|
d->rating0Star = new TDEAction(i18n("Assign Rating \"No Stars\""), CTRL+Key_0,
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotAssignRatingNoStar()),
|
|
|
|
|
actionCollection(), "ratenostar");
|
|
|
|
|
d->rating1Star = new KAction(i18n("Assign Rating \"One Star\""), CTRL+Key_1,
|
|
|
|
|
d->rating1Star = new TDEAction(i18n("Assign Rating \"One Star\""), CTRL+Key_1,
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotAssignRatingOneStar()),
|
|
|
|
|
actionCollection(), "rateonestar");
|
|
|
|
|
d->rating2Star = new KAction(i18n("Assign Rating \"Two Stars\""), CTRL+Key_2,
|
|
|
|
|
d->rating2Star = new TDEAction(i18n("Assign Rating \"Two Stars\""), CTRL+Key_2,
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotAssignRatingTwoStar()),
|
|
|
|
|
actionCollection(), "ratetwostar");
|
|
|
|
|
d->rating3Star = new KAction(i18n("Assign Rating \"Three Stars\""), CTRL+Key_3,
|
|
|
|
|
d->rating3Star = new TDEAction(i18n("Assign Rating \"Three Stars\""), CTRL+Key_3,
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotAssignRatingThreeStar()),
|
|
|
|
|
actionCollection(), "ratethreestar");
|
|
|
|
|
d->rating4Star = new KAction(i18n("Assign Rating \"Four Stars\""), CTRL+Key_4,
|
|
|
|
|
d->rating4Star = new TDEAction(i18n("Assign Rating \"Four Stars\""), CTRL+Key_4,
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotAssignRatingFourStar()),
|
|
|
|
|
actionCollection(), "ratefourstar");
|
|
|
|
|
d->rating5Star = new KAction(i18n("Assign Rating \"Five Stars\""), CTRL+Key_5,
|
|
|
|
|
d->rating5Star = new TDEAction(i18n("Assign Rating \"Five Stars\""), CTRL+Key_5,
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotAssignRatingFiveStar()),
|
|
|
|
|
actionCollection(), "ratefivestar");
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
KAction* findAction = KStdAction::find(TQT_TQOBJECT(d->view), TQT_SLOT(slotNewQuickSearch()),
|
|
|
|
|
TDEAction* findAction = KStdAction::find(TQT_TQOBJECT(d->view), TQT_SLOT(slotNewQuickSearch()),
|
|
|
|
|
actionCollection(), "search_quick");
|
|
|
|
|
findAction->setText(i18n("Search..."));
|
|
|
|
|
findAction->setIconSet(BarIcon("filefind"));
|
|
|
|
|
|
|
|
|
|
KAction* advFindAction = KStdAction::find(TQT_TQOBJECT(d->view), TQT_SLOT(slotNewAdvancedSearch()),
|
|
|
|
|
TDEAction* advFindAction = KStdAction::find(TQT_TQOBJECT(d->view), TQT_SLOT(slotNewAdvancedSearch()),
|
|
|
|
|
actionCollection(), "search_advanced");
|
|
|
|
|
advFindAction->setText(i18n("Advanced Search..."));
|
|
|
|
|
advFindAction->setShortcut("Ctrl+Alt+F");
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Light Table"), "idea", Key_L,
|
|
|
|
|
new TDEAction(i18n("Light Table"), "idea", Key_L,
|
|
|
|
|
TQT_TQOBJECT(d->view), TQT_SLOT(slotLightTable()), actionCollection(),
|
|
|
|
|
"light_table");
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Scan for New Images"), "reload_page", 0,
|
|
|
|
|
new TDEAction(i18n("Scan for New Images"), "reload_page", 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotDatabaseRescan()), actionCollection(),
|
|
|
|
|
"database_rescan");
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Rebuild All Thumbnails..."), "reload_page", 0,
|
|
|
|
|
new TDEAction(i18n("Rebuild All Thumbnails..."), "reload_page", 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRebuildAllThumbs()), actionCollection(),
|
|
|
|
|
"thumbs_rebuild");
|
|
|
|
|
|
|
|
|
|
new KAction(i18n("Update Metadata Database..."), "reload_page", 0,
|
|
|
|
|
new TDEAction(i18n("Update Metadata Database..."), "reload_page", 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotSyncAllPicturesMetadata()), actionCollection(),
|
|
|
|
|
"sync_metadata");
|
|
|
|
|
|
|
|
|
@ -1192,7 +1192,7 @@ void DigikamApp::slotAlbumSelected(bool val)
|
|
|
|
|
d->newAction->setEnabled(false);
|
|
|
|
|
d->albumImportAction->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
KAction *action;
|
|
|
|
|
TDEAction *action;
|
|
|
|
|
for (action = d->kipiFileActionsImport.first(); action;
|
|
|
|
|
action = d->kipiFileActionsImport.next())
|
|
|
|
|
{
|
|
|
|
@ -1209,7 +1209,7 @@ void DigikamApp::slotAlbumSelected(bool val)
|
|
|
|
|
d->newAction->setEnabled(true);
|
|
|
|
|
d->albumImportAction->setEnabled(true);
|
|
|
|
|
|
|
|
|
|
KAction *action;
|
|
|
|
|
TDEAction *action;
|
|
|
|
|
for (action = d->kipiFileActionsImport.first(); action;
|
|
|
|
|
action = d->kipiFileActionsImport.next())
|
|
|
|
|
{
|
|
|
|
@ -1236,7 +1236,7 @@ void DigikamApp::slotAlbumSelected(bool val)
|
|
|
|
|
d->albumImportAction->setEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KAction *action;
|
|
|
|
|
TDEAction *action;
|
|
|
|
|
for (action = d->kipiFileActionsImport.first(); action;
|
|
|
|
|
action = d->kipiFileActionsImport.next())
|
|
|
|
|
{
|
|
|
|
@ -1260,7 +1260,7 @@ void DigikamApp::slotTagSelected(bool val)
|
|
|
|
|
d->deleteTagAction->setEnabled(true);
|
|
|
|
|
d->editTagAction->setEnabled(true);
|
|
|
|
|
|
|
|
|
|
KAction *action;
|
|
|
|
|
TDEAction *action;
|
|
|
|
|
for (action = d->kipiFileActionsImport.first(); action;
|
|
|
|
|
action = d->kipiFileActionsImport.next())
|
|
|
|
|
{
|
|
|
|
@ -1272,7 +1272,7 @@ void DigikamApp::slotTagSelected(bool val)
|
|
|
|
|
d->deleteTagAction->setEnabled(false);
|
|
|
|
|
d->editTagAction->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
KAction *action;
|
|
|
|
|
TDEAction *action;
|
|
|
|
|
for (action = d->kipiFileActionsImport.first(); action;
|
|
|
|
|
action = d->kipiFileActionsImport.next())
|
|
|
|
|
{
|
|
|
|
@ -1478,7 +1478,7 @@ void DigikamApp::slotDownloadImages()
|
|
|
|
|
|
|
|
|
|
if (!alreadyThere)
|
|
|
|
|
{
|
|
|
|
|
KAction *cAction = new KAction(
|
|
|
|
|
TDEAction *cAction = new TDEAction(
|
|
|
|
|
i18n("Browse %1").arg(KURL(d->cameraGuiPath).prettyURL()),
|
|
|
|
|
"camera",
|
|
|
|
|
0,
|
|
|
|
@ -1540,7 +1540,7 @@ void DigikamApp::slotCameraAdded(CameraType *ctype)
|
|
|
|
|
{
|
|
|
|
|
if (!ctype) return;
|
|
|
|
|
|
|
|
|
|
KAction *cAction = new KAction(ctype->title(), "camera", 0,
|
|
|
|
|
TDEAction *cAction = new TDEAction(ctype->title(), "camera", 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotCameraConnect()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
ctype->title().utf8());
|
|
|
|
@ -1606,7 +1606,7 @@ void DigikamApp::slotCameraRemoved(CameraType *ctype)
|
|
|
|
|
{
|
|
|
|
|
if (!ctype) return;
|
|
|
|
|
|
|
|
|
|
KAction *cAction = ctype->action();
|
|
|
|
|
TDEAction *cAction = ctype->action();
|
|
|
|
|
|
|
|
|
|
if (cAction)
|
|
|
|
|
d->cameraMenuAction->remove(cAction);
|
|
|
|
@ -1854,17 +1854,17 @@ void DigikamApp::slotKipiPluginPlug()
|
|
|
|
|
++cpt;
|
|
|
|
|
|
|
|
|
|
plugin->setup( this );
|
|
|
|
|
TQPtrList<KAction>* popup = 0;
|
|
|
|
|
TQPtrList<TDEAction>* popup = 0;
|
|
|
|
|
|
|
|
|
|
// Plugin category identification using KAction method based.
|
|
|
|
|
// Plugin category identification using TDEAction method based.
|
|
|
|
|
|
|
|
|
|
KActionPtrList actions = plugin->actions();
|
|
|
|
|
TDEActionPtrList actions = plugin->actions();
|
|
|
|
|
|
|
|
|
|
// List of obsolete kipi-plugins to not load.
|
|
|
|
|
TQStringList pluginActionsDisabled;
|
|
|
|
|
pluginActionsDisabled << TQString("raw_converter_single"); // Obsolete Since 0.9.5 and new Raw Import tool.
|
|
|
|
|
|
|
|
|
|
for( KActionPtrList::Iterator it2 = actions.begin(); it2 != actions.end(); ++it2 )
|
|
|
|
|
for( TDEActionPtrList::Iterator it2 = actions.begin(); it2 != actions.end(); ++it2 )
|
|
|
|
|
{
|
|
|
|
|
if ( plugin->category(*it2) == KIPI::IMAGESPLUGIN )
|
|
|
|
|
popup = &d->kipiImageActions;
|
|
|
|
@ -1886,7 +1886,7 @@ void DigikamApp::slotKipiPluginPlug()
|
|
|
|
|
|
|
|
|
|
TQString actionName((*it2)->name());
|
|
|
|
|
|
|
|
|
|
// Plug the KIPI plugins actions in according with the KAction method.
|
|
|
|
|
// Plug the KIPI plugins actions in according with the TDEAction method.
|
|
|
|
|
|
|
|
|
|
if (popup)
|
|
|
|
|
{
|
|
|
|
@ -1924,7 +1924,7 @@ void DigikamApp::loadCameras()
|
|
|
|
|
|
|
|
|
|
d->cameraMenuAction->popupMenu()->insertSeparator();
|
|
|
|
|
|
|
|
|
|
d->cameraMenuAction->insert(new KAction(i18n("Add Camera..."), 0,
|
|
|
|
|
d->cameraMenuAction->insert(new TDEAction(i18n("Add Camera..."), 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotSetupCamera()),
|
|
|
|
|
actionCollection(),
|
|
|
|
|
"camera_add"));
|
|
|
|
|