| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef DESKTOPINPUTPANEL_P_H |
| 5 | #define DESKTOPINPUTPANEL_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtVirtualKeyboard/private/appinputpanel_p.h> |
| 19 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class QWindow; |
| 23 | class QScreen; |
| 24 | |
| 25 | namespace QtVirtualKeyboard { |
| 26 | |
| 27 | class DesktopInputPanelPrivate; |
| 28 | |
| 29 | class Q_VIRTUALKEYBOARD_EXPORT DesktopInputPanel : public AppInputPanel |
| 30 | { |
| 31 | Q_OBJECT |
| 32 | Q_DECLARE_PRIVATE(DesktopInputPanel) |
| 33 | public: |
| 34 | explicit DesktopInputPanel(QObject *parent = nullptr); |
| 35 | ~DesktopInputPanel(); |
| 36 | |
| 37 | void show() override; |
| 38 | void hide() override; |
| 39 | bool isVisible() const override; |
| 40 | |
| 41 | void setInputRect(const QRect &inputRect) override; |
| 42 | |
| 43 | public slots: |
| 44 | void createView() override; |
| 45 | void destroyView() override; |
| 46 | |
| 47 | protected slots: |
| 48 | void repositionView(const QRect &rect); |
| 49 | void focusWindowChanged(QWindow *focusWindow); |
| 50 | void focusWindowVisibleChanged(bool visible); |
| 51 | void previewRectangleChanged(); |
| 52 | void previewVisibleChanged(); |
| 53 | void screenChanged(QScreen *); |
| 54 | |
| 55 | protected: |
| 56 | void updateInputRegion(); |
| 57 | }; |
| 58 | |
| 59 | } // namespace QtVirtualKeyboard |
| 60 | QT_END_NAMESPACE |
| 61 | |
| 62 | #endif // DESKTOPINPUTPANEL_P_H |
| 63 |
