AngleMeasureDialog.cpp   AngleMeasureDialog.cpp 
skipping to change at line 32 skipping to change at line 32
#include "ui_angleMeasureDialog.h" #include "ui_angleMeasureDialog.h"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelLocaleMgr.hpp" #include "StelLocaleMgr.hpp"
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
AngleMeasureDialog::AngleMeasureDialog() AngleMeasureDialog::AngleMeasureDialog()
: am(NULL) : am(NULL)
{ {
dialogName = "AngleMeasure";
ui = new Ui_angleMeasureDialog(); ui = new Ui_angleMeasureDialog();
} }
AngleMeasureDialog::~AngleMeasureDialog() AngleMeasureDialog::~AngleMeasureDialog()
{ {
delete ui; delete ui;
} }
void AngleMeasureDialog::retranslate() void AngleMeasureDialog::retranslate()
{ {
skipping to change at line 63 skipping to change at line 64
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
//Kinetic scrolling for tablet pc and pc //Kinetic scrolling for tablet pc and pc
QList<QWidget *> addscroll; QList<QWidget *> addscroll;
addscroll << ui->aboutTextBrowser; addscroll << ui->aboutTextBrowser;
installKineticScrolling(addscroll); installKineticScrolling(addscroll);
#endif #endif
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
connect(ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMove dTo(QPoint)));
ui->useDmsFormatCheckBox->setChecked(am->isDmsFormat()); ui->useDmsFormatCheckBox->setChecked(am->isDmsFormat());
connect(ui->useDmsFormatCheckBox, SIGNAL(toggled(bool)), am, SLOT(us eDmsFormat(bool))); connect(ui->useDmsFormatCheckBox, SIGNAL(toggled(bool)), am, SLOT(us eDmsFormat(bool)));
ui->showPositionAngleCheckBox->setChecked(am->isPaDisplayed()); ui->showPositionAngleCheckBox->setChecked(am->isPaDisplayed());
connect(ui->showPositionAngleCheckBox, SIGNAL(toggled(bool)), am, SL OT(showPositionAngle(bool))); connect(ui->showPositionAngleCheckBox, SIGNAL(toggled(bool)), am, SL OT(showPositionAngle(bool)));
ui->showPositionAngleHorizontalCheckBox->setChecked(am->isHorPaDispl ayed()); ui->showPositionAngleHorizontalCheckBox->setChecked(am->isHorPaDispl ayed());
connect(ui->showPositionAngleHorizontalCheckBox, SIGNAL(toggled(bool )), am, SLOT(showPositionAngleHor(bool))); connect(ui->showPositionAngleHorizontalCheckBox, SIGNAL(toggled(bool )), am, SLOT(showPositionAngleHor(bool)));
ui->showEquatorial_GroupBox->setChecked(am->isEquatorial()); ui->showEquatorial_GroupBox->setChecked(am->isEquatorial());
connect(ui->showEquatorial_GroupBox, SIGNAL(toggled(bool)), am, SLOT (showEquatorial(bool))); connect(ui->showEquatorial_GroupBox, SIGNAL(toggled(bool)), am, SLOT (showEquatorial(bool)));
ui->showHorizontal_GroupBox->setChecked(am->isHorizontal()); ui->showHorizontal_GroupBox->setChecked(am->isHorizontal());
connect(ui->showHorizontal_GroupBox, SIGNAL(toggled(bool)), am, SLOT (showHorizontal(bool))); connect(ui->showHorizontal_GroupBox, SIGNAL(toggled(bool)), am, SLOT (showHorizontal(bool)));
ui->azAltStartOnSkyCheckBox->setChecked(am->isHorizontalStartSkylink ed()); ui->azAltStartOnSkyCheckBox->setChecked(am->isHorizontalStartSkylink ed());
connect(ui->azAltStartOnSkyCheckBox, SIGNAL(toggled(bool)), am, SLOT (showHorizontalStartSkylinked(bool))); connect(ui->azAltStartOnSkyCheckBox, SIGNAL(toggled(bool)), am, SLOT (showHorizontalStartSkylinked(bool)));
ui->azAltEndOnSkyCheckBox->setChecked(am->isHorizontalEndSkylinked() ); ui->azAltEndOnSkyCheckBox->setChecked(am->isHorizontalEndSkylinked() );
connect(ui->azAltEndOnSkyCheckBox, SIGNAL(toggled(bool)), am, SLOT(s howHorizontalEndSkylinked(bool))); connect(ui->azAltEndOnSkyCheckBox, SIGNAL(toggled(bool)), am, SLOT(s howHorizontalEndSkylinked(bool)));
connect(ui->saveSettingsButton, SIGNAL(clicked()), this, SLOT(saveAn gleMeasureSettings()));
connect(ui->restoreDefaultsButton, SIGNAL(clicked()), this, SLOT(res etAngleMeasureSettings())); connect(ui->restoreDefaultsButton, SIGNAL(clicked()), this, SLOT(res etAngleMeasureSettings()));
setAboutHtml(); setAboutHtml();
} }
void AngleMeasureDialog::setAboutHtml(void) void AngleMeasureDialog::setAboutHtml(void)
{ {
QString html = "<html><head></head><body>"; QString html = "<html><head></head><body>";
html += "<h2>" + q_("Angle Measure Plug-in") + "</h2><table width=\" 90%\">"; html += "<h2>" + q_("Angle Measure Plug-in") + "</h2><table width=\" 90%\">";
html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + ANGLEMEASURE_VERSION + "</td></tr>"; html += "<tr width=\"30%\"><td><strong>" + q_("Version") + ":</stron g></td><td>" + ANGLEMEASURE_VERSION + "</td></tr>";
skipping to change at line 121 skipping to change at line 122
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( )); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
if(gui!=NULL) if(gui!=NULL)
{ {
QString htmlStyleSheet(gui->getStelStyle().htmlStyleSheet); QString htmlStyleSheet(gui->getStelStyle().htmlStyleSheet);
ui->aboutTextBrowser->document()->setDefaultStyleSheet(htmlS tyleSheet); ui->aboutTextBrowser->document()->setDefaultStyleSheet(htmlS tyleSheet);
} }
ui->aboutTextBrowser->setHtml(html); ui->aboutTextBrowser->setHtml(html);
} }
void AngleMeasureDialog::saveAngleMeasureSettings()
{
am->saveSettings();
}
void AngleMeasureDialog::resetAngleMeasureSettings() void AngleMeasureDialog::resetAngleMeasureSettings()
{ {
am->restoreDefaultSettings(); am->restoreDefaultSettings();
} }
 End of changes. 4 change blocks. 
6 lines changed or deleted 2 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/