Stellarium 0.15.2
HelpDialog.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2007 Matthew Gates
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18  */
19 
20 #ifndef _HELPDIALOG_HPP_
21 #define _HELPDIALOG_HPP_
22 
23 #include <QString>
24 #include <QObject>
25 #include <QSettings>
26 
27 #include "StelDialog.hpp"
28 
29 class Ui_helpDialogForm;
30 class QListWidgetItem;
31 
32 class HelpDialog : public StelDialog
33 {
34  Q_OBJECT
35 public:
36  HelpDialog(QObject* parent);
37  ~HelpDialog();
38 
40  void styleChanged();
41 
42 
43 public slots:
44  void retranslate();
45 
46 protected:
48  virtual void createDialogContent();
49 
50  Ui_helpDialogForm* ui;
51 
52 private slots:
54  void showShortcutsWindow();
55 
57  void updateLog(int);
58 
60  void updateHelpText(void);
61 
63  void updateAboutText(void);
64 
66  void refreshLog();
67 
68  void changePage(QListWidgetItem *current, QListWidgetItem *previous);
69 
70 };
71 
72 #endif /*_HELPDIALOG_HPP_*/
73 
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:72
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
void styleChanged()
Notify that the application style changed.