00001 /**************************************************************************** 00002 ** $Id: messageswindow.h,v 1.8 2006/09/26 08:56:42 gr Exp $ 00003 ** 00004 ** Header file of the Mesages window of Ananas 00005 ** Designer and Engine applications 00006 ** 00007 ** Created : 20031201 00008 ** 00009 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved. 00010 ** 00011 ** This file is part of the Library of the Ananas 00012 ** automation accounting system. 00013 ** 00014 ** This file may be distributed and/or modified under the terms of the 00015 ** GNU General Public License version 2 as published by the Free Software 00016 ** Foundation and appearing in the file LICENSE.GPL included in the 00017 ** packaging of this file. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00023 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00024 ** 00025 ** Contact org@leaderit.ru if any conditions of this licensing are 00026 ** not clear to you. 00027 ** 00028 **********************************************************************/ 00029 00030 /* 00031 */ 00032 #ifndef MESSAGESWINDOW_H 00033 #define MESSAGESWINDOW_H 00034 00035 #include "ananasglobal.h" 00036 00037 #include <qdockwindow.h> 00038 00039 class QTextBrowser; 00040 00041 void messageproc(int n, const char *msg); 00042 00043 class ANANAS_EXPORT MessagesWindow : public QDockWindow 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 // bool empty; 00049 MessagesWindow( QWidget* parent = 0, WFlags fl = WType_TopLevel ); 00050 ~MessagesWindow(); 00051 00052 QTextBrowser* msgBrowser; 00053 private: 00054 bool expanded; 00055 public slots: 00056 void message( int msgtype, const QString &msg); 00057 protected slots: 00058 virtual void languageChange(); 00059 virtual void hideEvent ( QHideEvent *e ); 00060 void on_click(); 00061 void setExpanded(bool exp); 00062 bool isExpanded(); 00063 }; 00064 00065 #endif // MESSAGESWINDOW_H