KDevelop API Documentation

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 //QWhatsThis::add(m_widget, i18n("This will help users package and publish their software.")); 00035 00036 m_dialog = new DistpartDialog(this); 00037 00038 // Package types 00039 RpmPackage = new SpecSupport(this); 00040 //LsmPackage = new LsmSupport(this); 00041 } 00042 00043 00044 DistpartPart::~DistpartPart() { 00045 kdDebug(9007) << "DistpartPart::~DistpartPart()" << endl; 00046 delete m_dialog; 00047 delete RpmPackage; 00048 //delete LsmPackage; 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"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:50 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003