1 // SALOME SALOMEGUI : implementation of desktop and GUI kernel
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : QAD_MessageBox.h
27 /********************************************************************
28 ** Class: QAD_MessageBox
29 ** Descr: Message dialog box for QAD-based application
31 ** Created: UI team, 02.10.00
32 *********************************************************************/
33 #ifndef QAD_MESSAGEBOX_H
34 #define QAD_MESSAGEBOX_H
41 class QAD_EXPORT QAD_MessageBox
44 /* show a box with one button */
45 static int info1 ( QWidget* parent, const QString& caption, const QString& text,
46 const QString& textButton0 );
47 static int warn1 ( QWidget* parent, const QString& caption, const QString& text,
48 const QString& textButton0 );
49 static int error1 ( QWidget* parent, const QString& caption, const QString& text,
50 const QString& textButton0 );
52 /* show a box with two buttons */
53 static int info2 ( QWidget* parent, const QString& caption, const QString& text,
54 const QString& textButton0, const QString& textButton1,
55 int idButton0, int idButton1, int idDefault );
56 static int warn2 ( QWidget* parent, const QString& caption, const QString& text,
57 const QString& textButton0, const QString& textButton1,
58 int idButton0, int idButton1, int idDefault );
59 static int error2 ( QWidget* parent, const QString& caption, const QString& text,
60 const QString& textButton0, const QString& textButton1,
61 int idButton0, int idButton1, int idDefault );
63 /* show a box with three buttons */
64 static int info3 ( QWidget* parent, const QString& caption, const QString& text,
65 const QString& textButton0, const QString& textButton1,
66 const QString& textButton2, int idButton0, int idButton1,
67 int idButton2, int idDefault );
68 static int warn3 ( QWidget* parent, const QString& caption, const QString& text,
69 const QString& textButton0, const QString& textButton1,
70 const QString& textButton2, int idButton0, int idButton1,
71 int idButton2, int idDefault );
72 static int error3 ( QWidget* parent, const QString& caption, const QString& text,
73 const QString& textButton0, const QString& textButton1,
74 const QString& textButton2, int idButton0, int idButton1,
75 int idButton2, int idDefault );