| /**************************************************************************** |
| ** |
| ** Copyright (C) 2016 The Qt Company Ltd. |
| ** Contact: https://www.qt.io/licensing/ |
| ** |
| ** This file is part of the Qt Virtual Keyboard module of the Qt Toolkit. |
| ** |
| ** $QT_BEGIN_LICENSE:GPL$ |
| ** Commercial License Usage |
| ** Licensees holding valid commercial Qt licenses may use this file in |
| ** accordance with the commercial license agreement provided with the |
| ** Software or, alternatively, in accordance with the terms contained in |
| ** a written agreement between you and The Qt Company. For licensing terms |
| ** and conditions see https://www.qt.io/terms-conditions. For further |
| ** information use the contact form at https://www.qt.io/contact-us. |
| ** |
| ** GNU General Public License Usage |
| ** Alternatively, this file may be used under the terms of the GNU |
| ** General Public License version 3 or (at your option) any later version |
| ** approved by the KDE Free Qt Foundation. The licenses are as published by |
| ** the Free Software Foundation and appearing in the file LICENSE.GPL3 |
| ** included in the packaging of this file. Please review the following |
| ** information to ensure the GNU General Public License requirements will |
| ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
| ** |
| ** $QT_END_LICENSE$ |
| ** |
| ****************************************************************************/ |
| |
| #include <QtVirtualKeyboard/private/abstractinputpanel_p.h> |
| #include <QtCore/QRect> |
| |
| QT_BEGIN_NAMESPACE |
| namespace QtVirtualKeyboard { |
| |
| /*! |
| \class QtVirtualKeyboard::AbstractInputPanel |
| \internal |
| \inmodule QtVirtualKeyboard |
| |
| \brief Base class for an input panel. |
| |
| Input panel is a container for InputPanel qml view. |
| |
| The virtual keyboard currently supports the following input panels: |
| \list |
| \li AppInputPanel Input panel type that is integrated directly into the |
| application. |
| \li DesktopInputPanel Input panel type for Desktop systems. |
| \endlist |
| */ |
| |
| /*! |
| Creates an input panel container with \a dd as private data and |
| \a parent but does not construct the view. The view is explicitly |
| constructed by the AbstractInputPanel::createView() method. |
| */ |
| AbstractInputPanel::AbstractInputPanel(QObjectPrivate &dd, QObject *parent) : |
| QObject(dd, parent) |
| { |
| } |
| |
| /*! |
| Creates an input panel container with \a parent but does not construct |
| the view. The view is explicitly constructed by the |
| AbstractInputPanel::createView() method. |
| */ |
| AbstractInputPanel::AbstractInputPanel(QObject *parent) : |
| QObject(parent) |
| { |
| } |
| |
| /*! |
| Destroys the input panel container. |
| */ |
| AbstractInputPanel::~AbstractInputPanel() |
| { |
| } |
| |
| /*! |
| \fn void QtVirtualKeyboard::AbstractInputPanel::show() = 0 |
| \internal |
| |
| Shows the input panel. |
| */ |
| |
| /*! |
| \fn void QtVirtualKeyboard::AbstractInputPanel::hide() = 0 |
| \internal |
| |
| Hides the input panel. |
| */ |
| |
| /*! |
| \fn bool QtVirtualKeyboard::AbstractInputPanel::isVisible() const = 0 |
| \internal |
| |
| Returns \c true if the input panel is currently visible. |
| */ |
| |
| /*! |
| This method adjusts the input rectangle of the input panel. |
| The \a inputRect specifies the area in which mouse input is accepted. |
| */ |
| void AbstractInputPanel::setInputRect(const QRect &inputRect) |
| { |
| Q_UNUSED(inputRect); |
| } |
| |
| /*! |
| Creates the view of the input panel. If the view is already created, |
| this method does nothing. |
| */ |
| void AbstractInputPanel::createView() |
| { |
| } |
| |
| /*! |
| \fn void QtVirtualKeyboard::AbstractInputPanel::destroyView() |
| \internal |
| |
| Destroys the view of the input panel. |
| */ |
| void AbstractInputPanel::destroyView() |
| { |
| } |
| |
| } // namespace QtVirtualKeyboard |
| QT_END_NAMESPACE |