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 Scenery3d; 28 class StoredViewModel; 29 30 class StoredViewDialog : public StelDialog 31 { 32 Q_OBJECT 33 public: 34 StoredViewDialog(QObject* parent = Q_NULLPTR); 35 virtual ~StoredViewDialog() Q_DECL_OVERRIDE; 36 public slots: 37 virtual void retranslate() Q_DECL_OVERRIDE; 38 protected: 39 virtual void createDialogContent() Q_DECL_OVERRIDE; 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 Scenery3d* mgr; 53 StoredViewModel* viewModel; 54 }; 55 56 #endif 57