Marble

MarbleAboutDialog.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2004-2007 Torsten Rahn <[email protected]>
4 // SPDX-FileCopyrightText: 2007 Inge Wallin <[email protected]>
5 //
6 
7 //
8 // The about dialog
9 //
10 
11 #ifndef MARBLE_MARBLEABOUTDIALOG_H
12 #define MARBLE_MARBLEABOUTDIALOG_H
13 
14 
15 #include <QDialog>
16 
17 #include "marble_export.h"
18 
19 namespace Marble
20 {
21 
22 class MarbleAboutDialogPrivate;
23 
24 
25 class MARBLE_EXPORT MarbleAboutDialog : public QDialog
26 {
27  Q_OBJECT
28 
29 public:
30  enum Tab {
31  About,
32  Authors,
33  Data,
34  License
35  };
36 
37  explicit MarbleAboutDialog(QWidget *parent = nullptr);
38  ~MarbleAboutDialog() override;
39 
40  /**
41  * Set the application title (usually name and version) to show
42  * The default application title is 'Marble Virtual Globe'
43  */
44  void setApplicationTitle( const QString &title );
45 
46  /**
47  * @brief setInitialTab Change the tab shown when executing the dialog
48  * @param tab The tab to show
49  */
50  void setInitialTab( Tab tab );
51 
52  private:
53  Q_PRIVATE_SLOT( d, void loadPageContents( int idx ) )
54  Q_DISABLE_COPY( MarbleAboutDialog )
55  MarbleAboutDialogPrivate * const d;
56 };
57 
58 }
59 
60 #endif
License
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.