2
* Copyright (C) 2009 Matthew Gates
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#ifndef COMPASSMARKS_HPP_
20
#define COMPASSMARKS_HPP_
22
#include "VecMath.hpp"
23
#include "StelModule.hpp"
24
#include "StelFader.hpp"
30
//! This is an example of a plug-in which can be dynamically loaded into stellarium
31
class CompassMarks : public StelModule
36
virtual ~CompassMarks();
38
///////////////////////////////////////////////////////////////////////////
39
// Methods defined in the StelModule class
41
virtual void update(double deltaTime);
42
virtual void draw(StelCore* core);
43
virtual double getCallOrder(StelModuleActionName actionName) const;
46
void setCompassMarks(bool b);
49
void cardinalPointsChanged(bool b);
52
// Font used for displaying our text
55
LinearFader markFader;
58
QPixmap* pxmapOffIcon;
59
StelButton* toolbarButton;
60
bool cardinalPointsState;
65
#include "StelPluginInterface.hpp"
67
//! This class is used by Qt to manage a plug-in interface
68
class CompassMarksStelPluginInterface : public QObject, public StelPluginInterface
71
Q_INTERFACES(StelPluginInterface)
73
virtual StelModule* getStelModule() const;
74
virtual StelPluginInfo getPluginInfo() const;
78
#endif /*COMPASSMARKS_HPP_*/