Stellarium 0.14.3
List of all members | Public Slots | Static Public Member Functions | Protected Member Functions
TimeZoneConfigurationWindow Class Reference

Main window of the Time Zone configuration plug-in. More...

#include <TimeZoneConfigurationWindow.hpp>

Public Slots

void retranslate ()
 

Static Public Member Functions

static double readTzOffsetString (const QString &string)
 Parses an offset string in the format [+|-]hh[:mm[:ss]]. More...
 
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. More...
 
static QString getTzOffsetStringFrom (QDoubleSpinBox *spinBox)
 Converts a decimal fraction of hours to a string containing a signed offset in the format used in the TZ variable. More...
 

Protected Member Functions

void createDialogContent ()
 

Detailed Description

Main window of the Time Zone configuration plug-in.

Definition at line 33 of file TimeZoneConfigurationWindow.hpp.

Member Function Documentation

static QString TimeZoneConfigurationWindow::getTzOffsetStringFrom ( QDoubleSpinBox *  spinBox)
static

Converts a decimal fraction of hours to a string containing a signed offset in the format used in the TZ variable.

The sign is inverted, as in the TZ format offset = (UTC - local time), not the traditional offset = (local time - UTC).

static double TimeZoneConfigurationWindow::readTzOffsetString ( const QString &  string)
static

Parses an offset string in the format [+|-]hh[:mm[:ss]].

Returns
a fraction of hours. The sign is inverted, as in the TZ format offset = (UTC - local time), and the traditional offset = (local time - UTC).
static void TimeZoneConfigurationWindow::readTzTimeString ( const QString &  string,
int &  hour,
int &  minutes,
int &  seconds 
)
static

Parses a time string in the format hh[:mm[:ss]] to separate values.

Used both by readTzOffsetString() and in DefineTimeZoneWindow.


The documentation for this class was generated from the following file: