TextUserInterface.hpp   TextUserInterface.hpp 
skipping to change at line 24 skipping to change at line 24
* 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 TEXTUSERINTERFACE_HPP_ #ifndef TEXTUSERINTERFACE_HPP_
#define _TEXTUSERINTERFACE_HPP_ 1 #define _TEXTUSERINTERFACE_HPP_ 1
#include "StelModule.hpp" #include "StelModule.hpp"
#include "DummyDialog.hpp" #include "DummyDialog.hpp"
#include <QObject> #include <QObject>
#include <QString> #include <QString>
#include <QFont> #include <QFont>
class TuiNode; class TuiNode;
//! This is an example of a plug-in which can be dynamically loaded into st ellarium //! This is an example of a plug-in which can be dynamically loaded into st ellarium
class TextUserInterface : public StelModule class TextUserInterface : public StelModule
{ {
Q_OBJECT Q_OBJECT
public: public:
TextUserInterface(); TextUserInterface();
virtual ~TextUserInterface(); virtual ~TextUserInterface();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
virtual void init(); virtual void init();
virtual void update(double) {;} virtual void update(double) {;}
virtual void draw(StelCore* core); virtual void draw(StelCore* core, class StelRenderer* renderer);
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
virtual void handleKeys(class QKeyEvent* event); virtual void handleKeys(class QKeyEvent* event);
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods specific to TextUserInterface // Methods specific to TextUserInterface
//! Loads the module's configuration from the config file. //! Loads the module's configuration from the config file.
void loadConfiguration(void); void loadConfiguration(void);
public slots:
//! Show/hide the TUI menu
void setTuiMenuActive(bool tActive) { tuiActive = tActive;}
//! Show/hide the TUI date time display
void setTuiDateTime(bool tDateTime) { tuiDateTime = tDateTime; }
//! Show/hide the selected object's short object information
void setTuiObjInfo(bool tObjInfo) { tuiObjInfo = tObjInfo; }
//! Set Gravity text for the TUI text
void setTuiGravityUi(bool tGravityUi) { tuiGravityUi = tGravityUi; }
private slots: private slots:
void setHomePlanet(QString planetName); void setHomePlanet(QString planetName);
void setAltitude(int altitude); void setAltitude(int altitude);
void setLatitude(double latitude); void setLatitude(double latitude);
void setLongitude(double longitude); void setLongitude(double longitude);
void setStartupDateMode(QString mode); void setStartupDateMode(QString mode);
void setDateFormat(QString format); void setDateFormat(QString format);
void setTimeFormat(QString format); void setTimeFormat(QString format);
void setSkyCulture(QString i18); void setSkyCulture(QString i18);
void setAppLanguage(QString lang); void setAppLanguage(QString lang);
void saveDefaultSettings(void); void saveDefaultSettings(void);
void shutDown(void);
void setBortleScale(int bortle);
private: private:
DummyDialog dummyDialog; DummyDialog dummyDialog;
QFont font; QFont font;
bool tuiActive; bool tuiActive;
bool tuiDateTime;
bool tuiObjInfo;
bool tuiGravityUi;
TuiNode* currentNode; TuiNode* currentNode;
double getLatitude(void); double getLatitude(void);
double getLongitude(void); double getLongitude(void);
}; };
#include "fixx11h.h" #include "fixx11h.h"
#include <QObject> #include <QObject>
#include "StelPluginInterface.hpp" #include "StelPluginInterface.hpp"
 End of changes. 5 change blocks. 
1 lines changed or deleted 17 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/