Stellarium 0.15.2
ToastMgr.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2006 Fabien Chereau
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef _TOASTMGR_HPP_
21 #define _TOASTMGR_HPP_
22 
23 #include "StelModule.hpp"
24 
25 class ToastMgr : public StelModule
26 {
27  Q_OBJECT
28  Q_PROPERTY(bool surveyDisplayed
29  READ getFlagSurveyShow
30  WRITE setFlagSurveyShow
31  NOTIFY surveyDisplayedChanged)
32 public:
33  ToastMgr();
34  virtual ~ToastMgr();
35  virtual void init() Q_DECL_OVERRIDE;
36  virtual void deinit() Q_DECL_OVERRIDE;
37  virtual void update(double deltaTime) Q_DECL_OVERRIDE;
38  virtual void draw(StelCore* core) Q_DECL_OVERRIDE;
40  virtual double getCallOrder(StelModuleActionName actionName) const Q_DECL_OVERRIDE;
41 
42 public slots:
43  void setFlagSurveyShow(bool displayed);
44  bool getFlagSurveyShow(void) const;
45 
46 signals:
47  void surveyDisplayedChanged(const bool displayed) const;
48 
49 private:
50  class ToastSurvey* survey;
51  class LinearFader* fader;
52 };
53 
54 #endif // _TOASTMGR_HPP_
Implementation of StelFader which implements a linear transition.
Definition: StelFader.hpp:77
Main class for Stellarium core processing.
Definition: StelCore.hpp:48
virtual double getCallOrder(StelModuleActionName actionName) const Q_DECL_OVERRIDE
Used to determine the order in which the various modules are drawn. MilkyWay=1, we use 7 for actionDr...
virtual void init() Q_DECL_OVERRIDE
Initialize itself.
virtual void update(double deltaTime) Q_DECL_OVERRIDE
Update the module with respect to the time.
Represents a full Toast survey.
Definition: StelToast.hpp:129
StelModuleActionName
Define the possible action for which an order is defined.
Definition: StelModule.hpp:121
virtual void draw(StelCore *core) Q_DECL_OVERRIDE
Execute all the drawing functions for this module.
This is the common base class for all the main components of stellarium.
Definition: StelModule.hpp:49
virtual void deinit() Q_DECL_OVERRIDE
Called before the module will be delete, and before the openGL context is suppressed.