StelGui.cpp   StelGui.cpp 
skipping to change at line 111 skipping to change at line 111
// Create all the main actions of the program, associated with short cuts // Create all the main actions of the program, associated with short cuts
QString group = N_("Display Options"); QString group = N_("Display Options");
addGuiActions("actionShow_Constellation_Lines", N_("Constellation li nes"), "C", group, true, false); addGuiActions("actionShow_Constellation_Lines", N_("Constellation li nes"), "C", group, true, false);
addGuiActions("actionShow_Constellation_Art", N_("Constellation art" ), "R", group, true, false); addGuiActions("actionShow_Constellation_Art", N_("Constellation art" ), "R", group, true, false);
addGuiActions("actionShow_Constellation_Labels", N_("Constellation l abels"), "V", group, true, false); addGuiActions("actionShow_Constellation_Labels", N_("Constellation l abels"), "V", group, true, false);
addGuiActions("actionShow_Constellation_Boundaries", N_("Constellati on boundaries"), "B", group, true, false); addGuiActions("actionShow_Constellation_Boundaries", N_("Constellati on boundaries"), "B", group, true, false);
addGuiActions("actionShow_Azimuthal_Grid", N_("Azimuthal grid"), "Z" , group, true, false); addGuiActions("actionShow_Azimuthal_Grid", N_("Azimuthal grid"), "Z" , group, true, false);
addGuiActions("actionShow_Equatorial_Grid", N_("Equatorial grid"), " E", group, true, false); addGuiActions("actionShow_Equatorial_Grid", N_("Equatorial grid"), " E", group, true, false);
addGuiActions("actionShow_Equatorial_J2000_Grid", N_("Equatorial J20 00 grid"), "", group, true, false); addGuiActions("actionShow_Equatorial_J2000_Grid", N_("Equatorial J20 00 grid"), "", group, true, false);
addGuiActions("actionShow_Ecliptic_J2000_Grid", N_("Ecliptic J2000 g rid"), "", group, true, false);
addGuiActions("actionShow_Galactic_Grid", N_("Galactic grid"), "", g roup, true, false); addGuiActions("actionShow_Galactic_Grid", N_("Galactic grid"), "", g roup, true, false);
addGuiActions("actionShow_Galactic_Plane_Line", N_("Galactic plane") , "", group, true, false); addGuiActions("actionShow_Galactic_Plane_Line", N_("Galactic plane") , "", group, true, false);
addGuiActions("actionShow_Ecliptic_Line", N_("Ecliptic line"), ",", group, true, false); addGuiActions("actionShow_Ecliptic_Line", N_("Ecliptic line"), ",", group, true, false);
addGuiActions("actionShow_Equator_Line", N_("Equator line"), ".", gr oup, true, false); addGuiActions("actionShow_Equator_Line", N_("Equator line"), ".", gr oup, true, false);
addGuiActions("actionShow_Meridian_Line", N_("Meridian line"), ";", group, true, false); addGuiActions("actionShow_Meridian_Line", N_("Meridian line"), ";", group, true, false);
addGuiActions("actionShow_Horizon_Line", N_("Horizon line"), "", gro up, true, false); addGuiActions("actionShow_Horizon_Line", N_("Horizon line"), "", gro up, true, false);
addGuiActions("actionShow_Cardinal_Points", N_("Cardinal points"), " Q", group, true, false); addGuiActions("actionShow_Cardinal_Points", N_("Cardinal points"), " Q", group, true, false);
addGuiActions("actionShow_Ground", N_("Ground"), "G", group, true, f alse); addGuiActions("actionShow_Ground", N_("Ground"), "G", group, true, f alse);
addGuiActions("actionShow_Atmosphere", N_("Atmosphere"), "A", group, true, false); addGuiActions("actionShow_Atmosphere", N_("Atmosphere"), "A", group, true, false);
addGuiActions("actionShow_Fog", N_("Fog"), "F", group, true, false); addGuiActions("actionShow_Fog", N_("Fog"), "F", group, true, false);
addGuiActions("actionShow_Nebulas", N_("Nebulas"), "N", group, true, false); addGuiActions("actionShow_Nebulas", N_("Nebulas"), "N", group, true, false);
addGuiActions("actionShow_DSS", N_("Nebulas background images"), "", group, true, false); addGuiActions("actionShow_DSS", N_("Nebulas background images"), "", group, true, false);
addGuiActions("actionShow_Stars", N_("Stars"), "S", group, true, fal se); addGuiActions("actionShow_Stars", N_("Stars"), "S", group, true, fal se);
addGuiActions("actionShow_Planets_Labels", N_("Planet labels"), "P", group, true, false); addGuiActions("actionShow_Planets_Labels", N_("Planet labels"), "P", group, true, false);
addGuiActions("actionShow_Planets_Orbits", N_("Planet orbits"), "O", group, true, false); addGuiActions("actionShow_Planets_Orbits", N_("Planet orbits"), "O", group, true, false);
addGuiActions("actionShow_Planets_Trails", N_("Planet trails"), "Shi ft+T", group, true, false); addGuiActions("actionShow_Planets_Trails", N_("Planet trails"), "Shi ft+T", group, true, false);
addGuiActions("actionShow_Night_Mode", N_("Night mode"), "", group, true, false); addGuiActions("actionShow_Night_Mode", N_("Night mode"), "", group, true, false);
addGuiActions("actionSet_Full_Screen_Global", N_("Full-screen mode") , "F11", group, true, false); addGuiActions("actionSet_Full_Screen_Global", N_("Full-screen mode") , "F11", group, true, false, true);
addGuiActions("actionHorizontal_Flip", N_("Flip scene horizontally") , "Ctrl+Shift+H", group, true, false); addGuiActions("actionHorizontal_Flip", N_("Flip scene horizontally") , "Ctrl+Shift+H", group, true, false);
addGuiActions("actionVertical_Flip", N_("Flip scene vertically"), "C trl+Shift+V", group, true, false); addGuiActions("actionVertical_Flip", N_("Flip scene vertically"), "C trl+Shift+V", group, true, false);
group = N_("Windows"); group = N_("Windows");
addGuiActions("actionShow_Help_Window_Global", N_("Help window"), "F addGuiActions("actionShow_Help_Window_Global", N_("Help window"), "F
1", group, true, false); 1", group, true, false, true);
addGuiActions("actionShow_Configuration_Window_Global", N_("Configur addGuiActions("actionShow_Configuration_Window_Global", N_("Configur
ation window"), "F2", group, true, false); ation window"), "F2", group, true, false, true);
addGuiActions("actionShow_Search_Window_Global", N_("Search window") addGuiActions("actionShow_Search_Window_Global", N_("Search window")
, "F3, Ctrl+F", group, true, false); , "F3, Ctrl+F", group, true, false, true);
addGuiActions("actionShow_SkyView_Window_Global", N_("Sky and viewin addGuiActions("actionShow_SkyView_Window_Global", N_("Sky and viewin
g options window"), "F4", group, true, false); g options window"), "F4", group, true, false, true);
addGuiActions("actionShow_DateTime_Window_Global", N_("Date/time win addGuiActions("actionShow_DateTime_Window_Global", N_("Date/time win
dow"), "F5", group, true, false); dow"), "F5", group, true, false, true);
addGuiActions("actionShow_Location_Window_Global", N_("Location wind addGuiActions("actionShow_Location_Window_Global", N_("Location wind
ow"), "F6", group, true, false); ow"), "F6", group, true, false, true);
#ifdef ENABLE_SCRIPT_CONSOLE #ifdef ENABLE_SCRIPT_CONSOLE
addGuiActions("actionShow_ScriptConsole_Window_Global", N_("Script c onsole window"), "F12", group, true, false); addGuiActions("actionShow_ScriptConsole_Window_Global", N_("Script c onsole window"), "F12", group, true, false, true);
#endif #endif
group = N_("Date and Time"); group = N_("Date and Time");
addGuiActions("actionDecrease_Script_Speed", N_("Slow down the scrip t execution rate"), "", group, false, false); addGuiActions("actionDecrease_Script_Speed", N_("Slow down the scrip t execution rate"), "", group, false, false);
addGuiActions("actionIncrease_Script_Speed", N_("Speed up the script execution rate"), "", group, false, false); addGuiActions("actionIncrease_Script_Speed", N_("Speed up the script execution rate"), "", group, false, false);
addGuiActions("actionSet_Real_Script_Speed", N_("Set the normal scri pt execution rate"), "", group, false, false); addGuiActions("actionSet_Real_Script_Speed", N_("Set the normal scri pt execution rate"), "", group, false, false);
addGuiActions("actionDecrease_Time_Speed", N_("Decrease time speed") , "J", group, false, false); addGuiActions("actionDecrease_Time_Speed", N_("Decrease time speed") , "J", group, false, false);
addGuiActions("actionIncrease_Time_Speed", N_("Increase time speed") , "L", group, false, false); addGuiActions("actionIncrease_Time_Speed", N_("Increase time speed") , "L", group, false, false);
addGuiActions("actionSet_Real_Time_Speed", N_("Set normal time rate" ), "K", group, false, false); addGuiActions("actionSet_Real_Time_Speed", N_("Set normal time rate" ), "K", group, false, false);
addGuiActions("actionDecrease_Time_Speed_Less", N_("Decrease time sp eed (a little)"), "Shift+J", group, false, false); addGuiActions("actionDecrease_Time_Speed_Less", N_("Decrease time sp eed (a little)"), "Shift+J", group, false, false);
skipping to change at line 167 skipping to change at line 168
addGuiActions("actionAdd_Solar_Hour", N_("Add 1 solar hour"), "Ctrl+ =", group, false, true); addGuiActions("actionAdd_Solar_Hour", N_("Add 1 solar hour"), "Ctrl+ =", group, false, true);
addGuiActions("actionSubtract_Solar_Hour", N_("Subtract 1 solar hour "), "Ctrl+-", group, false, true); addGuiActions("actionSubtract_Solar_Hour", N_("Subtract 1 solar hour "), "Ctrl+-", group, false, true);
addGuiActions("actionAdd_Solar_Day", N_("Add 1 solar day"), "=", gro up, false, true); addGuiActions("actionAdd_Solar_Day", N_("Add 1 solar day"), "=", gro up, false, true);
addGuiActions("actionSubtract_Solar_Day", N_("Subtract 1 solar day") , "-", group, false, true); addGuiActions("actionSubtract_Solar_Day", N_("Subtract 1 solar day") , "-", group, false, true);
addGuiActions("actionAdd_Solar_Week", N_("Add 1 solar week"), "]", g roup, false, true); addGuiActions("actionAdd_Solar_Week", N_("Add 1 solar week"), "]", g roup, false, true);
addGuiActions("actionSubtract_Solar_Week", N_("Subtract 1 solar week "), "[", group, false, true); addGuiActions("actionSubtract_Solar_Week", N_("Subtract 1 solar week "), "[", group, false, true);
addGuiActions("actionAdd_Sidereal_Day", N_("Add 1 sidereal day"), "A lt+=", group, false, true); addGuiActions("actionAdd_Sidereal_Day", N_("Add 1 sidereal day"), "A lt+=", group, false, true);
addGuiActions("actionSubtract_Sidereal_Day", N_("Subtract 1 sidereal day"), "Alt+-", group, false, true); addGuiActions("actionSubtract_Sidereal_Day", N_("Subtract 1 sidereal day"), "Alt+-", group, false, true);
addGuiActions("actionAdd_Sidereal_Week", N_("Add 1 sidereal week"), "Alt+]", group, false, true); addGuiActions("actionAdd_Sidereal_Week", N_("Add 1 sidereal week"), "Alt+]", group, false, true);
addGuiActions("actionSubtract_Sidereal_Week", N_("Subtract 1 siderea l week"), "Alt+[", group, false, true); addGuiActions("actionSubtract_Sidereal_Week", N_("Subtract 1 siderea l week"), "Alt+[", group, false, true);
addGuiActions("actionAdd_Sidereal_Month", N_("Add 1 sidereal month")
, "Alt+Shift+]", group, false, true);
addGuiActions("actionSubtract_Sidereal_Month", N_("Subtract 1 sidere
al month"), "Alt+Shift+[", group, false, true);
addGuiActions("actionAdd_Sidereal_Year", N_("Add 1 sidereal year"),
"Ctrl+Alt+Shift+]", group, false, true);
addGuiActions("actionSubtract_Sidereal_Year", N_("Subtract 1 siderea
l year"), "Ctrl+Alt+Shift+[", group, false, true);
group = N_("Movement and Selection"); group = N_("Movement and Selection");
addGuiActions("actionGoto_Selected_Object", N_("Center on selected o bject"), "Space", group, false, false); addGuiActions("actionGoto_Selected_Object", N_("Center on selected o bject"), "Space", group, false, false);
addGuiActions("actionSet_Tracking", N_("Track object"), "T", group, true, false); addGuiActions("actionSet_Tracking", N_("Track object"), "T", group, true, false);
addGuiActions("actionZoom_In_Auto", N_("Zoom in on selected object") , "/", group, false, false); addGuiActions("actionZoom_In_Auto", N_("Zoom in on selected object") , "/", group, false, false);
addGuiActions("actionZoom_Out_Auto", N_("Zoom out"), "\\", group, fa lse, false); addGuiActions("actionZoom_Out_Auto", N_("Zoom out"), "\\", group, fa lse, false);
addGuiActions("actionSet_Home_Planet_To_Selected", N_("Set home plan et to selected planet"), "Ctrl+G", group, false, false); addGuiActions("actionSet_Home_Planet_To_Selected", N_("Set home plan et to selected planet"), "Ctrl+G", group, false, false);
group = N_("Miscellaneous"); group = N_("Miscellaneous");
addGuiActions("actionSwitch_Equatorial_Mount", N_("Switch between eq uatorial and azimuthal mount"), "Ctrl+M", group, true, false); addGuiActions("actionSwitch_Equatorial_Mount", N_("Switch between eq uatorial and azimuthal mount"), "Ctrl+M", group, true, false);
addGuiActions("actionQuit_Global", N_("Quit"), "Ctrl+Q", group, fals addGuiActions("actionQuit_Global", N_("Quit"), "Ctrl+Q", group, fals
e, false); e, false, true);
addGuiActions("actionSave_Screenshot_Global", N_("Save screenshot"), addGuiActions("actionSave_Screenshot_Global", N_("Save screenshot"),
"Ctrl+S", group, false, false); "Ctrl+S", group, false, false, true);
addGuiActions("actionSave_Copy_Object_Information_Global", N_("Copy addGuiActions("actionSave_Copy_Object_Information_Global", N_("Copy
selected object information to clipboard"), "Ctrl+C", group, false, false); selected object information to clipboard"), "Ctrl+C", group, false, false,
true);
addGuiActions("actionAutoHideHorizontalButtonBar", N_("Auto hide hor izontal button bar"), "", group, true, false); addGuiActions("actionAutoHideHorizontalButtonBar", N_("Auto hide hor izontal button bar"), "", group, true, false);
addGuiActions("actionAutoHideVerticalButtonBar", N_("Auto hide verti cal button bar"), "", group, true, false); addGuiActions("actionAutoHideVerticalButtonBar", N_("Auto hide verti cal button bar"), "", group, true, false);
addGuiActions("actionToggle_GuiHidden_Global", N_("Toggle visibility of GUI"), "Ctrl+T", group, true, false); addGuiActions("actionToggle_GuiHidden_Global", N_("Toggle visibility of GUI"), "Ctrl+T", group, true, false, true);
//////////////////////////////////////////////////////////////////// /// //////////////////////////////////////////////////////////////////// ///
// Connect all the GUI actions signals with the Core of Stellarium // Connect all the GUI actions signals with the Core of Stellarium
connect(getGuiActions("actionQuit_Global"), SIGNAL(triggered()), thi s, SLOT(quit())); connect(getGuiActions("actionQuit_Global"), SIGNAL(triggered()), thi s, SLOT(quit()));
initConstellationMgr(); initConstellationMgr();
initGrindLineMgr(); initGrindLineMgr();
initLandscapeMgr(); initLandscapeMgr();
NebulaMgr* nmgr = GETSTELMODULE(NebulaMgr); NebulaMgr* nmgr = GETSTELMODULE(NebulaMgr);
skipping to change at line 223 skipping to change at line 228
connect(getGuiActions("actionSwitch_Equatorial_Mount"), SIGNAL(toggl ed(bool)), mmgr, SLOT(setEquatorialMount(bool))); connect(getGuiActions("actionSwitch_Equatorial_Mount"), SIGNAL(toggl ed(bool)), mmgr, SLOT(setEquatorialMount(bool)));
getGuiActions("actionSwitch_Equatorial_Mount")->setChecked(mmgr->get MountMode() != StelMovementMgr::MountAltAzimuthal); getGuiActions("actionSwitch_Equatorial_Mount")->setChecked(mmgr->get MountMode() != StelMovementMgr::MountAltAzimuthal);
connect(getGuiActions("actionAdd_Solar_Hour"), SIGNAL(triggered()), core, SLOT(addHour())); connect(getGuiActions("actionAdd_Solar_Hour"), SIGNAL(triggered()), core, SLOT(addHour()));
connect(getGuiActions("actionAdd_Solar_Day"), SIGNAL(triggered()), c ore, SLOT(addDay())); connect(getGuiActions("actionAdd_Solar_Day"), SIGNAL(triggered()), c ore, SLOT(addDay()));
connect(getGuiActions("actionAdd_Solar_Week"), SIGNAL(triggered()), core, SLOT(addWeek())); connect(getGuiActions("actionAdd_Solar_Week"), SIGNAL(triggered()), core, SLOT(addWeek()));
connect(getGuiActions("actionSubtract_Solar_Hour"), SIGNAL(triggered ()), core, SLOT(subtractHour())); connect(getGuiActions("actionSubtract_Solar_Hour"), SIGNAL(triggered ()), core, SLOT(subtractHour()));
connect(getGuiActions("actionSubtract_Solar_Day"), SIGNAL(triggered( )), core, SLOT(subtractDay())); connect(getGuiActions("actionSubtract_Solar_Day"), SIGNAL(triggered( )), core, SLOT(subtractDay()));
connect(getGuiActions("actionSubtract_Solar_Week"), SIGNAL(triggered ()), core, SLOT(subtractWeek())); connect(getGuiActions("actionSubtract_Solar_Week"), SIGNAL(triggered ()), core, SLOT(subtractWeek()));
connect(getGuiActions("actionAdd_Sidereal_Day"), SIGNAL(triggered()) , core, SLOT(addSiderealDay())); connect(getGuiActions("actionAdd_Sidereal_Day"), SIGNAL(triggered()) , core, SLOT(addSiderealDay()));
connect(getGuiActions("actionAdd_Sidereal_Week"), SIGNAL(triggered() ), core, SLOT(addSiderealWeek())); connect(getGuiActions("actionAdd_Sidereal_Week"), SIGNAL(triggered() ), core, SLOT(addSiderealWeek()));
connect(getGuiActions("actionAdd_Sidereal_Month"), SIGNAL(triggered(
)), core, SLOT(addSiderealMonth()));
connect(getGuiActions("actionAdd_Sidereal_Year"), SIGNAL(triggered()
), core, SLOT(addSiderealYear()));
connect(getGuiActions("actionSubtract_Sidereal_Day"), SIGNAL(trigger ed()), core, SLOT(subtractSiderealDay())); connect(getGuiActions("actionSubtract_Sidereal_Day"), SIGNAL(trigger ed()), core, SLOT(subtractSiderealDay()));
connect(getGuiActions("actionSubtract_Sidereal_Week"), SIGNAL(trigge red()), core, SLOT(subtractSiderealWeek())); connect(getGuiActions("actionSubtract_Sidereal_Week"), SIGNAL(trigge red()), core, SLOT(subtractSiderealWeek()));
connect(getGuiActions("actionSubtract_Sidereal_Month"), SIGNAL(trigg
ered()), core, SLOT(subtractSiderealMonth()));
connect(getGuiActions("actionSubtract_Sidereal_Year"), SIGNAL(trigge
red()), core, SLOT(subtractSiderealYear()));
connect(getGuiActions("actionSet_Home_Planet_To_Selected"), SIGNAL(t riggered()), core, SLOT(moveObserverToSelected())); connect(getGuiActions("actionSet_Home_Planet_To_Selected"), SIGNAL(t riggered()), core, SLOT(moveObserverToSelected()));
// connect the actor after setting the nightmode. // connect the actor after setting the nightmode.
// StelApp::init() already set flagNightMode for us, don't do it twi ce! // StelApp::init() already set flagNightMode for us, don't do it twi ce!
getGuiActions("actionShow_Night_Mode")->setChecked(StelApp::getInsta nce().getVisionModeNight()); getGuiActions("actionShow_Night_Mode")->setChecked(StelApp::getInsta nce().getVisionModeNight());
connect(getGuiActions("actionShow_Night_Mode"), SIGNAL(toggled(bool) ), &StelApp::getInstance(), SLOT(setVisionModeNight(bool))); connect(getGuiActions("actionShow_Night_Mode"), SIGNAL(toggled(bool) ), &StelApp::getInstance(), SLOT(setVisionModeNight(bool)));
connect(getGuiActions("actionGoto_Selected_Object"), SIGNAL(triggere d()), mmgr, SLOT(setFlagTracking())); connect(getGuiActions("actionGoto_Selected_Object"), SIGNAL(triggere d()), mmgr, SLOT(setFlagTracking()));
connect(getGuiActions("actionZoom_In_Auto"), SIGNAL(triggered()), mm gr, SLOT(autoZoomIn())); connect(getGuiActions("actionZoom_In_Auto"), SIGNAL(triggered()), mm gr, SLOT(autoZoomIn()));
connect(getGuiActions("actionZoom_Out_Auto"), SIGNAL(triggered()), m mgr, SLOT(autoZoomOut())); connect(getGuiActions("actionZoom_Out_Auto"), SIGNAL(triggered()), m mgr, SLOT(autoZoomOut()));
skipping to change at line 582 skipping to change at line 591
getGuiActions("actionShow_Equatorial_J2000_Grid")->setChecked(gridLi neManager->getFlagEquatorJ2000Grid()); getGuiActions("actionShow_Equatorial_J2000_Grid")->setChecked(gridLi neManager->getFlagEquatorJ2000Grid());
connect(getGuiActions("actionShow_Equatorial_J2000_Grid"), connect(getGuiActions("actionShow_Equatorial_J2000_Grid"),
SIGNAL(toggled(bool)), SIGNAL(toggled(bool)),
gridLineManager, gridLineManager,
SLOT(setFlagEquatorJ2000Grid(bool))); SLOT(setFlagEquatorJ2000Grid(bool)));
connect(gridLineManager, connect(gridLineManager,
SIGNAL(equatorJ2000GridDisplayedChanged(const bool)) , SIGNAL(equatorJ2000GridDisplayedChanged(const bool)) ,
this, this,
SLOT(equatorJ2000GridDisplayedUpdated(const bool))); SLOT(equatorJ2000GridDisplayedUpdated(const bool)));
getGuiActions("actionShow_Ecliptic_J2000_Grid")->setChecked(gridLine
Manager->getFlagEclipticJ2000Grid());
connect(getGuiActions("actionShow_Ecliptic_J2000_Grid"),
SIGNAL(toggled(bool)),
gridLineManager,
SLOT(setFlagEclipticJ2000Grid(bool)));
connect(gridLineManager,
SIGNAL(eclipticJ2000GridDisplayedChanged(const bool)
),
this,
SLOT(eclipticJ2000GridDisplayedUpdated(const bool)))
;
getGuiActions("actionShow_Galactic_Grid")->setChecked(gridLineManage r->getFlagGalacticGrid()); getGuiActions("actionShow_Galactic_Grid")->setChecked(gridLineManage r->getFlagGalacticGrid());
connect(getGuiActions("actionShow_Galactic_Grid"), connect(getGuiActions("actionShow_Galactic_Grid"),
SIGNAL(toggled(bool)), SIGNAL(toggled(bool)),
gridLineManager, gridLineManager,
SLOT(setFlagGalacticGrid(bool))); SLOT(setFlagGalacticGrid(bool)));
connect(gridLineManager, connect(gridLineManager,
SIGNAL(galacticGridDisplayedChanged(const bool)), SIGNAL(galacticGridDisplayedChanged(const bool)),
this, this,
SLOT(galacticGridDisplayedUpdated(const bool))); SLOT(galacticGridDisplayedUpdated(const bool)));
skipping to change at line 991 skipping to change at line 1010
{ {
setScriptKeys(false); setScriptKeys(false);
} }
#endif #endif
void StelGui::setGuiVisible(bool b) void StelGui::setGuiVisible(bool b)
{ {
setVisible(b); setVisible(b);
} }
QAction* StelGui::addGuiActions(const QString& actionName, const QString& t ext, const QString& shortCut, const QString& helpGroup, bool checkable, boo l autoRepeat) QAction* StelGui::addGuiActions(const QString& actionName, const QString& t ext, const QString& shortCut, const QString& helpGroup, bool checkable, boo l autoRepeat, bool global)
{ {
if (!shortCut.isEmpty()) if (!shortCut.isEmpty())
helpDialog.setKey(helpGroup, "", shortCut, text); helpDialog.setKey(helpGroup, "", shortCut, text);
return StelGuiBase::addGuiActions(actionName, text, shortCut, helpGr oup, checkable, autoRepeat); return StelGuiBase::addGuiActions(actionName, text, shortCut, helpGr oup, checkable, autoRepeat, global);
} }
/* ************************************************************************ ****************************************** */ /* ************************************************************************ ****************************************** */
#if 0 #if 0
#pragma mark - #pragma mark -
#pragma mark Process changes from the ConstellationMgr #pragma mark Process changes from the ConstellationMgr
#endif #endif
/* ************************************************************************ ****************************************** */ /* ************************************************************************ ****************************************** */
void StelGui::artDisplayedUpdated(const bool displayed) void StelGui::artDisplayedUpdated(const bool displayed)
{ {
skipping to change at line 1055 skipping to change at line 1074
} }
} }
void StelGui::equatorJ2000GridDisplayedUpdated(const bool displayed) void StelGui::equatorJ2000GridDisplayedUpdated(const bool displayed)
{ {
if (getGuiActions("actionShow_Equatorial_J2000_Grid")->isChecked() ! = displayed) { if (getGuiActions("actionShow_Equatorial_J2000_Grid")->isChecked() ! = displayed) {
getGuiActions("actionShow_Equatorial_J2000_Grid")->setChecke d(displayed); getGuiActions("actionShow_Equatorial_J2000_Grid")->setChecke d(displayed);
} }
} }
void StelGui::eclipticJ2000GridDisplayedUpdated(const bool displayed)
{
if (getGuiActions("actionShow_Ecliptic_J2000_Grid")->isChecked() !=
displayed) {
getGuiActions("actionShow_Ecliptic_J2000_Grid")->setChecked(
displayed);
}
}
void StelGui::galacticGridDisplayedUpdated(const bool displayed) void StelGui::galacticGridDisplayedUpdated(const bool displayed)
{ {
if (getGuiActions("actionShow_Galactic_Grid")->isChecked() != displa yed) { if (getGuiActions("actionShow_Galactic_Grid")->isChecked() != displa yed) {
getGuiActions("actionShow_Galactic_Grid")->setChecked(displa yed); getGuiActions("actionShow_Galactic_Grid")->setChecked(displa yed);
} }
} }
void StelGui::equatorLineDisplayedUpdated(const bool displayed) void StelGui::equatorLineDisplayedUpdated(const bool displayed)
{ {
if (getGuiActions("actionShow_Equator_Line")->isChecked() != display ed) { if (getGuiActions("actionShow_Equator_Line")->isChecked() != display ed) {
 End of changes. 13 change blocks. 
23 lines changed or deleted 63 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/