StelApp.cpp   StelApp.cpp 
skipping to change at line 469 skipping to change at line 469
event->setAccepted(false); event->setAccepted(false);
// Send the event to every StelModule // Send the event to every StelModule
foreach (StelModule* i, moduleMgr->getCallOrders(StelModule::ActionH andleKeys)) foreach (StelModule* i, moduleMgr->getCallOrders(StelModule::ActionH andleKeys))
{ {
i->handleKeys(event); i->handleKeys(event);
if (event->isAccepted()) if (event->isAccepted())
return; return;
} }
} }
// Set the colorscheme for all the modules
void StelApp::setColorScheme(const QString& section)
{
if (getGui())
getGui()->setStelStyle(section);
// Send the event to every StelModule
foreach (StelModule* iter, moduleMgr->getAllModules())
{
iter->setStelStyle(section);
}
}
//! Set flag for activating night vision mode //! Set flag for activating night vision mode
void StelApp::setVisionModeNight(bool b) void StelApp::setVisionModeNight(bool b)
{ {
if (flagNightVision!=b) if (flagNightVision!=b)
{ {
flagNightVision=b; flagNightVision=b;
setColorScheme(b ? "night_color" : "color"); emit(colorSchemeChanged(b ? "night_color" : "color"));
} }
} }
// Update translations and font for sky everywhere in the program // Update translations and font for sky everywhere in the program
void StelApp::updateI18n() void StelApp::updateI18n()
{ {
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
// Send the event to every StelModule emit(languageChanged());
foreach (StelModule* iter, moduleMgr->getAllModules())
{
iter->updateI18n();
}
if (getGui())
getGui()->updateI18n();
#endif #endif
} }
// Update and reload sky culture informations everywhere in the program // Update and reload sky culture informations everywhere in the program
void StelApp::updateSkyCulture() void StelApp::updateSkyCulture()
{ {
QString skyCultureDir = getSkyCultureMgr().getCurrentSkyCultureID(); QString skyCultureDir = getSkyCultureMgr().getCurrentSkyCultureID();
// Send the event to every StelModule emit(skyCultureChanged(skyCultureDir));
foreach (StelModule* iter, moduleMgr->getAllModules())
{
iter->updateSkyCulture(skyCultureDir);
}
} }
// Return the time since when stellarium is running in second. // Return the time since when stellarium is running in second.
double StelApp::getTotalRunTime() double StelApp::getTotalRunTime()
{ {
return (double)(StelApp::qtime->elapsed())/1000.; return (double)(StelApp::qtime->elapsed())/1000.;
} }
void StelApp::reportFileDownloadFinished(QNetworkReply* reply) void StelApp::reportFileDownloadFinished(QNetworkReply* reply)
{ {
 End of changes. 4 change blocks. 
25 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/