2
/* BEGIN_COMMON_COPYRIGHT_HEADER
4
* TOra - An Oracle Toolkit for DBA's and developers
6
* Shared/mixed copyright is held throughout files in this product
8
* Portions Copyright (C) 2000-2001 Underscore AB
9
* Portions Copyright (C) 2003-2005 Quest Software, Inc.
10
* Portions Copyright (C) 2004-2008 Numerous Other Contributors
12
* This program is free software; you can redistribute it and/or
13
* modify it under the terms of the GNU General Public License
14
* as published by the Free Software Foundation; only version 2 of
15
* the License is valid for this program.
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
* As a special exception, you have permission to link this program
27
* with the Oracle Client libraries and distribute executables, as long
28
* as you follow the requirements of the GNU GPL in regard to all of the
29
* software in the executable aside from Oracle client libraries.
31
* Specifically you are not permitted to link this program with the
32
* Qt/UNIX, Qt/Windows or Qt Non Commercial products of TrollTech.
33
* And you are not permitted to distribute binaries compiled against
36
* You may link this product with any GPL'd Qt library.
38
* All trademarks belong to their respective owners.
40
* END_COMMON_COPYRIGHT_HEADER */
45
#include "ui_tomessageui.h"
48
/*! \brief Non-modal and non-blocking message dialog for
49
errors/warnings reporting.
51
It's used in toMain as a class member. This dialog is never
52
deleted. All messages are appended into end of text-log.
54
I've rewrote the old-modal-dialog to prevent TOra blocking
55
(100% CPU) on huge amount of error messages - e.g. when
56
I run the Server Tuning tool under user with only few grants
57
on system objects I had to kill the whole desktop to recover.
59
It takes about 4% CPU in this implementattion.
61
TODO: IMHO is this dialog a hot candidate for "docking" window
63
\author Petr Vanek <petr@scribus.info>
65
class toMessage : public QDialog, public Ui::toMessageUI
70
toMessage(QWidget * parent = 0, Qt::WindowFlags f = 0);
73
/*! \brief Appends text to the log widget.
74
The dialog is shown too when it's hidden.
76
void appendText(const QString & text);
80
void hideEvent(QHideEvent * event);