MpcImportWindow.hpp   MpcImportWindow.hpp 
/* /*
* Solar System editor plug-in for Stellarium * Solar System editor plug-in for Stellarium
* *
* Copyright (C) 2010 Bogdan Marinov * Copyright (C) 2010-2011 Bogdan Marinov
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _MPC_IMPORT_WINDOW_ #ifndef _MPC_IMPORT_WINDOW_
#define _MPC_IMPORT_WINDOW_ #define _MPC_IMPORT_WINDOW_
#include <QObject> #include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QProgressBar>
#include <QStandardItemModel>
#include "StelDialog.hpp" #include "StelDialog.hpp"
#include "SolarSystemEditor.hpp" #include "SolarSystemEditor.hpp"
class Ui_mpcImportWindow; class Ui_mpcImportWindow;
class QNetworkAccessManager;
class QNetworkReply;
class QProgressBar;
/*! \brief Window for importing orbital elements from various sources. /*! \brief Window for importing orbital elements from the Minor Planet Cent er.
\author Bogdan Marinov \author Bogdan Marinov
*/ */
class MpcImportWindow : public StelDialog class MpcImportWindow : public StelDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
enum ImportType { enum ImportType {
MpcComets, MpcComets,
MpcMinorPlanets MpcMinorPlanets
}; };
skipping to change at line 98 skipping to change at line 99
void addObjects(); void addObjects();
void discardObjects(); void discardObjects();
//! resets the dialog to the state it should be in immediately after createDialogContent();. //! resets the dialog to the state it should be in immediately after createDialogContent();.
void resetDialog(); void resetDialog();
private: private:
SolarSystemEditor * ssoManager; SolarSystemEditor * ssoManager;
QList<SsoElements> candidatesForAddition; QList<SsoElements> candidatesForAddition;
QList<SsoElements> candidatesForUpdate; QList<SsoElements> candidatesForUpdate;
QStandardItemModel * candidateObjectsModel;
ImportType importType; ImportType importType;
//! wrapper for the single object function to allow multiple formats . //! wrapper for the single object function to allow multiple formats .
SsoElements readElementsFromString(QString elements); SsoElements readElementsFromString(QString elements);
//! wrapper for the file function to allow multiple formats //! wrapper for the file function to allow multiple formats
QList<SsoElements> readElementsFromFile(ImportType type, QString fil ePath); QList<SsoElements> readElementsFromFile(ImportType type, QString fil ePath);
void populateBookmarksList(); void populateBookmarksList();
//void populateCandidateObjects(); //void populateCandidateObjects();
 End of changes. 5 change blocks. 
5 lines changed or deleted 7 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/