parts/distpart/distpart_part.cpp
Go to the documentation of this file.00001
#include "distpart_part.h"
00002
00003
#include <qwhatsthis.h>
00004
00005
#include <kiconloader.h>
00006
#include <klocale.h>
00007
#include <kdevgenericfactory.h>
00008
#include <kdebug.h>
00009
00010
#include "kdevcore.h"
00011
00012
#include "distpart_widget.h"
00013
#include "specsupport.h"
00014
#include "lsmsupport.h"
00015
00016 typedef KDevGenericFactory<DistpartPart> DistpartFactory;
00017
static const KAboutData data(
"kdevdistpart",
I18N_NOOP(
"Project Distribution && Publishing"),
"1.0");
00018 K_EXPORT_COMPONENT_FACTORY( libkdevdistpart,
DistpartFactory( &data ) )
00019
00020
DistpartPart::
DistpartPart(
QObject *parent, const
char *name, const
QStringList &)
00021 :
KDevPlugin("Distribution", "dist", parent, name ? name : "
DistpartPart") {
00022
00023
kdDebug(9007) <<
"DistpartPart::DistpartPart()" <<
endl;
00024 setInstance(DistpartFactory::instance());
00025
00026 setXMLFile(
"kdevpart_distpart.rc");
00027
00028 m_action =
new KAction( i18n(
"Project Distribution && Publishing"),
"package", 0,
00029
this, SLOT(show()),
00030 actionCollection(),
"make_dist" );
00031
00032 m_action->setStatusText(i18n(
"Make source and binary distribution"));
00033 m_action->setWhatsThis(i18n(
"<b>Project distribution && publishing</b><p>Helps users package and publish their software."));
00034
00035
00036 m_dialog =
new DistpartDialog(
this);
00037
00038
00039 RpmPackage =
new SpecSupport(
this);
00040
00041 }
00042
00043
00044 DistpartPart::~DistpartPart() {
00045
kdDebug(9007) <<
"DistpartPart::~DistpartPart()" <<
endl;
00046
delete m_dialog;
00047
delete RpmPackage;
00048
00049 }
00050
00051 DistpartDialog*
DistpartPart::getDlg() {
00052
return m_dialog;
00053 }
00054
00055 void DistpartPart::show() {
00056
m_dialog->show();
00057 }
00058
00059 void DistpartPart::hide() {
00060
m_dialog->hide();
00061 }
00062
00063
#include "distpart_part.moc"
This file is part of the documentation for KDevelop Version 3.0.4.