PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/safeFatPrinter/trunk/src/startdlg.h

http://cupsfilter.googlecode.com/
C++ Header | 55 lines | 44 code | 11 blank | 0 comment | 0 complexity | 0cfa699fa45c2e1f60c657966e83dd7f MD5 | raw file
 1#ifndef STARTDLG_H
 2#define STARTDLG_H
 3
 4#include <QtGui/QDialog>
 5#include <QMessageBox>
 6#include <QProcess>
 7#include <QDateTime>
 8#include <QPrinterInfo>
 9#include "asktheuser.h"
10#include "workreport.h"
11#include "dController.h"
12
13namespace Ui
14{
15    class StartDlg;
16}
17
18
19class StartDlg : public QDialog
20{
21    Q_OBJECT
22
23public:
24    StartDlg(QWidget *parent = 0);
25    ~StartDlg();
26    void convertToPDF(QString &in_file);
27    void setController(dController *ctrl);
28
29signals:
30    void printerSelected (QString ptr);
31public slots:
32     void error(int ErrorCode,QString ErrorString);
33     void convertDone();
34     void mergeDone();
35     void connectToDemon();
36private slots:
37     void markPaper();
38    void printOnMarkPaper();
39private:
40    void enableGUI();
41    void setPrinterList();
42
43
44    Ui::StartDlg *ui;
45    dController *d_ctrl;
46
47    askTheUser askDlg;
48
49    workReport reportDlg;
50    bool cnv;
51    bool merge;
52    bool conn_demon;
53};
54
55#endif // STARTDLG_H