Line 46... |
Line 46... |
46 |
|
46 |
|
47 |
Q_DECLARE_METATYPE(size_t)
|
47 |
Q_DECLARE_METATYPE(size_t)
|
48 |
|
48 |
|
49 |
int qtmain(int argc, char **argv, TPageManager *pmanager);
|
49 |
int qtmain(int argc, char **argv, TPageManager *pmanager);
|
50 |
|
50 |
|
51 |
class MainWindow : public QMainWindow, TObject, TQManageQueue
|
51 |
class MainWindow : public QMainWindow, TQManageQueue
|
52 |
{
|
52 |
{
|
53 |
Q_OBJECT
|
53 |
Q_OBJECT
|
54 |
|
54 |
|
55 |
public:
|
55 |
public:
|
56 |
typedef enum J_ORIENTATION
|
56 |
typedef enum J_ORIENTATION
|
Line 132... |
Line 132... |
132 |
void createActions();
|
132 |
void createActions();
|
133 |
void writeSettings();
|
133 |
void writeSettings();
|
134 |
void playShowList();
|
134 |
void playShowList();
|
135 |
int scale(int value);
|
135 |
int scale(int value);
|
136 |
bool isScaled() { return (mScaleFactor != 1.0); }
|
136 |
bool isScaled() { return (mScaleFactor != 1.0); }
|
137 |
void startAnimation(OBJECT_t *obj, ANIMATION_t& ani, bool in = true);
|
137 |
void startAnimation(TObject::OBJECT_t *obj, ANIMATION_t& ani, bool in = true);
|
138 |
|
138 |
|
139 |
void _displayButton(ulong handle, ulong parent, unsigned char* buffer, int width, int height, int pixline, int left, int top);
|
139 |
void _displayButton(ulong handle, ulong parent, unsigned char* buffer, int width, int height, int pixline, int left, int top);
|
140 |
void _setVisible(ulong handle, bool state);
|
140 |
void _setVisible(ulong handle, bool state);
|
141 |
void _setPage(ulong handle, int width, int height);
|
141 |
void _setPage(ulong handle, int width, int height);
|
142 |
void _setSubPage(ulong handle, int left, int top, int width, int height, ANIMATION_t animate);
|
142 |
void _setSubPage(ulong handle, int left, int top, int width, int height, ANIMATION_t animate);
|
Line 165... |
Line 165... |
165 |
QToolBar *mToolbar{nullptr}; // The toolbar, if there is any
|
165 |
QToolBar *mToolbar{nullptr}; // The toolbar, if there is any
|
166 |
std::string mVideoURL; // If the button is a video, this is the URL where it plays from.
|
166 |
std::string mVideoURL; // If the button is a video, this is the URL where it plays from.
|
167 |
std::string mFileConfig; // Path and file name of the config file
|
167 |
std::string mFileConfig; // Path and file name of the config file
|
168 |
bool mHasFocus{true}; // If this is FALSE, no output to sceen is allowed.
|
168 |
bool mHasFocus{true}; // If this is FALSE, no output to sceen is allowed.
|
169 |
std::atomic<double> mScaleFactor{1.0}; // The actual scale factor
|
169 |
std::atomic<double> mScaleFactor{1.0}; // The actual scale factor
|
170 |
std::atomic<OBJECT_t *> mLastObject{nullptr}; // This is for the hide effect of widgets.
|
170 |
std::atomic<TObject::OBJECT_t *> mLastObject{nullptr}; // This is for the hide effect of widgets.
|
171 |
TQKeyboard *mQKeyboard{nullptr}; // Pointer to an active virtual keyboard
|
171 |
TQKeyboard *mQKeyboard{nullptr}; // Pointer to an active virtual keyboard
|
172 |
TQKeypad *mQKeypad{nullptr}; // Pointer to an active virtual keypad
|
172 |
TQKeypad *mQKeypad{nullptr}; // Pointer to an active virtual keypad
|
173 |
bool mKeyboard{false}; // TRUE = keyboard is visible
|
173 |
bool mKeyboard{false}; // TRUE = keyboard is visible
|
174 |
bool mKeypad{false}; // TRUE = keypad is visible
|
174 |
bool mKeypad{false}; // TRUE = keypad is visible
|
175 |
// Mouse
|
175 |
// Mouse
|