Back to index

scribus-ng  1.3.4.dfsg+svn20071115
effectsdialog.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef EFFECTSDIALOG_H
00008 #define EFFECTSDIALOG_H
00009 
00010 #include <qvariant.h>
00011 #include <qpixmap.h>
00012 #include <qdialog.h>
00013 #include <qvaluelist.h>
00014 #include <qmap.h>
00015 #include <qlistbox.h>
00016 
00017 #include "scribusapi.h"
00018 #include "pageitem.h"
00019 class QVBoxLayout;
00020 class QHBoxLayout;
00021 class QGridLayout;
00022 class QSpacerItem;
00023 class QLabel;
00024 class QPushButton;
00025 class QComboBox;
00026 class ColorCombo;
00027 class ScribusDoc;
00028 class ShadeButton;
00029 class QWidgetStack;
00030 class QWidget;
00031 class QSlider;
00032 class QPopupMenu;
00033 class QToolButton;
00034 class MSpinBox;
00035 class CurveWidget;
00036 
00037 class SCRIBUS_API EffectListItem : public QListBoxText
00038 {
00039 public:
00040     EffectListItem(QListBox* parent, QString f);
00041     virtual ~EffectListItem() {};
00042     virtual const int width(const QListBox *);
00043     virtual const int height(const QListBox *);
00044 protected:
00045     virtual void paint(QPainter *p);
00046 };
00047 
00048 class SCRIBUS_API EffectsDialog : public QDialog
00049 {
00050        Q_OBJECT
00051 
00052 public:
00053        EffectsDialog( QWidget* parent, PageItem* item, ScribusDoc* docc );
00054        ~EffectsDialog() {};
00055        void selectEffectHelper(bool final = false);
00056 
00057        QLabel* pixmapLabel1;
00058        QLabel* textLabel1;
00059        QLabel* textLabel2;
00060        QLabel* textLabel3;
00061        QLabel* textLabel4;
00062        QLabel* textLabel5;
00063        QLabel* textLabel6;
00064        QLabel* textLabel7;
00065        QLabel* textLabel8;
00066        QLabel* textLabel9;
00067        QLabel* textLabel10;
00068        QLabel* textLabel11;
00069        QLabel* textLabel12;
00070        QLabel* textLabel14;
00071        QLabel* textLabel15;
00072        QWidgetStack* optionStack;
00073        QWidget* WStackPage;
00074        QWidget* WStackPage_2;
00075        ColorCombo* colData;
00076        ShadeButton *shade;
00077        QWidget* WStackPage_3;
00078        QSlider* brightnessSlider;
00079        QWidget* WStackPage_4;
00080        QSlider* contrastSlider;
00081        QWidget* WStackPage_5;
00082        MSpinBox* shRadius;
00083        MSpinBox* shValue;
00084        QWidget* WStackPage_6;
00085        MSpinBox* blRadius;
00086        QWidget* WStackPage_7;
00087        QSlider* solarizeSlider;
00088        QWidget* WStackPage_8;
00089        QLabel* textLabel1d;
00090        ColorCombo* colData1;
00091        ShadeButton *shade1;
00092        CurveWidget *CurveD1;
00093        QToolButton *CurveD1Button;
00094        QPopupMenu *CurveD1Pop;
00095        QLabel* textLabel2d;
00096        ColorCombo* colData2;
00097        ShadeButton *shade2;
00098        CurveWidget *CurveD2;
00099        QToolButton *CurveD2Button;
00100        QPopupMenu *CurveD2Pop;
00101 
00102        QWidget* WStackPage_9;
00103        QLabel* textLabel1t;
00104        ColorCombo* colDatat1;
00105        ShadeButton *shadet1;
00106        CurveWidget *CurveT1;
00107        QToolButton *CurveT1Button;
00108        QPopupMenu *CurveT1Pop;
00109        QLabel* textLabel2t;
00110        ColorCombo* colDatat2;
00111        ShadeButton *shadet2;
00112        CurveWidget *CurveT2;
00113        QToolButton *CurveT2Button;
00114        QPopupMenu *CurveT2Pop;
00115        QLabel* textLabel3t;
00116        ColorCombo* colDatat3;
00117        ShadeButton *shadet3;
00118        CurveWidget *CurveT3;
00119        QToolButton *CurveT3Button;
00120        QPopupMenu *CurveT3Pop;
00121 
00122        QWidget* WStackPage_10;
00123        QLabel* textLabel1q;
00124        ColorCombo* colDataq1;
00125        ShadeButton *shadeq1;
00126        CurveWidget *CurveQ1;
00127        QToolButton *CurveQ1Button;
00128        QPopupMenu *CurveQ1Pop;
00129        QLabel* textLabel2q;
00130        ColorCombo* colDataq2;
00131        ShadeButton *shadeq2;
00132        CurveWidget *CurveQ2;
00133        QToolButton *CurveQ2Button;
00134        QPopupMenu *CurveQ2Pop;
00135        QLabel* textLabel3q;
00136        ColorCombo* colDataq3;
00137        ShadeButton *shadeq3;
00138        CurveWidget *CurveQ3;
00139        QToolButton *CurveQ3Button;
00140        QPopupMenu *CurveQ3Pop;
00141        QLabel* textLabel4q;
00142        ColorCombo* colDataq4;
00143        ShadeButton *shadeq4;
00144        CurveWidget *CurveQ4;
00145        QToolButton *CurveQ4Button;
00146        QPopupMenu *CurveQ4Pop;
00147 
00148        QWidget* WStackPage_11;
00149        CurveWidget *Kdisplay;
00150 
00151        QListBox* usedEffects;
00152        QPushButton* effectUp;
00153        QPushButton* effectDown;
00154        QPushButton* toEffects;
00155        QPushButton* fromEffects;
00156        QListBox* availableEffects;
00157        QPushButton* okButton;
00158        QPushButton* cancelButton;
00159        ScImageEffectList effectsList;
00160        QMap<QListBoxItem*, QString> effectValMap;
00161        QListBoxItem* currentOptions;
00162        ScribusDoc* doc;
00163        PageItem* currItem;
00164        ScImage image;
00165        QTime tim;
00166        double imageScale;
00167 
00168 public slots:
00169        virtual void leaveOK();
00170        virtual void updateSolarize(int val);
00171        virtual void updateContrast(int val);
00172        virtual void updateBright(int val);
00173        virtual void createPreview();
00174        virtual void saveValues(bool final);
00175        virtual void moveToEffects();
00176        virtual void moveFromEffects();
00177        virtual void moveEffectUp();
00178        virtual void moveEffectDown();
00179        virtual void selectEffect(QListBoxItem* c);
00180        virtual void selectAvailEffect(QListBoxItem* c);
00181        virtual void selectAvailEffectDbl(QListBoxItem* c);
00182 
00183 protected:
00184        QHBoxLayout* EffectsDialogLayout;
00185        QVBoxLayout* WStackPageLayout;
00186        QVBoxLayout* WStackPage3Layout;
00187        QHBoxLayout* layout20;
00188        QVBoxLayout* WStackPage4Layout;
00189        QHBoxLayout* layout21;
00190        QVBoxLayout* WStackPage5Layout;
00191        QHBoxLayout* layout22;
00192        QHBoxLayout* layout23;
00193        QVBoxLayout* WStackPage6Layout;
00194        QHBoxLayout* layout24;
00195        QVBoxLayout* WStackPage7Layout;
00196        QGridLayout* WStackPage8Layout;
00197        QGridLayout* WStackPage9Layout;
00198        QGridLayout* WStackPage10Layout;
00199        QVBoxLayout* WStackPage11Layout;
00200        QHBoxLayout* layout26;
00201        QHBoxLayout* layout17;
00202        QHBoxLayout* layout19;
00203        QGridLayout* layout10;
00204        QVBoxLayout* layout8;
00205        QHBoxLayout* layout7;
00206        QVBoxLayout* layout1;
00207        QVBoxLayout* layout2;
00208        QVBoxLayout* layout16;
00209        QVBoxLayout* layout18;
00210        QHBoxLayout* layout9;
00211 };
00212 
00213 #endif // EFFECTSDIALOG_H