SatellitesDialog.cpp   SatellitesDialog.cpp 
skipping to change at line 35 skipping to change at line 35
#include "StelApp.hpp" #include "StelApp.hpp"
#include <plugin_config.h> #include <plugin_config.h>
#include "ui_satellitesDialog.h" #include "ui_satellitesDialog.h"
#include "SatellitesDialog.hpp" #include "SatellitesDialog.hpp"
#include "Satellites.hpp" #include "Satellites.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelObjectMgr.hpp" #include "StelObjectMgr.hpp"
#include "StelMovementMgr.hpp" #include "StelMovementMgr.hpp"
#include "StelStyle.hpp" #include "StelStyle.hpp"
#include "StelGui.hpp"
// When i18n is implemented, uncomment the StelTranslator.hpp include // When i18n is implemented, uncomment the StelTranslator.hpp include
// and remove the definition of q_ // and remove the definition of q_
//#include "StelTranslator.hpp" //#include "StelTranslator.hpp"
#define q_ QString #define q_ QString
SatellitesDialog::SatellitesDialog() : updateTimer(NULL) SatellitesDialog::SatellitesDialog() : updateTimer(NULL)
{ {
ui = new Ui_satellitesDialog; ui = new Ui_satellitesDialog;
} }
skipping to change at line 63 skipping to change at line 64
} }
delete ui; delete ui;
} }
void SatellitesDialog::languageChanged() void SatellitesDialog::languageChanged()
{ {
if (dialog) if (dialog)
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
} }
void SatellitesDialog::updateStyle()
{
if (dialog)
{
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance()
.getGui());
Q_ASSERT(gui);
const StelStyle pluginStyle = GETSTELMODULE(Satellites)->get
ModuleStyleSheet(gui->getStelStyle());
dialog->setStyleSheet(pluginStyle.qtStyleSheet);
ui->aboutTextBrowser->document()->setDefaultStyleSheet(QStri
ng(pluginStyle.htmlStyleSheet));
}
}
// Initialize the dialog widgets and connect the signals/slots // Initialize the dialog widgets and connect the signals/slots
void SatellitesDialog::createDialogContent() void SatellitesDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
ui->tabs->setCurrentIndex(0); ui->tabs->setCurrentIndex(0);
// Settings tab / updates group // Settings tab / updates group
connect(ui->updateFromInternetCheckbox, SIGNAL(toggled(bool)), this, SLOT(setUpdatesEnabled(bool))); connect(ui->updateFromInternetCheckbox, SIGNAL(toggled(bool)), this, SLOT(setUpdatesEnabled(bool)));
refreshUpdateValues(); // fetch values for last updated and so on refreshUpdateValues(); // fetch values for last updated and so on
connect(ui->updateNowButton, SIGNAL(clicked()), GETSTELMODULE(Satell ites), SLOT(updateTLEs())); connect(ui->updateNowButton, SIGNAL(clicked()), GETSTELMODULE(Satell ites), SLOT(updateTLEs()));
skipping to change at line 104 skipping to change at line 117
connect(ui->visibleCheckbox, SIGNAL(stateChanged(int)), this, SLOT(v isibleCheckChanged(int))); connect(ui->visibleCheckbox, SIGNAL(stateChanged(int)), this, SLOT(v isibleCheckChanged(int)));
// Sources tab // Sources tab
connect(ui->sourceList, SIGNAL(currentTextChanged(const QString&)), ui->sourceEdit, SLOT(setText(const QString&))); connect(ui->sourceList, SIGNAL(currentTextChanged(const QString&)), ui->sourceEdit, SLOT(setText(const QString&)));
connect(ui->sourceEdit, SIGNAL(editingFinished()), this, SLOT(source EditingDone())); connect(ui->sourceEdit, SIGNAL(editingFinished()), this, SLOT(source EditingDone()));
connect(ui->deleteSourceButton, SIGNAL(clicked()), this, SLOT(delete SourceRow())); connect(ui->deleteSourceButton, SIGNAL(clicked()), this, SLOT(delete SourceRow()));
connect(ui->addSourceButton, SIGNAL(clicked()), this, SLOT(addSource Row())); connect(ui->addSourceButton, SIGNAL(clicked()), this, SLOT(addSource Row()));
// About tab // About tab
setAboutHtml(); setAboutHtml();
ui->aboutTextBrowser->document()->setDefaultStyleSheet(QString(StelA StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui(
pp::getInstance().getCurrentStelStyle()->htmlStyleSheet)); ));
Q_ASSERT(gui);
ui->aboutTextBrowser->document()->setDefaultStyleSheet(QString(gui->
getStelStyle().htmlStyleSheet));
updateGuiFromSettings(); updateGuiFromSettings();
//Initialize the style
updateStyle();
} }
void SatellitesDialog::groupFilterChanged(int index) void SatellitesDialog::groupFilterChanged(int index)
{ {
QString prevSelection; QString prevSelection;
if (ui->satellitesList->currentItem()) if (ui->satellitesList->currentItem())
prevSelection = ui->satellitesList->currentItem()->text(); prevSelection = ui->satellitesList->currentItem()->text();
ui->satellitesList->clear(); ui->satellitesList->clear();
if (ui->groupsCombo->itemData(index).toString() == "all") if (ui->groupsCombo->itemData(index).toString() == "all")
 End of changes. 4 change blocks. 
2 lines changed or deleted 23 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/