lib

kkbdaccessextensions.h
Go to the documentation of this file.
1
23
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
163class KSortedLabel
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__
void hideIcon()
Hides the sizer icon.
int stepSize() const
Returns number of pixels panel is sized for each arrow key pressed.
bool handleAccessKey(const TQKeyEvent *ev)
Handles an access keypress.
void nextHandle()
Advances to the next Panel handle.
void resizePanelFromKey(int key, int state)
Moves panel handle based on key pressed.
void prevHandle()
Moves to the previous Panel handle.
TQWidgetList * getAllPanels()
Retrieves a list of all Splitter and DockArea widgets in the application.
void setStepSize(int s)
Sets number of pixels panel is sized for each arrow key pressed.
void resizePanel(int dx, int dy, int state)
Moves panel handle based on deltaX and deltaY and state of keyboard modifier keys.
void exitSizing()
Exits Sizing mode.
void displayAccessKeys()
Displays the access keys.
void showIcon()
Displays the sizer icon.
bool eventFilter(TQObject *o, TQEvent *e)
Event filter installed on kapp object.
KKbdAccessExtensions(TDEMainWindow *parent, const char *name=0)
Constructor.