[Digikam-devel] extragear/graphics/digikam/imageplugins
Francisco J. Cruz
fj.cruz at supercable.es
Wed Jan 18 22:30:08 GMT 2006
SVN commit 499868 by fjcruz:
Work in progress. It's still buggy and useless ;)
CCMAIL:digikam-devel at kde.org
M +30 -2 imageeffect_iccproof.cpp
M +6 -1 imageeffect_iccproof.h
--- trunk/extragear/graphics/digikam/imageplugins/imageeffect_iccproof.cpp #499867:499868
@@ -72,7 +72,11 @@
{
m_destinationPreviewData = 0L;
-
+ cmEnabled = true;
+ inPath = QString::null;
+ spacePath = QString::null;
+ proofPath = QString::null;
+ displayPath = QString::null;
setHelp("colormanagement.anchor", "digikam");
@@ -400,7 +404,11 @@
// -------------------------------------------------------------
+// slotToggledWidgets(true);
+
enableButtonOK( false );
+
+ readSettings();
}
ImageEffect_ICCProof::~ImageEffect_ICCProof()
@@ -518,11 +526,31 @@
KConfig* config = kapp->config();
config->setGroup("Color Management");
+
+ if (!config->readBoolEntry("EnableCM", false))
+ {
+ QString message = QString(i18n("<p>You don't have enabled Color Management in Digikam preferences, so you won't be able"));
+ message.append( i18n("to use the \"Use default profile...\" options</p>"));
+ KMessageBox::information(this, message);
+ slotToggledWidgets(false);
+ cmEnabled = false;
+ }
+ else
+ {
+ inPath = config->readPathEntry("InProfileFile");
+ spacePath = config->readPathEntry("WorkProfileFile");
+ displayPath = config->readPathEntry("MonitorProfileFile");
+ proofPath = config->readPathEntry("ProofProfileFile");
+ }
}
void ImageEffect_ICCProof::slotToggledWidgets( bool t)
{
- /// @todo implement me
+ if (m_useInDefaultProfile->isVisible())
+ m_useInDefaultProfile->setEnabled(t);
+// m_useProofDefaultProfile->setEnabled(t);
+// m_useDisplayDefaultProfile->setEnabled(t);
+// m_useSpaceDefaultProfile->setEnabled(t);
}
/*!
--- trunk/extragear/graphics/digikam/imageplugins/imageeffect_iccproof.h #499867:499868
@@ -110,8 +110,13 @@
QPushButton *m_testItBt;
-
+ QString inPath;
+ QString displayPath;
+ QString spacePath;
+ QString proofPath;
+ bool cmEnabled;
+
Digikam::ImageGuideWidget *m_previewWidget;
Digikam::ColorGradientWidget *m_hGradient;
More information about the Digikam-devel
mailing list