StelGui.cpp   StelGui.cpp 
skipping to change at line 478 skipping to change at line 478
setFlagShowFlipButtons(conf->value("gui/flag_show_flip_buttons", fal se).toBool()); setFlagShowFlipButtons(conf->value("gui/flag_show_flip_buttons", fal se).toBool());
setFlagShowNebulaBackgroundButton(conf->value("gui/flag_show_nebulae _background_button", false).toBool()); setFlagShowNebulaBackgroundButton(conf->value("gui/flag_show_nebulae _background_button", false).toBool());
//////////////////////////////////////////////////////////////////// /// //////////////////////////////////////////////////////////////////// ///
// Create the main base widget // Create the main base widget
skyGui->init(this); skyGui->init(this);
QGraphicsGridLayout* l = new QGraphicsGridLayout(); QGraphicsGridLayout* l = new QGraphicsGridLayout();
l->setContentsMargins(0,0,0,0); l->setContentsMargins(0,0,0,0);
l->setSpacing(0); l->setSpacing(0);
l->addItem(skyGui, 0, 0); l->addItem(skyGui, 0, 0);
stelAppGraphicsWidget->setLayout(l); stelAppGraphicsWidget->setLayout(l);
skyGui->setGeometry(stelAppGraphicsWidget->geometry());
skyGui->updateBarsPos();
setStelStyle(StelApp::getInstance().getCurrentStelStyle()); setStelStyle(StelApp::getInstance().getCurrentStelStyle());
skyGui->setGeometry(stelAppGraphicsWidget->geometry());
skyGui->updateBarsPos();
initDone = true; initDone = true;
} }
void StelGui::quit() void StelGui::quit()
{ {
StelMainGraphicsView::getInstance().getScriptMgr().stopScript(); StelMainGraphicsView::getInstance().getScriptMgr().stopScript();
QCoreApplication::exit(); QCoreApplication::exit();
} }
//! Reload the current Qt Style Sheet (Debug only) //! Reload the current Qt Style Sheet (Debug only)
skipping to change at line 764 skipping to change at line 764
getButtonBar()->addButton(flipHoriz, "060-othersGroup", "act ionVertical_Flip"); getButtonBar()->addButton(flipHoriz, "060-othersGroup", "act ionVertical_Flip");
} }
else else
{ {
bool b = getButtonBar()->hideButton("actionVertical_Flip")== flipVert; bool b = getButtonBar()->hideButton("actionVertical_Flip")== flipVert;
Q_ASSERT(b); Q_ASSERT(b);
b = getButtonBar()->hideButton("actionHorizontal_Flip")==fli pHoriz; b = getButtonBar()->hideButton("actionHorizontal_Flip")==fli pHoriz;
Q_ASSERT(b); Q_ASSERT(b);
} }
flagShowFlipButtons = b; flagShowFlipButtons = b;
if (initDone)
{
skyGui->updateBarsPos();
}
} }
// Define whether the button toggling nebulae backround images should be vi sible // Define whether the button toggling nebulae backround images should be vi sible
void StelGui::setFlagShowNebulaBackgroundButton(bool b) void StelGui::setFlagShowNebulaBackgroundButton(bool b)
{ {
if (b==true) if (b==true)
{ {
if (btShowNebulaeBackground==NULL) if (btShowNebulaeBackground==NULL)
{ {
// Create the nebulae background button // Create the nebulae background button
skipping to change at line 835 skipping to change at line 839
bool StelGui::getAutoHideHorizontalButtonBar() const {return skyGui->autoHi deHorizontalButtonBar;} bool StelGui::getAutoHideHorizontalButtonBar() const {return skyGui->autoHi deHorizontalButtonBar;}
void StelGui::setAutoHideHorizontalButtonBar(bool b) {skyGui->autoHideHoriz ontalButtonBar=b;} void StelGui::setAutoHideHorizontalButtonBar(bool b) {skyGui->autoHideHoriz ontalButtonBar=b;}
bool StelGui::getAutoHideVerticalButtonBar() const {return skyGui->autoHide VerticalButtonBar;} bool StelGui::getAutoHideVerticalButtonBar() const {return skyGui->autoHide VerticalButtonBar;}
void StelGui::setAutoHideVerticalButtonBar(bool b) {skyGui->autoHideVertica lButtonBar=b;} void StelGui::setAutoHideVerticalButtonBar(bool b) {skyGui->autoHideVertica lButtonBar=b;}
void StelGui::forceRefreshGui() void StelGui::forceRefreshGui()
{ {
skyGui->updateBarsPos(); skyGui->updateBarsPos();
} }
void StelGui::scriptStarted() void StelGui::scriptStarted()
{ {
setScriptKeys(true); setScriptKeys(true);
} }
void StelGui::scriptStopped() void StelGui::scriptStopped()
{ {
setScriptKeys(false); setScriptKeys(false);
 End of changes. 5 change blocks. 
4 lines changed or deleted 8 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/