src/qt3support/other/q3accel.cpp File Reference

#include "q3accel.h"
#include "q3signal.h"
#include "qapplication.h"
#include "qwidget.h"
#include "q3ptrlist.h"
#include "qwhatsthis.h"
#include "qpointer.h"
#include "qstatusbar.h"
#include "qdockwidget.h"
#include "qevent.h"
#include "qkeysequence.h"
#include "private/qapplication_p.h"

Include dependency graph for q3accel.cpp:

Go to the source code of this file.

Classes

struct  Q3AccelItem
class  Q3AccelPrivate
class  Q3AccelManager

Typedefs

typedef Q3PtrList< Q3AccelItemQ3AccelList

Functions

bool Q_COMPAT_EXPORT qt_tryAccelEvent (QWidget *w, QKeyEvent *e)
bool Q_COMPAT_EXPORT qt_dispatchAccelEvent (QWidget *w, QKeyEvent *e)
bool Q_COMPAT_EXPORT qt_tryComposeUnicode (QWidget *w, QKeyEvent *e)
void Q_COMPAT_EXPORT qt_set_accel_auto_shortcuts (bool b)
static Q3AccelItemfind_id (Q3AccelList &list, int id)
static Q3AccelItemfind_key (Q3AccelList &list, const QKeySequence &key)
static int get_seq_id ()

Variables

static bool qt_accel_no_shortcuts = false


Typedef Documentation

typedef Q3PtrList<Q3AccelItem> Q3AccelList

Definition at line 138 of file q3accel.cpp.


Function Documentation

static Q3AccelItem* find_id ( Q3AccelList list,
int  id 
) [static]

Definition at line 548 of file q3accel.cpp.

References Q3PtrList< type >::first(), Q3AccelItem::id, and Q3PtrList< type >::next().

Referenced by Q3Accel::connectItem(), Q3Accel::disconnectItem(), Q3Accel::isItemEnabled(), Q3Accel::key(), Q3Accel::removeItem(), Q3Accel::setItemEnabled(), Q3Accel::setWhatsThis(), and Q3Accel::whatsThis().

00549 {
00550     register Q3AccelItem *item = list.first();
00551     while (item && item->id != id)
00552         item = list.next();
00553     return item;
00554 }

Here is the call graph for this function:

static Q3AccelItem* find_key ( Q3AccelList list,
const QKeySequence key 
) [static]

Definition at line 556 of file q3accel.cpp.

References Q3PtrList< type >::first(), key, Q3AccelItem::key, and Q3PtrList< type >::next().

Referenced by Q3Accel::findKey().

00557 {
00558     register Q3AccelItem *item = list.first();
00559     while (item && !(item->key == key))
00560         item = list.next();
00561     return item;
00562 }

Here is the call graph for this function:

static int get_seq_id (  )  [static]

Definition at line 672 of file q3accel.cpp.

Referenced by Q3Accel::insertItem().

00673 {
00674     static int seq_no = -2;  // -1 is used as return value in findKey()
00675     return seq_no--;
00676 }

bool Q_COMPAT_EXPORT qt_dispatchAccelEvent ( QWidget w,
QKeyEvent e 
)

Definition at line 188 of file q3accel.cpp.

References Q3AccelManager::dispatchAccelEvent(), Q3AccelManager::self(), and w.

Referenced by QApplicationPrivate::QApplicationPrivate(), and Q3AccelManager::setFuncPtr().

00188                                                                      {
00189     return Q3AccelManager::self()->dispatchAccelEvent(w, e);
00190 }

Here is the call graph for this function:

void Q_COMPAT_EXPORT qt_set_accel_auto_shortcuts ( bool  b  ) 

Definition at line 211 of file q3accel.cpp.

References qt_accel_no_shortcuts.

00211 { qt_accel_no_shortcuts = b; }

bool Q_COMPAT_EXPORT qt_tryAccelEvent ( QWidget w,
QKeyEvent e 
)

Definition at line 184 of file q3accel.cpp.

References Q3AccelManager::self(), Q3AccelManager::tryAccelEvent(), and w.

Referenced by QApplicationPrivate::QApplicationPrivate(), and Q3AccelManager::setFuncPtr().

00184                                                                 {
00185     return Q3AccelManager::self()->tryAccelEvent(w, e);
00186 }

Here is the call graph for this function:

bool Q_COMPAT_EXPORT qt_tryComposeUnicode ( QWidget w,
QKeyEvent e 
)

Definition at line 192 of file q3accel.cpp.

References Q3AccelManager::self(), Q3AccelManager::tryComposeUnicode(), and w.

Referenced by QApplicationPrivate::QApplicationPrivate(), and Q3AccelManager::setFuncPtr().

00192                                                                     {
00193     return Q3AccelManager::self()->tryComposeUnicode(w, e);
00194 }

Here is the call graph for this function:


Variable Documentation

bool qt_accel_no_shortcuts = false [static]

Definition at line 209 of file q3accel.cpp.

Referenced by qt_set_accel_auto_shortcuts(), and Q3Accel::shortcutKey().


Generated on Thu Mar 15 14:02:58 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1