Updated the web pages
[urpo] / src / urpomainwindow.h
1 /**************************************************************************
2
3     URPO
4
5     Unix Remote Printing Operation
6     Copyright (c) Arto Hyvättinen 2010
7
8     This file is part of URPO.
9
10     URPO is free software: you can redistribute it and/or modify
11     it under the terms of the GNU General Public License as published by
12     the Free Software Foundation, either version 3 of the License, or
13     (at your option) any later version.
14
15     URPO is distributed in the hope that it will be useful,
16     but WITHOUT ANY WARRANTY; without even the implied warranty of
17     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18     GNU General Public License for more details.
19
20
21 **************************************************************************/
22
23 #ifndef URPOMAINWINDOW_H
24 #define URPOMAINWINDOW_H
25
26 #include <QtGui/QMainWindow>
27
28 class PrintWidget;
29 class PrintJob;
30 class PrinterListJob;
31 class UrpoConnectionSettings;
32 class DebugConsole;
33 class QTextBrowser;
34
35 /*! GUI class for URPO main window
36
37   @author Arto Hyvättinen
38   @version 0.1
39   @date 2010-06-17
40
41   */
42 class UrpoMainWindow : public QMainWindow
43 {
44     Q_OBJECT
45
46 public:
47     UrpoMainWindow(QWidget *parent = 0);
48     ~UrpoMainWindow();
49
50 public slots:
51     /*! Populate printer QCombo and enable printing  */
52     void printersReceived(bool success, QString error);
53     /*! Start printers getting */
54     void getPrinters();
55     /*! Show about dialog */
56     void about();
57     /*! Show settings dialog */
58     void settings();
59     /*! Show help window */
60     void helpWindow();
61     /*! Show debug window */
62     void debugWindow();
63     /*! Print file  */
64     void print(QString file, QString options);
65     /*! Print finished, enable buttons */
66     void printFinished(bool success, QString errorStr);
67
68 private:
69     void initMenu();
70     void initHelp();
71
72 private:
73     PrintWidget*    printWidget_;
74     PrinterListJob* printerListJob_;
75     PrintJob*       printJob_;
76     UrpoConnectionSettings* settings_;
77     DebugConsole*   monitor_;
78     QTextBrowser*   helpBrowser_;
79
80
81 };
82
83 #endif // URPOMAINWINDOW_H