File indexing completed on 2025-01-26 03:28:31
0001 /* 0002 SPDX-FileCopyrightText: 2012 Frederik Gladhorn <gladhorn@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include "libaccessibilityinspector_export.h" 0010 #include <KXmlGuiWindow> 0011 #include <QAction> 0012 class MainWidget; 0013 namespace QAccessibleClient 0014 { 0015 class Registry; 0016 } 0017 class LIBACCESSIBILITYINSPECTOR_EXPORT MainWindow : public KXmlGuiWindow 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit MainWindow(QWidget *parent = nullptr); 0023 ~MainWindow() override; 0024 0025 protected: 0026 void closeEvent(QCloseEvent *event) override; 0027 0028 private: 0029 void initActions(); 0030 void initUi(); 0031 void showClientCache(); 0032 void loadSettings(); 0033 void saveSettings(); 0034 0035 QAccessibleClient::Registry *const mRegistry; 0036 0037 MainWidget *const mMainWidget; 0038 0039 QAction *mResetTreeAction = nullptr; 0040 QAction *mFollowFocusAction = nullptr; 0041 QAction *mShowClientCacheAction = nullptr; 0042 QAction *mEnableA11yAction = nullptr; 0043 QAction *mEnableScreenReaderAction = nullptr; 0044 QAction *mQuitAction = nullptr; 0045 QAction *mCopyValueAction = nullptr; 0046 };