AngleMeasure.cpp   AngleMeasure.cpp 
skipping to change at line 57 skipping to change at line 57
return new AngleMeasure(); return new AngleMeasure();
} }
StelPluginInfo AngleMeasureStelPluginInterface::getPluginInfo() const StelPluginInfo AngleMeasureStelPluginInterface::getPluginInfo() const
{ {
// Allow to load the resources when used as a static plugin // Allow to load the resources when used as a static plugin
Q_INIT_RESOURCE(AngleMeasure); Q_INIT_RESOURCE(AngleMeasure);
StelPluginInfo info; StelPluginInfo info;
info.id = "AngleMeasure"; info.id = "AngleMeasure";
info.displayedName = "Angle Measure"; info.displayedName = q_("Angle Measure");
info.authors = "Matthew Gates"; info.authors = "Matthew Gates";
info.contact = "http://porpoisehead.net/"; info.contact = "http://porpoisehead.net/";
info.description = "Provides an angle measurement tool"; info.description = q_("Provides an angle measurement tool");
return info; return info;
} }
Q_EXPORT_PLUGIN2(AngleMeasure, AngleMeasureStelPluginInterface) Q_EXPORT_PLUGIN2(AngleMeasure, AngleMeasureStelPluginInterface)
AngleMeasure::AngleMeasure() AngleMeasure::AngleMeasure()
: flagShowAngleMeasure(false), dragging(false), : flagShowAngleMeasure(false), dragging(false),
angleText(""), flagUseDmsFormat(false), toolbarButton(NULL) angleText(""), flagUseDmsFormat(false), toolbarButton(NULL)
{ {
setObjectName("AngleMeasure"); setObjectName("AngleMeasure");
skipping to change at line 120 skipping to change at line 120
startPoint.set(0.,0.,0.); startPoint.set(0.,0.,0.);
endPoint.set(0.,0.,0.); endPoint.set(0.,0.,0.);
perp1StartPoint.set(0.,0.,0.); perp1StartPoint.set(0.,0.,0.);
perp1EndPoint.set(0.,0.,0.); perp1EndPoint.set(0.,0.,0.);
perp2StartPoint.set(0.,0.,0.); perp2StartPoint.set(0.,0.,0.);
perp2EndPoint.set(0.,0.,0.); perp2EndPoint.set(0.,0.,0.);
// create action for enable/disable & hook up signals // create action for enable/disable & hook up signals
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( )); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
Q_ASSERT(gui); Q_ASSERT(gui);
gui->addGuiActions("actionShow_Angle_Measure", N_("Angle measure"), "Ctrl+A", "Plugin Key Bindings", true, false); gui->addGuiActions("actionShow_Angle_Measure", N_("Angle measure"), "Ctrl+A", N_("Plugin Key Bindings"), true, false);
gui->getGuiActions("actionShow_Angle_Measure")->setChecked(flagShowA ngleMeasure); gui->getGuiActions("actionShow_Angle_Measure")->setChecked(flagShowA ngleMeasure);
connect(gui->getGuiActions("actionShow_Angle_Measure"), SIGNAL(toggl ed(bool)), this, SLOT(enableAngleMeasure(bool))); connect(gui->getGuiActions("actionShow_Angle_Measure"), SIGNAL(toggl ed(bool)), this, SLOT(enableAngleMeasure(bool)));
// Add a toolbar button // Add a toolbar button
try try
{ {
toolbarButton = new StelButton(NULL, QPixmap(":/angleMeasure /bt_anglemeasure_on.png"), QPixmap(":/angleMeasure/bt_anglemeasure_off.png" ), QPixmap(":/graphicGui/glow32x32.png"), gui->getGuiActions("actionShow_An gle_Measure")); toolbarButton = new StelButton(NULL, QPixmap(":/angleMeasure /bt_anglemeasure_on.png"), QPixmap(":/angleMeasure/bt_anglemeasure_off.png" ), QPixmap(":/graphicGui/glow32x32.png"), gui->getGuiActions("actionShow_An gle_Measure"));
gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGr oup"); gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGr oup");
} }
catch (std::runtime_error& e) catch (std::runtime_error& e)
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 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/