F:/KPlato/koffice/libs/kofficecore/kkbdaccessextensions.h

Aller à la documentation de ce fichier.
00001 
00024 #ifndef __KKBDACCESSEXTENSIONS_H__
00025 #define __KKBDACCESSEXTENSIONS_H__
00026 
00027 // Qt includes.
00028 #include <QObject>
00029 #include <QLabel>
00030 #include <QKeyEvent>
00031 #include <QEvent>
00032 
00033 // KOffice includes.
00034 #include <koffice_export.h>
00035 
00036 class KKbdAccessExtensionsPrivate;
00037 class KMainWindow;
00038 
00112 class KOFFICECORE_EXPORT KKbdAccessExtensions : public QObject
00113 {
00114     // TODO: A .moc isn't really needed right now, but see TODO in eventFilter method.
00115     // Q_PROPERTY(int stepSize READ stepSize WRITE setStepSize)
00116 
00117     public:
00122         KKbdAccessExtensions(KMainWindow* parent, const char* name = 0);
00123 
00125         virtual ~KKbdAccessExtensions();
00126 
00128         int stepSize() const;
00130         void setStepSize(int s);
00131 
00132     protected:
00134         bool eventFilter( QObject *o, QEvent *e );
00135 
00137         QWidgetList* getAllPanels();
00140         void nextHandle();
00143         void prevHandle();
00145         void exitSizing();
00147         void resizePanelFromKey(int key, int state);
00149         void resizePanel(int dx, int dy, int state);
00151         void showIcon();
00153         void hideIcon();
00154 
00156         void displayAccessKeys();
00158         bool handleAccessKey( const QKeyEvent* ev );
00159 
00160     private:
00161         KKbdAccessExtensionsPrivate* d;
00162 };
00163 
00165 class KSortedLabel
00166 {
00167 public:
00168     KSortedLabel(QLabel* l);
00169     KSortedLabel();    // default constructor
00170     bool operator<( const KSortedLabel& l) const;
00171     QLabel* label() const { return m_l; }
00172 
00173 private:
00174     QLabel* m_l;
00175 };
00176 
00177 #endif              // __KKBDACCESSEXTENSIONS_H__

Généré le Wed Nov 22 23:41:01 2006 pour KPlato par  doxygen 1.5.1-p1