~ubuntu-branches/debian/jessie/stellarium/jessie

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/*
 * Stellarium
 * This file Copyright (C) 2004-2008 Robert Spearman
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#include <functional>
#include <QSettings>

#include "StelProjector.hpp"
#include "StelNavigator.hpp"
#include "StelApp.hpp"
#include "StelCore.hpp"
#include "TextUI.hpp"
#include "StelModuleMgr.hpp"
#include "StelTranslator.hpp"


void TextUI::init()
{
	return;
}

/*************************************************************************
 Reimplementation of the getCallOrder method
*************************************************************************/
double TextUI::getCallOrder(StelModuleActionName actionName) const
{
	// TODO should always draw last (on top)
	if (actionName==StelModule::ActionDraw)
		return StelApp::getInstance().getModuleMgr().getModule("SolarSystem")->getCallOrder(actionName)+100;
	return 0;
}

void TextUI::update(double deltaTime)
{
	return;
}


void TextUI::draw(StelCore* core)
{
	return;
}

// Stub to hold translation keys
void temporary_translation()
{
	// TUI categories
	N_("Set Location ");
	N_("Set Time ");
	N_("General ");
	N_("Stars ");
	N_("Colors ");
	N_("Effects ");
	N_("Scripts ");
	N_("Administration ");

	// Set location
	N_("Latitude: ");
	N_("Longitude: ");
	N_("Altitude (m): ");
	N_("Solar System Body: ");

	// Set time
	N_("Sky Time: ");
	N_("Set Time Zone: ");
	N_("Day keys: ");
	N_("Calendar");
	N_("Sidereal");
	N_("Preset Sky Time: ");
	N_("Sky Time At Start-up: ");
	N_("Actual Time");
	N_("Preset Time");
	N_("Time Display Format: ");
	N_("Date Display Format: ");

	// General
	N_("Sky Culture: ");
	N_("Sky Language: ");

	// Stars
	N_("Show: ");
	N_("Star Value Multiplier: ");
	N_("Magnitude Sizing Multiplier: ");
	N_("Maximum Magnitude to Label: ");
	N_("Twinkling: ");
	N_("Limiting Magnitude: ");

	// Colors
	N_("Constellation Lines");
	N_("Constellation Names");
	N_("Constellation Art Intensity");
	N_("Constellation Boundaries");
	N_("Cardinal Points");
	N_("Planet Names");
	N_("Planet Orbits");
	N_("Planet Trails");
	N_("Meridian Line");
	N_("Azimuthal Grid");
	N_("Equatorial Grid");
	N_("Equator Line");
	N_("Ecliptic Line");
	N_("Nebula Names");
	N_("Nebula Circles");

	// Effects
	N_("Light Pollution Luminance: ");
	N_("Landscape: ");
	N_("Manual zoom: ");
	N_("Object Sizing Rule: ");
	N_("Magnitude Scaling Multiplier: ");
	N_("Milky Way intensity: ");
	N_("Maximum Nebula Magnitude to Label: ");
	N_("Zoom Duration: ");
	N_("Cursor Timeout: ");
	N_("Correct for light travel time: ");

	// Scripts
	N_("Local Script: ");
	N_("CD/DVD Script: ");
	N_("USB Script: ");
	N_("Arrow down to load list.");
	N_("Select and exit to run.");

	// Administration
	N_("Load Default Configuration: ");
	N_("Save Current Configuration as Default: ");
	N_("Shut Down: ");
	N_("Update me via Internet: ");
	N_("Set UI Locale: ");
}