Stellarium 0.14.3
StoredViewDialog.hpp
1 /*
2  * Stellarium Scenery3d Plug-in
3  *
4  * Copyright (C) 2015 Simon Parzer, Peter Neubauer, Georg Zotti, Andrei Borza, Florian Schaukowitsch
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 _STOREDVIEWDIALOG_HPP_
22 #define _STOREDVIEWDIALOG_HPP_
23 
24 #include "StelDialog.hpp"
25 #include "ui_storedViewDialog.h"
26 
27 class Scenery3dMgr;
28 class StoredViewModel;
29 
31 {
32  Q_OBJECT
33 public:
34  StoredViewDialog(QObject* parent = NULL);
36 public slots:
37  void retranslate();
38 protected:
39  void createDialogContent();
40 private slots:
41  void updateViewSelection(const QModelIndex &idx);
42  void resetViewSelection();
43 
44  void updateCurrentView();
45 
46  void loadView();
47  void deleteView();
48  void addUserView();
49 private:
50  Ui_storedViewDialogForm* ui;
51 
52  Scenery3dMgr* mgr;
53  StoredViewModel* viewModel;
54 };
55 
56 #endif
A local copy of StelDialog, the base class for all the GUI windows in Stellarium, included to allow t...
Main class of the module, inherits from StelModule.