34 class QOpenGLFramebufferObject;
36 class QNetworkAccessManager;
66 friend class StelAppGraphicsWidget;
67 friend class StelSkyItem;
80 void init(QSettings* conf);
147 void update(
double deltaTime);
160 void setDevicePixelsPerPixel(
float dppp);
166 void setGlobalScalingRatio(
float r) {globalScalingRatio=r;}
170 void setBaseFontSize(
int s) { baseFontSize=s; }
178 #ifndef DISABLE_SCRIPTING
185 static void initStatic();
186 static void deinitStatic();
228 void visionNightModeChanged(
bool);
229 void colorSchemeChanged(
const QString&);
230 void languageChanged();
231 void skyCultureChanged(
const QString&);
243 void handleClick(
class QMouseEvent* event);
245 void handleWheel(
class QWheelEvent* event);
247 void handleMove(
float x,
float y, Qt::MouseButtons b);
249 void handleKeys(
class QKeyEvent* event);
251 void handlePinch(qreal scale,
bool started);
253 void initScriptMgr(QSettings* conf);
255 void prepareRenderBuffer();
256 void applyRenderBuffer();
286 QNetworkAccessManager* networkAccessManager;
289 void setupHttpProxy();
299 #ifndef DISABLE_SCRIPTING
313 float devicePixelsPerPixel;
316 float globalScalingRatio;
319 QTimer * wheelEventTimer;
322 int wheelEventDelta[2];
326 double timefr, timeBase;
329 bool flagNightVision;
331 QSettings* confSettings;
336 static qint64 startMSecs;
344 int nbDownloadedFiles;
346 qint64 totalDownloadedSize;
351 qint64 totalUsedCacheSize;
353 QList<StelProgressController*> progressControllers;
358 QOpenGLFramebufferObject* renderBuffer;
362 bool flagShowDecimalDegrees;
365 #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.
int getBaseFontSize() const
Get the size of font.
float getFps() const
Get the current number of frame per second.
void progressBarRemoved(const StelProgressController *)
Called just before a progress bar is removed.
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.