Skip to content

Commit

Permalink
Changed bottom bar GUI button for Hips display
Browse files Browse the repository at this point in the history
  • Loading branch information
gzotti committed Mar 18, 2018
1 parent 51d208b commit ac81447
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Binary file added data/gui/btSurveys-off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/gui/btSurveys-on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions data/gui/guiRes.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,7 @@
<file>nv_checkbox-partial.png</file>
<file>tabicon-AstroCalc-MonthlyElevation-active.png</file>
<file>tabicon-AstroCalc-MonthlyElevation.png</file>
<file>btSurveys-off.png</file>
<file>btSurveys-on.png</file>
</qresource>
</RCC>
5 changes: 3 additions & 2 deletions src/gui/StelGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,14 +835,15 @@ void StelGui::setFlagShowConstellationBoundariesButton(bool b)
}

// Define whether the button toggling DSS images should be visible
// TODO: This is now Hips. Decide what to do with TOAST/DSS-only, and rename methods accordingly.
void StelGui::setFlagShowDSSButton(bool b)
{
if (b==true) {
if (btShowDSS==Q_NULLPTR) {
// Create the nebulae background button
QPixmap pxmapGlow32x32(":/graphicGui/glow32x32.png");
QPixmap pxmapOn(":/graphicGui/btToastSurvey-on.png");
QPixmap pxmapOff(":/graphicGui/btToastSurvey-off.png");
QPixmap pxmapOn(":/graphicGui/btSurveys-on.png");
QPixmap pxmapOff(":/graphicGui/btSurveys-off.png");
btShowDSS = new StelButton(Q_NULLPTR, pxmapOn, pxmapOff, pxmapGlow32x32, "actionShow_Hips_Surveys");
}
getButtonBar()->addButton(btShowDSS, "040-nebulaeGroup");
Expand Down

0 comments on commit ac81447

Please sign in to comment.