20 #ifndef _DEFINE_TIME_ZONE_HPP_
21 #define _DEFINE_TIME_ZONE_HPP_
23 #include "StelDialog.hpp"
25 class Ui_defineTimeZoneForm;
26 class QRegExpValidator;
45 void timeZoneDefined(QString timeZoneString);
48 void createDialogContent();
51 Ui_defineTimeZoneForm * ui;
53 QRegExpValidator * timeZoneNameValidator;
55 void resetWindowState();
56 void populateDateLists();
58 void updateDayNumberMaximum(
int monthIndex, QSpinBox * spinBoxDay);
60 enum DstEndpoint {DstStart, DstEnd};
62 bool readDstEndpoint(
const QString&
string, DstEndpoint endpoint);
63 void setEndPointDate(
int ordinalDate,
bool leapYear, DstEndpoint endpoint);
67 void updateDstOffset(
double normalOffset);
68 void updateDayNumberMaximumDstStart(
int monthIndex);
69 void updateDayNumberMaximumDstEnd(
int monthIndex);
73 #endif //_DEFINE_TIME_ZONE_HPP_
void setTimeZone(QString timeZoneString)
Fills the fields of the form with the time zone described in the string.
A local copy of StelDialog, the base class for all the GUI windows in Stellarium, included to allow t...