20 #ifndef _STELMAINGRAPHICSVIEW_HPP_
21 #define _STELMAINGRAPHICSVIEW_HPP_
23 #include <QGraphicsView>
24 #include <QCoreApplication>
45 void init(
class QSettings* conf);
61 #ifndef DISABLE_SCRIPTING
78 void saveScreenShot(
const QString& filePrefix=
"stellarium-",
const QString& saveDir=
"");
98 void setMinFps(
float m) {minfps=m; minFpsChanged();}
113 virtual void resizeEvent(QResizeEvent* event);
114 virtual void mouseMoveEvent(QMouseEvent* event);
115 virtual void mousePressEvent(QMouseEvent* event);
116 virtual void mouseReleaseEvent(QMouseEvent* event);
117 virtual void keyPressEvent(QKeyEvent* event);
118 virtual void keyReleaseEvent(QKeyEvent* event);
119 virtual void wheelEvent(QWheelEvent* wheelEvent);
123 virtual void drawBackground(QPainter* painter,
const QRectF &rect);
133 void doScreenshot(
void);
135 void minFpsChanged();
139 void startMainLoop();
143 QGraphicsWidget* backItem;
151 #ifndef DISABLE_SCRIPTING
161 bool flagInvertScreenShotColors;
163 QString screenShotPrefix;
164 QString screenShotDir;
168 bool flagCursorTimeout;
172 void thereWasAnEvent();
174 double lastEventTimeSec;
184 #endif // _STELMAINGRAPHICSVIEW_HPP_