~ubuntu-branches/debian/jessie/stellarium/jessie

« back to all changes in this revision

Viewing changes to src/core/StelApp.hpp

  • Committer: Package Import Robot
  • Author(s): Tomasz Buchert
  • Date: 2014-10-19 16:47:53 UTC
  • mfrom: (1.2.16)
  • Revision ID: package-import@ubuntu.com-20141019164753-d3uwu66f4syh2ev5
Tags: 0.13.1-1
* Imported Upstream version 0.13.1
* Ensure proper Cmake version
* d/watch: veryfing tarball signatures
* d/patches: drop patches
* Bumped standards version to 3.9.6
* Override "package-contains-timestamped-gzip"

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
class StelLocaleMgr;
32
32
class StelModuleMgr;
33
33
class StelSkyCultureMgr;
 
34
class StelViewportEffect;
 
35
class QOpenGLFramebufferObject;
34
36
class QSettings;
35
37
class QNetworkAccessManager;
36
38
class QNetworkReply;
163
165
        //! computer screen with 96 pixel per inch (reference for tuning sizes).
164
166
        float getGlobalScalingRatio() const {return globalScalingRatio;}
165
167
        void setGlobalScalingRatio(float r) {globalScalingRatio=r;}
 
168
 
 
169
        //! Get the size of font
 
170
        int getBaseFontSize() const { return baseFontSize; }
 
171
        void setBaseFontSize(int s) { baseFontSize=s; }
166
172
        
167
173
        //! Get the GUI instance implementing the abstract GUI interface.
168
174
        StelGuiBase* getGui() const {return stelGui;}
185
191
        //! The StelApp instance remains the owner of the controller.
186
192
        StelProgressController* addProgressBar();
187
193
        void removeProgressBar(StelProgressController* p);
 
194
 
 
195
        //! Define the type of viewport effect to use
 
196
        //! @param effectName must be one of 'none', 'framebufferOnly', 'sphericMirrorDistorter'
 
197
        void setViewportEffect(const QString& effectName);
 
198
        //! Get the type of viewport effect currently used
 
199
        QString getViewportEffect() const;
188
200
        
189
201
        ///////////////////////////////////////////////////////////////////////////
190
202
        // Scriptable methods
228
240
        //! Handle mouse wheel.
229
241
        void handleWheel(class QWheelEvent* event);
230
242
        //! Handle mouse move.
231
 
        void handleMove(int x, int y, Qt::MouseButtons b);
 
243
        void handleMove(float x, float y, Qt::MouseButtons b);
232
244
        //! Handle key press and release.
233
245
        void handleKeys(class QKeyEvent* event);
234
246
        //! Handle pinch on multi touch devices.
236
248
 
237
249
        void initScriptMgr(QSettings* conf);
238
250
 
 
251
        void prepareRenderBuffer();
 
252
        void applyRenderBuffer();
 
253
 
239
254
        // The StelApp singleton
240
255
        static StelApp* singleton;
241
256
 
332
347
        qint64 totalUsedCacheSize;
333
348
 
334
349
        QList<StelProgressController*> progressControllers;
 
350
 
 
351
        int baseFontSize;
 
352
 
 
353
        // Framebuffer object used for viewport effects.
 
354
        QOpenGLFramebufferObject* renderBuffer;
 
355
 
 
356
        StelViewportEffect* viewportEffect;
335
357
};
336
358
 
337
359
#endif // _STELAPP_HPP_