Stellarium 0.13.0
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 includeBrowse();
48  void quickRun(int idx);
49  void rowColumnChanged();
50 
51 protected:
52  Ui_scriptConsoleForm* ui;
53 
55  virtual void createDialogContent();
56 
57 private:
58  QString getFileMask();
59  StelScriptSyntaxHighlighter* highlighter;
60 
61 };
62 
63 #endif // _SCRIPTCONSOLE_HPP_
Definition: StelScriptSyntaxHighlighter.hpp:32
Base class for all the GUI windows in Stellarium.
Definition: StelDialog.hpp:45
Definition: ScriptConsole.hpp:29
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.
void styleChanged()
Notify that the application style changed.