Stellarium  HEAD
Public Slots | Protected Slots | Protected Member Functions | Protected Attributes
SkylightDialog Class Reference

Public Slots

void retranslate () override
 
- Public Slots inherited from StelDialog
virtual void styleChanged (const QString &style)
 Apply application style change.
 
virtual void retranslate ()=0
 Retranslate the content of the dialog. More...
 
virtual void setVisible (bool)
 On the first call with "true" populates the window contents.
 
virtual void close ()
 Closes the window (the window widget is not deleted, just not visible).
 
void handleMovedTo (QPoint newPos)
 Adds dialog location to config.ini; should be connected in createDialogContent()
 
virtual void handleDialogSizeChanged (QSizeF size)
 Stores dialog sizes into config.ini; should be connected from the proxy. More...
 

Protected Slots

void resetYPreet ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetxPreet ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetyPreet ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetYStel ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetxStel ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetyStel ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetZxPreet ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetZyPreet ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetZxStel ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetZyStel ()
 Reset function for the parametrizable Preetham atmosphere model. More...
 
void resetPreet ()
 
void resetStel ()
 reset all xyYABCDEF parameters to the values found in Preetham's 1999 paper.
 
void setIncrements (int idx)
 reset all xyYABCDEF parameters to Stellarium's default values. More...
 
- Protected Slots inherited from StelDialog
bool askConfirmation (const QString &message=q_("Are you sure? This will delete your customized data."))
 
void messageBox (const QString &title, const QString &message)
 
void enableKineticScrolling (bool b)
 enable kinetic scrolling. This should be connected to StelApp's StelGui signal flagUseKineticScrollingChanged.
 
void handleFontChanged ()
 connect from StelApp to handle font and font size changes.
 
void handleColorSchemeChanged ()
 connect from StelApp to handle CSS style changes
 
virtual void updateNightModeProperty (bool n)
 

Protected Member Functions

void createDialogContent () override
 Initialize the dialog widgets and connect the signals/slots.
 

Protected Attributes

Ui_skylightDialogForm * ui
 
- Protected Attributes inherited from StelDialog
QWidget * dialog
 The main dialog.
 
class CustomProxyproxy
 
QString dialogName
 The name should be set in derived classes' constructors and can be used to store and retrieve the panel locations.
 
QList< QWidget * > kineticScrollingList
 A list of widgets where kinetic scrolling can be activated or deactivated The list must be filled once, in the constructor or init() of fillDialog() etc. More...
 

Additional Inherited Members

- Signals inherited from StelDialog
void visibleChanged (bool)
 
- Public Member Functions inherited from StelDialog
 StelDialog (const QString &dialogName=QString("Default"), QObject *parent=nullptr)
 
bool visible () const
 Returns true if the dialog contents have been constructed and are currently shown.
 
QString getDialogName () const
 
- Static Protected Member Functions inherited from StelDialog
static void connectCheckBox (QAbstractButton *checkBox, const QString &actionName)
 Helper function to connect a checkbox to the StelAction with the specified name.
 
static void connectCheckBox (QAbstractButton *checkBox, StelAction *action)
 Helper function to connect a checkbox to the given StelAction.
 
static void connectIntProperty (QLineEdit *lineEdit, const QString &propName)
 Helper function to connect a QLineEdit to an integer StelProperty. More...
 
static void connectIntProperty (QSpinBox *spinBox, const QString &propName)
 Helper function to connect a QSpinBox to an integer StelProperty. More...
 
static void connectIntProperty (QComboBox *comboBox, const QString &propName)
 Helper function to connect a QComboBox to an integer StelProperty. More...
 
static void connectIntProperty (QSlider *slider, const QString &propName, int minValue, int maxValue)
 Helper function to connect a QSlider to an double or float StelProperty. More...
 
static void connectDoubleProperty (QDoubleSpinBox *spinBox, const QString &propName)
 Helper function to connect a QDoubleSpinBox to an double or float StelProperty. More...
 
static void connectDoubleProperty (AngleSpinBox *spinBox, const QString &propName)
 Helper function to connect an AngleSpinBox to a double or float StelProperty representing decimal degrees. More...
 
static void connectDoubleProperty (QSlider *slider, const QString &propName, double minValue, double maxValue)
 Helper function to connect a QSlider to an double or float StelProperty. More...
 
static void connectStringProperty (QComboBox *comboBox, const QString &propName)
 Helper function to connect a QComboBox to a QString StelProperty. More...
 
static void connectStringProperty (QLineEdit *lineEdit, const QString &propName)
 Helper function to connect a QLineEdit to a QString StelProperty. More...
 
static void connectBoolProperty (QAbstractButton *checkBox, const QString &propName)
 Helper function to connect a checkbox to a bool StelProperty. More...
 
static void connectBoolProperty (QGroupBox *checkBox, const QString &propName)
 Helper function to connect a groupbox to a bool StelProperty. More...
 
- Properties inherited from StelDialog
bool visible
 

Member Function Documentation

◆ resetxPreet

void SkylightDialog::resetxPreet ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE x distribution to the values found in Preetham's 1999 paper.

◆ resetxStel

void SkylightDialog::resetxStel ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE x distribution to Stellarium's default values.

◆ resetYPreet

void SkylightDialog::resetYPreet ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE Y distribution to the values found in Preetham's 1999 paper.

◆ resetyPreet

void SkylightDialog::resetyPreet ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE y distribution to the values found in Preetham's 1999 paper.

◆ resetYStel

void SkylightDialog::resetYStel ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE Y distribution to Stellarium's default values.

◆ resetyStel

void SkylightDialog::resetyStel ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE y distribution to Stellarium's default values.

◆ resetZxPreet

void SkylightDialog::resetZxPreet ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE x zenith color to the values found in Preetham's 1999 paper.

◆ resetZxStel

void SkylightDialog::resetZxStel ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE x zenith color to Stellarium's default values.

◆ resetZyPreet

void SkylightDialog::resetZyPreet ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE y zenith color to the values found in Preetham's 1999 paper.

◆ resetZyStel

void SkylightDialog::resetZyStel ( )
protectedslot

Reset function for the parametrizable Preetham atmosphere model.

This resets the parameters for the CIE y zenith color to Stellarium's default values.

◆ setIncrements

void SkylightDialog::setIncrements ( int  idx)
protectedslot

reset all xyYABCDEF parameters to Stellarium's default values.

changes increments for all fine-tuning spinners