[Digikam-devel] [Bug 103255] wish: *add* (not edit) EXIF headers like date, comment etc
Gilles Caulier
caulier.gilles at free.fr
Tue Oct 24 10:37:16 BST 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=103255
------- Additional Comments From caulier.gilles free fr 2006-10-24 11:37 -------
SVN commit 598637 by cgilles:
kipiplugins from trunk : MetadataEdit plugin: separate Exif photo informations to 3 sub-categories : Lens, Exposure, and Light
CCBUGS: 103255
M +1 -1 Makefile.am
M +28 -8 exifeditdialog.cpp
A exifexposure.cpp [License: GPL]
A exifexposure.h [License: GPL]
A exiflens.cpp [License: GPL]
A exiflens.h [License: GPL]
A exiflight.cpp [License: GPL]
A exiflight.h [License: GPL]
D exifphoto.cpp
D exifphoto.h
--- trunk/extragear/libs/kipi-plugins/metadataedit/Makefile.am #598636:598637
@ -14,7 +14,7 @
iptccredits.cpp iptcstatus.cpp iptcorigin.cpp \
iptcdatetime.cpp iptckeywords.cpp iptccategories.cpp \
exifeditdialog.cpp exifcaption.cpp exifdatetime.cpp \
- exifphoto.cpp
+ exiflens.cpp exifexposure.cpp exiflight.cpp
# Libs needed by the plugin
kipiplugin_metadataedit_la_LIBADD = $(top_builddir)/kipi-plugins/common/exiv2iface/libexiv2iface.la \
--- trunk/extragear/libs/kipi-plugins/metadataedit/exifeditdialog.cpp #598636:598637
@ -39,7 +39,9 @
#include "exifcaption.h"
#include "exifdatetime.h"
-#include "exifphoto.h"
+#include "exiflens.h"
+#include "exifexposure.h"
+#include "exiflight.h"
#include "exifeditdialog.h"
#include "exifeditdialog.moc"
@ -55,22 +57,30 @
{
page_caption = 0;
page_datetime = 0;
- page_photo = 0;
+ page_lens = 0;
+ page_exposure = 0;
+ page_light = 0;
captionPage = 0;
datetimePage = 0;
- photoPage = 0;
+ lensPage = 0;
+ exposurePage = 0;
+ lightPage = 0;
}
QByteArray exifData;
QFrame *page_caption;
QFrame *page_datetime;
- QFrame *page_photo;
+ QFrame *page_lens;
+ QFrame *page_exposure;
+ QFrame *page_light;
EXIFCaption *captionPage;
EXIFDateTime *datetimePage;
- EXIFPhoto *photoPage;
+ EXIFLens *lensPage;
+ EXIFExposure *exposurePage;
+ EXIFLight *lightPage;
};
EXIFEditDialog::EXIFEditDialog(QWidget* parent, QByteArray exifData, const QString& fileName)
@ -90,10 +100,18 @
BarIcon("today", KIcon::SizeMedium));
d->datetimePage = new EXIFDateTime(d->page_datetime, d->exifData);
- d->page_photo = addPage(i18n("Photo"), i18n("Pictures-Taking Conditions"),
+ d->page_lens = addPage(i18n("Lens"), i18n("Camera Lens Informations"),
BarIcon("camera", KIcon::SizeMedium));
- d->photoPage = new EXIFPhoto(d->page_photo, d->exifData);
+ d->lensPage = new EXIFLens(d->page_lens, d->exifData);
+ d->page_exposure = addPage(i18n("Exposure"), i18n("Camera Exposure Informations"),
+ BarIcon("configure", KIcon::SizeMedium));
+ d->exposurePage = new EXIFExposure(d->page_exposure, d->exifData);
+
+ d->page_light = addPage(i18n("Light"), i18n("Light Source Informations"),
+ BarIcon("idea", KIcon::SizeMedium));
+ d->lightPage = new EXIFLight(d->page_light, d->exifData);
+
readSettings();
show();
}
@ -142,7 +160,9 @
{
d->captionPage->applyMetadata(d->exifData);
d->datetimePage->applyMetadata(d->exifData);
- d->photoPage->applyMetadata(d->exifData);
+ d->lensPage->applyMetadata(d->exifData);
+ d->exposurePage->applyMetadata(d->exifData);
+ d->lightPage->applyMetadata(d->exifData);
saveSettings();
accept();
More information about the Digikam-devel
mailing list