Stellarium 0.13.0
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 "config.h"
25 #include <QObject>
26 #include <QStringList>
27 
28 #include "StelDialog.hpp"
29 
30 class Ui_addRemoveLandscapesDialogForm;
31 class LandscapeMgr;
32 
35 {
36  Q_OBJECT
37 public:
39  virtual ~AddRemoveLandscapesDialog();
40 
41 public slots:
42  void retranslate();
46  void setVisible(bool);
47  void populateLists();
48 
49 protected:
51  virtual void createDialogContent();
52  Ui_addRemoveLandscapesDialogForm* ui;
53 
54 private slots:
55  void browseForArchiveClicked();
56  void removeClicked();
57  void updateSidePane(int newRow);
58 
61  void messageAcknowledged();
62 
63  void messageUnableToOpen(QString path);
64  void messageNotArchive();
65  void messageNotUnique(QString nameOrID);
66  void messageRemoveManually(QString path);
67 
68 private:
69  LandscapeMgr* landscapeManager;
70 
73  QString lastUsedDirectoryPath;
74 
79  void displayMessage(QString title, QString message);
80 };
81 
82 #endif // _ADDREMOVELANDSCAPESDIALOG_
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
Manages all the rendering at the level of the observer's surroundings.
Definition: LandscapeMgr.hpp:41
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:45
Definition: AddRemoveLandscapesDialog.hpp:34
void setVisible(bool)
This function overrides the non-virtual StelDialog::setVisible() to allow the current landscape to be...