StelDialog.hpp   StelDialog.hpp 
skipping to change at line 23 skipping to change at line 23
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _STELDIALOG_HPP_ #ifndef _STELDIALOG_HPP_
#define _STELDIALOG_HPP_ #define _STELDIALOG_HPP_
#include "config.h"
#include <QObject> #include <QObject>
//! @class StelDialog //! @class StelDialog
//! Base class for all the GUI windows in Stellarium. //! Base class for all the GUI windows in Stellarium.
//! //!
//! Windows in Stellarium are actually basic QWidgets that have to be wrapp ed in //! Windows in Stellarium are actually basic QWidgets that have to be wrapp ed in
//! a QGraphicsProxyWidget (CustomProxy) to be displayed by StelMainGraphic sView //! a QGraphicsProxyWidget (CustomProxy) to be displayed by StelMainView
//! (which is derived from QGraphicsView). See the Qt documentation for det ails. //! (which is derived from QGraphicsView). See the Qt documentation for det ails.
//! //!
//! The base widget needs to be populated with controls in the implementati on //! The base widget needs to be populated with controls in the implementati on
//! of the createDialogContent() function. This can be done either manually , or //! of the createDialogContent() function. This can be done either manually , or
//! by using a .ui file. See the Qt documentation on using Qt Designer .ui files //! by using a .ui file. See the Qt documentation on using Qt Designer .ui files
//! for details. //! for details.
//! //!
//! The createDialogContent() function itself is called automatically the f irst //! The createDialogContent() function itself is called automatically the f irst
//! time setVisible() is called with "true". //! time setVisible() is called with "true".
//! //!
//! Moving a window is done by dragging its title bar, defined in the BarFr ame //! Moving a window is done by dragging its title bar, defined in the BarFr ame
//! class. Every derived window class needs a BarFrame object - it //! class. Every derived window class needs a BarFrame object - it
//! has to be either included in a .ui file, or manually instantiated in //! has to be either included in a .ui file, or manually instantiated in
//! createDialogContent(). //! createDialogContent().
class StelDialog : public QObject class StelDialog : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool visible READ visible WRITE setVisible NOTIFY visible Changed)
public: public:
StelDialog(QObject* parent=NULL); StelDialog(QObject* parent=NULL);
virtual ~StelDialog(); virtual ~StelDialog();
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
 End of changes. 3 change blocks. 
1 lines changed or deleted 3 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/