summaryrefslogtreecommitdiffstats
path: root/krita/plugins/viewplugins/histogram
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/viewplugins/histogram')
-rw-r--r--krita/plugins/viewplugins/histogram/Makefile.am24
-rw-r--r--krita/plugins/viewplugins/histogram/dlg_histogram.cc68
-rw-r--r--krita/plugins/viewplugins/histogram/dlg_histogram.h57
-rw-r--r--krita/plugins/viewplugins/histogram/histogram.cc105
-rw-r--r--krita/plugins/viewplugins/histogram/histogram.h49
-rw-r--r--krita/plugins/viewplugins/histogram/histogram.rc10
-rw-r--r--krita/plugins/viewplugins/histogram/kis_histogram_widget.cc147
-rw-r--r--krita/plugins/viewplugins/histogram/kis_histogram_widget.h54
-rw-r--r--krita/plugins/viewplugins/histogram/kritahistogram.desktop43
-rw-r--r--krita/plugins/viewplugins/histogram/wdghistogram.ui229
10 files changed, 786 insertions, 0 deletions
diff --git a/krita/plugins/viewplugins/histogram/Makefile.am b/krita/plugins/viewplugins/histogram/Makefile.am
new file mode 100644
index 000000000..a8dd17a17
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/Makefile.am
@@ -0,0 +1,24 @@
+kritarcdir = $(kde_datadir)/kritaplugins
+kritarc_DATA = histogram.rc
+
+EXTRA_DIST = $(kritarc_DATA)
+
+INCLUDES = -I$(srcdir)/../../../sdk \
+ -I$(srcdir)/../../../core \
+ -I$(srcdir)/../../../kritacolor/ \
+ -I$(srcdir)/../../../ui \
+ -I../../../ui \
+ $(KOFFICE_INCLUDES) \
+ $(all_includes)
+
+kde_module_LTLIBRARIES = kritahistogram.la
+
+kritahistogram_la_SOURCES = histogram.cc dlg_histogram.cc wdghistogram.ui kis_histogram_widget.cc
+noinst_HEADERS = dlg_histogram.h histogram.h wdghistogram.h kis_histogram_widget.h
+
+kde_services_DATA = kritahistogram.desktop
+
+kritahistogram_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
+kritahistogram_la_LIBADD = ../../../libkritacommon.la
+
+kritahistogram_la_METASOURCES = AUTO
diff --git a/krita/plugins/viewplugins/histogram/dlg_histogram.cc b/krita/plugins/viewplugins/histogram/dlg_histogram.cc
new file mode 100644
index 000000000..0440c9db6
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/dlg_histogram.cc
@@ -0,0 +1,68 @@
+/*
+ * dlg_histogram.cc - part of KimageShop^WKrayon^WKrita
+ *
+ * Copyright (c) 2004 Boudewijn Rempt <boud@valdyas.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+#include <qbuttongroup.h>
+#include <qpushbutton.h>
+#include <qcheckbox.h>
+#include <qslider.h>
+#include <qcombobox.h>
+#include <qpixmap.h>
+#include <qimage.h>
+#include <qlabel.h>
+
+#include <knuminput.h>
+#include <klocale.h>
+#include <kdebug.h>
+
+#include "kis_types.h"
+#include "kis_histogram.h"
+#include "kis_layer.h"
+#include "kis_paint_device.h"
+
+#include "dlg_histogram.h"
+#include "kis_histogram_widget.h"
+
+
+DlgHistogram::DlgHistogram( QWidget * parent, const char * name)
+ : super (parent, name, true, i18n("Histogram"), Ok | Cancel, Ok)
+{
+ m_page = new KisHistogramWidget(this, "histogram");
+ Q_CHECK_PTR(m_page);
+
+ setCaption(i18n("Histogram"));
+ setMainWidget(m_page);
+ resize(m_page->sizeHint());
+}
+
+DlgHistogram::~DlgHistogram()
+{
+ delete m_page;
+}
+
+void DlgHistogram::setPaintDevice(KisPaintDeviceSP dev)
+{
+ m_page->setPaintDevice(dev);
+}
+
+void DlgHistogram::okClicked()
+{
+ accept();
+}
+
+#include "dlg_histogram.moc"
diff --git a/krita/plugins/viewplugins/histogram/dlg_histogram.h b/krita/plugins/viewplugins/histogram/dlg_histogram.h
new file mode 100644
index 000000000..790e77ef8
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/dlg_histogram.h
@@ -0,0 +1,57 @@
+/*
+ * dlg_histogram.h -- part of KimageShop^WKrayon^WKrita
+ *
+ * Copyright (c) 2004 Boudewijn Rempt <boud@valdyas.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+#ifndef DLG_HISTOGRAM
+#define DLG_HISTOGRAM
+
+#include <kdialogbase.h>
+
+#include "kis_types.h"
+
+class KisHistogramWidget;
+
+/**
+ * This dialog shows the histogram for the (selected) portion
+ * of the current layer.
+ *
+ * XXX: Also for complete image?
+ */
+class DlgHistogram: public KDialogBase {
+ typedef KDialogBase super;
+ Q_OBJECT
+
+public:
+
+ DlgHistogram(QWidget * parent = 0,
+ const char* name = 0);
+ ~DlgHistogram();
+
+ void setPaintDevice(KisPaintDeviceSP dev);
+
+private slots:
+ void okClicked();
+
+private:
+
+ KisHistogramWidget * m_page;
+ KisHistogramSP m_histogram;
+ KisLayerSP m_layer;
+};
+
+#endif // DLG_HISTOGRAM
diff --git a/krita/plugins/viewplugins/histogram/histogram.cc b/krita/plugins/viewplugins/histogram/histogram.cc
new file mode 100644
index 000000000..7db92deea
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/histogram.cc
@@ -0,0 +1,105 @@
+/*
+ * histogram.h -- Part of Krita
+ *
+ * Copyright (c) 2004 Boudewijn Rempt (boud@valdyas.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+
+#include <math.h>
+
+#include <stdlib.h>
+
+#include <qslider.h>
+#include <qpoint.h>
+
+#include <klocale.h>
+#include <kiconloader.h>
+#include <kinstance.h>
+#include <kmessagebox.h>
+#include <kstandarddirs.h>
+#include <ktempfile.h>
+#include <kdebug.h>
+#include <kgenericfactory.h>
+
+#include <kis_doc.h>
+#include <kis_image.h>
+#include <kis_layer.h>
+#include <kis_paint_device.h>
+#include <kis_global.h>
+#include <kis_types.h>
+#include <kis_view.h>
+#include <kis_selection.h>
+
+#include "histogram.h"
+#include "dlg_histogram.h"
+#include "kis_colorspace.h"
+#include "kis_histogram.h"
+
+typedef KGenericFactory<Histogram> HistogramFactory;
+K_EXPORT_COMPONENT_FACTORY( kritahistogram, HistogramFactory( "krita" ) )
+
+Histogram::Histogram(QObject *parent, const char *name, const QStringList &)
+ : KParts::Plugin(parent, name)
+{
+
+ if ( parent->inherits("KisView") ) {
+
+ setInstance(HistogramFactory::instance());
+ setXMLFile(locate("data","kritaplugins/histogram.rc"), true);
+
+ m_action = new KAction(i18n("&Histogram"), 0, 0, this, SLOT(slotActivated()), actionCollection(), "histogram");
+
+ m_view = (KisView*) parent;
+ if (KisImageSP img = m_view->canvasSubject()->currentImg()) {
+ connect(img, SIGNAL(sigLayersChanged(KisGroupLayerSP)), this, SLOT(slotLayersChanged()));
+ connect(img, SIGNAL(sigLayerAdded(KisLayerSP)), this, SLOT(slotLayersChanged()));
+ connect(img, SIGNAL(sigLayerActivated(KisLayerSP)), this, SLOT(slotLayersChanged()));
+ connect(img, SIGNAL(sigLayerPropertiesChanged(KisLayerSP)), this, SLOT(slotLayersChanged()));
+ connect(img, SIGNAL(sigLayerRemoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)),
+ this, SLOT(slotLayersChanged()));
+ connect(img, SIGNAL(sigLayerMoved(KisLayerSP, KisGroupLayerSP, KisLayerSP)),
+ this, SLOT(slotLayersChanged()));
+ m_img = img;
+ }
+ }
+}
+
+Histogram::~Histogram()
+{
+}
+
+void Histogram::slotLayersChanged() {
+ m_action->setEnabled(m_img && m_img->activeLayer() && m_img->activeLayer()->visible());
+}
+
+void Histogram::slotActivated()
+{
+ DlgHistogram * dlgHistogram = new DlgHistogram(m_view, "Histogram");
+ Q_CHECK_PTR(dlgHistogram);
+
+ KisPaintDeviceSP dev = m_view->canvasSubject()->currentImg()->activeDevice();
+ if (dev)
+ dlgHistogram->setPaintDevice(dev);
+
+ if (dlgHistogram->exec() == QDialog::Accepted) {
+ // Do nothing; this is an informational dialog
+ }
+ delete dlgHistogram;
+}
+
+#include "histogram.moc"
+
diff --git a/krita/plugins/viewplugins/histogram/histogram.h b/krita/plugins/viewplugins/histogram/histogram.h
new file mode 100644
index 000000000..adaa6bfd1
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/histogram.h
@@ -0,0 +1,49 @@
+/*
+ * histogram.h -- Part of Krita
+ *
+ * Copyright (c) 2004 Boudewijn Rempt (boud@valdyas.org)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef HISTOGRAM_H
+#define HISTOGRAM_H
+
+#include <kparts/plugin.h>
+
+class KisView;
+class KAction;
+class KisImage;
+
+class Histogram : public KParts::Plugin
+{
+ Q_OBJECT
+ public:
+ Histogram(QObject *parent, const char *name, const QStringList &);
+ virtual ~Histogram();
+
+ private slots:
+ void slotActivated();
+ void slotLayersChanged();
+
+ private:
+ KisImage* m_img;
+ KisView * m_view;
+ KisPainter * m_painter;
+ KAction* m_action;
+
+};
+
+#endif // HISTOGRAM_H
diff --git a/krita/plugins/viewplugins/histogram/histogram.rc b/krita/plugins/viewplugins/histogram/histogram.rc
new file mode 100644
index 000000000..f41b50e74
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/histogram.rc
@@ -0,0 +1,10 @@
+<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
+<kpartgui library="kritahistogram" version="6">
+<MenuBar>
+ <Menu name="Layer"><text>&amp;Layer</text>
+ <Separator/>
+ <Action name="histogram"/>
+ <Separator/>
+ </Menu>
+</MenuBar>
+</kpartgui>
diff --git a/krita/plugins/viewplugins/histogram/kis_histogram_widget.cc b/krita/plugins/viewplugins/histogram/kis_histogram_widget.cc
new file mode 100644
index 000000000..0e7384355
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/kis_histogram_widget.cc
@@ -0,0 +1,147 @@
+/*
+ * Copyright (c) 2004 Boudewijn Rempt
+ * (c) 2005 Bart Coppens <kde@bartcoppens.be>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include <qpainter.h>
+#include <qpixmap.h>
+#include <qlabel.h>
+#include <qcombobox.h>
+#include <qbuttongroup.h>
+#include <qpushbutton.h>
+#include <qscrollbar.h>
+#include <qtooltip.h>
+
+#include <kdebug.h>
+
+#include "kis_channelinfo.h"
+#include "kis_histogram_view.h"
+#include "kis_histogram_widget.h"
+#include "kis_histogram.h"
+#include "kis_global.h"
+#include "kis_types.h"
+#include "kis_layer.h"
+#include "kis_paint_device.h"
+#include "kis_colorspace.h"
+
+
+KisHistogramWidget::KisHistogramWidget(QWidget *parent, const char *name)
+ : super(parent, name)
+{
+ m_from = 0.0;
+ m_width = 0.0;
+}
+
+KisHistogramWidget::~KisHistogramWidget()
+{
+}
+
+void KisHistogramWidget::setPaintDevice(KisPaintDeviceSP dev)
+{
+ grpType->disconnect(this);
+ cmbChannel->disconnect(this);
+
+ m_histogramView->setPaintDevice(dev);
+ setActiveChannel(0); // So we have the colored one if there are colors
+
+ // The channels
+ cmbChannel->clear();
+ cmbChannel->insertStringList(m_histogramView->channelStrings());
+ cmbChannel->setCurrentItem(0);
+
+ // View display
+ currentView->setMinValue(0);
+ currentView->setMaxValue(100);
+
+ updateEnabled();
+
+ m_from = m_histogramView->currentProducer()->viewFrom();
+ m_width = m_histogramView->currentProducer()->viewWidth();
+
+ connect(grpType, SIGNAL(clicked(int)), this, SLOT(slotTypeSwitched(int)));
+ connect(cmbChannel, SIGNAL(activated(int)), this, SLOT(setActiveChannel(int)));
+ connect(zoomIn, SIGNAL(clicked()), this, SLOT(slotZoomIn()));
+ connect(zoomOut, SIGNAL(clicked()), this, SLOT(slotZoomOut()));
+ connect(currentView, SIGNAL(valueChanged(int)), this, SLOT(slide(int)));
+}
+
+void KisHistogramWidget::setActiveChannel(int channel)
+{
+ m_histogramView->setActiveChannel(channel);
+ updateEnabled();
+}
+
+void KisHistogramWidget::slotTypeSwitched(int id)
+{
+ if (id == LINEAR)
+ m_histogramView->setHistogramType(LINEAR);
+ else if (id == LOGARITHMIC)
+ m_histogramView->setHistogramType(LOGARITHMIC);
+}
+
+void KisHistogramWidget::setView(double from, double size)
+{
+ m_from = from;
+ m_width = size;
+ if (m_from + m_width > 1.0)
+ m_from = 1.0 - m_width;
+ m_histogramView->setView(m_from, m_width);
+ updateEnabled();
+}
+
+void KisHistogramWidget::slotZoomIn() {
+ if ((m_width / 2) >= m_histogramView->currentProducer()->maximalZoom()) {
+ setView(m_from, m_width / 2);
+ }
+}
+
+void KisHistogramWidget::slotZoomOut() {
+ if (m_width * 2 <= 1.0) {
+ setView(m_from, m_width * 2);
+ }
+}
+
+void KisHistogramWidget::slide(int val) {
+ // Beware: at the END (e.g. 100), we want to still view m_width:
+ setView((static_cast<double>(val) / 100.0) * (1.0 - m_width), m_width);
+}
+
+void KisHistogramWidget::updateEnabled() {
+ if (m_histogramView->currentProducer()->maximalZoom() < 1.0) {
+ if ((m_width / 2) >= m_histogramView->currentProducer()->maximalZoom()) {
+ zoomIn->setEnabled(true);
+ } else {
+ zoomIn->setEnabled(false);
+ }
+ if (m_width * 2 <= 1.0) {
+ zoomOut->setEnabled(true);
+ } else {
+ zoomOut->setEnabled(false);
+ }
+ if (m_width < 1.0)
+ currentView->setEnabled(true);
+ else
+ currentView->setEnabled(false);
+ } else {
+ zoomIn->setEnabled(false);
+ zoomOut->setEnabled(false);
+ currentView->setEnabled(false);
+ }
+}
+
+#include "kis_histogram_widget.moc"
+
diff --git a/krita/plugins/viewplugins/histogram/kis_histogram_widget.h b/krita/plugins/viewplugins/histogram/kis_histogram_widget.h
new file mode 100644
index 000000000..84b551d8d
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/kis_histogram_widget.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2004 Boudewijn Rempt
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+#ifndef KIS_HISTOGRAM_WIDGET_
+#define KIS_HISTOGRAM_WIDGET_
+
+#include "kis_types.h"
+#include "wdghistogram.h"
+
+class KisColorSpace;
+
+/**
+ * The histogram widget takes a paint device or an image and
+ * draws a histogram for the given KisHistogram.
+ */
+class KisHistogramWidget : public WdgHistogram {
+ typedef WdgHistogram super;
+ Q_OBJECT
+
+public:
+ KisHistogramWidget(QWidget *parent, const char *name);
+ virtual ~KisHistogramWidget();
+
+ void setPaintDevice(KisPaintDeviceSP dev);
+
+private slots:
+ void setActiveChannel(int channel);
+ void slotTypeSwitched(int id);
+ void slotZoomIn();
+ void slotZoomOut();
+ void slide(int val);
+
+private:
+ void setView(double from, double size);
+ void updateEnabled();
+ double m_from, m_width;
+};
+
+
+#endif // KIS_HISTOGRAM_WIDGET_
diff --git a/krita/plugins/viewplugins/histogram/kritahistogram.desktop b/krita/plugins/viewplugins/histogram/kritahistogram.desktop
new file mode 100644
index 000000000..552f27d6a
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/kritahistogram.desktop
@@ -0,0 +1,43 @@
+[Desktop Entry]
+Name=Histogram Plugin
+Name[bg]=Приставка за Histogram
+Name[ca]=Connector d'histograma
+Name[da]=Plugin med histogram
+Name[de]=Histogramm-Modul
+Name[el]=Πρόσθετο ιστογράμματος
+Name[eo]=Histograma kromaĵo
+Name[es]=Complemento de histograma
+Name[et]=Histogrammiplugin
+Name[fa]=وصلۀ سابقه‌نما
+Name[fr]=Module d'histogramme
+Name[fy]=Histogramplugin
+Name[gl]=Plugin de Histograma
+Name[hu]=Hisztogram modul
+Name[is]=Súluritssía
+Name[it]=Plugin per gli istogrammi
+Name[ja]=ヒストグラムプラグイン
+Name[km]=កម្មវិធី​ជំនួយ​អ៊ីស្តូក្រាម​
+Name[lt]=Histogramos įskiepis
+Name[nb]=Programtillegg for histogram
+Name[nds]=Histogramm-Moduul
+Name[ne]=हिस्टोग्राम प्लगइन
+Name[nl]=Histogramplugin
+Name[pl]=Wtyczka histogramu
+Name[pt]='Plugin' do Histograma
+Name[pt_BR]=Plugin do Histograma
+Name[ru]=Модуль гистограммы
+Name[se]=Histogram lassemoduvla
+Name[sk]=Modul histogram
+Name[sl]=Vstavek za histograme
+Name[sr]=Хистограмски прикључак
+Name[sr@Latn]=Histogramski priključak
+Name[sv]=Insticksprogram med histogram
+Name[uk]=Втулок гістограм
+Name[uz]=Gistogramma plagini
+Name[uz@cyrillic]=Гистограмма плагини
+Name[zh_CN]=直方图插件
+Name[zh_TW]=直方圖外掛程式
+ServiceTypes=Krita/ViewPlugin
+Type=Service
+X-KDE-Library=kritahistogram
+X-Krita-Version=2
diff --git a/krita/plugins/viewplugins/histogram/wdghistogram.ui b/krita/plugins/viewplugins/histogram/wdghistogram.ui
new file mode 100644
index 000000000..e538adae1
--- /dev/null
+++ b/krita/plugins/viewplugins/histogram/wdghistogram.ui
@@ -0,0 +1,229 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>WdgHistogram</class>
+<widget class="QWidget">
+ <property name="name">
+ <cstring>WdgHistogram</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>450</width>
+ <height>380</height>
+ </rect>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QButtonGroup">
+ <property name="name">
+ <cstring>grpType</cstring>
+ </property>
+ <property name="title">
+ <string>Method</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QRadioButton" row="0" column="2">
+ <property name="name">
+ <cstring>radioLinear</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Linear</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="QRadioButton" row="1" column="2" rowspan="2" colspan="1">
+ <property name="name">
+ <cstring>radioLog</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Logarithmic</string>
+ </property>
+ </widget>
+ <spacer row="2" column="1">
+ <property name="name">
+ <cstring>spacer1</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Preferred</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="QComboBox" row="0" column="1" rowspan="2" colspan="1">
+ <property name="name">
+ <cstring>cmbChannel</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>200</width>
+ <height>0</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0" rowspan="2" colspan="1">
+ <property name="name">
+ <cstring>lblChannel</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Channel:</string>
+ </property>
+ <property name="buddy" stdset="0">
+ <cstring>cmbChannel</cstring>
+ </property>
+ </widget>
+ <spacer row="2" column="0">
+ <property name="name">
+ <cstring>spacer2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Preferred</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>21</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+ </widget>
+ <widget class="KisHistogramView">
+ <property name="name">
+ <cstring>m_histogramView</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>7</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>256</width>
+ <height>150</height>
+ </size>
+ </property>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout2</cstring>
+ </property>
+ <hbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>textLabel1</cstring>
+ </property>
+ <property name="text">
+ <string>View:</string>
+ </property>
+ </widget>
+ <widget class="QPushButton">
+ <property name="name">
+ <cstring>zoomIn</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>+</string>
+ </property>
+ </widget>
+ <widget class="QPushButton">
+ <property name="name">
+ <cstring>zoomOut</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>-</string>
+ </property>
+ </widget>
+ <widget class="QScrollBar">
+ <property name="name">
+ <cstring>currentView</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ </widget>
+ </hbox>
+ </widget>
+ </vbox>
+</widget>
+<customwidgets>
+ <customwidget>
+ <class>KisHistogramView</class>
+ <header location="local">kis_histogram_view.h</header>
+ <sizehint>
+ <width>-1</width>
+ <height>-1</height>
+ </sizehint>
+ <container>0</container>
+ <sizepolicy>
+ <hordata>5</hordata>
+ <verdata>5</verdata>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ <pixmap>image0</pixmap>
+ </customwidget>
+</customwidgets>
+<images>
+ <image name="image0">
+ <data format="PNG" length="1002">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000003b149444154388dad945f4c5b551cc73fe7dc4b7b4bcba0762d45c43114323599ee6192609c51d883892ce083f1718b3ebb185f8dc91e972cf39d2d2a2f1af664b6f1e0fe3863a0718969700eb0c52142da0242a1bd6d696f7bcff101585203ceb8fd9ece39f99dcff9fe7edf939f88c562ec465f5f9fe609442c161362173c3e3eae7b7a7ac8e7f36432196cdbfe4f907c3e4f2291201e8fe338cec3737357e9e8e828aded1e229d650e1f2d51754b082110124c13a4dc5ea341eb9dc284c0558a853f3ce8cb0677ef500fde7d39d2596679e326597b8e9abb85d7a770ab16ab6983ec5a05b487a70e36f0f4e10afe408d6a558310980108478dba4a1e8233990c5d474b64ed39aa3a8fe5f3317fbf81dbd70bccfeb205947632fd74f6589c1c6ea2f70d03a58ba0c1f2c9bdc1b66de3b8256a6e11cbe7e3ee1d181b590124fe2693aeee08d223c82c3a2c24b7b874bec8f26288774f7bd054504aef0dde6e99c0eb83f9fb266323cb80a27fb0958141836044605a2ee5523393371cc646fee2da37195aa35d0c0c5b4859ac03d7e91712dcaac5adab3650a3ff9d08ef7dd8404bb48869e5d958b5b87dadc4c9a1464e9f0d0326df7ebd86bd2e310cb1bf62d384d59441f2d70a070e1c60e09489929b988681bdd9cc97170bcc4c65595f71f8e0e3301337fc24a7732467831875a47f289652b0be5e4151e6d07316c1b0c0340d8ab92023e76d66a6b2840e36d2fb7a13fee632475e6edc367ea98a90fb98b7dd6310ca0328a44761582e1bab41befabcc0ec940d28bc5e93b68e064cab84e1d9beaeb48934eac1f53b01c1b000fca496aa54b61a99fcde61662a4b4b4b23d1680be9d426173e4df3602a48ea411989a4fd590f52a8fd156b05ed9d350e3defe3cfdf4b4c7ce770ea7d3fb9f520afbe1620daeee5c26735d20b9b9cfb6811a754a439e4e5c5639a4caa1e5caf586bfc0197b78702005cb9b4cae4cd3267ce8638fe964bd72b393e39d74928d242617303a756a37f284447770dcdbffc6384a05a85de1306e9a52057c7527c7131c3c42d3f475eb2303c82d4fc3276d6811db37efeb148723082d9b08f79f97c1e5729109a9a28307cc622d2d6cdf52b2b24efe548dedb00142009862cfa879ee1a71f6cec928353511472fbf4389148b0b0e0c108081412458dfe21c9f11351e67e7358595468246d1d1e5e38a6e9e851bc39d84ab502a669331dafec0d8ec7e3e8cb06e1a881d727d1ae40180a434a8c9db129a54126ad48a7358c2b4c5352c8c374bcccdab2bb37d8719cba79fab8211f9df218e0582c261e95f8bfc04f1a1e8bc5c4dfe0a190172af6a9690000000049454e44ae426082</data>
+ </image>
+</images>
+<layoutdefaults spacing="6" margin="11"/>
+<includehints>
+ <includehint>kis_histogram_view.h</includehint>
+</includehints>
+</UI>