1 // Copyright 2005-2019 The Mumble Developers. All rights reserved.
2 // Use of this source code is governed by a BSD-style license
3 // that can be found in the LICENSE file at the root of the
4 // Mumble source tree or at <https://www.mumble.info/LICENSE>.
5 
6 #ifndef MUMBLE_MURMUR_ABOUT_H_
7 #define MUMBLE_MURMUR_ABOUT_H_
8 
9 #include <QtCore/QtGlobal>
10 #include <QtCore/QObject>
11 #if QT_VERSION >= 0x050000
12 # include <QtWidgets/QDialog>
13 #else
14 # include <QtGui/QDialog>
15 #endif
16 
17 enum AboutDialogOptions {
18 	AboutDialogOptionsShowAbout,
19 	AboutDialogOptionsShowLicense,
20 	AboutDialogOptionsShowAuthors,
21 	AboutDialogOptionsShowThirdPartyLicenses,
22 
23 	AboutDialogOptionsDefault = AboutDialogOptionsShowAbout
24 };
25 
26 class AboutDialog : public QDialog {
27 	private:
28 		Q_OBJECT
29 		Q_DISABLE_COPY(AboutDialog)
30 	public:
31 		AboutDialog(QWidget *parent, AboutDialogOptions options = AboutDialogOptionsDefault);
32 };
33 
34 #endif
35