# khtml Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kqeventutil.cpp

    00001 // -*- c++ -*-
    00002 /* This file is part of the KDE project
    00003  *
    00004  * Copyright (C) 2000 Wynn Wilkes <wynnw@caldera.com>
    00005  *               2002 Till Krech <till@snafu.de>
    00006  *
    00007  * This library is free software; you can redistribute it and/or
    00008  * modify it under the terms of the GNU Library General Public
    00009  * License as published by the Free Software Foundation; either
    00010  * version 2 of the License, or (at your option) any later version.
    00011  *
    00012  * This library is distributed in the hope that it will be useful,
    00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00015  * Library General Public License for more details.
    00016  *
    00017  * You should have received a copy of the GNU Library General Public License
    00018  * along with this library; see the file COPYING.LIB.  If not, write to
    00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00020  * Boston, MA 02111-1307, USA.
    00021  */
    00022 #include <qevent.h>
    00023 #include "kqeventutil.h"
    00024
    00025 QString KQEventUtil::getQtEventName( QEvent* e )
    00026 {
    00027     QString s;
    00028
    00029     switch( e->type() )
    00030     {
    00031         case QEvent::None:
    00032             s = "None";
    00033             break;
    00034         case QEvent::Timer:
    00035             s = "Timer";
    00036             break;
    00037         case QEvent::MouseButtonPress:
    00038             s = "MouseButtonPress";
    00039             break;
    00040         case QEvent::MouseButtonRelease:
    00041             s = "MouseButtonRelease";
    00042             break;
    00043         case QEvent::MouseButtonDblClick:
    00044             s = "MouseButtonClick";
    00045             break;
    00046         case QEvent::MouseMove:
    00047             s = "MouseMove";
    00048             break;
    00049         case QEvent::KeyPress:
    00050             s = "KeyPress";
    00051             break;
    00052         case QEvent::KeyRelease:
    00053             s = "KeyRelease";
    00054             break;
    00055         case QEvent::FocusIn:
    00056             s = "FocusIn";
    00057             break;
    00058         case QEvent::FocusOut:
    00059             s = "FocusOut";
    00060             break;
    00061         case QEvent::Enter:
    00062             s = "Enter";
    00063             break;
    00064         case QEvent::Leave:
    00065             s = "Leave";
    00066             break;
    00067         case QEvent::Paint:
    00068             s = "Paint";
    00069             break;
    00070         case QEvent::Move:
    00071             s = "Move";
    00072             break;
    00073         case QEvent::Resize:
    00074             s = "Resize";
    00075             break;
    00076         case QEvent::Create:
    00077             s = "Create";
    00078             break;
    00079         case QEvent::Destroy:
    00080             s = "Destroy";
    00081             break;
    00082         case QEvent::Show:
    00083             s = "Show";
    00084             break;
    00085         case QEvent::Hide:
    00086             s = "Hide";
    00087             break;
    00088         case QEvent::Close:
    00089             s = "Close";
    00090             break;
    00091         case QEvent::Quit:
    00092             s = "Quit";
    00093             break;
    00094         case QEvent::Reparent:
    00095             s = "Reparent";
    00096             break;
    00097         case QEvent::ShowMinimized:
    00098             s = "ShowMinimized";
    00099             break;
    00100         case QEvent::ShowNormal:
    00101             s = "ShowNormal";
    00102             break;
    00103         case QEvent::WindowActivate:
    00104             s = "WindowActivate";
    00105             break;
    00106         case QEvent::WindowDeactivate:
    00107             s = "WindowDeactivate";
    00108             break;
    00109         case QEvent::ShowToParent:
    00110             s = "ShowToParent";
    00111             break;
    00112         case QEvent::HideToParent:
    00113             s = "HideToParent";
    00114             break;
    00115         case QEvent::ShowMaximized:
    00116             s = "ShowMaximized";
    00117             break;
    00118         case QEvent::Accel:
    00119             s = "Accel";
    00120             break;
    00121         case QEvent::Wheel:
    00122             s = "Wheel";
    00123             break;
    00124         case QEvent::AccelAvailable:
    00125             s = "AccelAvailable";
    00126             break;
    00127         case QEvent::CaptionChange:
    00128             s = "CaptionChange";
    00129             break;
    00130         case QEvent::IconChange:
    00131             s = "IconChange";
    00132             break;
    00133         case QEvent::ParentFontChange:
    00134             s = "ParentFontChange";
    00135             break;
    00136         case QEvent::ApplicationFontChange:
    00137             s = "ApplicationFontChange";
    00138             break;
    00139         case QEvent::ParentPaletteChange:
    00140             s = "ParentPaletteChange";
    00141             break;
    00142         case QEvent::ApplicationPaletteChange:
    00143             s = "ApplicationPaletteChange";
    00144             break;
    00145         case QEvent::Clipboard:
    00146             s = "Clipboard";
    00147             break;
    00148         case QEvent::Speech:
    00149             s = "Speech";
    00150             break;
    00151         case QEvent::SockAct:
    00152             s = "SockAct";
    00153             break;
    00154         case QEvent::AccelOverride:
    00155             s = "AccelOverride";
    00156             break;
    00157         case QEvent::DragEnter:
    00158             s = "DragEnter";
    00159             break;
    00160         case QEvent::DragMove:
    00161             s = "DragMove";
    00162             break;
    00163         case QEvent::DragLeave:
    00164             s = "DragLeave";
    00165             break;
    00166         case QEvent::Drop:
    00167             s = "Drop";
    00168             break;
    00169         case QEvent::DragResponse:
    00170             s = "DragResponse";
    00171             break;
    00172         case QEvent::ChildInserted:
    00173             s = "ChildInserted";
    00174             break;
    00175         case QEvent::ChildRemoved:
    00176             s = "ChildRemoved";
    00177             break;
    00178         case QEvent::LayoutHint:
    00179             s = "LayoutHint";
    00180             break;
    00181         case QEvent::ShowWindowRequest:
    00182             s = "ShowWindowRequest";
    00183             break;
    00184         case QEvent::ActivateControl:
    00185             s = "ActivateControl";
    00186             break;
    00187         case QEvent::DeactivateControl:
    00188             s = "DeactivateControl";
    00189             break;
    00190         case QEvent::User:
    00191             s = "User Event";
    00192             break;
    00193
    00194         default:
    00195             s = "Undefined Event, value = " + QString::number( e->type() );
    00196             break;
    00197     }
    00198
    00199     return s;
    00200 }

This file is part of the documentation for khtml Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:33:19 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003