Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/RendererStatistics_8hpp_source.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 07:57:03 2014
Кодировка:
Stellarium: /home/aw/devel/stellarium/trunk/plugins/RendererStatistics/src/RendererStatistics.hpp Source File
Stellarium 0.12.3
RendererStatistics.hpp
1 /*
2  * Copyright (C) 2012 Ferdinand Majerech
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
17  */
18 
19 #ifndef _RENDERERSTATISTICS_HPP_
20 #define _RENDERERSTATISTICS_HPP_
21 
22 #include "StelModule.hpp"
23 
24 #include <QFont>
25 #include <QMap>
26 #include <QTime>
27 
28 #include "renderer/StelRenderer.hpp"
29 
32 {
33  Q_OBJECT
34 public:
36  virtual ~RendererStatistics();
37 
39  // Methods defined in the StelModule class
40  virtual void init();
41  virtual void update(double deltaTime);
42  virtual void draw(class StelCore* core, class StelRenderer* renderer);
43  virtual double getCallOrder(StelModuleActionName actionName) const;
44 
45 public slots:
46  void setEnabled(bool b);
47 
48 private:
50  QFont font;
52  int fontSize;
54  bool enabled;
55  class QPixmap* glowIcon;
56  class QPixmap* onIcon;
57  class QPixmap* offIcon;
58  class StelButton* toolbarButton;
59 
61  StelRendererStatistics statistics;
62 
64  QTime lastUpdateTime;
65 };
66 
67 #include "fixx11h.h"
68 #include <QObject>
69 #include "StelPluginInterface.hpp"
70 
73 {
74  Q_OBJECT
75  Q_INTERFACES(StelPluginInterface)
76 public:
77  virtual StelModule* getStelModule() const;
78  virtual StelPluginInfo getPluginInfo() const;
79 
80 };
81 
82 #endif /*_RENDERERSTATISTICS_HPP_*/