Line 40... |
Line 40... |
40 |
class QMoveEvent;
|
40 |
class QMoveEvent;
|
41 |
class QEvent;
|
41 |
class QEvent;
|
42 |
class TQtSettings;
|
42 |
class TQtSettings;
|
43 |
class TQKeyboard;
|
43 |
class TQKeyboard;
|
44 |
class TQKeypad;
|
44 |
class TQKeypad;
|
- |
|
45 |
class TQBusy;
|
45 |
QT_END_NAMESPACE
|
46 |
QT_END_NAMESPACE
|
46 |
|
47 |
|
47 |
Q_DECLARE_METATYPE(size_t)
|
48 |
Q_DECLARE_METATYPE(size_t)
|
48 |
|
49 |
|
49 |
int qtmain(int argc, char **argv, TPageManager *pmanager);
|
50 |
int qtmain(int argc, char **argv, TPageManager *pmanager);
|
Line 135... |
Line 136... |
135 |
void writeSettings();
|
136 |
void writeSettings();
|
136 |
void playShowList();
|
137 |
void playShowList();
|
137 |
int scale(int value);
|
138 |
int scale(int value);
|
138 |
bool isScaled() { return (mScaleFactor != 1.0); }
|
139 |
bool isScaled() { return (mScaleFactor != 1.0); }
|
139 |
void startAnimation(TObject::OBJECT_t *obj, ANIMATION_t& ani, bool in = true);
|
140 |
void startAnimation(TObject::OBJECT_t *obj, ANIMATION_t& ani, bool in = true);
|
- |
|
141 |
void busyIndicator(const std::string& msg, QWidget *parent);
|
- |
|
142 |
void runEvents();
|
140 |
|
143 |
|
141 |
void _displayButton(ulong handle, ulong parent, unsigned char* buffer, int width, int height, int pixline, int left, int top);
|
144 |
void _displayButton(ulong handle, ulong parent, unsigned char* buffer, int width, int height, int pixline, int left, int top);
|
142 |
void _setVisible(ulong handle, bool state);
|
145 |
void _setVisible(ulong handle, bool state);
|
143 |
void _setPage(ulong handle, int width, int height);
|
146 |
void _setPage(ulong handle, int width, int height);
|
144 |
void _setSubPage(ulong handle, int left, int top, int width, int height, ANIMATION_t animate);
|
147 |
void _setSubPage(ulong handle, int left, int top, int width, int height, ANIMATION_t animate);
|
Line 169... |
Line 172... |
169 |
std::string mVideoURL; // If the button is a video, this is the URL where it plays from.
|
172 |
std::string mVideoURL; // If the button is a video, this is the URL where it plays from.
|
170 |
std::string mFileConfig; // Path and file name of the config file
|
173 |
std::string mFileConfig; // Path and file name of the config file
|
171 |
bool mHasFocus{true}; // If this is FALSE, no output to sceen is allowed.
|
174 |
bool mHasFocus{true}; // If this is FALSE, no output to sceen is allowed.
|
172 |
std::atomic<double> mScaleFactor{1.0}; // The actual scale factor
|
175 |
std::atomic<double> mScaleFactor{1.0}; // The actual scale factor
|
173 |
std::atomic<TObject::OBJECT_t *> mLastObject{nullptr}; // This is for the hide effect of widgets.
|
176 |
std::atomic<TObject::OBJECT_t *> mLastObject{nullptr}; // This is for the hide effect of widgets.
|
- |
|
177 |
std::atomic<bool> mBusy{false}; // If TRUE the busy indicator is active
|
- |
|
178 |
TQBusy *mBusyDialog{nullptr}; // Pointer to busy indicator dialog window
|
174 |
TQKeyboard *mQKeyboard{nullptr}; // Pointer to an active virtual keyboard
|
179 |
TQKeyboard *mQKeyboard{nullptr}; // Pointer to an active virtual keyboard
|
175 |
TQKeypad *mQKeypad{nullptr}; // Pointer to an active virtual keypad
|
180 |
TQKeypad *mQKeypad{nullptr}; // Pointer to an active virtual keypad
|
- |
|
181 |
// std::thread mThreadBusy; // The thread of the busy indicator.
|
176 |
bool mKeyboard{false}; // TRUE = keyboard is visible
|
182 |
bool mKeyboard{false}; // TRUE = keyboard is visible
|
177 |
bool mKeypad{false}; // TRUE = keypad is visible
|
183 |
bool mKeypad{false}; // TRUE = keypad is visible
|
178 |
// Mouse
|
184 |
// Mouse
|
179 |
int mLastPressX{-1}; // Remember the last mouse press X coordinate
|
185 |
int mLastPressX{-1}; // Remember the last mouse press X coordinate
|
180 |
int mLastPressY{-1}; // Remember the last mouse press Y coordinate
|
186 |
int mLastPressY{-1}; // Remember the last mouse press Y coordinate
|