Subversion Repositories Scribus


Rev 4430 | Rev 4649 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.

#ifndef DRUCK_H
#define DRUCK_H

#include "scribusapi.h"

#include <qdialog.h>
#include <qbuttongroup.h>
#include <qcombobox.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qspinbox.h>
#include <qtoolbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qcheckbox.h>
#include <qtabwidget.h>
#include <qwidget.h>

class PrefsContext;

class SCRIBUS_API Druck : public QDialog

        Druck( QWidget* parent, QString PDatei, QString PDev, QString PCom, QByteArray& PSettings, bool gcr, QStringList spots);
        ~Druck() {};
        QString printerName();
        QString outputFileName();
        QCheckBox* OtherCom;
        QLabel* OthText;
        QLineEdit* Command;
        QRadioButton* RadioButton1;
        QRadioButton* CurrentPage;
        QLineEdit* PageNr;
        bool outputToFile();
        int numCopies();
        bool outputSeparations();
        QString separationName();
        QStringList allSeparations();
        QString PrinterOpts;
        bool color();
        bool mirrorHorizontal();
        bool mirrorVertical();
        bool doGCR();
        int PSLevel();
        bool doDev();
        bool doSpot();
        bool ICCinUse();
        QByteArray DevMode;

public slots:
        void setMinMax(int min, int max, int cur);

        void doPreview();

        QVBoxLayout* DruckLayout;
        QGridLayout* DruckerLayout;
        QHBoxLayout* Layout1x;
        QHBoxLayout* Layout1;
        QGridLayout* rangeGroupLayout;
        QHBoxLayout* Layout2;
        QHBoxLayout* LayoutCC;
        QGridLayout* tabLayout;
        QHBoxLayout* tabLayout_2;
        QVBoxLayout* pageOptsLayout;
        QVBoxLayout* colorOptsLayout;

private slots:
        void SetOptions();
        void SelPrinter(const QString& prn);
        void SelRange(bool e);
        void SelMode(int e);
        void SelFile();
        void SelComm();
        void okButtonClicked();

        QGroupBox* Drucker;
        QComboBox* PrintDest;
        QLabel* DateiT;
        QLineEdit* LineEdit1;
        QToolButton* ToolButton1;
        QButtonGroup* rangeGroup;
        QRadioButton* RadioButton2;
        QLabel* TextLabel3;
        QSpinBox* Copies;
        QTabWidget* printOptions;
        QWidget* tab;
        QComboBox* PrintSep;
        QComboBox* colorType;
        QComboBox* SepArt;
        QComboBox* psLevel;
        QWidget* tab_2;
        QGroupBox* pageOpts;
        QCheckBox* MirrorHor;
        QCheckBox* MirrorVert;
        QCheckBox* devPar;
        QButtonGroup* colorOpts;
        QCheckBox* GcR;
        QCheckBox* spotColors;
        QCheckBox* UseICC;
        QPushButton* OKButton_2;
        QPushButton* OKButton;
        QPushButton* previewButton;
        QPushButton* OptButton;
        QString Geraet;
        bool ToFile;
        bool ToSeparation;
        PrefsContext* prefs;
        void setStoredValues(bool gcr);
        /* CB Moved to printerutil.cpp
        QStringList getPrinterNames(void);
        bool getDefaultSettings( QString printerName );
        bool initDeviceSettings( QString printerName );


#endif // DRUCK_H