20 #ifndef _TIME_ZONE_CONFIGURATION_WINDOW_HPP_
21 #define _TIME_ZONE_CONFIGURATION_WINDOW_HPP_
23 #include "StelDialog.hpp"
26 #include <QDoubleSpinBox>
28 class Ui_timeZoneConfigurationWindowForm;
49 static void readTzTimeString(
const QString&
string,
int& hour,
int& minutes,
int& seconds);
61 void createDialogContent();
64 Ui_timeZoneConfigurationWindowForm * ui;
68 void updateAboutText();
71 void saveTimeZoneSettings();
72 void openDefineTimeZoneWindow();
73 void closeDefineTimeZoneWindow(
bool);
74 void timeZoneDefined(QString timeZoneDefinition);
76 void setTimeFormat(
bool);
77 void setDateFormat(
bool);
78 void updateDisplayFormatSwitches();
82 #endif //_TIME_ZONE_CONFIGURATION_WINDOW_HPP_
A local copy of StelDialog, the base class for all the GUI windows in Stellarium, included to allow t...
Main window of the Time Zone configuration plug-in.
static void readTzTimeString(const QString &string, int &hour, int &minutes, int &seconds)
Parses a time string in the format hh[:mm[:ss]] to separate values.
static QString getTzOffsetStringFrom(QDoubleSpinBox *spinBox)
Converts a decimal fraction of hours to a string containing a signed offset in the format used in the...
static double readTzOffsetString(const QString &string)
Parses an offset string in the format [+|-]hh[:mm[:ss]].