NavStars.cpp   NavStars.cpp 
skipping to change at line 62 skipping to change at line 62
info.displayedName = N_("Navigational Stars"); info.displayedName = N_("Navigational Stars");
info.authors = "Alexander Wolf"; info.authors = "Alexander Wolf";
info.contact = "http://stellarium.org/"; info.contact = "http://stellarium.org/";
info.description = N_("This plugin marks navigational stars from a s elected set."); info.description = N_("This plugin marks navigational stars from a s elected set.");
info.version = NAVSTARS_PLUGIN_VERSION; info.version = NAVSTARS_PLUGIN_VERSION;
return info; return info;
} }
NavStars::NavStars() NavStars::NavStars()
: currentNSSet(AngloAmerican) : currentNSSet(AngloAmerican)
, toolbarButton(NULL) , toolbarButton(Q_NULLPTR)
{ {
setObjectName("NavStars"); setObjectName("NavStars");
conf = StelApp::getInstance().getSettings(); conf = StelApp::getInstance().getSettings();
propMgr = StelApp::getInstance().getStelPropertyManager(); propMgr = StelApp::getInstance().getStelPropertyManager();
mainWindow = new NavStarsWindow(); mainWindow = new NavStarsWindow();
} }
NavStars::~NavStars() NavStars::~NavStars()
{ {
delete mainWindow; delete mainWindow;
skipping to change at line 110 skipping to change at line 110
markerTexture = StelApp::getInstance().getTextureManager().createTex ture(path); markerTexture = StelApp::getInstance().getTextureManager().createTex ture(path);
// key bindings and other actions // key bindings and other actions
addAction("actionShow_NavStars", addAction("actionShow_NavStars",
N_("Navigational Stars"), N_("Navigational Stars"),
N_("Mark the navigational stars"), N_("Mark the navigational stars"),
"navStarsVisible", ""); "navStarsVisible", "");
// Toolbar button // Toolbar button
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( )); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
if (gui!=NULL) if (gui!=Q_NULLPTR)
{ {
if (toolbarButton == NULL) if (toolbarButton == Q_NULLPTR)
{ {
// Create the nav. stars button // Create the nav. stars button
toolbarButton = new StelButton(NULL, toolbarButton = new StelButton(Q_NULLPTR,
QPixmap(":/NavStars/b tNavStars-on.png"), QPixmap(":/NavStars/b tNavStars-on.png"),
QPixmap(":/NavStars/b tNavStars-off.png"), QPixmap(":/NavStars/b tNavStars-off.png"),
QPixmap(":/graphicGui /glow32x32.png"), QPixmap(":/graphicGui /glow32x32.png"),
"actionShow_NavStars" ); "actionShow_NavStars" );
} }
gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGr oup"); gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGr oup");
} }
// Sync global settings for stars labels // Sync global settings for stars labels
connect(GETSTELMODULE(StarMgr), SIGNAL(starLabelsDisplayedChanged(bo ol)), this, SLOT(starNamesChanged(bool))); connect(GETSTELMODULE(StarMgr), SIGNAL(starLabelsDisplayedChanged(bo ol)), this, SLOT(starNamesChanged(bool)));
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 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/