Subversion Repositories tpanel

Rev

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

Rev 141 Rev 142
Line 96... Line 96...
96
        void sigSendVirtualKeys(const std::string& str);
96
        void sigSendVirtualKeys(const std::string& str);
97
        void sigShowPhoneDialog(bool state);
97
        void sigShowPhoneDialog(bool state);
98
        void sigSetPhoneNumber(const std::string& number);
98
        void sigSetPhoneNumber(const std::string& number);
99
        void sigSetPhoneStatus(const std::string& msg);
99
        void sigSetPhoneStatus(const std::string& msg);
100
        void sigSetPhoneState(int state, int id);
100
        void sigSetPhoneState(int state, int id);
-
 
101
        void sigRepaintWindows();
101
 
102
 
102
    protected:
103
    protected:
103
        bool event(QEvent *event) override;
104
        bool event(QEvent *event) override;
104
        void closeEvent(QCloseEvent *event) override;
105
        void closeEvent(QCloseEvent *event) override;
105
        void mousePressEvent(QMouseEvent* event) override;
106
        void mousePressEvent(QMouseEvent* event) override;
Line 150... Line 151...
150
//        void volumeMute();
151
//        void volumeMute();
151
        // Slots for widget actions and button element actions
152
        // Slots for widget actions and button element actions
152
        void animationFinished();
153
        void animationFinished();
153
        void textChangedMultiLine();
154
        void textChangedMultiLine();
154
        void textSingleLineReturn();
155
        void textSingleLineReturn();
-
 
156
        void repaintWindows();
155
 
157
 
156
    private:
158
    private:
157
        bool gestureEvent(QGestureEvent *event);
159
        bool gestureEvent(QGestureEvent *event);
158
        void createActions();
160
        void createActions();
159
        void writeSettings();
161
        void writeSettings();
Line 191... Line 193...
191
        void _setPhoneState(int state, int id);
193
        void _setPhoneState(int state, int id);
192
#ifdef __ANDROID__
194
#ifdef __ANDROID__
193
        void _signalState(Qt::ApplicationState state);
195
        void _signalState(Qt::ApplicationState state);
194
        void _orientationChanged(int orientation);
196
        void _orientationChanged(int orientation);
195
#endif
197
#endif
-
 
198
        void _repaintWindows();
196
        void doReleaseButton();
199
        void doReleaseButton();
-
 
200
        void repaintObjects();
197
        int calcVolume(int value);
201
        int calcVolume(int value);
198
 
202
 
-
 
203
        bool mWasInactive{false};           // If the application was inactive this is set to true until everything was repainted.
-
 
204
        bool mDoRepaint{false};             // This is set to TRUE whenever a reconnection to the controller happened.
199
        TQtSettings *mSettings{nullptr};    // The pointer to the settings dialog
205
        TQtSettings *mSettings{nullptr};    // The pointer to the settings dialog
200
        bool settingsChanged{false};        // true = settings have changed
206
        bool settingsChanged{false};        // true = settings have changed
201
        QWidget *mBackground{nullptr};      // The background of the visible page
207
        QWidget *mBackground{nullptr};      // The background of the visible page
202
        QToolBar *mToolbar{nullptr};        // The toolbar, if there is any
208
        QToolBar *mToolbar{nullptr};        // The toolbar, if there is any
203
        std::string mVideoURL;              // If the button is a video, this is the URL where it plays from.
209
        std::string mVideoURL;              // If the button is a video, this is the URL where it plays from.