annotate moreinformationdialog.h @ 275:1244dc3107cb
more_information_dialog
* Some work on separating out the "more information" component from dialog messages. Will need work on layouts
author |
Chris Cannam |
date |
Mon, 31 Jan 2011 17:23:10 +0000 |
parents |
|
children |
c0c254f67346 |
rev |
line source |
Chris@275
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
Chris@275
|
2
|
Chris@275
|
3 /*
|
Chris@275
|
4 EasyMercurial
|
Chris@275
|
5
|
Chris@275
|
6 Based on hgExplorer by Jari Korhonen
|
Chris@275
|
7 Copyright (c) 2010 Jari Korhonen
|
Chris@275
|
8 Copyright (c) 2011 Chris Cannam
|
Chris@275
|
9 Copyright (c) 2011 Queen Mary, University of London
|
Chris@275
|
10
|
Chris@275
|
11 This program is free software; you can redistribute it and/or
|
Chris@275
|
12 modify it under the terms of the GNU General Public License as
|
Chris@275
|
13 published by the Free Software Foundation; either version 2 of the
|
Chris@275
|
14 License, or (at your option) any later version. See the file
|
Chris@275
|
15 COPYING included with this distribution for more information.
|
Chris@275
|
16 */
|
Chris@275
|
17
|
Chris@275
|
18 #ifndef MORE_INFORMATION_DIALOG_H
|
Chris@275
|
19 #define MORE_INFORMATION_DIALOG_H
|
Chris@275
|
20
|
Chris@275
|
21 #include <QString>
|
Chris@275
|
22
|
Chris@275
|
23 class QWidget;
|
Chris@275
|
24
|
Chris@275
|
25 /**
|
Chris@275
|
26 * Provide methods like the QMessageBox static methods, to call up
|
Chris@275
|
27 * dialogs with "More information" buttons in them
|
Chris@275
|
28 */
|
Chris@275
|
29
|
Chris@275
|
30 class MoreInformationDialog
|
Chris@275
|
31 {
|
Chris@275
|
32 public:
|
Chris@275
|
33 static void critical(QWidget *parent, QString title, QString text, QString more);
|
Chris@275
|
34 static void information(QWidget *parent, QString title, QString text, QString more);
|
Chris@275
|
35 static void warning(QWidget *parent, QString title, QString text, QString more);
|
Chris@275
|
36 };
|
Chris@275
|
37
|
Chris@275
|
38 #endif
|