File indexing completed on 2024-05-05 08:05:57
0001 // 0002 // C++ Interface: dlgoutputwindow 0003 // 0004 // Description: 0005 // 0006 /* 0007 Copyright 2004 Vladimir Lazarenko <vlad@lazarenko.net> 0008 0009 This program is free software; you can redistribute it and/or 0010 modify it under the terms of the GNU General Public License as 0011 published by the Free Software Foundation; either version 2 of 0012 the License, or (at your option) any later version. 0013 0014 This program is distributed in the hope that it will be useful, 0015 but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 GNU General Public License for more details. 0018 0019 You should have received a copy of the GNU General Public License 0020 along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 */ 0022 0023 #ifndef DLGOUTPUTWINDOW_H 0024 #define DLGOUTPUTWINDOW_H 0025 0026 #include <qfont.h> 0027 #include <QDialog> 0028 0029 class cConsole; 0030 class cTextChunk; 0031 0032 /** 0033 One output window. 0034 @author Vladimir Lazarenko 0035 */ 0036 0037 class dlgOutputWindow : public QDialog 0038 { 0039 Q_OBJECT 0040 public: 0041 dlgOutputWindow (QWidget *parent = nullptr); 0042 ~dlgOutputWindow() override; 0043 0044 QSize sizeHint() const override; 0045 void addLine (cTextChunk *chunk); 0046 void setOutputWindowName(const QString &name); 0047 void setFont(const QFont &font); 0048 void setSession (int _sess); 0049 cConsole *console() { return owindow; }; 0050 protected: 0051 cConsole *owindow; 0052 int sess; 0053 }; 0054 0055 #endif