void FOVWindow::createDialogContent() { fov = GETSTELMODULE(FOV); ui->setupUi(dialog); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate())); connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())); connect(ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMovedTo(QPoint))); populateFOV(); connect(ui->doubleSpinBoxFOV0, SIGNAL(valueChanged(double)), this, SLOT(updateFOV0(double))); connect(ui->doubleSpinBoxFOV1, SIGNAL(valueChanged(double)), this, SLOT(updateFOV1(double))); connect(ui->doubleSpinBoxFOV2, SIGNAL(valueChanged(double)), this, SLOT(updateFOV2(double))); connect(ui->doubleSpinBoxFOV3, SIGNAL(valueChanged(double)), this, SLOT(updateFOV3(double))); connect(ui->doubleSpinBoxFOV4, SIGNAL(valueChanged(double)), this, SLOT(updateFOV4(double))); connect(ui->doubleSpinBoxFOV5, SIGNAL(valueChanged(double)), this, SLOT(updateFOV5(double))); connect(ui->doubleSpinBoxFOV6, SIGNAL(valueChanged(double)), this, SLOT(updateFOV6(double))); connect(ui->doubleSpinBoxFOV7, SIGNAL(valueChanged(double)), this, SLOT(updateFOV7(double))); connect(ui->doubleSpinBoxFOV8, SIGNAL(valueChanged(double)), this, SLOT(updateFOV8(double))); connect(ui->doubleSpinBoxFOV9, SIGNAL(valueChanged(double)), this, SLOT(updateFOV9(double))); connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveFOVSettings())); connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetFOVSettings())); updateAboutText(); }
void TimeZoneConfigurationWindow::retranslate() { if (dialog) { ui->retranslateUi(dialog); updateAboutText(); } }
void HelpDialog::styleChanged() { if (dialog) { updateHelpText(); updateAboutText(); } }
void FOVWindow::retranslate() { if (dialog) { ui->retranslateUi(dialog); updateAboutText(); } }
void HelpDialog::retranslate() { if (dialog) { ui->retranslateUi(dialog); updateHelpText(); updateAboutText(); } }
void PointerCoordinatesWindow::retranslate() { if (dialog) { ui->retranslateUi(dialog); updateAboutText(); populateCoordinatesPlacesList(); populateCoordinateSystemsList(); } }
void TimeZoneConfigurationWindow::createDialogContent() { ui->setupUi(dialog); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate())); connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())); connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveTimeZoneSettings())); connect(ui->pushButtonEditTimeZone, SIGNAL(clicked()), this, SLOT(openDefineTimeZoneWindow())); connect(ui->radioButtonTimeDefault, SIGNAL(toggled(bool)), this, SLOT(setTimeFormat(bool))); connect(ui->radioButtonTime12Hour, SIGNAL(toggled(bool)), this, SLOT(setTimeFormat(bool))); connect(ui->radioButtonTime24Hour, SIGNAL(toggled(bool)), this, SLOT(setTimeFormat(bool))); connect(ui->radioButtonDateDefault, SIGNAL(toggled(bool)), this, SLOT(setDateFormat(bool))); connect(ui->radioButtonDateDMY, SIGNAL(toggled(bool)), this, SLOT(setDateFormat(bool))); connect(ui->radioButtonDateMDY, SIGNAL(toggled(bool)), this, SLOT(setDateFormat(bool))); connect(ui->radioButtonDateYMD, SIGNAL(toggled(bool)), this, SLOT(setDateFormat(bool))); updateDisplayFormatSwitches(); QString currentTimeZoneString = timeZoneConfiguration->readTimeZone(); //ui->lineEditCurrent->setText(currentTimeZoneString); ui->lineEditUserDefined->setText(currentTimeZoneString); ui->frameUserDefined->setEnabled(false); if (currentTimeZoneString.startsWith("SCT")) { if (currentTimeZoneString == "SCT+0") { ui->radioButtonUtc->setChecked(true); } else { ui->radioButtonOffset->setChecked(true); double offset = readTzOffsetString(currentTimeZoneString.mid(3)); ui->doubleSpinBoxOffset->setValue(offset); } } else if (currentTimeZoneString == "system_default") { ui->radioButtonLocalSettings->setChecked(true); } else { ui->radioButtonUserDefined->setChecked(true); } updateAboutText(); }
void PointerCoordinatesWindow::createDialogContent() { coord = GETSTELMODULE(PointerCoordinates); ui->setupUi(dialog); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate())); connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())); populateValues(); connect(ui->checkBoxEnableAtStartup, SIGNAL(clicked(bool)), coord, SLOT(setFlagEnableAtStartup(bool))); connect(ui->spinBoxFontSize, SIGNAL(valueChanged(int)), coord, SLOT(setFontSize(int))); connect(ui->checkBoxShowButton, SIGNAL(clicked(bool)), coord, SLOT(setFlagShowCoordinatesButton(bool))); // Place of the string with coordinates populateCoordinatesPlacesList(); QString currentPlaceKey = coord->getCurrentCoordinatesPlaceKey(); int idx = ui->placeComboBox->findData(currentPlaceKey, Qt::UserRole, Qt::MatchCaseSensitive); if (idx==-1) { // Use TopRight as default idx = ui->placeComboBox->findData(QVariant("TopRight"), Qt::UserRole, Qt::MatchCaseSensitive); } ui->placeComboBox->setCurrentIndex(idx); setCustomCoordinatesAccess(currentPlaceKey); connect(ui->placeComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(setCoordinatesPlace(int))); populateCoordinateSystemsList(); idx = ui->coordinateSystemComboBox->findData(coord->getCurrentCoordinateSystemKey(), Qt::UserRole, Qt::MatchCaseSensitive); if (idx==-1) { // Use RaDecJ2000 as default idx = ui->coordinateSystemComboBox->findData(QVariant("RaDecJ2000"), Qt::UserRole, Qt::MatchCaseSensitive); } ui->coordinateSystemComboBox->setCurrentIndex(idx); connect(ui->coordinateSystemComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(setCoordinateSystem(int))); connect(ui->spinBoxX, SIGNAL(valueChanged(int)), this, SLOT(setCustomCoordinatesPlace())); connect(ui->spinBoxY, SIGNAL(valueChanged(int)), this, SLOT(setCustomCoordinatesPlace())); connect(ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(saveCoordinatesSettings())); connect(ui->pushButtonReset, SIGNAL(clicked()), this, SLOT(resetCoordinatesSettings())); updateAboutText(); }
void HelpDialog::createDialogContent() { ui->setupUi(dialog); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate())); ui->stackedWidget->setCurrentIndex(0); ui->stackListWidget->setCurrentRow(0); connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())); connect(ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMovedTo(QPoint))); // Kinetic scrolling kineticScrollingList << ui->helpBrowser << ui->aboutBrowser << ui->logBrowser; StelGui* gui= dynamic_cast<StelGui*>(StelApp::getInstance().getGui()); if (gui) { enableKineticScrolling(gui->getFlagUseKineticScrolling()); connect(gui, SIGNAL(flagUseKineticScrollingChanged(bool)), this, SLOT(enableKineticScrolling(bool))); } // Help page updateHelpText(); connect(ui->editShortcutsButton, SIGNAL(clicked()), this, SLOT(showShortcutsWindow())); connect(StelApp::getInstance().getStelActionManager(), SIGNAL(shortcutsChanged()), this, SLOT(updateHelpText())); // About page updateAboutText(); // Log page ui->logPathLabel->setText(QString("%1/log.txt:").arg(StelFileMgr::getUserDir())); connect(ui->stackedWidget, SIGNAL(currentChanged(int)), this, SLOT(updateLog(int))); connect(ui->refreshButton, SIGNAL(clicked()), this, SLOT(refreshLog())); // Set up download manager for checker of updates networkManager = StelApp::getInstance().getNetworkAccessManager(); updateState = CompleteNoUpdates; connect(ui->checkUpdatesButton, SIGNAL(clicked()), this, SLOT(checkUpdates())); connect(this, SIGNAL(checkUpdatesComplete(void)), this, SLOT(updateAboutText())); connect(ui->stackListWidget, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*))); }