1
/***************************************************************************
2
* Copyright (C) 2003 by KDevelop Authors *
3
* kdevelop-devel@kde.org *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
10
***************************************************************************/
12
#include "konsoleviewpart.h"
14
#include <qwhatsthis.h>
16
#include <kdevgenericfactory.h>
17
#include <kiconloader.h>
21
#include "kdevmainwindow.h"
22
#include "kdevplugininfo.h"
24
#include "konsoleviewwidget.h"
27
static const KDevPluginInfo data("kdevkonsoleview");
28
K_EXPORT_COMPONENT_FACTORY( libkdevkonsoleview, KDevGenericFactory<KonsoleViewPart>( data ) )
30
KonsoleViewPart::KonsoleViewPart(QObject *parent, const char *name, const QStringList &)
31
: KDevPlugin(&data, parent, name ? name : "KonsoleViewPart")
33
m_widget = new KonsoleViewWidget(this);
35
QWhatsThis::add(m_widget, i18n("<b>Konsole</b><p>"
36
"This window contains an embedded konsole window. It will try to follow you when "
37
"you navigate in the source directories")
40
m_widget->setIcon( SmallIcon("konsole") );
41
m_widget->setCaption(i18n("Konsole"));
43
mainWindow()->embedOutputView(m_widget, i18n("Konsole"), i18n("Embedded console window"));
47
KonsoleViewPart::~KonsoleViewPart()
50
mainWindow()->removeView( m_widget );
55
#include "konsoleviewpart.moc"