[Digikam-devel] extragear/graphics/digikam/imageplugins
Francisco J. Cruz
fj.cruz at supercable.es
Wed Dec 21 12:26:58 GMT 2005
SVN commit 490283 by fjcruz:
First approach to color management plugin.
CCMAIL:digikam-devel at kde.org
M +5 -5 Makefile.am
M +2 -0 digikamimageplugin_core_ui.rc
M +12 -1 imageplugin_core.cpp
M +3 -0 imageplugin_core.h
--- trunk/extragear/graphics/digikam/imageplugins/Makefile.am #490282:490283
@@ -16,11 +16,10 @@
# Install this plugin in the KDE modules directory
kde_module_LTLIBRARIES = digikamimageplugin_core.la
-digikamimageplugin_core_la_SOURCES = imageplugin_core.cpp imageeffect_autocorrection.cpp \
- imageeffect_bwsepia.cpp imageeffect_ratiocrop.cpp \
- imageeffect_bcg.cpp imageeffect_redeye.cpp \
- imageeffect_blur.cpp imageeffect_sharpen.cpp \
- imageeffect_rgb.cpp imageeffect_hsl.cpp
+digikamimageplugin_core_la_SOURCES = imageplugin_core.cpp \
+ imageeffect_autocorrection.cpp imageeffect_bwsepia.cpp imageeffect_ratiocrop.cpp imageeffect_bcg.cpp \
+ imageeffect_redeye.cpp imageeffect_blur.cpp imageeffect_sharpen.cpp imageeffect_rgb.cpp \
+ imageeffect_hsl.cpp imageeffect_iccproof.cpp
digikamimageplugin_core_la_LIBADD = $(LIB_KPARTS) $(LIB_IMLIB2) \
$(top_builddir)/digikam/digikam/libdigikam.la
@@ -34,3 +33,4 @@
digikamimageplugin_coreicondir = $(kde_datadir)/digikam/icons
digikamimageplugin_coreicon_ICON = AUTO
+noinst_HEADERS = imageeffect_iccproof.h imageeffect_iccproof.h
--- trunk/extragear/graphics/digikam/imageplugins/digikamimageplugin_core_ui.rc #490282:490283
@@ -14,6 +14,8 @@
<Action name="implugcore_autocorrection" />
<Action name="implugcore_invert" />
<Separator />
+ <Action name="implugcore_colormanagement" />
+ <Separator />
</Menu>
<Action name="implugcore_colors" />
<Separator />
--- trunk/extragear/graphics/digikam/imageplugins/imageplugin_core.cpp #490282:490283
@@ -44,6 +44,7 @@
#include "imageeffect_sharpen.h"
#include "imageeffect_ratiocrop.h"
#include "imageeffect_autocorrection.h"
+#include "imageeffect_iccproof.h"
#include "imageplugin_core.h"
K_EXPORT_COMPONENT_FACTORY( digikamimageplugin_core,
@@ -89,7 +90,10 @@
m_invertAction = new KAction(i18n("Invert"), "invertimage", 0,
this, SLOT(slotInvert()),
actionCollection(), "implugcore_invert");
-
+
+ m_colorManagementAction = new KAction(i18n("Color Management..."), "colormanagement", 0,
+ this, SLOT(slotColorManagement()),
+ actionCollection(), "implugcore_colormanagement");
//-------------------------------
// Filters menu actions.
@@ -132,6 +136,7 @@
m_aspectRatioCropAction->setEnabled(enable);
m_sharpenAction->setEnabled(enable);
m_blurAction->setEnabled(enable);
+ m_colorManagementAction->setEnabled(enable);
}
void ImagePlugin_Core::slotBlur()
@@ -204,4 +209,10 @@
dlg.exec();
}
+void ImagePlugin_Core::slotColorManagement()
+{
+ ImageEffect_ICCProof dlg(parentWidget());
+ dlg.exec();
+}
+
#include "imageplugin_core.moc"
--- trunk/extragear/graphics/digikam/imageplugins/imageplugin_core.h #490282:490283
@@ -55,6 +55,7 @@
KAction *m_aspectRatioCropAction;
KAction *m_sharpenAction;
KAction *m_blurAction;
+ KAction *m_colorManagementAction;
private slots:
@@ -71,6 +72,8 @@
void slotRedEye();
void slotRatioCrop();
+ void slotColorManagement();
+
};
#endif /* IMAGEPLUGIN_CORE_H */
More information about the Digikam-devel
mailing list