Changeset 561 for trunk/src/plugins/accessible/widgets/simplewidgets.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/plugins/accessible/widgets/simplewidgets.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the plugins of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 43 43 #define SIMPLEWIDGETS_H 44 44 45 #include <QtCore/qcoreapplication.h> 45 46 #include <QtGui/qaccessible2.h> 46 47 #include <QtGui/qaccessiblewidget.h> … … 53 54 class QLineEdit; 54 55 class QToolButton; 56 class QProgressBar; 55 57 56 class QAccessibleButton : public QAccessibleWidgetEx 58 class QAccessibleButton : public QAccessibleWidgetEx, public QAccessibleActionInterface 57 59 { 60 Q_ACCESSIBLE_OBJECT 61 Q_DECLARE_TR_FUNCTIONS(QAccessibleButton) 58 62 public: 59 63 QAccessibleButton(QWidget *w, Role r); … … 64 68 QString actionText(int action, Text text, int child) const; 65 69 bool doAction(int action, int child, const QVariantList ¶ms); 70 71 // QAccessibleActionInterface 72 int actionCount(); 73 void doAction(int actionIndex); 74 QString description(int actionIndex); 75 QString name(int actionIndex); 76 QString localizedName(int actionIndex); 77 QStringList keyBindings(int actionIndex); 66 78 67 79 protected: … … 100 112 #endif // QT_NO_TOOLBUTTON 101 113 102 class QAccessibleDisplay : public QAccessibleWidgetEx 114 class QAccessibleDisplay : public QAccessibleWidgetEx, public QAccessibleImageInterface 103 115 { 116 Q_ACCESSIBLE_OBJECT 104 117 public: 105 118 explicit QAccessibleDisplay(QWidget *w, Role role = StaticText); … … 110 123 Relation relationTo(int child, const QAccessibleInterface *other, int otherChild) const; 111 124 int navigate(RelationFlag, int entry, QAccessibleInterface **target) const; 125 126 // QAccessibleImageInterface 127 QString imageDescription(); 128 QSize imageSize(); 129 QRect imagePosition(QAccessible2::CoordinateType coordType); 112 130 }; 113 131 … … 116 134 public QAccessibleSimpleEditableTextInterface 117 135 { 136 Q_ACCESSIBLE_OBJECT 118 137 public: 119 138 explicit QAccessibleLineEdit(QWidget *o, const QString &name = QString()); … … 150 169 #endif // QT_NO_LINEEDIT 151 170 171 #ifndef QT_NO_PROGRESSBAR 172 class QAccessibleProgressBar : public QAccessibleDisplay, public QAccessibleValueInterface 173 { 174 Q_ACCESSIBLE_OBJECT 175 public: 176 explicit QAccessibleProgressBar(QWidget *o); 177 178 // QAccessibleValueInterface 179 QVariant currentValue(); 180 QVariant maximumValue(); 181 QVariant minimumValue(); 182 inline void setCurrentValue(const QVariant &) {} 183 184 protected: 185 QProgressBar *progressBar() const; 186 }; 187 #endif 188 152 189 #endif // QT_NO_ACCESSIBILITY 153 190
Note:
See TracChangeset
for help on using the changeset viewer.