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., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __KATE_CONSOLE_H__
00022 #define __KATE_CONSOLE_H__
00023 
00024 #include "katemain.h"
00025 
00026 #include <kurl.h>
00027 
00028 #include <qvbox.h>
00029 
00030 namespace KParts {
00031   class ReadOnlyPart;
00032 }
00033 
00034 namespace KateMDI {
00035   class ToolView;
00036 }
00037 
00038 class KateMainWindow;
00039 
00045 class KateConsole : public QVBox
00046 {
00047   Q_OBJECT
00048 
00049   public:
00055     KateConsole (KateMainWindow *mw, KateMDI::ToolView* parent);
00056 
00060     ~KateConsole ();
00061 
00066     void cd (const KURL &url);
00067 
00072     void sendInput( const QString& text );
00073 
00074   public slots:
00078     void slotPipeToConsole ();
00079 
00080   private slots:
00085     void slotDestroyed ();
00086 
00090     void loadConsoleIfNeeded();
00091 
00092   protected:
00097     void showEvent(QShowEvent *ev);
00098 
00099   private:
00103     KParts::ReadOnlyPart *m_part;
00104 
00108     KateMainWindow *m_mw;
00109 
00113     KateMDI::ToolView *m_toolView;
00114 };
00115 
00116 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys