Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/QuasarsDialog_8hpp_source.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 07:46:43 2014
Кодировка:

Поисковые слова: quasar
Stellarium: /home/aw/devel/stellarium/trunk/plugins/<b style="color:black;background-color:#ffff66">Quasars</b>/src/gui/QuasarsDialog.hpp Source File
Stellarium 0.12.3
QuasarsDialog.hpp
1 /*
2  * Stellarium Quasars Plug-in GUI
3  *
4  * Copyright (C) 2012 Alexander Wolf
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
19 */
20 
21 #ifndef _QUASARSDIALOG_HPP_
22 #define _QUASARSDIALOG_HPP_
23 
24 #include <QObject>
25 #include "StelDialog.hpp"
26 #include "Quasars.hpp"
27 
28 class Ui_quasarsDialog;
29 class QTimer;
30 
31 class QuasarsDialog : public StelDialog
32 {
33  Q_OBJECT
34 
35 public:
36  QuasarsDialog();
37  ~QuasarsDialog();
38 
39 protected:
41  void createDialogContent();
42 
43 public slots:
44  void retranslate();
45  void refreshUpdateValues(void);
46 
47 private slots:
48  void setUpdateValues(int days);
49  void setUpdatesEnabled(int checkState);
50  void setDistributionEnabled(int checkState);
51  void setDisplayAtStartupEnabled(int checkState);
52  void setDisplayShowQuasarsButton(int checkState);
53  void updateStateReceiver(Quasars::UpdateState state);
54  void updateCompleteReceiver();
55  void restoreDefaults(void);
56  void saveSettings(void);
57  void updateJSON(void);
58 
59 private:
60  Ui_quasarsDialog* ui;
61  void setAboutHtml(void);
62  void updateGuiFromSettings(void);
63  QTimer* updateTimer;
64 
65 };
66 
67 #endif // _QUASARSDIALOG_HPP_