Location.hpp   StelLocation.hpp 
skipping to change at line 19 skipping to change at line 19
* 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 _LOCATION_HPP_ #ifndef _STELLOCATION_HPP_
#define _LOCATION_HPP_ #define _STELLOCATION_HPP_
#include <QString> #include <QString>
//! @class Location //! @class StelLocation
//! Store the informations for a location on a planet //! Store the informations for a location on a planet
class Location class StelLocation
{ {
friend class LocationMgr; friend class StelLocationMgr;
public: public:
Location() : longitude(0.), latitude(0.), altitude(0), bortleScaleIn dex(2.), isUserLocation(true) {;} StelLocation() : longitude(0.), latitude(0.), altitude(0), bortleSca leIndex(2.), isUserLocation(true) {;}
//! Return a short string which can be used in a list view //! Return a short string which can be used in a list view
QString getID() const QString getID() const
{ {
return name + ", " +country; return name + ", " +country;
} }
//! Output the location as a string ready to be stored in the user_l ocation file //! Output the location as a string ready to be stored in the user_l ocation file
QString serializeToLine() const; QString serializeToLine() const;
skipping to change at line 67 skipping to change at line 67
float bortleScaleIndex; float bortleScaleIndex;
//! A hint for associating a landscape to the location //! A hint for associating a landscape to the location
QString landscapeKey; QString landscapeKey;
//! Population in number of inhabitants //! Population in number of inhabitants
int population; int population;
//! Location role code //! Location role code
//! C/B=Capital, R=Regional capital, N=Normal city, O=Observatory, L =lander, I=spacecraft impact, A=spacecraft crash //! C/B=Capital, R=Regional capital, N=Normal city, O=Observatory, L =lander, I=spacecraft impact, A=spacecraft crash
QChar role; QChar role;
//! Parse a location from a line serialization //! Parse a location from a line serialization
static Location createFromLine(const QString& line); static StelLocation createFromLine(const QString& line);
private: private:
//! Used privately by the LocationMgr //! Used privately by the StelLocationMgr
bool isUserLocation; bool isUserLocation;
}; };
#endif // _LOCATION_HPP_ #endif // _STELLOCATION_HPP_
 End of changes. 8 change blocks. 
8 lines changed or deleted 8 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/