Stellarium 0.15.2
ScriptConsole.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2009 Matthew Gates
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 _SCRIPTCONSOLE_HPP_
21 #define _SCRIPTCONSOLE_HPP_
22 
23 #include <QObject>
24 #include "StelDialog.hpp"
25 
26 class Ui_scriptConsoleForm;
28 
29 class ScriptConsole : public StelDialog
30 {
31  Q_OBJECT
32 public:
33  ScriptConsole(QObject* parent);
34  virtual ~ScriptConsole();
36  void styleChanged();
37 
38 public slots:
39  void retranslate();
40 private slots:
41  void runScript();
42  void loadScript();
43  void saveScript();
44  void clearButtonPressed();
45  void preprocessScript();
46  void scriptStarted();
47  void scriptEnded();
48  void appendLogLine(const QString& s);
49  void appendOutputLine(const QString& s);
50  void includeBrowse();
51  void quickRun(int idx);
52  void rowColumnChanged();
53 
54 protected:
55  Ui_scriptConsoleForm* ui;
56 
58  virtual void createDialogContent();
59 
60 private:
61  QString getFileMask();
62  StelScriptSyntaxHighlighter* highlighter;
63 
64 };
65 
66 #endif // _SCRIPTCONSOLE_HPP_
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:72
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
void styleChanged()
Notify that the application style changed.