| 1 |
/* |
| 2 |
* Copyright (C) 2020 ~ 2021 Uniontech Software Technology Co., Ltd. |
| 3 |
* |
| 4 |
* Author: ZhangYong <[email protected]> |
| 5 |
* |
| 6 |
* Maintainer: ZhangYong <[email protected]> |
| 7 |
* |
| 8 |
* This program is free software: you can redistribute it and/or modify |
| 9 |
* it under the terms of the GNU General Public License as published by |
| 10 |
* the Free Software Foundation, either version 3 of the License, or |
| 11 |
* any later version. |
| 12 |
* |
| 13 |
* This program is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
* GNU General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU General Public License |
| 19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 |
*/ |
| 21 |
|
| 22 |
#ifndef DESKTOP_ACCESSIBLE_OBJECT_LIST_H |
| 23 |
#define DESKTOP_ACCESSIBLE_OBJECT_LIST_H |
| 24 |
|
| 25 |
#include "accessiblefunctions.h" |
| 26 |
|
| 27 |
#include <QDialog> |
| 28 |
#include <QPushButton> |
| 29 |
#include <QListWidget> |
| 30 |
#include <DTitlebar> |
| 31 |
#include <QFrame> |
| 32 |
#include <QLabel> |
| 33 |
#include <DMainWindow> |
| 34 |
#include <QAction> |
| 35 |
|
| 36 |
#include "albumview.h" |
| 37 |
#include "leftlistview.h" |
| 38 |
#include "importtimelineview.h" |
| 39 |
#include "importview.h" |
| 40 |
#include "mainwindow.h" |
| 41 |
#include "slideshowpanel.h" |
| 42 |
#include "ttbcontent.h" |
| 43 |
#include "timelineview.h" |
| 44 |
#include "statusbar.h" |
| 45 |
|
| 46 |
DWIDGET_USE_NAMESPACE |
| 47 |
// 添加accessible |
| 48 |
SET_FORM_ACCESSIBLE(QFrame, m_w->objectName()) |
| 49 |
SET_FORM_ACCESSIBLE(QWidget, m_w->objectName()) |
| 50 |
SET_LABEL_ACCESSIBLE(QLabel, m_w->objectName()) |
| 51 |
SET_FORM_ACCESSIBLE(QDialog, m_w->objectName()) |
| 52 |
SET_BUTTON_ACCESSIBLE(QPushButton, m_w->objectName()) |
| 53 |
SET_SLIDER_ACCESSIBLE(DMainWindow, m_w->objectName()) |
| 54 |
SET_SLIDER_ACCESSIBLE(QListWidget, m_w->objectName()) |
| 55 |
SET_FORM_ACCESSIBLE(DTitlebar, m_w->objectName()) |
| 56 |
//SET_FORM_ACCESSIBLE(QMenu, m_w->objectName()) |
| 57 |
|
| 58 |
QAccessibleInterface *accessibleFactory(const QString &classname, QObject *object) |
| 59 |
{ |
| 60 |
QAccessibleInterface *interface = nullptr; |
| 61 |
USE_ACCESSIBLE(classname, QFrame); |
| 62 |
USE_ACCESSIBLE(classname, QWidget); |
| 63 |
USE_ACCESSIBLE(classname, QLabel); |
| 64 |
USE_ACCESSIBLE(classname, QDialog); |
| 65 |
USE_ACCESSIBLE(classname, QPushButton); |
| 66 |
USE_ACCESSIBLE(classname, DMainWindow); |
| 67 |
USE_ACCESSIBLE(classname, QListWidget); |
| 68 |
USE_ACCESSIBLE(classname, DTitlebar); |
| 69 |
// USE_ACCESSIBLE(classname, QMenu); |
| 70 |
|
| 71 |
return interface; |
| 72 |
} |
| 73 |
|
| 74 |
#endif // DESKTOP_ACCESSIBLE_OBJECT_LIST_H |