Документ взят из кэша поисковой машины. Адрес оригинального документа : http://rtm-cs.sinp.msu.ru/manual/qt/qaccel-h.html
Дата изменения: Sun Jul 12 02:58:57 1998
Дата индексирования: Mon Oct 1 20:09:39 2012
Кодировка:
Qt Toolkit - qaccel.h include file Qt logo

qaccel.h


This is the verbatim text of the qaccel.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.
/****************************************************************************
** $Id: qaccel.h,v 2.8 1998/07/03 00:09:29 hanord Exp $
**
** Definition of QAccel class
**
** Created : 950419
**
** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
**
** This file is part of Qt Free Edition, version 1.40.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms, or http://www.troll.no/free-license.html.
**
** IMPORTANT NOTE: You may NOT copy this file or any part of it into
** your own programs or libraries.
**
** Please see http://www.troll.no/pricing.html for information about 
** Qt Professional Edition, which is this same library but with a
** license which allows creation of commercial/proprietary software.
**
*****************************************************************************/

#ifndef QACCEL_H
#define QACCEL_H

#ifndef QT_H
#include "qobject.h"
#include "qkeycode.h"
#endif // QT_H


class QAccelList;                               // internal class


class QAccel : public QObject                   // accelerator class
{
    Q_OBJECT
public:
    QAccel( QWidget *parent, const char *name=0 );
   ~QAccel();

    bool        isEnabled() const;
    void        setEnabled( bool );

    uint        count() const;

    int         insertItem( int key, int id=-1 );
    void        removeItem( int id );
    void        clear();

    int         key( int id );
    int         findKey( int key ) const;

    bool        isItemEnabled( int id )  const;
    void        setItemEnabled( int id, bool enable );

    bool        connectItem( int id,
                             const QObject *receiver, const char *member );
    bool        disconnectItem( int id,
                                const QObject *receiver, const char *member );

    void        repairEventFilter();

signals:
    void        activated( int id );

protected:
    bool        eventFilter( QObject *, QEvent * );

private slots:
    void        tlwDestroyed();

private:
    QAccelList *aitems;
    bool        enabled;
    QWidget    *tlw;

private:        // Disabled copy constructor and operator=
    QAccel( const QAccel & );
    QAccel &operator=( const QAccel & );
};


inline bool QAccel::isEnabled() const
{
    return enabled;
}


#endif // QACCEL_H


Copyright © 1998 Troll TechTrademarks
Qt version 1.40