20 #ifndef _LOCATIONDIALOG_HPP_ 21 #define _LOCATIONDIALOG_HPP_ 24 #include "StelDialog.hpp" 26 class Ui_locationDialogForm;
28 class QSortFilterProxyModel;
29 class QStringListModel;
48 Ui_locationDialogForm* ui;
61 void disconnectEditSignals();
62 void connectEditSignals();
71 void populatePlanetList();
77 void populateCountryList();
83 void populateTimeZonesList();
87 void reloadLocations();
100 void setPositionFromMap(
double longitude,
double latitude);
103 void setPositionFromList(
const QModelIndex& index);
106 void moveToAnotherPlanet(
const QString& text);
110 void setPositionFromCoords(
int i=0);
113 void addCurrentLocationToList();
116 void deleteCurrentLocationFromList();
119 void filterSitesByCountry();
122 void resetCompleteList();
129 void ipQueryLocation(
bool state);
132 void gpsQueryLocation();
138 void gpsReturn(
bool success);
140 void resetGPSbuttonLabel();
144 void setDefaultLocation(
bool state);
147 void updateTimeZoneControls(
bool useCustomTimeZone);
151 QString customTimeZone;
152 QStringListModel* allModel;
153 QStringListModel* pickedModel;
154 QSortFilterProxyModel *proxyModel;
157 void updateDefaultLocationControls(
bool currentIsDefault);
161 #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.
virtual void handleDialogSizeChanged(QSizeF size)
In addition to StelDialog's inherited solution, puts the arrow on the right spot in the map...