00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PRINTWIDGET_H
00024 #define PRINTWIDGET_H
00025
00026 #include <QWidget>
00027
00028 class QLineEdit;
00029 class QPushButton;
00030 class QComboBox;
00031 class QProgressBar;
00032 class QLabel;
00033 class QSpinBox;
00034
00043 class PrintWidget : public QWidget
00044 {
00045 Q_OBJECT
00046 public:
00047 explicit PrintWidget(QWidget *parent = 0);
00054 void setPrinters(QStringList printers);
00055
00056 signals:
00058 void cancel();
00060 void reconnect();
00062 void print(QString file, QString options);
00063
00064 public slots:
00070 void setStatus(QString message=QString(), bool busy=false);
00077 void setReady(bool ready);
00078 void browseFile();
00079 void doPrint();
00080 void doCancel() { emit cancel(); }
00083 private:
00084 QLineEdit* filenameEdit;
00085 QPushButton* browseButton;
00086 QComboBox* printerCombo;
00087 QComboBox* persheetCombo;
00088 QLineEdit* rangeEdit;
00089 QSpinBox* copiesSpin;
00090 QPushButton* printButton;
00091 QLabel* statusLabel;
00092 QProgressBar* progressBar;
00093 QPushButton* cancelButton;
00094 QPushButton* reconnectButton;
00095 };
00096
00097 #endif // PRINTWIDGET_H