Subversion Repositories tpanel

Rev

Rev 449 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 449 Rev 458
Line 28... Line 28...
28
#include "tpagemanager.h"
28
#include "tpagemanager.h"
29
#include "tobject.h"
29
#include "tobject.h"
30
//#include "tqemitqueue.h"
30
//#include "tqemitqueue.h"
31
#include "tpagelist.h"
31
#include "tpagelist.h"
32
#include "tqgesturefilter.h"
32
#include "tqgesturefilter.h"
-
 
33
#include "tqintercom.h"
33
 
34
 
34
extern bool prg_stopped;
35
extern bool prg_stopped;
35
extern std::atomic<bool> killed;
36
extern std::atomic<bool> killed;
36
 
37
 
37
QT_BEGIN_NAMESPACE
38
QT_BEGIN_NAMESPACE
Line 154... Line 155...
154
        void sigSetSizeMainWindow(int width, int height);
155
        void sigSetSizeMainWindow(int width, int height);
155
        void sigStartWait(const std::string& text);
156
        void sigStartWait(const std::string& text);
156
        void sigStopWait();
157
        void sigStopWait();
157
        void sigPageFinished(uint handle);
158
        void sigPageFinished(uint handle);
158
        void sigListViewArea(ulong handle, ulong parent, Button::TButton& button, SUBVIEWLIST_T& list);
159
        void sigListViewArea(ulong handle, ulong parent, Button::TButton& button, SUBVIEWLIST_T& list);
-
 
160
        void sigInitializeIntercom(INTERCOM_t ic);
-
 
161
        void sigIntercomStart();
-
 
162
        void sigIntercomStop();
-
 
163
        void sigIntercomSpkLevel(int level);
-
 
164
        void sigIintercomMicLevel(int level);
-
 
165
        void sigIntercomMicMute(bool mute);
159
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
166
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
160
        void sigActivateSettings(const std::string& oldNetlinx, int oldPort, int oldChannelID, const std::string& oldSurface, bool oldToolbarSuppress, bool oldToolbarForce);
167
        void sigActivateSettings(const std::string& oldNetlinx, int oldPort, int oldChannelID, const std::string& oldSurface, bool oldToolbarSuppress, bool oldToolbarForce);
161
#endif
168
#endif
162
    protected:
169
    protected:
163
        bool event(QEvent *event) override;
170
        bool event(QEvent *event) override;
Line 252... Line 259...
252
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
259
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
253
        void onPlayingChanged(bool plying);
260
        void onPlayingChanged(bool plying);
254
#endif
261
#endif
255
        void onPlayerError(QMediaPlayer::Error error, const QString &errorString);
262
        void onPlayerError(QMediaPlayer::Error error, const QString &errorString);
256
        void onMediaStatusChanged(QMediaPlayer::MediaStatus status);
263
        void onMediaStatusChanged(QMediaPlayer::MediaStatus status);
-
 
264
        void initializeIntercom(INTERCOM_t ic);
-
 
265
        void intercomStart();
-
 
266
        void intercomStop();
-
 
267
        void intercomSpkLevel(int level);
-
 
268
        void intercomMicLevel(int level);
-
 
269
        void intercomMicMute(bool mute);
257
 
270
 
258
    private:
271
    private:
259
        bool gestureEvent(QGestureEvent *event);
272
        bool gestureEvent(QGestureEvent *event);
260
        void createActions();
273
        void createActions();
261
        void writeSettings();
274
        void writeSettings();
Line 332... Line 345...
332
        void _downloadSurface(const std::string& file, size_t size);
345
        void _downloadSurface(const std::string& file, size_t size);
333
        void _startWait(const std::string& text);
346
        void _startWait(const std::string& text);
334
        void _stopWait();
347
        void _stopWait();
335
        void _pageFinished(uint handle);
348
        void _pageFinished(uint handle);
336
        void _listViewArea(ulong handle, ulong parent, Button::TButton& button, SUBVIEWLIST_T& list);
349
        void _listViewArea(ulong handle, ulong parent, Button::TButton& button, SUBVIEWLIST_T& list);
-
 
350
        void _initializeIntercom(INTERCOM_t ic);
-
 
351
        void _intercomStart();
-
 
352
        void _intercomStop();
-
 
353
        void _intercomSpkLevel(int level);
-
 
354
        void _intercomMicLevel(int level);
-
 
355
        void _intercomMicMute(bool mute);
337
        void doReleaseButton();
356
        void doReleaseButton();
338
        void repaintObjects();
357
        void repaintObjects();
339
        void refresh(ulong handle);
358
        void refresh(ulong handle);
340
        void markDirty(ulong handle);
359
        void markDirty(ulong handle);
341
        QFont loadFont(int number, const FONT_T& f, const FONT_STYLE fs);
360
        QFont loadFont(int number, const FONT_T& f, const FONT_STYLE fs);
Line 404... Line 423...
404
        bool mGeoHavePermission{false};     // TRUE = The app has permission for geo location
423
        bool mGeoHavePermission{false};     // TRUE = The app has permission for geo location
405
#endif
424
#endif
406
        std::chrono::steady_clock::time_point mTouchStart;  // Time in micro seconds of the start of a touch event
425
        std::chrono::steady_clock::time_point mTouchStart;  // Time in micro seconds of the start of a touch event
407
        int mTouchX{0};                        // The X coordinate of the mouse pointer
426
        int mTouchX{0};                        // The X coordinate of the mouse pointer
408
        int mTouchY{0};                        // The Y coordinate of the mouse pointer
427
        int mTouchY{0};                        // The Y coordinate of the mouse pointer
-
 
428
        TQIntercom mIntercom;               // Class to handle intercom connections
409
};
429
};
410
 
430
 
411
#endif
431
#endif