LocationDialog.hpp   LocationDialog.hpp 
skipping to change at line 58 skipping to change at line 58
//! 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);
//! Create a StelLocation instance from the fields //! Create a StelLocation instance from the fields
StelLocation locationFromFields() const; StelLocation locationFromFields() const;
//! True if the user is currently editing a new location //! True if the user is currently editing a new location
bool isEditingNew; bool isEditingNew;
//! To be called when user edits any field
void reportEdit();
void disconnectEditSignals(); void disconnectEditSignals();
void connectEditSignals(); void connectEditSignals();
//! Update the map for the given location. //! Update the map for the given location.
void setMapForLocation(const StelLocation& loc); void setMapForLocation(const StelLocation& loc);
//! Populates the drop-down list of planets. //! Populates the drop-down list of planets.
//! 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 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:
//! To be called when user edits any field
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(); void updateFromProgram(const StelLocation& location);
//! Called when the map is clicked //! Called when the map is clicked.
void setPositionFromMap(double longitude, double latitude); void setPositionFromMap(double longitude, double latitude);
//! Called when the user activates an item from the list //! Called when the user activates an item from the locations list.
void listItemActivated(const QModelIndex&); void setPositionFromList(const QModelIndex& index);
//! Called when the planet/country name is manually changed //! Called when the planet is manually changed.
void comboBoxChanged(const QString& text); void moveToAnotherPlanet(const QString& text);
//! Called when latitude/longitude/altitude is modified //! Called when latitude/longitude/altitude is modified
void spinBoxChanged(int i=0); void setPositionFromCoords(int i=0);
//! Called when the location name is manually changed
void locationNameChanged(const QString&);
//! Called when the user clic 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 clic on the delete button //! Called when the user clicks on the delete button
void deleteCurrentLocationFromList(); void deleteCurrentLocationFromList();
//! 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 useAsDefaultClicked(); void setDefaultLocation();
private: private:
QString lastPlanet; QString lastPlanet;
bool lastVisionMode; bool lastVisionMode;
//! Updates the check state and the enabled/disabled status.
void updateDefaultLocationControls(bool currentIsDefault);
}; };
#endif // _LOCATIONDIALOG_HPP_ #endif // _LOCATIONDIALOG_HPP_
 End of changes. 11 change blocks. 
15 lines changed or deleted 16 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/