34 class QOpenGLFramebufferObject;
36 class QNetworkAccessManager;
66 friend class StelAppGraphicsWidget;
67 friend class StelSkyItem;
80 void init(QSettings* conf);
150 void update(
double deltaTime);
163 void setDevicePixelsPerPixel(
float dppp);
169 void setGlobalScalingRatio(
float r) {globalScalingRatio=r;}
173 void setBaseFontSize(
int s) { baseFontSize=s; }
181 #ifndef DISABLE_SCRIPTING
188 static void initStatic();
189 static void deinitStatic();
236 void visionNightModeChanged(
bool);
237 void colorSchemeChanged(
const QString&);
238 void languageChanged();
239 void skyCultureChanged(
const QString&);
251 void handleClick(
class QMouseEvent* event);
253 void handleWheel(
class QWheelEvent* event);
255 void handleMove(
float x,
float y, Qt::MouseButtons b);
257 void handleKeys(
class QKeyEvent* event);
259 void handlePinch(qreal scale,
bool started);
261 void prepareRenderBuffer();
262 void applyRenderBuffer();
292 QNetworkAccessManager* networkAccessManager;
295 void setupNetworkProxy();
305 #ifndef DISABLE_SCRIPTING
319 float devicePixelsPerPixel;
322 float globalScalingRatio;
325 QTimer * wheelEventTimer;
328 int wheelEventDelta[2];
332 double timefr, timeBase;
335 bool flagNightVision;
337 QSettings* confSettings;
342 static qint64 startMSecs;
350 int nbDownloadedFiles;
352 qint64 totalDownloadedSize;
357 qint64 totalUsedCacheSize;
359 QList<StelProgressController*> progressControllers;
364 QOpenGLFramebufferObject* renderBuffer;
368 bool flagShowDecimalDegrees;
370 bool flagUseAzimuthFromSouth;
374 #endif // _STELAPP_HPP_
Manage the sky background images, including DSS and deep sky objects images.
StelScriptMgr & getScriptMgr()
Get the script manager.
StelLocationMgr & getLocationMgr()
Get the Location manager to use for managing stored locations.
StelVideoMgr * getStelVideoMgr()
Get the video manager.
bool getFlagShowDecimalDegrees() const
Get flag for showing decimal degree in various places.
void reportFileDownloadFinished(QNetworkReply *reply)
Report that a download occured.
bool getFlagOldAzimuthUsage() const
Set flag for using calculation of azimuth from south towards west (as in old astronomical literature)...
int getBaseFontSize() const
Get the size of font.
void setFlagOldAzimuthUsage(bool use)
Get flag for using calculation of azimuth from south towards west (as in old astronomical literature)...
float getFps() const
Get the current number of frame per second.
void progressBarRemoved(const StelProgressController *)
Called just before a progress bar is removed.
void initScriptMgr()
Registers all loaded StelModules with the ScriptMgr, and queues starting of the startup script...
void updateSkyCulture()
Update and reload sky culture informations everywhere in the program.
StelObjectMgr & getStelObjectMgr()
Get the StelObject manager to use for querying from all stellarium objects.
Manage i18n operations such as message translation and date/time localization.
Main class for Stellarium core processing.
Because the core API runs in a different thread to the main program, direct function calls to some cl...
StelModuleMgr & getModuleMgr()
Get the module manager to use for accessing any module loaded in the application. ...
StelTextureMgr & getTextureManager()
Get the texture manager to use for loading textures.
void deinit()
Deinitialize core and all the modules.
Manage the list of available location.
QNetworkAccessManager * getNetworkAccessManager()
Get the common instance of QNetworkAccessManager used in stellarium.
QString getCurrentStelStyle()
Return the currently used style.
void progressBarAdded(const StelProgressController *)
Called just after a progress bar is added.
Abstract class defining the base interface for all GUIs.
StelMainScriptAPIProxy * getMainScriptAPIProxy()
Get the script API proxy (for signal handling)
void setGui(StelGuiBase *b)
Tell the StelApp instance which GUI si currently being used.
void initPlugIns()
Load and initialize external modules (plugins)
StelActionMgr * getStelActionManager()
Get the actions manager to use for managing and editing actions.
void draw()
Draw all registered StelModule in the order defined by the order lists.
void update(double deltaTime)
Update all object according to the deltaTime in seconds.
Allow to apply visual effects on the whole Stellarium viewport.
Manage a collection of StelModules including both core and plugin modules.
QString getViewportEffect() const
Get the type of viewport effect currently used.
void updateI18n()
Update translations, font for GUI and sky everywhere in the program.
float getGlobalScalingRatio() const
Get the scaling ratio to apply on all display elements, like GUI, text etc.
StelApp(QObject *parent=NULL)
Create and initialize the main Stellarium application.
void quit()
do some cleanup and call QCoreApplication::exit(0)
StelAudioMgr * getStelAudioMgr()
Get the audio manager.
Manage the selection and queries on one or more StelObjects.
Manage scripting in Stellarium.
float getDevicePixelsPerPixel() const
Get the ratio between real device pixel and "Device Independent Pixel".
Maintain the state of a progress bar.
Manage sky cultures for stellarium.
void setVisionModeNight(bool)
Set flag for activating night vision mode.
void glWindowHasBeenResized(float x, float y, float w, float h)
Call this when the size of the GL window has changed.
static double getTotalRunTime()
Return the time since when stellarium is running in second.
void setViewportEffect(const QString &effectName)
Define the type of viewport effect to use.
static StelApp & getInstance()
Get the StelApp singleton instance.
virtual ~StelApp()
Deinitialize and destroy the main Stellarium application.
StelSkyCultureMgr & getSkyCultureMgr()
Get the sky cultures manager.
QSettings * getSettings()
Return the main configuration options.
StelGuiBase * getGui() const
Get the GUI instance implementing the abstract GUI interface.
void setFlagShowDecimalDegrees(bool b)
Set flag for showing decimal degree in various places.
Singleton main Stellarium application class.
StelProgressController * addProgressBar()
Add a progression indicator to the GUI (if applicable).
void aboutToQuit()
Called just before we exit Qt mainloop.
StelCore * getCore()
Get the core of the program.
StelLocaleMgr & getLocaleMgr()
Get the locale manager to use for i18n & date/time localization.
void init(QSettings *conf)
Initialize core and all the modules.
bool getVisionModeNight() const
Get flag for activating night vision mode.