AddRemoveLandscapesDialog.cpp   AddRemoveLandscapesDialog.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 "AddRemoveLandscapesDialog.hpp" #include "AddRemoveLandscapesDialog.hpp"
#include "ui_addRemoveLandscapesDialog.h" #include "ui_addRemoveLandscapesDialog.h"
#include "Dialog.hpp" #include "Dialog.hpp"
#include "LandscapeMgr.hpp" #include "LandscapeMgr.hpp"
#include "StelApp.hpp" #include "StelApp.hpp"
#include "StelModuleMgr.hpp" #include "StelModuleMgr.hpp"
#include "StelLocaleMgr.hpp" #include "StelLocaleMgr.hpp"
skipping to change at line 45 skipping to change at line 45
ui = new Ui_addRemoveLandscapesDialogForm; ui = new Ui_addRemoveLandscapesDialogForm;
landscapeManager = GETSTELMODULE(LandscapeMgr); landscapeManager = GETSTELMODULE(LandscapeMgr);
lastUsedDirectoryPath = QDir::homePath(); lastUsedDirectoryPath = QDir::homePath();
} }
AddRemoveLandscapesDialog::~AddRemoveLandscapesDialog() AddRemoveLandscapesDialog::~AddRemoveLandscapesDialog()
{ {
delete ui; delete ui;
} }
void AddRemoveLandscapesDialog::languageChanged() void AddRemoveLandscapesDialog::retranslate()
{ {
if (dialog) if (dialog)
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
} }
// Initialize the dialog widgets and connect the signals/slots // Initialize the dialog widgets and connect the signals/slots
void AddRemoveLandscapesDialog::createDialogContent() void AddRemoveLandscapesDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
//Signals and slots //Signals and slots
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(languageChanged())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
connect(ui->pushButtonBrowseForArchive, SIGNAL(clicked()), this, SLO T(browseForArchiveClicked())); connect(ui->pushButtonBrowseForArchive, SIGNAL(clicked()), this, SLO T(browseForArchiveClicked()));
connect(ui->listWidgetUserLandscapes, SIGNAL(currentRowChanged(int)) , this, SLOT(updateSidePane(int))); connect(ui->listWidgetUserLandscapes, SIGNAL(currentRowChanged(int)) , this, SLOT(updateSidePane(int)));
connect(ui->pushButtonRemove, SIGNAL(clicked()), this, SLOT(removeCl icked())); connect(ui->pushButtonRemove, SIGNAL(clicked()), this, SLOT(removeCl icked()));
connect(ui->pushButtonMessageOK, SIGNAL(clicked()), this, SLOT(messa geAcknowledged())); connect(ui->pushButtonMessageOK, SIGNAL(clicked()), this, SLOT(messa geAcknowledged()));
connect(landscapeManager, SIGNAL(landscapesChanged()), this, SLOT(po pulateLists())); connect(landscapeManager, SIGNAL(landscapesChanged()), this, SLOT(po pulateLists()));
connect(landscapeManager, SIGNAL(errorUnableToOpen(QString)), this, SLOT(messageUnableToOpen(QString))); connect(landscapeManager, SIGNAL(errorUnableToOpen(QString)), this, SLOT(messageUnableToOpen(QString)));
connect(landscapeManager, SIGNAL(errorNotArchive()), this, SLOT(mess ageNotArchive())); connect(landscapeManager, SIGNAL(errorNotArchive()), this, SLOT(mess ageNotArchive()));
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 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/