LocationDialog.hpp   LocationDialog.hpp 
skipping to change at line 28 skipping to change at line 28
*/ */
#ifndef _LOCATIONDIALOG_HPP_ #ifndef _LOCATIONDIALOG_HPP_
#define _LOCATIONDIALOG_HPP_ #define _LOCATIONDIALOG_HPP_
#include <QObject> #include <QObject>
#include "StelDialog.hpp" #include "StelDialog.hpp"
class Ui_locationDialogForm; class Ui_locationDialogForm;
class QModelIndex; class QModelIndex;
class QSortFilterProxyModel;
class QStringListModel;
class StelLocation; class StelLocation;
class LocationDialog : public StelDialog class LocationDialog : public StelDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
LocationDialog(QObject* parent); LocationDialog(QObject* parent);
virtual ~LocationDialog(); virtual ~LocationDialog();
//! Notify that the application style changed //! Notify that the application style changed
void styleChanged(); void styleChanged();
skipping to change at line 77 skipping to change at line 79
//! item. //! item.
void populatePlanetList(); void populatePlanetList();
//! Populates the drop-down list of countries. //! Populates the drop-down list of countries.
//! The displayed names are localized in the current interface langu age. //! The displayed names are localized in the current interface langu age.
//! The original names are kept in the user data field of each QComb oBox //! The original names are kept in the user data field of each QComb oBox
//! item. //! item.
void populateCountryList(); void populateCountryList();
private slots: private slots:
//! Called whenever the StelLocationMgr is updated
void reloadLocations();
//! To be called when user edits any field //! To be called when user edits any field
void reportEdit(); void reportEdit();
//! Update the widget to make sure it is synchrone if the location i s changed programmatically //! Update the widget to make sure it is synchrone if the location i s changed programmatically
//! This function should be called repeatidly with e.g. a timer //! This function should be called repeatidly with e.g. a timer
void updateFromProgram(const StelLocation& location); void updateFromProgram(const StelLocation& location);
//! Called when the map is clicked. //! Called when the map is clicked.
//! create new list for places nearby and feed into location list bo x. //! create new list for places nearby and feed into location list bo x.
void setPositionFromMap(double longitude, double latitude); void setPositionFromMap(double longitude, double latitude);
skipping to change at line 116 skipping to change at line 121
void resetCompleteList(); void resetCompleteList();
//! called when the user wants get location from network //! called when the user wants get location from network
void ipQueryLocation(bool state); void ipQueryLocation(bool state);
//! Called when the user wants to use the current location as defaul t //! Called when the user wants to use the current location as defaul t
void setDefaultLocation(bool state); void setDefaultLocation(bool state);
private: private:
QString lastPlanet; QString lastPlanet;
QStringListModel* allModel;
QStringListModel* pickedModel;
QSortFilterProxyModel *proxyModel;
//! Updates the check state and the enabled/disabled status. //! Updates the check state and the enabled/disabled status.
void updateDefaultLocationControls(bool currentIsDefault); void updateDefaultLocationControls(bool currentIsDefault);
}; };
#endif // _LOCATIONDIALOG_HPP_ #endif // _LOCATIONDIALOG_HPP_
 End of changes. 3 change blocks. 
0 lines changed or deleted 9 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/