kkbdaccessextensions.h
Go to the documentation of this file.
1
24#ifndef __KKBDACCESSEXTENSIONS_H__
25#define __KKBDACCESSEXTENSIONS_H__
26
27// TQt includes.
28#include <tqobject.h>
29
30// KOffice includes.
31#include <koffice_export.h>
32
33class KKbdAccessExtensionsPrivate;
34class TQWidgetList;
35class TDEMainWindow;
36
110class KOFFICECORE_EXPORT KKbdAccessExtensions : public TQObject
111{
112 // TODO: A .moc isn't really needed right now, but see TODO in eventFilter method.
113 // TQ_PROPERTY(int stepSize READ stepSize WRITE setStepSize)
114
115 public:
120 KKbdAccessExtensions(TDEMainWindow* parent, const char* name = 0);
121
123 virtual ~KKbdAccessExtensions();
124
126 int stepSize() const;
128 void setStepSize(int s);
129
130 protected:
132 bool eventFilter( TQObject *o, TQEvent *e );
133
135 TQWidgetList* getAllPanels();
138 void nextHandle();
141 void prevHandle();
143 void exitSizing();
145 void resizePanelFromKey(int key, int state);
147 void resizePanel(int dx, int dy, int state);
149 void showIcon();
151 void hideIcon();
152
154 void displayAccessKeys();
156 bool handleAccessKey( const TQKeyEvent* ev );
157
158 private:
159 KKbdAccessExtensionsPrivate* d;
160};
161
164{
165public:
166 KSortedLabel(TQLabel* l);
167 KSortedLabel(); // default constructor
168 bool operator<( KSortedLabel l);
169 TQLabel* label() { return m_l; }
170
171private:
172 TQLabel* m_l;
173};
174
175#endif // __KKBDACCESSEXTENSIONS_H__
KKbdAccessExtensions is an object that improves accessibility for motor impaired users who may not be...
Provides a way to sort TQLabelss using a TQValueList based on their screen position.