abstractinputpanel.cpp 3.36 KiB
/****************************************************************************
**
** 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 "abstractinputpanel.h"
#include <QtCore/QRect>
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)
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
/*! Destroys the input panel container. */ AbstractInputPanel::~AbstractInputPanel() { } /*! \fn void AbstractInputPanel::show() = 0 Shows the input panel. */ /*! \fn void AbstractInputPanel::hide() = 0 Hides the input panel. */ /*! \fn bool AbstractInputPanel::isVisible() const = 0 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 AbstractInputPanel::destroyView() Destroys the view of the input panel. */ void AbstractInputPanel::destroyView() { } } // namespace QtVirtualKeyboard