20 #ifndef _LOCATIONDIALOG_HPP_ 21 #define _LOCATIONDIALOG_HPP_ 24 #include "StelDialog.hpp" 26 class Ui_locationDialogForm;
28 class QSortFilterProxyModel;
29 class QStringListModel;
47 Ui_locationDialogForm* ui;
60 void disconnectEditSignals();
61 void connectEditSignals();
70 void populatePlanetList();
76 void populateCountryList();
82 void populateTimeZonesList();
86 void reloadLocations();
99 void setPositionFromMap(
double longitude,
double latitude);
102 void setPositionFromList(
const QModelIndex& index);
105 void moveToAnotherPlanet(
const QString& text);
107 void setPositionFromCoords(
int i=0);
110 void addCurrentLocationToList();
113 void deleteCurrentLocationFromList();
116 void filterSitesByCountry();
119 void resetCompleteList();
122 void ipQueryLocation(
bool state);
125 void setDefaultLocation(
bool state);
128 void updateTimeZoneControls(
bool useCustomTimeZone);
132 QString customTimeZone;
133 QStringListModel* allModel;
134 QStringListModel* pickedModel;
135 QSortFilterProxyModel *proxyModel;
138 void updateDefaultLocationControls(
bool currentIsDefault);
142 #endif // _LOCATIONDIALOG_HPP_ Store the informations for a location on a planet.
void styleChanged()
Notify that the application style changed.
Base class for all the GUI windows in Stellarium.
virtual void createDialogContent()
Initialize the dialog widgets and connect the signals/slots.