ScriptConsole.cpp   ScriptConsole.cpp 
skipping to change at line 18 skipping to change at line 18
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "ScriptConsole.hpp" #include "ScriptConsole.hpp"
#include "ui_scriptConsole.h" #include "ui_scriptConsole.h"
#include "StelMainGraphicsView.hpp" #include "StelMainGraphicsView.hpp"
#include "StelScriptMgr.hpp" #include "StelScriptMgr.hpp"
#include "StelFileMgr.hpp" #include "StelFileMgr.hpp"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelTranslator.hpp" #include "StelTranslator.hpp"
#include "StelScriptSyntaxHighlighter.hpp" #include "StelScriptSyntaxHighlighter.hpp"
skipping to change at line 50 skipping to change at line 50
ScriptConsole::ScriptConsole() : highlighter(NULL) ScriptConsole::ScriptConsole() : highlighter(NULL)
{ {
ui = new Ui_scriptConsoleForm; ui = new Ui_scriptConsoleForm;
} }
ScriptConsole::~ScriptConsole() ScriptConsole::~ScriptConsole()
{ {
delete ui; delete ui;
} }
void ScriptConsole::languageChanged() void ScriptConsole::retranslate()
{ {
if (dialog) if (dialog)
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
} }
void ScriptConsole::styleChanged() void ScriptConsole::styleChanged()
{ {
if (highlighter) if (highlighter)
{ {
highlighter->setFormats(); highlighter->setFormats();
highlighter->rehighlight(); highlighter->rehighlight();
} }
} }
void ScriptConsole::createDialogContent() void ScriptConsole::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(languageChanged())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
highlighter = new StelScriptSyntaxHighlighter(ui->scriptEdit->docume nt()); highlighter = new StelScriptSyntaxHighlighter(ui->scriptEdit->docume nt());
ui->includeEdit->setText(StelFileMgr::getInstallationDir() + "/scrip ts"); ui->includeEdit->setText(StelFileMgr::getInstallationDir() + "/scrip ts");
ui->quickrunCombo->addItem(q_("quickrun...")); ui->quickrunCombo->addItem(q_("quickrun..."));
ui->quickrunCombo->addItem(q_("selected text")); ui->quickrunCombo->addItem(q_("selected text"));
ui->quickrunCombo->addItem(q_("clear text")); ui->quickrunCombo->addItem(q_("clear text"));
ui->quickrunCombo->addItem(q_("clear images")); ui->quickrunCombo->addItem(q_("clear images"));
ui->quickrunCombo->addItem(q_("natural")); ui->quickrunCombo->addItem(q_("natural"));
ui->quickrunCombo->addItem(q_("starchart")); ui->quickrunCombo->addItem(q_("starchart"));
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/