Stellarium 0.15.2
RemoteSyncDialog.hpp
1 /*
2  * Stellarium Remote Sync plugin
3  * Copyright (C) 2015 Florian Schaukowitsch
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18  */
19 
20 #ifndef REMOTESYNCDIALOG_HPP_
21 #define REMOTESYNCDIALOG_HPP_
22 
23 #include "StelDialog.hpp"
24 #include "StelGui.hpp"
25 #include "StelTranslator.hpp"
26 
27 #include <QString>
28 
29 class Ui_remoteSyncDialog;
30 class RemoteSync;
31 
33 {
34  Q_OBJECT
35 
36 public:
39 
40 public slots:
41  void retranslate();
42 
43 protected:
44  void createDialogContent();
45 
46 private slots:
47  void printErrorMessage(const QString error);
48  void updateState();
49  void updateIPlabel(bool running);
50 
51 private:
52  Ui_remoteSyncDialog* ui;
53  RemoteSync* rs;
54 
55  void setAboutHtml();
56 
57 };
58 
59 
60 #endif /* REMOTESYNCDIALOG_HPP_ */
Main class of the RemoteSync plug-in.
Definition: RemoteSync.hpp:35
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:72
Define some translation macros.
void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.