lib

kkbdaccessextensions.h

Go to the documentation of this file.
00001 
00024 #ifndef __KKBDACCESSEXTENSIONS_H__
00025 #define __KKBDACCESSEXTENSIONS_H__
00026 
00027 // Qt includes.
00028 #include <qobject.h>
00029 
00030 // KOffice includes.
00031 #include <koffice_export.h>
00032 
00033 class KKbdAccessExtensionsPrivate;
00034 class QWidgetList;
00035 class KMainWindow;
00036 
00110 class KOFFICECORE_EXPORT KKbdAccessExtensions : public QObject
00111 {
00112     // TODO: A .moc isn't really needed right now, but see TODO in eventFilter method.
00113     // Q_PROPERTY(int stepSize READ stepSize WRITE setStepSize)
00114 
00115     public:
00120         KKbdAccessExtensions(KMainWindow* parent, const char* name = 0);
00121 
00123         virtual ~KKbdAccessExtensions();
00124 
00126         int stepSize() const;
00128         void setStepSize(int s);
00129 
00130     protected:
00132         bool eventFilter( QObject *o, QEvent *e );
00133 
00135         QWidgetList* getAllPanels();
00138         void nextHandle();
00141         void prevHandle();
00143         void exitSizing();
00145         void resizePanelFromKey(int key, int state);
00147         void resizePanel(int dx, int dy, int state);
00149         void showIcon();
00151         void hideIcon();
00152 
00154         void displayAccessKeys();
00156         bool handleAccessKey( const QKeyEvent* ev );
00157 
00158     private:
00159         KKbdAccessExtensionsPrivate* d;
00160 };
00161 
00163 class KSortedLabel
00164 {
00165 public:
00166     KSortedLabel(QLabel* l);
00167     KSortedLabel();    // default constructor
00168     bool operator<( KSortedLabel l);
00169     QLabel* label() { return m_l; }
00170 
00171 private:
00172     QLabel* m_l;
00173 };
00174 
00175 #endif              // __KKBDACCESSEXTENSIONS_H__
KDE Home | KDE Accessibility Home | Description of Access Keys