1 /*
2 File longtextmessagebox.h
3 */
4 
5 /***************************************************************************
6                           longtextmessagebox.h  -  description
7                              -------------------
8     begin                : 27 June 2009
9     copyright            : (C) 2009 by Lalescu Liviu
10     email                : Please see https://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the e-mail address)
11  ***************************************************************************/
12 
13 /***************************************************************************
14  *                                                                         *
15  *   This program is free software: you can redistribute it and/or modify  *
16  *   it under the terms of the GNU Affero General Public License as        *
17  *   published by the Free Software Foundation, either version 3 of the    *
18  *   License, or (at your option) any later version.                       *
19  *                                                                         *
20  ***************************************************************************/
21 
22 #ifndef LONGTEXTMESSAGEBOX_H
23 #define LONGTEXTMESSAGEBOX_H
24 
25 #include <QObject>
26 
27 class QString;
28 class QWidget;
29 
30 class LongTextMessageBox: public QObject
31 {
32 	Q_OBJECT
33 
34 public:
35 	static int confirmation
36 	 ( QWidget * parent, const QString & title, const QString & text,
37 	 const QString& button0Text, const QString& button1Text, const QString& button2Text,
38 	 int defaultButton, int escapeButton );
39 
40 	static int largeConfirmation
41 	 ( QWidget * parent, const QString & title, const QString & text,
42 	 const QString& button0Text, const QString& button1Text, const QString& button2Text,
43 	 int defaultButton, int escapeButton );
44 
45 	static int mediumConfirmation
46 	 ( QWidget * parent, const QString & title, const QString & text,
47 	 const QString& button0Text, const QString& button1Text, const QString& button2Text,
48 	 int defaultButton, int escapeButton );
49 
50 	static void information
51 	 ( QWidget * parent, const QString & title, const QString & text);
52 
53 	static void largeInformation
54 	 ( QWidget * parent, const QString & title, const QString & text);
55 
56 	static void mediumInformation
57 	 ( QWidget * parent, const QString & title, const QString & text);
58 
59 	static int confirmationWithDimensions
60 	 ( QWidget * parent, const QString & title, const QString & text,
61 	 const QString& button0Text, const QString& button1Text, const QString& button2Text,
62 	 int defaultButton, int escapeButton, int MINW, int MAXW, int MINH, int MAXH );
63 
64 	static void informationWithDimensions
65 	 ( QWidget * parent, const QString & title, const QString & text, int MINW, int MAXW, int MINH, int MAXH);
66 
67 	//Used only in modifystudentsyearform.cpp
68 	static int largeConfirmationWithDimensionsThreeButtonsYesNoCancel
69 	 ( QWidget * parent, const QString & title, const QString & text,
70 	 const QString& button0Text, const QString& button1Text, const QString& button2Text,
71 	 int defaultButton, int escapeButton );
72 	 //Yes, No, Cancel, in this order
73 };
74 
75 #endif
76