Add credits for Marek
[trojita.git] / src / Gui / Util.h
blobeee843d0de7c971f6a5d95eaeaf8cc9a909925a0
1 /* Copyright (C) 2006 - 2011 Thomas Gahr <thomas.gahr@physik.uni-muenchen.de>
2 Copyright (C) 2006 - 2014 Jan Kundrát <jkt@flaska.net>
4 This file is part of the Trojita Qt IMAP e-mail client,
5 http://trojita.flaska.net/
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of
10 the License or (at your option) version 3 or any later version
11 accepted by the membership of KDE e.V. (or its successor approved
12 by the membership of KDE e.V.), which shall act as a proxy
13 defined in Section 14 of version 3 of the license.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #ifndef GUI_UTIL_H
26 #define GUI_UTIL_H
28 #include <QMessageBox>
29 #include <QString>
31 class QColor;
32 class QFont;
33 class QSettings;
34 class QWidget;
36 namespace Gui
39 namespace Util
42 QString pkgDataDir();
44 int askForSomethingUnlessTold(const QString &title, const QString &message, const QString &settingsName,
45 QMessageBox::StandardButtons buttons, QWidget *parent, QSettings *settings);
47 QString resizedImageAsDataUrl(const QString &fileName, const int extent);
49 void messageBoxCritical(QWidget *parent, const QString &title, const QString &message);
50 void messageBoxWarning(QWidget *parent, const QString &title, const QString &message);
52 bool isFromDistinctImapAccount(QDropEvent* de);
54 QString cssWarningBorder();
56 } // namespace Util
58 } // namespace Gui
60 #endif // GUI_UTIL_H