[Digikam-devel] [Bug 121651] export menu not available in context menu from album
Gilles Caulier
caulier.gilles at kdemail.net
Mon Dec 11 13:29:46 GMT 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=121651
caulier.gilles kdemail net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From caulier.gilles kdemail net 2006-12-11 14:29 -------
SVN commit 612444 by cgilles:
digikam from trunk : add Export menu into Album context pop-up menu.
BUG: 121651
M +14 -0 albumfolderview.cpp
M +5 -0 digikamapp.cpp
M +1 -0 digikamapp.h
--- trunk/extragear/graphics/digikam/digikam/albumfolderview.cpp #612443:612444
@ -414,6 +414,7 @
void AlbumFolderView::slotContextMenu(QListViewItem *listitem, const QPoint &, int)
{
KActionMenu menuImport(i18n("Import"));
+ KActionMenu menuExport(i18n("Export"));
KActionMenu menuKIPIBatch(i18n("Batch Processes"));
KPopupMenu popmenu(this);
@ -460,6 +461,19 @
menuImport.plug(&popmenu);
}
+ // Add All Export Actions
+ const QPtrList<KAction> exportActions = DigikamApp::getinstance()->menuExportActions();
+ if(!exportActions.isEmpty())
+ {
+ QPtrListIterator<KAction> it4(exportActions);
+ while((action = it4.current()))
+ {
+ menuExport.insert(action);
+ ++it4;
+ }
+ menuExport.plug(&popmenu);
+ }
+
// Add KIPI Batch processes plugins Actions
const QPtrList<KAction>& batchActions = DigikamApp::getinstance()->menuBatchActions();
if(!batchActions.isEmpty())
--- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #612443:612444
@ -283,6 +283,11 @
return importMenu;
}
+const QPtrList<KAction> DigikamApp::menuExportActions()
+{
+ return m_kipiFileActionsExport;
+}
+
void DigikamApp::autoDetect()
{
// Called from main if command line option is set
--- trunk/extragear/graphics/digikam/digikam/digikamapp.h #612443:612444
@ -90,6 +90,7 @
const QPtrList<KAction>& menuAlbumActions();
const QPtrList<KAction> menuImportActions();
+ const QPtrList<KAction> menuExportActions();
void autoDetect();
void downloadFrom(const QString &cameraGuiPath);
More information about the Digikam-devel
mailing list