SolarSystemManagerWindow.cpp   SolarSystemManagerWindow.cpp 
skipping to change at line 61 skipping to change at line 61
if (mpcImportWindow) if (mpcImportWindow)
delete mpcImportWindow; delete mpcImportWindow;
if (manualImportWindow) if (manualImportWindow)
delete manualImportWindow; delete manualImportWindow;
} }
void SolarSystemManagerWindow::createDialogContent() void SolarSystemManagerWindow::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
#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->listWidgetObjects; addscroll << ui->listWidgetObjects;
installKineticScrolling(addscroll); installKineticScrolling(addscroll);
#endif
//Signals //Signals
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), connect(&StelApp::getInstance(), SIGNAL(languageChanged()),
this, SLOT(retranslate())); this, SLOT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
connect(ui->pushButtonCopyFile, SIGNAL(clicked()), this, SLOT(copyCo nfiguration())); connect(ui->pushButtonCopyFile, SIGNAL(clicked()), this, SLOT(copyCo nfiguration()));
connect(ui->pushButtonReplaceFile, SIGNAL(clicked()), this, SLOT(rep laceConfiguration())); connect(ui->pushButtonReplaceFile, SIGNAL(clicked()), this, SLOT(rep laceConfiguration()));
connect(ui->pushButtonRemove, SIGNAL(clicked()), this, SLOT(removeOb ject())); connect(ui->pushButtonRemove, SIGNAL(clicked()), this, SLOT(removeOb ject()));
connect(ui->pushButtonImportMPC, SIGNAL(clicked()), this, SLOT(newIm portMPC())); connect(ui->pushButtonImportMPC, SIGNAL(clicked()), this, SLOT(newIm portMPC()));
//connect(ui->pushButtonManual, SIGNAL(clicked()), this, SLOT(newImp ortManual())); //connect(ui->pushButtonManual, SIGNAL(clicked()), this, SLOT(newImp ortManual()));
connect(ssoManager, SIGNAL(solarSystemChanged()), this, SLOT(populat eSolarSystemList())); connect(ssoManager, SIGNAL(solarSystemChanged()), this, SLOT(populat eSolarSystemList()));
connect(ui->pushButtonReset, SIGNAL(clicked()), ssoManager, SLOT(res etSolarSystemToDefault())); connect(ui->pushButtonReset, SIGNAL(clicked()), ssoManager, SLOT(res etSolarSystemToDefault()));
connect(ui->listWidgetObjects, SIGNAL(currentRowChanged(int)), this,
SLOT(repaintSolarSystemList()));
updateTexts(); updateTexts();
Q_ASSERT(mpcImportWindow); Q_ASSERT(mpcImportWindow);
//Rebuild the list if any planets have been imported //Rebuild the list if any planets have been imported
connect(mpcImportWindow, SIGNAL(objectsImported()), this, SLOT(popul ateSolarSystemList())); connect(mpcImportWindow, SIGNAL(objectsImported()), this, SLOT(popul ateSolarSystemList()));
ui->lineEditUserFilePath->setText(ssoManager->getCustomSolarSystemFi lePath()); ui->lineEditUserFilePath->setText(ssoManager->getCustomSolarSystemFi lePath());
populateSolarSystemList(); populateSolarSystemList();
} }
void SolarSystemManagerWindow::repaintSolarSystemList()
{
// Enable force repaint listEvents to avoiding artifacts
// Seems bug in Qt5. Details: https://bugs.launchpad.net/stellarium/
+bug/1350669
ui->listWidgetObjects->repaint();
}
void SolarSystemManagerWindow::updateTexts() void SolarSystemManagerWindow::updateTexts()
{ {
//Solar System tab //Solar System tab
// TRANSLATORS: Appears as the text of hyperlinks linking to website s. :) // TRANSLATORS: Appears as the text of hyperlinks linking to website s. :)
QString linkText(q_("website")); QString linkText(q_("website"));
QString linkCode = QString("<a href=\"http://www.minorplanetcenter.n et/\">%1</a>").arg(linkText); QString linkCode = QString("<a href=\"http://www.minorplanetcenter.n et/\">%1</a>").arg(linkText);
// TRANSLATORS: IAU = International Astronomical Union // TRANSLATORS: IAU = International Astronomical Union
QString mpcText(q_("You can import comet and asteroid data formatted in the export formats of the IAU's Minor Planet Center (%1). You can impor t files with lists of objects, download such lists from the Internet or sea rch the online Minor Planet and Comet Ephemeris Service (MPES).")); QString mpcText(q_("You can import comet and asteroid data formatted in the export formats of the IAU's Minor Planet Center (%1). You can impor t files with lists of objects, download such lists from the Internet or sea rch the online Minor Planet and Comet Ephemeris Service (MPES)."));
ui->labelMPC->setText(QString(mpcText).arg(linkCode)); ui->labelMPC->setText(QString(mpcText).arg(linkCode));
 End of changes. 4 change blocks. 
0 lines changed or deleted 13 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/