Mercurial > hg > easyhg
comparison src/moreinformationdialog.h @ 370:b9c153e00e84
Move source files to src/
author | Chris Cannam |
---|---|
date | Thu, 24 Mar 2011 10:27:51 +0000 |
parents | moreinformationdialog.h@c0c254f67346 |
children | 533519ebc0cb |
comparison
equal
deleted
inserted
replaced
369:19cce6d2c470 | 370:b9c153e00e84 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 /* | |
4 EasyMercurial | |
5 | |
6 Based on hgExplorer by Jari Korhonen | |
7 Copyright (c) 2010 Jari Korhonen | |
8 Copyright (c) 2011 Chris Cannam | |
9 Copyright (c) 2011 Queen Mary, University of London | |
10 | |
11 This program is free software; you can redistribute it and/or | |
12 modify it under the terms of the GNU General Public License as | |
13 published by the Free Software Foundation; either version 2 of the | |
14 License, or (at your option) any later version. See the file | |
15 COPYING included with this distribution for more information. | |
16 */ | |
17 | |
18 #ifndef MORE_INFORMATION_DIALOG_H | |
19 #define MORE_INFORMATION_DIALOG_H | |
20 | |
21 #include <QString> | |
22 #include <QDialog> | |
23 | |
24 class QLabel; | |
25 class QTextEdit; | |
26 class QPushButton; | |
27 | |
28 /** | |
29 * Provide methods like the QMessageBox static methods, to call up | |
30 * dialogs with "More information" buttons in them. QMessageBox does | |
31 * have an optional additional-details field, but it doesn't behave | |
32 * quite as we'd like with regard to layout | |
33 */ | |
34 | |
35 class MoreInformationDialog : public QDialog | |
36 { | |
37 Q_OBJECT | |
38 | |
39 public: | |
40 MoreInformationDialog(QString title, | |
41 QString head, | |
42 QString text, | |
43 QString more, | |
44 QWidget *parent = 0); | |
45 | |
46 ~MoreInformationDialog(); | |
47 | |
48 void setIcon(QIcon); | |
49 | |
50 static void critical(QWidget *parent, QString title, QString head, QString text, QString more); | |
51 static void information(QWidget *parent, QString title, QString head, QString text, QString more); | |
52 static void warning(QWidget *parent, QString title, QString head, QString text, QString more); | |
53 | |
54 private slots: | |
55 void moreClicked(); | |
56 | |
57 private: | |
58 QLabel *m_iconLabel; | |
59 QPushButton *m_moreButton; | |
60 QTextEdit *m_moreText; | |
61 }; | |
62 | |
63 #endif |