ManualImportWindow.cpp   ManualImportWindow.cpp 
skipping to change at line 18 skipping to change at line 18
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "SolarSystemEditor.hpp" #include "SolarSystemEditor.hpp"
#include "ManualImportWindow.hpp" #include "ManualImportWindow.hpp"
#include "ui_manualImportWindow.h" #include "ui_manualImportWindow.h"
#include <QColor> #include <QColor>
#include <QColorDialog> #include <QColorDialog>
#include <QFileDialog> #include <QFileDialog>
#include <QImageReader> #include <QImageReader>
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelFileMgr.hpp" #include "StelFileMgr.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
//#include "StelTranslator.hpp"
ManualImportWindow::ManualImportWindow() ManualImportWindow::ManualImportWindow()
{ {
ui = new Ui_manualImportWindow(); ui = new Ui_manualImportWindow();
ssoManager = GETSTELMODULE(SolarSystemEditor); ssoManager = GETSTELMODULE(SolarSystemEditor);
} }
ManualImportWindow::~ManualImportWindow() ManualImportWindow::~ManualImportWindow()
{ {
delete ui; delete ui;
} }
void ManualImportWindow::createDialogContent() void ManualImportWindow::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
//Signals //Signals
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL connect(&StelApp::getInstance(), SIGNAL(languageChanged()),
OT(languageChanged())); this, SLOT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
connect(ui->lineEditColor, SIGNAL(textChanged(QString)), this, SLOT( parseColorString(QString))); connect(ui->lineEditColor, SIGNAL(textChanged(QString)), this, SLOT( parseColorString(QString)));
connect(ui->pushButtonSelectColor, SIGNAL(clicked()), this, SLOT(sel ectColor())); connect(ui->pushButtonSelectColor, SIGNAL(clicked()), this, SLOT(sel ectColor()));
connect(ui->pushButtonSelectTexture, SIGNAL(clicked()), this, SLOT(s electPlanetTextureFile())); connect(ui->pushButtonSelectTexture, SIGNAL(clicked()), this, SLOT(s electPlanetTextureFile()));
connect(ui->pushButtonSelectRingTexture, SIGNAL(clicked()), this, SL OT(selectRingTextureFile())); connect(ui->pushButtonSelectRingTexture, SIGNAL(clicked()), this, SL OT(selectRingTextureFile()));
ui->labelLongitudeOfTheAscendingNode->setText(QString("Longitude of ui->labelLongitudeOfTheAscendingNode->setText(QString("Longitude of
the ascending node %1:").arg(QChar(0x03A9)));//Capital omega the ascending node %1:").arg(QChar(0x03A9)));//Capital omega
ui->radioButtonArgumentOfPeriapsis->setText(QString("Argument of per ui->radioButtonArgumentOfPeriapsis->setText(QString("Argument of pe
iapsis %1:").arg(QChar(0x3C9)));//Lowercase omega riapsis %1:").arg(QChar(0x3C9)));//Lowercase omega
ui->radioButtonLongitudeOfPeriapsis->setText(QString("Longitude of p ui->radioButtonLongitudeOfPeriapsis->setText(QString("Longitude of
eriapsis %1:").arg(QChar(0x3D6))); periapsis %1:").arg(QChar(0x3D6)));
//TODO: Move to "set defaults" function //TODO: Move to "set defaults" function
ui->lineEditColor->setText("1.0, 1.0, 1.0"); ui->lineEditColor->setText("1.0, 1.0, 1.0");
ui->lineEditTexture->setText("nomap.png"); ui->lineEditTexture->setText("nomap.png");
ui->lineEditRingTexture->setText("saturn_rings_radial.png"); ui->lineEditRingTexture->setText("saturn_rings_radial.png");
} }
void ManualImportWindow::languageChanged() void ManualImportWindow::retranslate()
{ {
if (dialog) if (dialog)
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
} }
void ManualImportWindow::selectColor() void ManualImportWindow::selectColor()
{ {
QColor color = QColorDialog::getColor(objectColor); QColor color = QColorDialog::getColor(objectColor);
objectColor = color; objectColor = color;
ui->lineEditColor->setText(QString("%1, %2, %3").arg(color.redF()).a rg(color.greenF()).arg(color.blueF())); ui->lineEditColor->setText(QString("%1, %2, %3").arg(color.redF()).a rg(color.greenF()).arg(color.blueF()));
 End of changes. 5 change blocks. 
10 lines changed or deleted 11 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/