Stellarium 0.15.2
AddRemoveLandscapesDialog.hpp
1 /*
2  * Stellarium
3  *
4  * Copyright (C) 2010 Bogdan Marinov (add/remove landscapes feature)
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 _ADDREMOVELANDSCAPESDIALOG_HPP_
22 #define _ADDREMOVELANDSCAPESDIALOG_HPP_
23 
24 #include <QObject>
25 #include <QStringList>
26 
27 #include "StelDialog.hpp"
28 
29 class Ui_addRemoveLandscapesDialogForm;
30 class LandscapeMgr;
31 
34 {
35  Q_OBJECT
36 public:
38  virtual ~AddRemoveLandscapesDialog();
39 
40 public slots:
41  void retranslate();
45  void setVisible(bool);
46  void populateLists();
47 
48 protected:
50  virtual void createDialogContent();
51  Ui_addRemoveLandscapesDialogForm* ui;
52 
53 private slots:
54  void browseForArchiveClicked();
55  void removeClicked();
56  void updateSidePane(int newRow);
57 
60  void messageAcknowledged();
61 
62  void messageUnableToOpen(QString path);
63  void messageNotArchive();
64  void messageNotUnique(QString nameOrID);
65  void messageRemoveManually(QString path);
66 
67 private:
68  LandscapeMgr* landscapeManager;
69 
72  QString lastUsedDirectoryPath;
73 
78  void displayMessage(QString title, QString message);
79 };
80 
81 #endif // _ADDREMOVELANDSCAPESDIALOG_
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
Manages all the rendering at the level of the observer&#39;s surroundings.
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:72
void setVisible(bool)
This function overrides the non-virtual StelDialog::setVisible() to allow the current landscape to be...