1 /**************************************************************************
5 Unix Remote Printing Operation
6 Copyright (c) Arto Hyvättinen 2010
8 This file is part of URPO.
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.
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.
21 **************************************************************************/
23 #ifndef URPOMAINWINDOW_H
24 #define URPOMAINWINDOW_H
26 #include <QtGui/QMainWindow>
31 class UrpoConnectionSettings;
35 /*! GUI class for URPO main window
37 @author Arto Hyvättinen
42 class UrpoMainWindow : public QMainWindow
47 UrpoMainWindow(QWidget *parent = 0);
51 /*! Populate printer QCombo and enable printing */
52 void printersReceived(bool success, QString error);
53 /*! Start printers getting */
55 /*! Show about dialog */
57 /*! Show settings dialog */
59 /*! Show help window */
61 /*! Show debug window */
64 void print(QString file, QString options);
65 /*! Print finished, enable buttons */
66 void printFinished(bool success, QString errorStr);
73 PrintWidget* printWidget_;
74 PrinterListJob* printerListJob_;
76 UrpoConnectionSettings* settings_;
77 DebugConsole* monitor_;
78 QTextBrowser* helpBrowser_;
83 #endif // URPOMAINWINDOW_H