Stellarium 0.13.3
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();
34  virtual ~ScriptConsole();
36  void styleChanged();
37 
38 public slots:
39  void retranslate();
40  void runScript();
41  void loadScript();
42  void saveScript();
43  void clearButtonPressed();
44  void preprocessScript();
45  void scriptEnded();
46  void appendLogLine(const QString& s);
47  void appendOutputLine(const QString& s);
48  void includeBrowse();
49  void quickRun(int idx);
50  void rowColumnChanged();
51 
52 protected:
53  Ui_scriptConsoleForm* ui;
54 
56  virtual void createDialogContent();
57 
58 private:
59  QString getFileMask();
60  StelScriptSyntaxHighlighter* highlighter;
61 
62 };
63 
64 #endif // _SCRIPTCONSOLE_HPP_
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:44
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
void styleChanged()
Notify that the application style changed.