[Digikam-devel] extragear/graphics/digikam/imageplugins
Francisco J. Cruz
fj.cruz at supercable.es
Thu Jan 12 23:04:14 GMT 2006
SVN commit 497509 by fjcruz:
First attempt to implement a file dialog with metadata preview for icc files.
CCMAIL:digikam-devel at kde.org
M +10 -1 imageeffect_iccproof.cpp
M +8 -1 imageeffect_iccproof.h
--- trunk/extragear/graphics/digikam/imageplugins/imageeffect_iccproof.cpp #497508:497509
@@ -45,6 +45,8 @@
#include <kdebug.h>
#include <ktabwidget.h>
#include <kconfig.h>
+#include <kurlrequester.h>
+#include <kfiledialog.h>
// Digikam includes.
@@ -53,6 +55,7 @@
#include "histogramwidget.h"
#include "colorgradientwidget.h"
#include "dimg.h"
+#include "iccpreviewwidget.h"
// Local includes.
@@ -67,6 +70,8 @@
{
m_destinationPreviewData = 0L;
+
+
setHelp("colormanagement.anchor", "digikam");
QFrame *frame = new QFrame(plainPage());
@@ -291,7 +296,11 @@
QRadioButton *m_useDisplaySelectedProfile = new QRadioButton(m_displayProfile);
m_useDisplaySelectedProfile->setText(i18n("Use selected profile"));
- QComboBox *m_displayProfileCB = new QComboBox(m_displayProfile);
+// QComboBox *m_displayProfileCB = new QComboBox(m_displayProfile);
+ KURLRequester *m_displayProfileCB = new KURLRequester(m_displayProfile);
+ KFileDialog *displayProfiles_dialog = m_displayProfileCB->fileDialog();
+ m_iccPreviewWidget = new Digikam::ICCPreviewWidget(displayProfiles_dialog);
+ displayProfiles_dialog->setPreviewWidget(m_iccPreviewWidget);
QPushButton *m_DisplayProfilesInfo = new QPushButton(i18n("Info"), m_displayProfile);
--- trunk/extragear/graphics/digikam/imageplugins/imageeffect_iccproof.h #497508:497509
@@ -31,6 +31,7 @@
class QPushButton;
class KTabWidget;
+class KURLRequester;
namespace Digikam
{
@@ -39,6 +40,7 @@
class HistogramWidget;
class ColorGradientWidget;
class DColor;
+class ICCPreviewWidget;
}
namespace DigikamImagesPluginCore
@@ -75,7 +77,8 @@
KTabWidget *m_tabsWidgets;
QComboBox *m_channelCB;
- QComboBox *m_displayProfilesCB;
+// QComboBox *m_displayProfilesCB;
+ KURLRequester *m_displayProfilesCB;
QComboBox *m_inProfilesCB;
QComboBox *m_outProfilesCB;
QComboBox *m_renderingIntentCB;
@@ -103,12 +106,16 @@
QPushButton *m_testItBt;
+
+
Digikam::ImageGuideWidget *m_previewWidget;
Digikam::ColorGradientWidget *m_hGradient;
Digikam::HistogramWidget *m_histogramWidget;
+ Digikam::ICCPreviewWidget *m_iccPreviewWidget;
+
private:
void readSettings();
More information about the Digikam-devel
mailing list