SVN commit 737646 by cgilles:
digiKam from trunk (KDE4) : new option on Help menu to display the list of RAW Camera supported by digiKam (via dcraw of course) CCMAIL: [hidden email] M +14 -0 digikamapp.cpp M +1 -0 digikamapp.h M +2 -0 digikamappprivate.h M +2 -1 digikamui.rc --- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #737645:737646 @@ -836,6 +836,12 @@ // ----------------------------------------------------------- + d->rawCameraListAction = new KAction(KIcon("kdcraw"), i18n("RAW camera supported"), this); + connect(d->rawCameraListAction, SIGNAL(triggered()), this, SLOT(slotRawCameraList())); + actionCollection()->addAction("help_rawcameralist", d->rawCameraListAction); + + // ----------------------------------------------------------- + d->kipiHelpAction = new KAction(KIcon("kipi"), i18n("Kipi Plugins Handbook"), this); connect(d->kipiHelpAction, SIGNAL(triggered()), this, SLOT(slotShowKipiHelp())); actionCollection()->addAction("help_kipi", d->kipiHelpAction); @@ -1908,6 +1914,14 @@ KToolInvocation::invokeHelp( QString(), "kipi-plugins" ); } +void DigikamApp::slotRawCameraList() +{ + QStringList list = KDcrawIface::DcrawBinary::instance()->supportedCamera(); + QString ver = KDcrawIface::DcrawBinary::instance()->internalVersion(); + KMessageBox::informationList(this, i18n("List of supported camera RAW files"), + list, i18n("Using dcraw version %1", ver)); +} + void DigikamApp::loadPlugins() { if(d->splashScreen) --- trunk/extragear/graphics/digikam/digikam/digikamapp.h #737645:737646 @@ -115,6 +115,7 @@ void slotShowTip(); void slotShowKipiHelp(); void slotDonateMoney(); + void slotRawCameraList(); void slotRatingFilterChanged(int, AlbumLister::RatingCondition); void slotMimeTypeFilterChanged(int); --- trunk/extragear/graphics/digikam/digikam/digikamappprivate.h #737645:737646 @@ -131,6 +131,7 @@ rating5Star = 0; quitAction = 0; tipAction = 0; + rawCameraListAction = 0; kipiHelpAction = 0; donateMoneyAction = 0; addCameraSeparatorAction = 0; @@ -243,6 +244,7 @@ KAction *rating5Star; // Application Actions + KAction *rawCameraListAction; KAction *kipiHelpAction; KAction *donateMoneyAction; KSelectAction *themeMenuAction; --- trunk/extragear/graphics/digikam/digikam/digikamui.rc #737645:737646 @@ -1,5 +1,5 @@ <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> -<gui version="41" name="digikam" > +<gui version="42" name="digikam" > <MenuBar> @@ -111,6 +111,7 @@ </Menu> <Menu name="help"><Text>&Help</Text> + <Action name="help_rawcameralist"/> <Action name="help_kipi"/> <Action name="help_tipofday"/> <Separator/> _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |