/****************************************************************************
** Form interface generated from reading ui file 'sq_imagefilter.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#ifndef UI_SQ_IMAGEFILTER_H
#define UI_SQ_IMAGEFILTER_H

#include <ntqvariant.h>
#include <ntqpixmap.h>
#include <ntqdialog.h>
#include <tqimage.h>
#include "sq_imageedit.h"

class TQVBoxLayout;
class TQHBoxLayout;
class TQGridLayout;
class TQSpacerItem;
class SQ_BCGLabel;
class TQWidgetStack;
class TQWidget;
class TQLabel;
class KColorButton;
class KDoubleNumInput;
class KIntNumInput;
class TQButtonGroup;
class TQRadioButton;
class TQCheckBox;
class TQPushButton;
class TQFrame;
class TQListBox;
class TQListBoxItem;

class SQ_ImageFilter : public TQDialog
{
    TQ_OBJECT

public:
    SQ_ImageFilter( TQWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
    ~SQ_ImageFilter();

    TQWidgetStack* widgetStackFilters;
    TQWidget* blendWidget;
    TQLabel* textLabel1;
    KColorButton* pushBlendColor;
    KDoubleNumInput* blendOpacity;
    TQWidget* WStackPage;
    KDoubleNumInput* blurSigma;
    KDoubleNumInput* blurRadius;
    TQWidget* WStackPage_2;
    KDoubleNumInput* desaturateValue;
    TQWidget* WStackPage_3;
    TQLabel* textLabel1_2;
    TQWidget* WStackPage_4;
    KIntNumInput* edgeRadius;
    TQWidget* WStackPage_5;
    KDoubleNumInput* embossSigma;
    KDoubleNumInput* embossRadius;
    TQWidget* WStackPage_6;
    TQLabel* textLabel1_2_2;
    TQWidget* WStackPage_7;
    KColorButton* fadeColor;
    TQLabel* textLabel1_4;
    KDoubleNumInput* fadeValue;
    TQWidget* WStackPage_8;
    KColorButton* flattenColor1;
    KColorButton* flattenColor2;
    TQLabel* textLabel1_4_2;
    TQLabel* textLabel1_4_3;
    TQWidget* WStackPage_9;
    KDoubleNumInput* implodeFactor;
    TQWidget* WStackPage_10;
    TQLabel* textLabel1_2_2_2;
    TQWidget* WStackPage_11;
    TQButtonGroup* buttonGroupNoise;
    TQRadioButton* radioButton1;
    TQRadioButton* radioButton1_4;
    TQRadioButton* radioButton1_3;
    TQRadioButton* radioButton1_6;
    TQRadioButton* radioButton1_2;
    TQRadioButton* radioButton1_5;
    TQWidget* WStackPage_12;
    KIntNumInput* oilRadius;
    TQWidget* WStackPage_13;
    TQCheckBox* shadeColor;
    KDoubleNumInput* shadeElev;
    KDoubleNumInput* shadeAzim;
    TQWidget* WStackPage_14;
    KDoubleNumInput* sharpenSigma;
    KDoubleNumInput* sharpenRadius;
    TQWidget* WStackPage_15;
    KDoubleNumInput* solarizeValue;
    TQWidget* WStackPage_16;
    KIntNumInput* spreadValue;
    TQWidget* WStackPage_17;
    TQButtonGroup* buttonGroupSwapRGB;
    TQRadioButton* radioButton7;
    TQRadioButton* radioButton8;
    TQWidget* WStackPage_18;
    KDoubleNumInput* swirlAngle;
    TQWidget* WStackPage_19;
    KIntNumInput* thresholdValue;
    TQWidget* WStackPage_20;
    TQLabel* textLabel1_2_2_2_2;
    TQWidget* WStackPage_21;
    KIntNumInput* thresholdRE;
    TQPushButton* pushFilter;
    TQPushButton* pushCancel;
    TQFrame* line7;
    TQListBox* listMain;
    SQ_BCGLabel* pixmap1;
    TQLabel* textLabel1_3;
    SQ_BCGLabel* pixmap;
    TQLabel* textLabel2;

    void setPreviewImage( const TQImage & im );
    static SQ_ImageFilter * instance();

signals:
    void filter(SQ_ImageFilterOptions*);

protected:
    TQGridLayout* SQ_ImageFilterLayout;
    TQSpacerItem* spacer27;
    TQSpacerItem* spacer26;
    TQGridLayout* blendWidgetLayout;
    TQSpacerItem* spacer17;
    TQGridLayout* WStackPageLayout;
    TQSpacerItem* spacer9_2;
    TQGridLayout* WStackPageLayout_2;
    TQSpacerItem* spacer10_2;
    TQGridLayout* WStackPageLayout_3;
    TQSpacerItem* spacer11;
    TQGridLayout* WStackPageLayout_4;
    TQSpacerItem* spacer12;
    TQGridLayout* WStackPageLayout_5;
    TQSpacerItem* spacer13;
    TQGridLayout* WStackPageLayout_6;
    TQSpacerItem* spacer11_2;
    TQGridLayout* WStackPageLayout_7;
    TQSpacerItem* spacer15;
    TQGridLayout* WStackPageLayout_8;
    TQSpacerItem* spacer16;
    TQGridLayout* WStackPageLayout_9;
    TQSpacerItem* spacer15_2;
    TQGridLayout* WStackPageLayout_10;
    TQSpacerItem* spacer11_2_2;
    TQGridLayout* WStackPageLayout_11;
    TQGridLayout* buttonGroupNoiseLayout;
    TQGridLayout* WStackPageLayout_12;
    TQSpacerItem* spacer15_2_2;
    TQGridLayout* WStackPageLayout_13;
    TQSpacerItem* spacer21;
    TQGridLayout* WStackPageLayout_14;
    TQSpacerItem* spacer13_2;
    TQGridLayout* WStackPageLayout_15;
    TQSpacerItem* spacer13_2_2;
    TQGridLayout* WStackPageLayout_16;
    TQSpacerItem* spacer24;
    TQGridLayout* WStackPageLayout_17;
    TQSpacerItem* spacer25;
    TQGridLayout* buttonGroupSwapRGBLayout;
    TQGridLayout* WStackPageLayout_18;
    TQSpacerItem* spacer13_2_2_2;
    TQGridLayout* WStackPageLayout_19;
    TQSpacerItem* spacer24_2;
    TQGridLayout* WStackPageLayout_20;
    TQSpacerItem* spacer11_2_2_2;
    TQGridLayout* WStackPageLayout_21;
    TQSpacerItem* spacer26_2;
    TQHBoxLayout* layout2;
    TQSpacerItem* spacer14;
    TQGridLayout* layout4;
    TQSpacerItem* spacer27_2;
    TQSpacerItem* spacer28;
    TQSpacerItem* spacer27_3;

protected slots:
    virtual void languageChange();

private:
    TQImage sample, sample_saved;
    static SQ_ImageFilter *m_inst;

    TQPixmap image0;

    void init();
    void assignNewImage( const TQImage & im );
    void negative();
    void togray();
    void equalize();
    void despeckle();
    void hackConnect();

private slots:
    void slotStartFiltering();
    void slotShowPage();
    void swapRGB();
    void blend();
    void fade();
    void desaturate();
    void threshold();
    void solarize();
    void spread();
    void swirl();
    void noise();
    void redeye();
    void flatten();
    void shade();
    void blur();
    void implode();
    void edge();
    void emboss();
    void sharpen();
    void oil();

};

#endif // SQ_IMAGEFILTER_H
