Line 25... |
Line 25... |
25 |
#endif
|
25 |
#endif
|
26 |
#include "tpagemanager.h"
|
26 |
#include "tpagemanager.h"
|
27 |
#include "tobject.h"
|
27 |
#include "tobject.h"
|
28 |
#include "tqemitqueue.h"
|
28 |
#include "tqemitqueue.h"
|
29 |
#include "tpagelist.h"
|
29 |
#include "tpagelist.h"
|
- |
|
30 |
#include "tqgesturefilter.h"
|
30 |
|
31 |
|
31 |
extern bool prg_stopped;
|
32 |
extern bool prg_stopped;
|
32 |
extern std::atomic<bool> killed;
|
33 |
extern std::atomic<bool> killed;
|
33 |
|
34 |
|
34 |
QT_BEGIN_NAMESPACE
|
35 |
QT_BEGIN_NAMESPACE
|
Line 161... |
Line 162... |
161 |
void mousePressEvent(QMouseEvent* event) override;
|
162 |
void mousePressEvent(QMouseEvent* event) override;
|
162 |
void mouseReleaseEvent(QMouseEvent* event) override;
|
163 |
void mouseReleaseEvent(QMouseEvent* event) override;
|
163 |
void mouseMoveEvent(QMouseEvent* event) override;
|
164 |
void mouseMoveEvent(QMouseEvent* event) override;
|
164 |
void keyPressEvent(QKeyEvent *event) override;
|
165 |
void keyPressEvent(QKeyEvent *event) override;
|
165 |
void keyReleaseEvent(QKeyEvent *event) override;
|
166 |
void keyReleaseEvent(QKeyEvent *event) override;
|
166 |
bool eventFilter(QObject *, QEvent *ev) override;
|
- |
|
167 |
|
167 |
|
168 |
private slots:
|
168 |
private slots:
|
169 |
void settings();
|
169 |
void settings();
|
170 |
void about();
|
170 |
void about();
|
171 |
#ifndef QT_NO_SESSIONMANAGER
|
171 |
#ifndef QT_NO_SESSIONMANAGER
|
Line 259... |
Line 259... |
259 |
void runEvents();
|
259 |
void runEvents();
|
260 |
void onSubViewItemClicked(ulong handle, bool pressed);
|
260 |
void onSubViewItemClicked(ulong handle, bool pressed);
|
261 |
void onInputChanged(ulong handle, std::string& text);
|
261 |
void onInputChanged(ulong handle, std::string& text);
|
262 |
void onFocusChanged(ulong handle, bool in);
|
262 |
void onFocusChanged(ulong handle, bool in);
|
263 |
void onCursorChanged(ulong handle, int oldPos, int newPos);
|
263 |
void onCursorChanged(ulong handle, int oldPos, int newPos);
|
- |
|
264 |
void onGestureEvent(QObject *obj, QGestureEvent *event);
|
264 |
QPixmap scaleImage(QPixmap& pix);
|
265 |
QPixmap scaleImage(QPixmap& pix);
|
265 |
QPixmap scaleImage(unsigned char *buffer, int width, int height, int pixline);
|
266 |
QPixmap scaleImage(unsigned char *buffer, int width, int height, int pixline);
|
266 |
|
267 |
|
267 |
void _displayButton(ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough);
|
268 |
void _displayButton(ulong handle, ulong parent, TBitmap buffer, int width, int height, int left, int top, bool passthrough);
|
268 |
void _displayViewButton(ulong handle, ulong parent, bool vertical, TBitmap buffer, int width, int height, int left, int top, int space, TColor::COLOR_T fillColor);
|
269 |
void _displayViewButton(ulong handle, ulong parent, bool vertical, TBitmap buffer, int width, int height, int left, int top, int space, TColor::COLOR_T fillColor);
|
Line 368... |
Line 369... |
368 |
int mLastPressY{-1}; // Remember the last mouse press Y coordinate
|
369 |
int mLastPressY{-1}; // Remember the last mouse press Y coordinate
|
369 |
Qt::ScreenOrientation mOrientation{Qt::PrimaryOrientation};
|
370 |
Qt::ScreenOrientation mOrientation{Qt::PrimaryOrientation};
|
370 |
QOrientationSensor *mSensor{nullptr}; // Basic sensor for orientation
|
371 |
QOrientationSensor *mSensor{nullptr}; // Basic sensor for orientation
|
371 |
QMediaPlayer *mMediaPlayer{nullptr};// Class to play sound files.
|
372 |
QMediaPlayer *mMediaPlayer{nullptr};// Class to play sound files.
|
372 |
TQtWait *mWaitBox{nullptr}; // This is a wait dialog.
|
373 |
TQtWait *mWaitBox{nullptr}; // This is a wait dialog.
|
- |
|
374 |
TQGestureFilter *mGestureFilter{nullptr}; // This handles the pinch and swipe gestures
|
373 |
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
375 |
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
374 |
QGeoPositionInfoSource *mSource{nullptr}; // The geo location is used on IOS to keep app running in background
|
376 |
QGeoPositionInfoSource *mSource{nullptr}; // The geo location is used on IOS to keep app running in background
|
375 |
QAudioOutput *mAudioOutput{nullptr};
|
377 |
QAudioOutput *mAudioOutput{nullptr};
|
376 |
#endif
|
378 |
#endif
|
377 |
#ifdef Q_OS_IOS
|
379 |
#ifdef Q_OS_IOS
|