00001 /************************************************************************** 00002 00003 URPO 00004 00005 Unix Remote Printing Operation 00006 Copyright (c) Arto Hyvättinen 2010 00007 00008 This file is part of URPO. 00009 00010 URPO is free software: you can redistribute it and/or modify 00011 it under the terms of the GNU General Public License as published by 00012 the Free Software Foundation, either version 3 of the License, or 00013 (at your option) any later version. 00014 00015 URPO is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 00021 **************************************************************************/ 00022 00023 #ifndef URPOMAINWINDOW_H 00024 #define URPOMAINWINDOW_H 00025 00026 #include <QtGui/QMainWindow> 00027 00028 class PrintWidget; 00029 class PrintJob; 00030 class PrinterListJob; 00031 class UrpoConnectionSettings; 00032 class DebugConsole; 00033 class QTextBrowser; 00034 00042 class UrpoMainWindow : public QMainWindow 00043 { 00044 Q_OBJECT 00045 00046 public: 00047 UrpoMainWindow(QWidget *parent = 0); 00048 ~UrpoMainWindow(); 00049 00050 public slots: 00052 void printersReceived(bool success, QString error); 00054 void getPrinters(); 00056 void about(); 00058 void settings(); 00060 void helpWindow(); 00062 void debugWindow(); 00064 void print(QString file, QString options); 00066 void printFinished(bool success, QString errorStr); 00067 00068 private: 00069 void initMenu(); 00070 void initHelp(); 00071 00072 private: 00073 PrintWidget* printWidget_; 00074 PrinterListJob* printerListJob_; 00075 PrintJob* printJob_; 00076 UrpoConnectionSettings* settings_; 00077 DebugConsole* monitor_; 00078 QTextBrowser* helpBrowser_; 00079 00080 00081 }; 00082 00083 #endif // URPOMAINWINDOW_H