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 Location; class StelLocation;
class LocationDialog : public StelDialog class LocationDialog : public StelDialog
{ {
Q_OBJECT; Q_OBJECT
public: public:
LocationDialog(); LocationDialog();
virtual ~LocationDialog(); virtual ~LocationDialog();
void languageChanged(); void languageChanged();
//! Notify that the application style changed //! Notify that the application style changed
void styleChanged(); void styleChanged();
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 Location& loc); void setFieldsFromLocation(const StelLocation& loc);
//! Create a Location instance from the fields //! Create a StelLocation instance from the fields
Location 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 //! To be called when user edits any field
void reportEdit(); 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 Location& loc); void setMapForLocation(const StelLocation& loc);
private slots: private slots:
//! 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();
//! 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 list
 End of changes. 5 change blocks. 
6 lines changed or deleted 6 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/