~peppujols/stellarium/printsky

« back to all changes in this revision

Viewing changes to src/gui/ScriptConsole.cpp

  • Committer: Pep Pujols
  • Date: 2012-02-17 14:58:45 UTC
  • mfrom: (4722.1.5 printsky)
  • Revision ID: maslarocaxica@gmail.com-20120217145845-fo4jextrb9z83sbb
Merge from code refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * 
16
16
 * You should have received a copy of the GNU General Public License
17
17
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
18
 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
19
19
*/
20
20
 
21
21
#include "ScriptConsole.hpp"
47
47
        delete ui;
48
48
}
49
49
 
50
 
void ScriptConsole::languageChanged()
 
50
void ScriptConsole::retranslate()
51
51
{
52
52
        if (dialog)
53
53
                ui->retranslateUi(dialog);
65
65
void ScriptConsole::createDialogContent()
66
66
{
67
67
        ui->setupUi(dialog);
68
 
        connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(languageChanged()));
 
68
        connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate()));
69
69
 
70
70
        highlighter = new StelScriptSyntaxHighlighter(ui->scriptEdit->document());
71
71
        ui->includeEdit->setText(StelFileMgr::getInstallationDir() + "/scripts");