Stellarium  0.90.0
SolarSystemManagerWindow.hpp
1 /*
2  * Solar System editor plug-in for Stellarium
3  *
4  * Copyright (C) 2010 Bogdan Marinov
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 _SOLAR_SYSTEM_MANAGER_WINDOW_
22 #define _SOLAR_SYSTEM_MANAGER_WINDOW_
23 
24 #include <QObject>
25 #include "StelDialog.hpp"
26 
27 #include <QHash>
28 #include <QString>
29 
30 class SolarSystemEditor;
31 
32 class Ui_solarSystemManagerWindow;
33 class MpcImportWindow;
34 class ManualImportWindow;
35 
40 {
41  Q_OBJECT
42 public:
44  virtual ~SolarSystemManagerWindow();
45 
46 public slots:
47  void retranslate();
48 
49 protected:
50  virtual void createDialogContent();
51  Ui_solarSystemManagerWindow * ui;
52 
53 private slots:
55  void copyConfiguration();
56  void replaceConfiguration();
57  void addConfiguration();
58 
59  void populateSolarSystemList();
60  void removeObjects();
61 
62  void newImportMPC();
63 
64  void newImportManual();
65  void resetImportManual(bool);
66 
67 private:
68  MpcImportWindow* mpcImportWindow;
69  ManualImportWindow * manualImportWindow;
70 
71  SolarSystemEditor * ssEditor;
72 
73  QHash<QString,QString> unlocalizedNames;
74 
75  void setAboutHtml(void);
76  void updateTexts();
77 };
78 
79 #endif //_SOLAR_SYSTEM_MANAGER_WINDOW_
Window for manual entry of Solar System object properties.
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.
Main class of the Solar System Editor plug-in which allows editing (add, delete, update) of the minor...
Main window for handling Solar System objects.
Window for importing orbital elements from the Minor Planet Center.