StelGui.cpp   StelGui.cpp 
skipping to change at line 109 skipping to change at line 109
, configurationDialog(0) , configurationDialog(0)
#ifdef ENABLE_SCRIPT_CONSOLE #ifdef ENABLE_SCRIPT_CONSOLE
, scriptConsole(0) , scriptConsole(0)
#endif #endif
, flagShowFlipButtons(false) , flagShowFlipButtons(false)
, flipVert(NULL) , flipVert(NULL)
, flipHoriz(NULL) , flipHoriz(NULL)
, flagShowNebulaBackgroundButton(false) , flagShowNebulaBackgroundButton(false)
, btShowNebulaeBackground(NULL) , btShowNebulaeBackground(NULL)
, initDone(false) , initDone(false)
, flagShowDecimalDegrees(false)
{ {
// QPixmapCache::setCacheLimit(30000); ? // QPixmapCache::setCacheLimit(30000); ?
} }
StelGui::~StelGui() StelGui::~StelGui()
{ {
delete skyGui; delete skyGui;
skyGui = NULL; skyGui = NULL;
if (locationDialog) if (locationDialog)
skipping to change at line 361 skipping to change at line 362
skyGui->buttonBar->setGroupMargin("070-timeGroup", 32, 0); skyGui->buttonBar->setGroupMargin("070-timeGroup", 32, 0);
pxmapOn = QPixmap(":/graphicGui/btQuit.png"); pxmapOn = QPixmap(":/graphicGui/btQuit.png");
b = new StelButton(NULL, pxmapOn, pxmapOn, pxmapGlow32x32, "actionQu it_Global"); b = new StelButton(NULL, pxmapOn, pxmapOn, pxmapGlow32x32, "actionQu it_Global");
skyGui->buttonBar->addButton(b, "080-quitGroup"); skyGui->buttonBar->addButton(b, "080-quitGroup");
// add the flip buttons if requested in the config // add the flip buttons if requested in the config
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());
setFlagShowDecimalDegrees(conf->value("gui/flag_show_decimal_degrees
", 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);
atopLevelGraphicsWidget->setLayout(l); atopLevelGraphicsWidget->setLayout(l);
setStelStyle(StelApp::getInstance().getCurrentStelStyle()); setStelStyle(StelApp::getInstance().getCurrentStelStyle());
skipping to change at line 636 skipping to change at line 639
QPixmap pxmapGlow32x32(":/graphicGui/glow32x32.png") ; QPixmap pxmapGlow32x32(":/graphicGui/glow32x32.png") ;
btShowNebulaeBackground = new StelButton(NULL, QPixm ap(":/graphicGui/btDSS-on.png"), QPixmap(":/graphicGui/btDSS-off.png"), pxm apGlow32x32, "actionShow_DSS"); btShowNebulaeBackground = new StelButton(NULL, QPixm ap(":/graphicGui/btDSS-on.png"), QPixmap(":/graphicGui/btDSS-off.png"), pxm apGlow32x32, "actionShow_DSS");
} }
getButtonBar()->addButton(btShowNebulaeBackground, "040-nebu laeGroup"); getButtonBar()->addButton(btShowNebulaeBackground, "040-nebu laeGroup");
} else { } else {
getButtonBar()->hideButton("actionShow_DSS"); getButtonBar()->hideButton("actionShow_DSS");
} }
flagShowNebulaBackgroundButton = b; flagShowNebulaBackgroundButton = b;
} }
void StelGui::setFlagShowDecimalDegrees(bool b)
{
flagShowDecimalDegrees=b;
}
void StelGui::setVisible(bool b) void StelGui::setVisible(bool b)
{ {
skyGui->setVisible(b); skyGui->setVisible(b);
} }
bool StelGui::getVisible() const bool StelGui::getVisible() const
{ {
return skyGui->isVisible(); return skyGui->isVisible();
} }
skipping to change at line 714 skipping to change at line 722
bool StelGui::getFlagShowFlipButtons() const bool StelGui::getFlagShowFlipButtons() const
{ {
return flagShowFlipButtons; return flagShowFlipButtons;
} }
bool StelGui::getFlagShowNebulaBackgroundButton() const bool StelGui::getFlagShowNebulaBackgroundButton() const
{ {
return flagShowNebulaBackgroundButton; return flagShowNebulaBackgroundButton;
} }
bool StelGui::getFlagShowDecimalDegrees() const
{
return flagShowDecimalDegrees;
}
bool StelGui::initComplete(void) const bool StelGui::initComplete(void) const
{ {
return initDone; return initDone;
} }
void StelGui::forceRefreshGui() void StelGui::forceRefreshGui()
{ {
skyGui->updateBarsPos(); skyGui->updateBarsPos();
} }
 End of changes. 4 change blocks. 
0 lines changed or deleted 14 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/