Subversion Repositories tpanel

Rev

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

Rev 235 Rev 247
Line 50... Line 50...
50
class TQBusy;
50
class TQBusy;
51
class TqDownload;
51
class TqDownload;
52
class TQtPhone;
52
class TQtPhone;
53
class QListWidgetItem;
53
class QListWidgetItem;
54
QT_END_NAMESPACE
54
QT_END_NAMESPACE
-
 
55
#ifdef Q_OS_IOS
-
 
56
class TIOSBattery;
-
 
57
#endif
55
 
58
 
56
Q_DECLARE_METATYPE(size_t)
59
Q_DECLARE_METATYPE(size_t)
57
 
60
 
58
int qtmain(int argc, char **argv, TPageManager *pmanager);
61
int qtmain(int argc, char **argv, TPageManager *pmanager);
59
 
62
 
Line 148... Line 151...
148
        void stopSound();
151
        void stopSound();
149
        void muteSound(bool state);
152
        void muteSound(bool state);
150
        void onAppStateChanged(Qt::ApplicationState state);
153
        void onAppStateChanged(Qt::ApplicationState state);
151
        void onScreenOrientationChanged(Qt::ScreenOrientation ori);
154
        void onScreenOrientationChanged(Qt::ScreenOrientation ori);
152
        void onTListCallbackCurrentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
155
        void onTListCallbackCurrentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
153
#ifndef __ANDROID__
156
#if not defined(Q_OS_ANDROID) && not defined(Q_OS_IOS)
154
        void setSizeMainWindow(int width, int height);
157
        void setSizeMainWindow(int width, int height);
155
#endif
158
#endif
156
        // Slots for the phone dialog
159
        // Slots for the phone dialog
157
        void showPhoneDialog(bool state);
160
        void showPhoneDialog(bool state);
158
        void setPhoneNumber(const std::string& number);
161
        void setPhoneNumber(const std::string& number);
Line 176... Line 179...
176
        void downloadSurface(const std::string& file, size_t size);
179
        void downloadSurface(const std::string& file, size_t size);
177
        void displayMessage(const std::string& msg, const std::string& title);
180
        void displayMessage(const std::string& msg, const std::string& title);
178
        void fileDialog(ulong handle, const std::string& path, const std::string& extension, const std::string& suffix);
181
        void fileDialog(ulong handle, const std::string& path, const std::string& extension, const std::string& suffix);
179
        // Progress bar (busy indicator)
182
        // Progress bar (busy indicator)
180
        void onProgressChanged(int percent);
183
        void onProgressChanged(int percent);
-
 
184
#ifdef Q_OS_IOS
-
 
185
        void onBatteryTimeout();
-
 
186
#endif
181
 
187
 
182
    private:
188
    private:
183
        bool gestureEvent(QGestureEvent *event);
189
        bool gestureEvent(QGestureEvent *event);
184
        void createActions();
190
        void createActions();
185
        void writeSettings();
191
        void writeSettings();
Line 268... Line 274...
268
        Qt::ScreenOrientations mOrientation{Qt::PrimaryOrientation};
274
        Qt::ScreenOrientations mOrientation{Qt::PrimaryOrientation};
269
        QMediaPlayer *mMediaPlayer{nullptr};// Class to play sound files.
275
        QMediaPlayer *mMediaPlayer{nullptr};// Class to play sound files.
270
#ifdef QT6_LINUX
276
#ifdef QT6_LINUX
271
        QAudioOutput *mAudioOutput{nullptr};
277
        QAudioOutput *mAudioOutput{nullptr};
272
#endif
278
#endif
-
 
279
#ifdef Q_OS_IOS
-
 
280
        TIOSBattery *mIosBattery{nullptr};  // Class to retrive the battery status on an iPhone or iPad
-
 
281
        QTimer *mBatTimer{nullptr};         // Timer used to periodically get battery state
-
 
282
#endif
273
        std::chrono::steady_clock::time_point mTouchStart;  // Time in micro seconds of the start of a touch event
283
        std::chrono::steady_clock::time_point mTouchStart;  // Time in micro seconds of the start of a touch event
274
        int mTouchX{0};                        // The X coordinate of the mouse pointer
284
        int mTouchX{0};                        // The X coordinate of the mouse pointer
275
        int mTouchY{0};                        // The Y coordinate of the mouse pointer
285
        int mTouchY{0};                        // The Y coordinate of the mouse pointer
276
};
286
};
277
 
287