QuasarsDialog.cpp   QuasarsDialog.cpp 
skipping to change at line 77 skipping to change at line 77
void QuasarsDialog::createDialogContent() void QuasarsDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
ui->tabs->setCurrentIndex(0); ui->tabs->setCurrentIndex(0);
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), connect(&StelApp::getInstance(), SIGNAL(languageChanged()),
this, SLOT(retranslate())); this, SLOT(retranslate()));
// Settings tab / updates group // Settings tab / updates group
ui->displayModeCheckBox->setChecked(GETSTELMODULE(Quasars)->getDispl ayMode()); ui->displayModeCheckBox->setChecked(GETSTELMODULE(Quasars)->getDispl ayMode());
connect(ui->displayModeCheckBox, SIGNAL(stateChanged(int)), this, SL OT(setDistributionEnabled(int))); connect(ui->displayModeCheckBox, SIGNAL(stateChanged(int)), this, SL OT(setDistributionEnabled(int)));
ui->displayAtStartupCheckBox->setChecked(GETSTELMODULE(Quasars)->get
EnableAtStartup());
connect(ui->displayAtStartupCheckBox, SIGNAL(stateChanged(int)), thi
s, SLOT(setDisplayAtStartupEnabled(int)));
ui->displayShowQuasarsButton->setChecked(GETSTELMODULE(Quasars)->get
FlagShowQuasarsButton());
connect(ui->displayShowQuasarsButton, SIGNAL(stateChanged(int)), thi
s, SLOT(setDisplayShowQuasarsButton(int)));
connect(ui->internetUpdatesCheckbox, SIGNAL(stateChanged(int)), this , SLOT(setUpdatesEnabled(int))); connect(ui->internetUpdatesCheckbox, SIGNAL(stateChanged(int)), this , SLOT(setUpdatesEnabled(int)));
connect(ui->updateButton, SIGNAL(clicked()), this, SLOT(updateJSON() )); connect(ui->updateButton, SIGNAL(clicked()), this, SLOT(updateJSON() ));
connect(GETSTELMODULE(Quasars), SIGNAL(updateStateChanged(Quasars::U pdateState)), this, SLOT(updateStateReceiver(Quasars::UpdateState))); connect(GETSTELMODULE(Quasars), SIGNAL(updateStateChanged(Quasars::U pdateState)), this, SLOT(updateStateReceiver(Quasars::UpdateState)));
connect(GETSTELMODULE(Quasars), SIGNAL(jsonUpdateComplete(void)), th is, SLOT(updateCompleteReceiver(void))); connect(GETSTELMODULE(Quasars), SIGNAL(jsonUpdateComplete(void)), th is, SLOT(updateCompleteReceiver(void)));
connect(ui->updateFrequencySpinBox, SIGNAL(valueChanged(int)), this, SLOT(setUpdateValues(int))); connect(ui->updateFrequencySpinBox, SIGNAL(valueChanged(int)), this, SLOT(setUpdateValues(int)));
refreshUpdateValues(); // fetch values for last updated and so on refreshUpdateValues(); // fetch values for last updated and so on
// if the state didn't change, setUpdatesEnabled will not be called, so we force it // if the state didn't change, setUpdatesEnabled will not be called, so we force it
setUpdatesEnabled(ui->internetUpdatesCheckbox->checkState()); setUpdatesEnabled(ui->internetUpdatesCheckbox->checkState());
updateTimer = new QTimer(this); updateTimer = new QTimer(this);
skipping to change at line 184 skipping to change at line 188
refreshUpdateValues(); refreshUpdateValues();
} }
void QuasarsDialog::setDistributionEnabled(int checkState) void QuasarsDialog::setDistributionEnabled(int checkState)
{ {
bool b = checkState != Qt::Unchecked; bool b = checkState != Qt::Unchecked;
GETSTELMODULE(Quasars)->setDisplayMode(b); GETSTELMODULE(Quasars)->setDisplayMode(b);
} }
void QuasarsDialog::setDisplayAtStartupEnabled(int checkState)
{
bool b = checkState != Qt::Unchecked;
GETSTELMODULE(Quasars)->setEnableAtStartup(b);
}
void QuasarsDialog::setDisplayShowQuasarsButton(int checkState)
{
bool b = checkState != Qt::Unchecked;
GETSTELMODULE(Quasars)->setFlagShowQuasarsButton(b);
}
void QuasarsDialog::updateStateReceiver(Quasars::UpdateState state) void QuasarsDialog::updateStateReceiver(Quasars::UpdateState state)
{ {
//qDebug() << "QuasarsDialog::updateStateReceiver got a signal"; //qDebug() << "QuasarsDialog::updateStateReceiver got a signal";
if (state==Quasars::Updating) if (state==Quasars::Updating)
ui->nextUpdateLabel->setText(q_("Updating now...")); ui->nextUpdateLabel->setText(q_("Updating now..."));
else if (state==Quasars::DownloadError || state==Quasars::OtherError ) else if (state==Quasars::DownloadError || state==Quasars::OtherError )
{ {
ui->nextUpdateLabel->setText(q_("Update error")); ui->nextUpdateLabel->setText(q_("Update error"));
updateTimer->start(); // make sure message is displayed for a while... updateTimer->start(); // make sure message is displayed for a while...
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 20 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/