00001 /* 00002 This library is free software; you can redistribute it and/or 00003 modify it under the terms of the GNU Library General Public 00004 License version 2 as published by the Free Software Foundation. 00005 00006 This library is distributed in the hope that it will be useful, 00007 but WITHOUT ANY WARRANTY; without even the implied warranty of 00008 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00009 Library General Public License for more details. 00010 00011 You should have received a copy of the GNU Library General Public License 00012 along with this library; see the file COPYING.LIB. If not, write to 00013 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00014 Boston, MA 02110-1301, USA. 00015 */ 00016 00017 #ifndef LOGGERDIALOG_H 00018 #define LOGGERDIALOG_H 00019 #include <QtGui/QtGui> 00020 00021 namespace ViewerNS { 00022 class LoggerDialog : public QDialog 00023 { 00024 Q_OBJECT 00025 public: 00026 LoggerDialog (QWidget* parent=0); 00027 QString getLogMessage() { return edit->text(); } 00028 QString getLevelMessage() {return level->currentText(); } 00029 private: 00030 QLineEdit* edit; 00031 QComboBox* level; 00032 QPushButton* ok; 00033 QPushButton* cancel; 00034 }; 00035 } 00036 #endif // LOGGERDIALOG_H