kate Library API Documentation

kateconsole.h

00001 /* This file is part of the KDE project 00002 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org> 00003 Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org> 00004 Copyright (C) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License version 2 as published by the Free Software Foundation. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef __KATE_CONSOLE_H__ 00022 #define __KATE_CONSOLE_H__ 00023 00024 #include "katemain.h" 00025 #include "../interfaces/viewmanager.h" 00026 00027 #include <qwidget.h> 00028 #include <kparts/part.h> 00029 00030 class KateConsole : public QWidget 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 KateConsole (QWidget* parent, const char* name, Kate::ViewManager *); 00036 ~KateConsole (); 00037 00038 void cd (KURL url=0L); 00039 00040 protected: 00041 void focusInEvent( QFocusEvent * ) { if (part) part->widget()->setFocus(); }; 00042 virtual void showEvent(QShowEvent *); 00043 00044 private: 00045 KParts::ReadOnlyPart *part; 00046 QVBoxLayout* lo; 00047 Kate::ViewManager *m_kvm; 00048 00049 public slots: 00050 void loadConsoleIfNeeded(); 00051 00052 00053 // Only needed for Konsole 00054 private slots: 00055 void notifySize (int,int) {}; 00056 void changeColumns (int) {}; 00057 void changeTitle(int,const QString&) {}; 00058 00059 void slotDestroyed (); 00060 }; 00061 00062 #endif
KDE Logo
This file is part of the documentation for kate Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Aug 31 00:02:09 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003