2020-08-02 22:22:19 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
2020-05-17 06:26:41 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
2020-05-17 06:26:41 +00:00
|
|
|
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2020-05-17 06:26:41 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <qaccessibilityclient/registry.h>
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
|
|
|
class ZoomAccessibilityIntegration : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ZoomAccessibilityIntegration(QObject *parent = nullptr);
|
|
|
|
|
|
|
|
void setFocusTrackingEnabled(bool enabled);
|
|
|
|
bool isFocusTrackingEnabled() const;
|
|
|
|
|
2020-05-17 08:49:05 +00:00
|
|
|
void setTextCaretTrackingEnabled(bool enabled);
|
|
|
|
bool isTextCaretTrackingEnabled() const;
|
|
|
|
|
2020-05-17 06:26:41 +00:00
|
|
|
Q_SIGNALS:
|
|
|
|
void focusPointChanged(const QPoint &point);
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void slotFocusChanged(const QAccessibleClient::AccessibleObject &object);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void createAccessibilityRegistry();
|
|
|
|
void destroyAccessibilityRegistry();
|
|
|
|
void updateAccessibilityRegistry();
|
|
|
|
|
|
|
|
QAccessibleClient::Registry *m_accessibilityRegistry = nullptr;
|
|
|
|
bool m_isFocusTrackingEnabled = false;
|
2020-05-17 08:49:05 +00:00
|
|
|
bool m_isTextCaretTrackingEnabled = false;
|
2020-05-17 06:26:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace KWin
|