parts/konsole/konsoleviewwidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by KDevelop Authors * 00003 * kdevelop-devel@kde.org * 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 ***************************************************************************/ 00011 00012 #ifndef __KONSOLEVIEWWIDGET_H__ 00013 #define __KONSOLEVIEWWIDGET_H__ 00014 00015 00016 #include <qwidget.h> 00017 #include <qstring.h> 00018 00019 00020 class KDevProject; 00021 class KonsoleWidgetPrivate; 00022 class KonsoleViewPart; 00023 namespace KParts { 00024 class ReadOnlyPart; 00025 class Part; 00026 } 00027 class QVBoxLayout; 00028 00029 00030 class KonsoleViewWidget : public QWidget 00031 { 00032 Q_OBJECT 00033 public: 00034 KonsoleViewWidget(KonsoleViewPart *part); 00035 virtual ~KonsoleViewWidget(); 00036 00037 virtual void show(); 00038 00039 public slots: 00040 void setDirectory(const KURL &dirUrl); 00041 00042 private slots: 00043 void activePartChanged(KParts::Part *activatedPart); 00044 void partDestroyed(); 00045 00046 private: 00047 void activate(); 00048 00049 KParts::ReadOnlyPart *part; 00050 QVBoxLayout *vbox; 00051 KonsoleViewPart *owner; 00052 }; 00053 00054 00055 #endif