StelDialog.hpp   StelDialog.hpp 
skipping to change at line 77 skipping to change at line 77
//! - \ref connectIntProperty to connect a StelProperty to a QSpinBox or QC omboBox //! - \ref connectIntProperty to connect a StelProperty to a QSpinBox or QC omboBox
//! - \ref connectDoubleProperty to connect a StelProperty to a QDoubleSpin Box or QSlider //! - \ref connectDoubleProperty to connect a StelProperty to a QDoubleSpin Box or QSlider
//! - \ref connectBoolProperty to connect a StelProperty to a QAbstractButt on (includes QCheckBox) //! - \ref connectBoolProperty to connect a StelProperty to a QAbstractButt on (includes QCheckBox)
//! Take care that a valid property name is used and it represents a proper ty that can be converted to //! Take care that a valid property name is used and it represents a proper ty that can be converted to
//! the required data type, or the program will crash at runtime when the f unction is called //! the required data type, or the program will crash at runtime when the f unction is called
class StelDialog : public QObject class StelDialog : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool visible READ visible WRITE setVisible NOTIFY visible Changed) Q_PROPERTY(bool visible READ visible WRITE setVisible NOTIFY visible Changed)
public: public:
StelDialog(QObject* parent=NULL); StelDialog(QString dialogName="Default", QObject* parent=NULL);
virtual ~StelDialog(); virtual ~StelDialog();
//! Returns true if the dialog contents have been constructed and ar e currently shown //! Returns true if the dialog contents have been constructed and ar e currently shown
bool visible() const; bool visible() const;
public slots: public slots:
//! Retranslate the content of the dialog. //! Retranslate the content of the dialog.
//! Needs to be connected to StelApp::languageChanged(). //! Needs to be connected to StelApp::languageChanged().
//! At the very least, if the window is //! At the very least, if the window is
//! <a href="http://doc.qt.nokia.com/stable/designer-using-a-ui-file .html"> //! <a href="http://doc.qt.nokia.com/stable/designer-using-a-ui-file .html">
skipping to change at line 127 skipping to change at line 127
//! @note This method also works with flag/enum types //! @note This method also works with flag/enum types
//! @warning If the action with \c propName is invalid/unregistered, or cannot be converted //! @warning If the action with \c propName is invalid/unregistered, or cannot be converted
//! to the required datatype, the application will crash //! to the required datatype, the application will crash
static void connectIntProperty(QSpinBox* spinBox, const QString& pro pName); static void connectIntProperty(QSpinBox* spinBox, const QString& pro pName);
//! Helper function to connect a QComboBox to an integer StelPropert y. //! Helper function to connect a QComboBox to an integer StelPropert y.
//! The property is mapped to the selected index of the combobox. //! The property is mapped to the selected index of the combobox.
//! @note This method also works with flag/enum types //! @note This method also works with flag/enum types
//! @warning If the action with \c propName is invalid/unregistered, or cannot be converted //! @warning If the action with \c propName is invalid/unregistered, or cannot be converted
//! to the required datatype, the application will crash //! to the required datatype, the application will crash
static void connectIntProperty(QComboBox* comboBox, const QString& p ropName); static void connectIntProperty(QComboBox* comboBox, const QString& p ropName);
//! Helper function to connect a QSlider to an double or float StelP
roperty
//! @param slider The slider which should be connected
//! @param propName The id of the StelProperty which should be conne
cted
//! @param minValue the int value associated with the minimal slider
position
//! @param maxValue the int value associated with the maximal slider
position
//! @warning If the action with \c propName is invalid/unregistered,
or cannot be converted
//! to the required datatype, the application will crash
static void connectIntProperty(QSlider* slider, const QString& propN
ame, int minValue, int maxValue);
//! Helper function to connect a QDoubleSpinBox to an double or floa t StelProperty //! Helper function to connect a QDoubleSpinBox to an double or floa t StelProperty
//! @warning If the action with \c propName is invalid/unregistered, or cannot be converted //! @warning If the action with \c propName is invalid/unregistered, or cannot be converted
//! to the required datatype, the application will crash //! to the required datatype, the application will crash
static void connectDoubleProperty(QDoubleSpinBox* spinBox, const QSt ring& propName); static void connectDoubleProperty(QDoubleSpinBox* spinBox, const QSt ring& propName);
//! Helper function to connect a QSlider to an double or float StelP roperty //! Helper function to connect a QSlider to an double or float StelP roperty
//! @param slider The slider which should be connected //! @param slider The slider which should be connected
//! @param propName The id of the StelProperty which should be conne cted //! @param propName The id of the StelProperty which should be conne cted
//! @param minValue the double value associated with the minimal sli der position //! @param minValue the double value associated with the minimal sli der position
//! @param maxValue the double value associated with the maximal sli der position //! @param maxValue the double value associated with the maximal sli der position
//! @warning If the action with \c propName is invalid/unregistered, or cannot be converted //! @warning If the action with \c propName is invalid/unregistered, or cannot be converted
 End of changes. 2 change blocks. 
1 lines changed or deleted 15 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/