LocationDialog.hpp   LocationDialog.hpp 
skipping to change at line 43 skipping to change at line 43
{ {
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();
public slots: public slots:
void retranslate(); void retranslate();
//! In addition to StelDialog's inherited solution, puts the arrow o
n the right spot in the map.
virtual void handleDialogSizeChanged(QSizeF size);
protected: protected:
//! Initialize the dialog widgets and connect the signals/slots //! Initialize the dialog widgets and connect the signals/slots
virtual void createDialogContent(); virtual void createDialogContent();
Ui_locationDialogForm* ui; Ui_locationDialogForm* ui;
private: private:
//! Set the values of all the fields from a location info //! Set the values of all the fields from a location info
//! Also move the observer to this position //! Also move the observer to this position
void setFieldsFromLocation(const StelLocation& loc); void setFieldsFromLocation(const StelLocation& loc);
skipping to change at line 106 skipping to change at line 107
//! 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);
//! Called when the user activates an item from the locations list. //! Called when the user activates an item from the locations list.
void setPositionFromList(const QModelIndex& index); void setPositionFromList(const QModelIndex& index);
//! Called when the planet is manually changed. //! Called when the planet is manually changed.
void moveToAnotherPlanet(const QString& text); void moveToAnotherPlanet(const QString& text);
//! Called when latitude/longitude/altitude is modified //! Called when latitude/longitude/altitude is modified
//! The int argument is required by the Altitude spinbox signal conn ection, but unused.
void setPositionFromCoords(int i=0); void setPositionFromCoords(int i=0);
//! Called when the user clicks on the add to list button //! Called when the user clicks on the add to list button
void addCurrentLocationToList(); void addCurrentLocationToList();
//! Called when the user clicks on the delete button //! Called when the user clicks on the delete button
void deleteCurrentLocationFromList(); void deleteCurrentLocationFromList();
//! filter city list to show entries from single country only //! filter city list to show entries from single country only
void filterSitesByCountry(); void filterSitesByCountry();
//! reset city list to complete list (may have been reduced to picke d list) //! reset city list to complete list (may have been reduced to picke d list)
void resetCompleteList(); void resetCompleteList();
//! called when the user wants get location from network //! called when the user wants get location from network.
//! This is actually a toggle setting which will influence Stellariu
m's behaviour
//! on next boot:
//! @arg state true to immediately query location and activate auto-
query on next launch.
//! @arg state false to store current location as startup location.
void ipQueryLocation(bool state); void ipQueryLocation(bool state);
#ifdef ENABLE_GPS
//! called when the user wants get location from a GPSD or directly
attached (USB over virtual serial device) GPS device.
//! The easiest way to get GPS coordinates from a Linux device is vi
a GPSD.
//! On Windows (and Mac?), or where GPSD is not available, we must p
arse the NMEA-183 strings ourselves.
void gpsQueryLocation();
//! handle a few GUI elements when GPS query returns. Should be conn
ected to LocationMgr's signal gpsResult().
//! @param success true if location was found
void gpsReturn(bool success);
//! reset the default string after a short time where the button sho
ws either success or failure of GPS data retrieval.
void resetGPSbuttonLabel();
#endif
//! 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);
//! Updates the check state and the enabled/disabled status. //! Updates the check state and the enabled/disabled status.
void updateTimeZoneControls(bool useCustomTimeZone); void updateTimeZoneControls(bool useCustomTimeZone);
private: private:
QString lastPlanet; QString lastPlanet;
QString customTimeZone; QString customTimeZone;
QStringListModel* allModel; QStringListModel* allModel;
 End of changes. 5 change blocks. 
2 lines changed or deleted 29 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/