KDevelop API Documentation

gdbtable.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002 *   Copyright (C) 2003 by Alexander Dymo                                  *
00003 *   cloudtemple@mksat.net                                                 *
00004 *                                                                         *
00005 *   This program is free software; you can redistribute it and/or modify  *
00006 *   it under the terms of the GNU General Public License as published by  *
00007 *   the Free Software Foundation; either version 2 of the License, or     *
00008 *   (at your option) any later version.                                   *
00009 ***************************************************************************/
00010 #include "gdbtable.h"
00011 
00012 namespace GDBDebugger {
00013 
00014 GDBTable::GDBTable(QWidget *parent, const char *name)
00015  : QTable(parent, name)
00016 {
00017 }
00018 
00019 GDBTable::GDBTable(int nr, int nc, QWidget * parent, const char * name)
00020  : QTable(nr, nc, parent, name)
00021 {
00022 }
00023 
00024 GDBTable::~GDBTable()
00025 {
00026 }
00027 
00028 void GDBTable::keyPressEvent( QKeyEvent * e )
00029 {
00030     emit keyPressed(e->key());
00031 
00032     if (e->key() == Key_Return)
00033         emit returnPressed();
00034     else if (e->key() == Key_F2)
00035         emit f2Pressed();
00036     else if ((e->text() == QString("a")) && (e->state() == AltButton))
00037     {
00038         emit insertPressed();
00039         return;
00040     }
00041     else if ((e->text() == QString("A")) && (e->state() == AltButton))
00042     {
00043         emit insertPressed();
00044         return;
00045     }
00046     else if (e->key() == Key_Delete)
00047         emit deletePressed();
00048 
00049     QTable::keyPressEvent(e);
00050 }
00051 
00052 }
00053 
00054 #include "gdbtable.moc"
00055 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:29 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003