[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-3/digikam
From: Ralf Hoelzer <ralf () well ! com>
Date: 2004-05-26 18:43:04
Message-ID: 20040526184304.5A8FB907C () office ! kde ! org
[Download RAW message or body]
CVS commit by rhoezler:
Added option to set the EXIF orientation tag to "normal" after it has been rotated or
flipped.
M +19 -0 digikam/albumsettings.cpp 1.10
M +3 -0 digikam/albumsettings.h 1.8
M +5 -0 utilities/setup/setupexif.cpp 1.2
M +1 -0 utilities/setup/setupexif.h 1.2
--- kdeextragear-3/digikam/digikam/albumsettings.cpp #1.9:1.10
@@ -61,4 +61,5 @@ public:
bool saveExifComments;
bool exifRotate;
+ bool exifSetOrientation;
};
@@ -199,4 +200,9 @@ void AlbumSettings::readSettings()
config->readBoolEntry("EXIF Rotate",
true);
+
+ if (config->hasKey("EXIF Set Orientation"))
+ d->exifSetOrientation =
+ config->readBoolEntry("EXIF Set Orientation",
+ true);
}
@@ -253,4 +259,7 @@ void AlbumSettings::saveSettings()
config->writeEntry("EXIF Rotate",
d->exifRotate);
+
+ config->writeEntry("EXIF Set Orientation",
+ d->exifSetOrientation);
config->sync();
}
@@ -422,4 +431,14 @@ bool AlbumSettings::getExifRotate() cons
}
+void AlbumSettings::setExifSetOrientation(bool val)
+{
+ d->exifSetOrientation = val;
+}
+
+bool AlbumSettings::getExifSetOrientation() const
+{
+ return d->exifSetOrientation;
+}
+
void AlbumSettings::setIconShowDate(bool val)
{
--- kdeextragear-3/digikam/digikam/albumsettings.h #1.7:1.8
@@ -97,4 +97,7 @@ public:
bool getExifRotate() const;
+ void setExifSetOrientation(bool val);
+ bool getExifSetOrientation() const;
+
void setIconShowDate(bool val);
bool getIconShowDate() const;
--- kdeextragear-3/digikam/utilities/setup/setupexif.cpp #1.1:1.2
@@ -62,4 +62,7 @@ SetupExif::SetupExif(QWidget* parent )
iconExifRotateBox_->setText(i18n("Rotate images and thumbnails according to EXIF tag"));
+ iconExifSetOrientationBox_ = new QCheckBox(iconExifGroup);
+ iconExifSetOrientationBox_->setText(i18n("Set EXIF orientation tag to normal after rotate/flip"));
+
layout->addWidget(iconExifGroup);
@@ -83,4 +86,5 @@ void SetupExif::applySettings()
settings->setSaveExifComments(iconSaveExifBox_->isChecked());
settings->setExifRotate(iconExifRotateBox_->isChecked());
+ settings->setExifSetOrientation(iconExifSetOrientationBox_->isChecked());
settings->saveSettings();
@@ -95,4 +99,5 @@ void SetupExif::readSettings()
iconSaveExifBox_->setChecked(settings->getSaveExifComments());
iconExifRotateBox_->setChecked(settings->getExifRotate());
+ iconExifSetOrientationBox_->setChecked(settings->getExifSetOrientation());
}
--- kdeextragear-3/digikam/utilities/setup/setupexif.h #1.1:1.2
@@ -48,4 +48,5 @@ private:
QCheckBox *iconSaveExifBox_;
QCheckBox *iconExifRotateBox_;
+ QCheckBox *iconExifSetOrientationBox_;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic