Back to index

scribus-ng  1.3.4.dfsg+svn20071115
preview.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 PRVIEW_H
00008 #define PRVIEW_H
00009 
00010 #include <qdialog.h>
00011 #include <qlabel.h>
00012 #include <qpixmap.h>
00013 #include <qscrollview.h>
00014 #include <qlayout.h>
00015 #include <qtoolbutton.h>
00016 #include <qcombobox.h>
00017 #include <qcheckbox.h>
00018 #include <qpushbutton.h>
00019 #include <qgroupbox.h>
00020 #include "scribusapi.h"
00021 
00022 class PageSelector;
00023 class ScribusDoc;
00024 class ScribusView;
00025 class ScImage;
00026 class ScColor;
00027 class QSpinBox;
00028 class PrefsManager;
00029 
00030 class QImage;
00031 class QTable;
00032 
00033 
00035 class SCRIBUS_API PPreview : public QDialog
00036 {
00037        Q_OBJECT
00038 
00039 public:
00050        PPreview( QWidget* parent, ScribusView *vin, ScribusDoc *docu, int pngAlpha, int tiffSep, QString printer = "" );
00051        ~PPreview() {};
00059        int RenderPreview(int Seite, int Res);
00060        int RenderPreviewSep(int Seite, int Res);
00061        void blendImages(QImage &target, ScImage &source, ScColor col);
00062        static bool usePostscriptPreview(QString printerName);
00070        QPixmap CreatePreview(int Seite, int Res);
00071        PageSelector *PGSel;
00072        QCheckBox* AntiAlias;
00073        QCheckBox* AliasTr;
00074        QCheckBox* EnableCMYK;
00075        QCheckBox* EnableCMYK_C;
00076        QCheckBox* EnableCMYK_M;
00077        QCheckBox* EnableCMYK_Y;
00078        QCheckBox* EnableCMYK_K;
00079        QCheckBox* EnableGCR;
00080        QCheckBox* EnableOverprint;
00081        QCheckBox* MirrorHor;
00082        QCheckBox* MirrorVert;
00083        QCheckBox* ClipMarg;
00084        QCheckBox* spotColors;
00085        QCheckBox* useGray;
00086        QCheckBox* UseICC;
00087        QScrollView* Anzeige;
00088        QLabel* Anz;
00089        QGroupBox* devTitle;
00090        QGroupBox* jobTitle;
00091        QPushButton *closeButton;
00092        QPushButton *printButton;
00094        QLabel* scaleLabel;
00095        QComboBox* scaleBox;
00096        ScribusView *view;
00097        ScribusDoc *doc;
00098        int HavePngAlpha;
00099        int HaveTiffSep;
00100        int APage;
00101        int MPage;
00102        int SMode;
00103        int GsMajor;
00104        int GsMinor;
00105        bool CMode;
00106        bool GsAl;
00107        bool Trans;
00108        bool GMode;
00109        bool OMode;
00110        bool mHor;
00111        bool mVer;
00112        bool fClip;
00113        bool fSpot;
00114        bool fGray;
00115        bool fICC;
00116        bool postscriptPreview;
00117        QMap<QString, int> sepsToFileNum;
00118        QMap<QString, QCheckBox*> flagsVisible;
00119        QTable* Table;
00120 
00121 public slots:
00127        void ToSeite(int num);
00132        void redisplay();
00137        void ToggleCMYK();
00142        void ToggleCMYK_Colour();
00149        void scaleBox_valueChanged(int value);
00150 
00151 signals:
00152        void doPrint();
00153 
00154 protected:
00156        double scaleFactor;
00157        QVBoxLayout* PLayout;
00158        QVBoxLayout* Layout1;
00159        QVBoxLayout* Layout2;
00160        QHBoxLayout* Layout5;
00161        QHBoxLayout* Layout6;
00162        QVBoxLayout* settingsBarLayout;
00163        PrefsManager *prefsManager;
00164 
00165        void setValues();
00166        void getUserSelection(int);
00167        void imageLoadError(QPixmap &, int);
00168 };
00169 #endif // QUERY_H