summaryrefslogtreecommitdiffstats
path: root/parts/distpart
diff options
context:
space:
mode:
Diffstat (limited to 'parts/distpart')
-rw-r--r--parts/distpart/distpart_part.cpp12
-rw-r--r--parts/distpart/distpart_part.h8
-rw-r--r--parts/distpart/distpart_widget.cpp246
-rw-r--r--parts/distpart/distpart_widget.h142
-rw-r--r--parts/distpart/lsmsupport.cpp2
-rw-r--r--parts/distpart/lsmsupport.h2
-rw-r--r--parts/distpart/packagebase.cpp54
-rw-r--r--parts/distpart/packagebase.h86
-rw-r--r--parts/distpart/specsupport.cpp132
-rw-r--r--parts/distpart/specsupport.h14
10 files changed, 349 insertions, 349 deletions
diff --git a/parts/distpart/distpart_part.cpp b/parts/distpart/distpart_part.cpp
index badd4782..77e69705 100644
--- a/parts/distpart/distpart_part.cpp
+++ b/parts/distpart/distpart_part.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include "distpart_part.h"
-#include <qwhatsthis.h>
+#include <tqwhatsthis.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -37,7 +37,7 @@ typedef KDevGenericFactory<DistpartPart> DistpartFactory;
static const KDevPluginInfo data("kdevdistpart");
K_EXPORT_COMPONENT_FACTORY( libkdevdistpart, DistpartFactory( data ) )
-DistpartPart::DistpartPart(QObject *parent, const char *name, const QStringList &)
+DistpartPart::DistpartPart(TQObject *parent, const char *name, const TQStringList &)
: KDevPlugin(&data, parent, name ? name : "DistpartPart") {
kdDebug(9007) << "DistpartPart::DistpartPart()" << endl;
@@ -46,20 +46,20 @@ DistpartPart::DistpartPart(QObject *parent, const char *name, const QStringList
setXMLFile("kdevpart_distpart.rc");
m_action = new KAction( i18n("Distribution && Publishing"), "package", 0,
- this, SLOT(show()),
+ this, TQT_SLOT(show()),
actionCollection(), "make_dist" );
m_action->setToolTip(i18n("Make source and binary distribution"));
m_action->setWhatsThis(i18n("<b>Project distribution & publishing</b><p>Helps users package and publish their software."));
- //QWhatsThis::add(m_widget, i18n("This will help users package and publish their software."));
+ //TQWhatsThis::add(m_widget, i18n("This will help users package and publish their software."));
m_dlg = new KDialogBase( 0 , "dist_part", false, i18n("Distribution & Publishing"), KDialogBase::Ok|KDialogBase::Cancel);
m_dialog = new DistpartDialog(this, m_dlg );
m_dlg->setMainWidget(m_dialog);
- connect( m_dlg, SIGNAL(okClicked()), m_dialog, SLOT(slotokayPushButtonPressed()));
- connect( m_dlg, SIGNAL(cancelClicked()), m_dialog, SLOT(slotcancelPushButtonPressed()));
+ connect( m_dlg, TQT_SIGNAL(okClicked()), m_dialog, TQT_SLOT(slotokayPushButtonPressed()));
+ connect( m_dlg, TQT_SIGNAL(cancelClicked()), m_dialog, TQT_SLOT(slotcancelPushButtonPressed()));
// Package types
//RpmPackage = new SpecSupport(this);
//LsmPackage = new LsmSupport(this);
diff --git a/parts/distpart/distpart_part.h b/parts/distpart/distpart_part.h
index 562974e0..d380d4fd 100644
--- a/parts/distpart/distpart_part.h
+++ b/parts/distpart/distpart_part.h
@@ -23,7 +23,7 @@
#define __KDEVPART_DISTPART_H__
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kdevplugin.h>
#include <kaction.h>
@@ -37,7 +37,7 @@ class DistpartPart : public KDevPlugin {
public:
- DistpartPart(QObject *parent, const char *name, const QStringList &);
+ DistpartPart(TQObject *parent, const char *name, const TQStringList &);
~DistpartPart();
public slots:
@@ -46,9 +46,9 @@ public slots:
private:
packageBase *RpmPackage, *LsmPackage;
- QGuardedPtr<DistpartDialog> m_dialog;
+ TQGuardedPtr<DistpartDialog> m_dialog;
KAction *m_action;
- QGuardedPtr<KDialogBase> m_dlg;
+ TQGuardedPtr<KDialogBase> m_dlg;
};
diff --git a/parts/distpart/distpart_widget.cpp b/parts/distpart/distpart_widget.cpp
index 7942776a..eebbbe36 100644
--- a/parts/distpart/distpart_widget.cpp
+++ b/parts/distpart/distpart_widget.cpp
@@ -33,61 +33,61 @@
#include <kmessagebox.h>
#include <kdevcore.h>
-#include <qgroupbox.h>
-#include <qlayout.h>
-#include <qnetwork.h>
-#include <qurloperator.h>
-#include <qmessagebox.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
+#include <tqnetwork.h>
+#include <tqurloperator.h>
+#include <tqmessagebox.h>
#include "distpart_part.h"
-#include <qdir.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qstringlist.h>
-#include <qtabwidget.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqstringlist.h>
+#include <tqtabwidget.h>
#include "kdevmakefrontend.h"
#include <kprogress.h>
-#include <qerrormessage.h>
+#include <tqerrormessage.h>
#include "specsupport.h"
#include "lsmsupport.h"
-DistpartDialog::DistpartDialog(DistpartPart *part, QWidget *parent)
+DistpartDialog::DistpartDialog(DistpartPart *part, TQWidget *parent)
:distpart_ui(parent, "dist_widget"), m_part(part) {
m_spec = new SpecSupport(m_part);
- connect( customProjectCheckBox, SIGNAL(toggled(bool) ),
- this, SLOT(slotcustomProjectCheckBoxChanged()));
- connect( uploadCustomCheckBox, SIGNAL(toggled(bool)),
- this, SLOT(slotuploadCustomCheckBoxChanged()));
-
-// connect( okayPushButton, SIGNAL(clicked()),
-// this, SLOT(slotokayPushButtonPressed()));
-// connect( cancelPushButton, SIGNAL(clicked()),
-// this, SLOT(slotcancelPushButtonPressed()));
-/* connect(help_PushButton, SIGNAL(clicked()),
- this, SLOT(slothelp_PushButtonPressed()));*/
- connect( createSrcArchPushButton, SIGNAL(clicked()),
- this, SLOT(slotcreateSrcArchPushButtonPressed()));
- connect( resetSrcPushButton, SIGNAL(clicked()),
- this, SLOT(slotresetSrcPushButtonPressed()));
-
- connect( genHTMLPushButton, SIGNAL(clicked()),
- this, SLOT(slotgenHTMLPushButtonPressed()));
- connect( resetHTMLPushButton, SIGNAL(clicked()),
- this, SLOT(slotresetHTMLPushButtonPressed()));
- connect( uploadSubmitPushButton, SIGNAL(clicked()),
- this, SLOT(slotuploadSubmitPushButtonPressed()));
- connect( uploadResetPushButton, SIGNAL(clicked()),
- this, SLOT(slotuploadResetPushButtonPressed()));
- connect( uploadAddFileToolButton, SIGNAL(clicked()),
- this, SLOT(slotuploadAddFileToolButtonPressed()));
- connect( uploadRemoveToolButton, SIGNAL(clicked()),
- this, SLOT(slotuploadRemoveToolButtonPressed()));
- connect ( srcDistFileListBox, SIGNAL(clicked(QListBoxItem *item)), this, SLOT(slotRemoveFile(QListBoxItem *item)));
-// connect( buildAllPushButton, SIGNAL( clicked() ), this, SLOT( slotbuildAllPushButtonPressed() ));
-// connect( exportSPECPushButton, SIGNAL( clicked() ), this, SLOT( slotexportSPECPushButtonPressed( ) ) );
-// connect( srcPackagePushButton, SIGNAL( clicked() ), this, SLOT( slotsrcPackagePushButtonPressed() ) );
-// connect( importSPECPushButton, SIGNAL( clicked() ), this, SLOT( slotimportSPECPushButtonPressed() ) );
+ connect( customProjectCheckBox, TQT_SIGNAL(toggled(bool) ),
+ this, TQT_SLOT(slotcustomProjectCheckBoxChanged()));
+ connect( uploadCustomCheckBox, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotuploadCustomCheckBoxChanged()));
+
+// connect( okayPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotokayPushButtonPressed()));
+// connect( cancelPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotcancelPushButtonPressed()));
+/* connect(help_PushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slothelp_PushButtonPressed()));*/
+ connect( createSrcArchPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotcreateSrcArchPushButtonPressed()));
+ connect( resetSrcPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotresetSrcPushButtonPressed()));
+
+ connect( genHTMLPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotgenHTMLPushButtonPressed()));
+ connect( resetHTMLPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotresetHTMLPushButtonPressed()));
+ connect( uploadSubmitPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadSubmitPushButtonPressed()));
+ connect( uploadResetPushButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadResetPushButtonPressed()));
+ connect( uploadAddFileToolButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadAddFileToolButtonPressed()));
+ connect( uploadRemoveToolButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotuploadRemoveToolButtonPressed()));
+ connect ( srcDistFileListBox, TQT_SIGNAL(clicked(TQListBoxItem *item)), this, TQT_SLOT(slotRemoveFile(TQListBoxItem *item)));
+// connect( buildAllPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotbuildAllPushButtonPressed() ));
+// connect( exportSPECPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotexportSPECPushButtonPressed( ) ) );
+// connect( srcPackagePushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotsrcPackagePushButtonPressed() ) );
+// connect( importSPECPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotimportSPECPushButtonPressed() ) );
loadSettings();
@@ -103,39 +103,39 @@ DistpartDialog::DistpartDialog(DistpartPart *part, QWidget *parent)
DistpartDialog::~DistpartDialog() {
}
-// QPushButton* okayPushButton;
+// TQPushButton* okayPushButton;
void DistpartDialog::slotokayPushButtonPressed() {
storeSettings();
// accept();
}
-// QPushButton* cancelPushButton;
+// TQPushButton* cancelPushButton;
void DistpartDialog::slotcancelPushButtonPressed() {
// reject();
}
-// QPushButton* help_PushButton;
+// TQPushButton* help_PushButton;
/*void DistpartDialog::slothelp_PushButtonPressed() {
- QMessageBox::about(this,i18n("Distpart Help"),i18n("In order to build a RPM package :\n\t1) Create a source archive\n\t2) Generate a SPEC File\n\t3) Build the package"));
+ TQMessageBox::about(this,i18n("Distpart Help"),i18n("In order to build a RPM package :\n\t1) Create a source archive\n\t2) Generate a SPEC File\n\t3) Build the package"));
}*/
-// QPushButton* createSrcArchPushButton;
+// TQPushButton* createSrcArchPushButton;
void DistpartDialog::slotcreateSrcArchPushButtonPressed() {
kdDebug() << "Starting archive..." << endl;
- QString dist = (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? "application/x-bzip2" : "application/x-gzip";
+ TQString dist = (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? "application/x-bzip2" : "application/x-gzip";
- QString filename = m_part->project()->projectDirectory() + "/" + getSourceName();
+ TQString filename = m_part->project()->projectDirectory() + "/" + getSourceName();
KTar tar(filename, dist);
if ( tar.open(IO_WriteOnly) )
{
- //QStringList files = m_part->project()->distFiles();
+ //TQStringList files = m_part->project()->distFiles();
KProgressDialog *prog = new KProgressDialog( 0, "dialog", i18n("Building Package"), "", true );
prog->show();
for( uint idx = 0; idx < srcDistFileListBox->numRows(); ++idx)
{
- QString file = srcDistFileListBox->text(idx);
+ TQString file = srcDistFileListBox->text(idx);
if ( !tar.addLocalFile( m_part->project()->projectDirectory() + "/" + file, getappNameFormatLineEditText() + "/" + file) )
{
kdDebug() << "Failed to write file " << file << endl;
@@ -159,7 +159,7 @@ void DistpartDialog::slotcreateSrcArchPushButtonPressed() {
}
-// QPushButton* resetSrcPushButton;
+// TQPushButton* resetSrcPushButton;
void DistpartDialog::slotresetSrcPushButtonPressed() {
srcDistFileListBox->clear();
loadSettings();
@@ -167,24 +167,24 @@ void DistpartDialog::slotresetSrcPushButtonPressed() {
-// QPushButton* genHTMLPushButton;
+// TQPushButton* genHTMLPushButton;
void DistpartDialog::slotgenHTMLPushButtonPressed() {}
-// QPushButton* resetHTMLPushButton;
+// TQPushButton* resetHTMLPushButton;
void DistpartDialog::slotresetHTMLPushButtonPressed() {}
-// QToolButton* uploadAddFileToolButton;
+// TQToolButton* uploadAddFileToolButton;
void DistpartDialog::slotuploadAddFileToolButtonPressed() {
uploadFileListBox->insertStringList(KFileDialog::getOpenFileNames());
}
-// QToolButton* uploadRemoveToolButton;
+// TQToolButton* uploadRemoveToolButton;
void DistpartDialog::slotuploadRemoveToolButtonPressed() {
for(unsigned int i=0; i< uploadFileListBox->count(); i++)
if ( uploadFileListBox->isSelected(i)) uploadFileListBox->removeItem(i);
}
-// QPushButton* uploadSubmitPushButton;
+// TQPushButton* uploadSubmitPushButton;
void DistpartDialog::slotuploadSubmitPushButtonPressed() {
if(getuploadftpkdeorgCheckBoxState() || getuploadAppsKDEcomCheckBoxState())
@@ -192,11 +192,11 @@ void DistpartDialog::slotuploadSubmitPushButtonPressed() {
else {
for(unsigned int i=0; i< uploadFileListBox->count(); i++)
KIO::NetAccess::copy(KURL::fromPathOrURL( uploadFileListBox->text(i) ),
- KURL::fromPathOrURL( getuploadURLLineEditText() + uploadFileListBox->text(i).replace(QRegExp("[^/]*/"),"") ));
+ KURL::fromPathOrURL( getuploadURLLineEditText() + uploadFileListBox->text(i).replace(TQRegExp("[^/]*/"),"") ));
}
}
-// QPushButton* uploadResetPushButton;
+// TQPushButton* uploadResetPushButton;
void DistpartDialog::slotuploadResetPushButtonPressed() {
uploadFileListBox->clear();
}
@@ -205,7 +205,7 @@ void DistpartDialog::slotuploadResetPushButtonPressed() {
// accessors and mutators
-// QCheckBox* customProjectCheckBox;
+// TQCheckBox* customProjectCheckBox;
void DistpartDialog::slotcustomProjectCheckBoxChanged() {
kdDebug () << "New State" << customProjectCheckBox->isChecked() << endl;
sourceOptionsGroupBox->setEnabled( customProjectCheckBox->isChecked());
@@ -219,7 +219,7 @@ void DistpartDialog::setcustomProjectCheckBoxState(bool state) {
customProjectCheckBox->setChecked(state);
}
-// QCheckBox* uploadCustomCheckBox;
+// TQCheckBox* uploadCustomCheckBox;
void DistpartDialog::slotuploadCustomCheckBoxChanged() {
uploadURLLineEdit->setEnabled( uploadCustomCheckBox->isChecked());
}
@@ -234,7 +234,7 @@ void DistpartDialog::setuploadCustomCheckBoxState(bool state) {
// Add accessors and mutators for the following
-// QCheckBox* bzipCheckBox;
+// TQCheckBox* bzipCheckBox;
bool DistpartDialog::getbzipCheckBoxState() {
return bzipCheckBox->isChecked();
}
@@ -243,7 +243,7 @@ void DistpartDialog::setbzipCheckBoxState(bool state) {
bzipCheckBox->setChecked(state);
}
-// QCheckBox* appIconCheckBox;
+// TQCheckBox* appIconCheckBox;
bool DistpartDialog::getappIconCheckBoxState() {
return appIconCheckBox->isChecked();
}
@@ -252,7 +252,7 @@ void DistpartDialog::setappIconCheckBoxState(bool state) {
appIconCheckBox->setChecked(state);
}
-// QCheckBox* genHTMLCheckBox;
+// TQCheckBox* genHTMLCheckBox;
bool DistpartDialog::getgenHTMLCheckBoxState() {
return genHTMLCheckBox->isChecked();
}
@@ -261,7 +261,7 @@ void DistpartDialog::setgenHTMLCheckBoxState(bool state) {
genHTMLCheckBox->setChecked(state);
}
-// QCheckBox* useRPMInfoCheckBox;
+// TQCheckBox* useRPMInfoCheckBox;
bool DistpartDialog::getuseRPMInfoCheckBoxState() {
return useRPMInfoCheckBox->isChecked();
}
@@ -270,7 +270,7 @@ void DistpartDialog::setuseRPMInfoCheckBoxState(bool state) {
useRPMInfoCheckBox->setChecked(state);
}
-// QCheckBox* uploadAppsKDEcomCheckBox;
+// TQCheckBox* uploadAppsKDEcomCheckBox;
bool DistpartDialog::getuploadAppsKDEcomCheckBoxState() {
return uploadAppsKDEcomCheckBox->isChecked();
}
@@ -279,7 +279,7 @@ void DistpartDialog::setuploadAppsKDEcomCheckBoxState(bool state) {
uploadAppsKDEcomCheckBox->setChecked(state);
}
-// QCheckBox* uploadftpkdeorgCheckBox;
+// TQCheckBox* uploadftpkdeorgCheckBox;
bool DistpartDialog::getuploadftpkdeorgCheckBoxState() {
return uploadftpkdeorgCheckBox->isChecked();
}
@@ -288,7 +288,7 @@ void DistpartDialog::setuploadftpkdeorgCheckBoxState(bool state) {
uploadftpkdeorgCheckBox->setChecked(state);
}
-// QCheckBox* devPackageCheckBox;
+// TQCheckBox* devPackageCheckBox;
bool DistpartDialog::getdevPackageCheckBoxState() {
return devPackageCheckBox->isChecked();
}
@@ -297,7 +297,7 @@ void DistpartDialog::setdevPackageCheckBoxState(bool state) {
devPackageCheckBox->setChecked(state);
}
-// QCheckBox* docsPackageCheckBox;
+// TQCheckBox* docsPackageCheckBox;
bool DistpartDialog::getdocsPackageCheckBoxState() {
return docsPackageCheckBox->isChecked();
}
@@ -306,98 +306,98 @@ void DistpartDialog::setdocsPackageCheckBoxState(bool state) {
docsPackageCheckBox->setChecked(state);
}
-// QLineEdit* archNameFormatLineEdit;
-QString DistpartDialog::getarchNameFormatLineEditText() {
+// TQLineEdit* archNameFormatLineEdit;
+TQString DistpartDialog::getarchNameFormatLineEditText() {
return archNameFormatLineEdit->text();
}
-void DistpartDialog::setarchNameFormatLineEditText(QString text) {
+void DistpartDialog::setarchNameFormatLineEditText(TQString text) {
archNameFormatLineEdit->setText(text);
}
-// QLineEdit* appNameLineEdit;
-QString DistpartDialog::getappNameFormatLineEditText() {
+// TQLineEdit* appNameLineEdit;
+TQString DistpartDialog::getappNameFormatLineEditText() {
return appNameLineEdit->text();
}
-void DistpartDialog::setappNameFormatLineEditText(QString text) {
+void DistpartDialog::setappNameFormatLineEditText(TQString text) {
appNameLineEdit->setText(text);
}
-// QLineEdit* summaryLineEdit;
-QString DistpartDialog::getsummaryLineEditText() {
+// TQLineEdit* summaryLineEdit;
+TQString DistpartDialog::getsummaryLineEditText() {
return summaryLineEdit->text();
}
-void DistpartDialog::setsummaryLineEditText(QString text) {
+void DistpartDialog::setsummaryLineEditText(TQString text) {
summaryLineEdit->setText(text);
}
-// QLineEdit* groupLineEdit;
-QString DistpartDialog::getgroupLineEditText() {
+// TQLineEdit* groupLineEdit;
+TQString DistpartDialog::getgroupLineEditText() {
return groupLineEdit->text();
}
-void DistpartDialog::setgroupLineEditText(QString text) {
+void DistpartDialog::setgroupLineEditText(TQString text) {
groupLineEdit->setText(text);
}
-// QLineEdit* releaseLineEdit;
-QString DistpartDialog::getreleaseLineEditText() {
+// TQLineEdit* releaseLineEdit;
+TQString DistpartDialog::getreleaseLineEditText() {
return releaseLineEdit->text();
}
-void DistpartDialog::setreleaseLineEditText(QString text) {
+void DistpartDialog::setreleaseLineEditText(TQString text) {
releaseLineEdit->setText(text);
}
-// QLineEdit* VersionLineEdit;
-QString DistpartDialog::getversionLineEditText() {
+// TQLineEdit* VersionLineEdit;
+TQString DistpartDialog::getversionLineEditText() {
return versionLineEdit->text();
}
-void DistpartDialog::setversionLineEditText(QString text) {
+void DistpartDialog::setversionLineEditText(TQString text) {
versionLineEdit->setText( text );
}
-// QLineEdit* VendorLineEdit;
-QString DistpartDialog::getvendorLineEditText() {
+// TQLineEdit* VendorLineEdit;
+TQString DistpartDialog::getvendorLineEditText() {
return vendorLineEdit->text();
}
-void DistpartDialog::setvendorLineEditText(QString text) {
+void DistpartDialog::setvendorLineEditText(TQString text) {
vendorLineEdit->setText(text);
}
-// QLineEdit* LicenseLineEdit;
-QString DistpartDialog::getlicenseLineEditText() {
+// TQLineEdit* LicenseLineEdit;
+TQString DistpartDialog::getlicenseLineEditText() {
return licenseLineEdit->text();
}
-void DistpartDialog::setlicenseLineEditText(QString text) {
+void DistpartDialog::setlicenseLineEditText(TQString text) {
licenseLineEdit->setText(text);
}
-// QLineEdit* uploadURLLineEdit;
-QString DistpartDialog::getuploadURLLineEditText() {
+// TQLineEdit* uploadURLLineEdit;
+TQString DistpartDialog::getuploadURLLineEditText() {
return uploadURLLineEdit->text();
}
-void DistpartDialog::setuploadURLLineEditText(QString text) {
+void DistpartDialog::setuploadURLLineEditText(TQString text) {
uploadURLLineEdit->setText(text);
}
-// QLineEdit* PackagerLineEdit;
-QString DistpartDialog::getpackagerLineEditText() {
+// TQLineEdit* PackagerLineEdit;
+TQString DistpartDialog::getpackagerLineEditText() {
return packagerLineEdit->text();
}
-void DistpartDialog::setpackagerLineEditText(QString text) {
+void DistpartDialog::setpackagerLineEditText(TQString text) {
packagerLineEdit->setText(text);
}
-// QComboBox* archComboBox;
-QString DistpartDialog::getarchComboBoxText() {
+// TQComboBox* archComboBox;
+TQString DistpartDialog::getarchComboBoxText() {
return archComboBox->currentText();
}
@@ -409,8 +409,8 @@ void DistpartDialog::setarchComboBoxItem(int item) {
archComboBox->setCurrentItem( item );
}
-// QListBox* uploadFileListBox;
-QString DistpartDialog::getuploadFileListBoxText() {
+// TQListBox* uploadFileListBox;
+TQString DistpartDialog::getuploadFileListBoxText() {
return uploadFileListBox->currentText();
}
@@ -422,8 +422,8 @@ void DistpartDialog::setuploadFileListBoxItem(int item) {
uploadFileListBox->setCurrentItem( item);
}
-// QListBox* srcDistFileListBox;
-QString DistpartDialog::getsrcDistFileListBoxText() {
+// TQListBox* srcDistFileListBox;
+TQString DistpartDialog::getsrcDistFileListBoxText() {
return srcDistFileListBox->currentText ();
}
@@ -435,33 +435,33 @@ void DistpartDialog::setsrcDistFileListBoxItem(int item) {
srcDistFileListBox->setCurrentItem( item );
}
-// QMultiLineEdit* projectDescriptionMultilineEdit;
-QString DistpartDialog::getprojectDescriptionMultilineEditText() {
+// TQMultiLineEdit* projectDescriptionMultilineEdit;
+TQString DistpartDialog::getprojectDescriptionMultilineEditText() {
return projectDescriptionMultilineEdit->text();
}
-void DistpartDialog::setprojectDescriptionMultilineEditText(QString text) {
+void DistpartDialog::setprojectDescriptionMultilineEditText(TQString text) {
projectDescriptionMultilineEdit->setText(text);
}
-QString DistpartDialog::getprojectChangelogMultilineEditText() {
+TQString DistpartDialog::getprojectChangelogMultilineEditText() {
return projectChangelogMultilineEdit->text();
}
-void DistpartDialog::setprojectChangelogMultilineEditText(QString text) {
+void DistpartDialog::setprojectChangelogMultilineEditText(TQString text) {
projectChangelogMultilineEdit->setText(text);
}
-QString DistpartDialog::getSourceName() {
- QString name = (getcustomProjectCheckBoxState()) ? getarchNameFormatLineEditText() : QString("%n-%v");
+TQString DistpartDialog::getSourceName() {
+ TQString name = (getcustomProjectCheckBoxState()) ? getarchNameFormatLineEditText() : TQString("%n-%v");
name += (getcustomProjectCheckBoxState() && getbzipCheckBoxState()) ? ".tar.bz2" : ".tar.gz";
- return name.replace(QRegExp("%n"),getappNameFormatLineEditText())
- .replace(QRegExp("%v"),getversionLineEditText())
- .replace(QRegExp("%d"),QDate::currentDate().toString("yyyyMMdd"));
+ return name.replace(TQRegExp("%n"),getappNameFormatLineEditText())
+ .replace(TQRegExp("%v"),getversionLineEditText())
+ .replace(TQRegExp("%d"),TQDate::currentDate().toString("yyyyMMdd"));
}
void DistpartDialog::loadSettings() {
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
srcDistFileListBox->insertStringList( m_part->project()->distFiles() );
@@ -499,7 +499,7 @@ void DistpartDialog::loadSettings() {
}
void DistpartDialog::storeSettings() {
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
// First Tab
DomUtil::writeBoolEntry(dom,"/dist/custom",getcustomProjectCheckBoxState());
@@ -584,14 +584,14 @@ void DistpartDialog::slotsrcPackagePushButtonPressed( )
void DistpartDialog::slotAddFileButtonPressed(){
- QStringList filenames = KFileDialog::getOpenFileNames();
+ TQStringList filenames = KFileDialog::getOpenFileNames();
for(uint count =0; count< filenames.size(); count++){
- QString base = m_part->project()->projectDirectory() +"/";
+ TQString base = m_part->project()->projectDirectory() +"/";
srcDistFileListBox->insertItem(filenames[count].remove(base));
}
}
-void DistpartDialog::slotRemoveFile(QListBoxItem *item){
+void DistpartDialog::slotRemoveFile(TQListBoxItem *item){
if ( KMessageBox::Yes == KMessageBox::warningYesNo( this, i18n("Remove %1").arg( item->text() ), i18n("Remove File") )){
for(uint count =0; count< srcDistFileListBox->numRows(); count++){
if ( item == srcDistFileListBox->item(count)){
diff --git a/parts/distpart/distpart_widget.h b/parts/distpart/distpart_widget.h
index 36d3f9ba..87e2c2fd 100644
--- a/parts/distpart/distpart_widget.h
+++ b/parts/distpart/distpart_widget.h
@@ -21,16 +21,16 @@
#define __DISTPART_WIDGET_H__
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
#include "distpart_ui.h"
#include <klistbox.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <kpushbutton.h>
#include <klineedit.h>
#include <ktextedit.h>
-#include <qcombobox.h>
-#include <qprogressbar.h>
+#include <tqcombobox.h>
+#include <tqprogressbar.h>
class KDevProject;
class DistpartPart;
@@ -49,7 +49,7 @@ class DistpartDialog : public distpart_ui {
public:
- DistpartDialog(DistpartPart *part, QWidget *parent);
+ DistpartDialog(DistpartPart *part, TQWidget *parent);
~DistpartDialog();
signals:
@@ -72,37 +72,37 @@ signals:
public slots:
- // QPushButton* okayPushButton;
+ // TQPushButton* okayPushButton;
void slotokayPushButtonPressed();
- // QPushButton* cancelPushButton;
+ // TQPushButton* cancelPushButton;
void slotcancelPushButtonPressed();
- // QPushButton* help_PushButton;
+ // TQPushButton* help_PushButton;
// void slothelp_PushButtonPressed();
- // QPushButton* createSrcArchPushButton;
+ // TQPushButton* createSrcArchPushButton;
void slotcreateSrcArchPushButtonPressed();
- // QPushButton* resetSrcPushButton;
+ // TQPushButton* resetSrcPushButton;
void slotresetSrcPushButtonPressed();
- // QPushButton* genHTMLPushButton;
+ // TQPushButton* genHTMLPushButton;
void slotgenHTMLPushButtonPressed();
- // QPushButton* resetHTMLPushButton;
+ // TQPushButton* resetHTMLPushButton;
void slotresetHTMLPushButtonPressed();
- // QToolButton* uploadAddFileToolButton;
+ // TQToolButton* uploadAddFileToolButton;
void slotuploadAddFileToolButtonPressed();
- // QToolButton* uploadRemoveToolButton;
+ // TQToolButton* uploadRemoveToolButton;
void slotuploadRemoveToolButtonPressed();
- // QPushButton* uploadSubmitPushButton;
+ // TQPushButton* uploadSubmitPushButton;
void slotuploadSubmitPushButtonPressed();
- // QPushButton* uploadResetPushButton;
+ // TQPushButton* uploadResetPushButton;
void slotuploadResetPushButtonPressed();
// Connect Slots to the following widgets and add
// accessors and mutators
- // QCheckBox* customProjectCheckBox;
+ // TQCheckBox* customProjectCheckBox;
void slotcustomProjectCheckBoxChanged();
- // QCheckBox* uploadCustomCheckBox;
+ // TQCheckBox* uploadCustomCheckBox;
void slotuploadCustomCheckBoxChanged();
void slotbuildAllPushButtonPressed();
@@ -110,7 +110,7 @@ public slots:
void slotimportSPECPushButtonPressed();
void slotsrcPackagePushButtonPressed();
void slotAddFileButtonPressed();
- void slotRemoveFile(QListBoxItem *item);
+ void slotRemoveFile(TQListBoxItem *item);
public:
bool getcustomProjectCheckBoxState();
@@ -120,80 +120,80 @@ public:
// Add accessors and mutators for the following
- // QCheckBox* bzipCheckBox;
+ // TQCheckBox* bzipCheckBox;
bool getbzipCheckBoxState();
void setbzipCheckBoxState(bool state);
- // QCheckBox* appIconCheckBox;
+ // TQCheckBox* appIconCheckBox;
bool getappIconCheckBoxState();
void setappIconCheckBoxState(bool state);
- // QCheckBox* genHTMLCheckBox;
+ // TQCheckBox* genHTMLCheckBox;
bool getgenHTMLCheckBoxState();
void setgenHTMLCheckBoxState(bool state);
- // QCheckBox* useRPMInfoCheckBox;
+ // TQCheckBox* useRPMInfoCheckBox;
bool getuseRPMInfoCheckBoxState();
void setuseRPMInfoCheckBoxState(bool state);
- // QCheckBox* uploadAppsKDEcomCheckBox;
+ // TQCheckBox* uploadAppsKDEcomCheckBox;
bool getuploadAppsKDEcomCheckBoxState();
void setuploadAppsKDEcomCheckBoxState(bool state);
- // QCheckBox* uploadftpkdeorgCheckBox;
+ // TQCheckBox* uploadftpkdeorgCheckBox;
bool getuploadftpkdeorgCheckBoxState();
void setuploadftpkdeorgCheckBoxState(bool state);
- // QCheckBox* devPackageCheckBox;
+ // TQCheckBox* devPackageCheckBox;
bool getdevPackageCheckBoxState();
void setdevPackageCheckBoxState(bool state);
- // QCheckBox* docsPackageCheckBox;
+ // TQCheckBox* docsPackageCheckBox;
bool getdocsPackageCheckBoxState();
void setdocsPackageCheckBoxState(bool state);
- // QLineEdit* archNameFormatLineEdit;
- QString getarchNameFormatLineEditText();
- void setarchNameFormatLineEditText(QString text);
- // QLineEdit* appNameLineEdit;
- QString getappNameFormatLineEditText();
- void setappNameFormatLineEditText(QString text);
- // QLineEdit* summaryLineEdit;
- QString getsummaryLineEditText();
- void setsummaryLineEditText(QString text);
- // QLineEdit* groupLineEdit;
- QString getgroupLineEditText();
- void setgroupLineEditText(QString text);
- // QLineEdit* releaseLineEdit;
- QString getreleaseLineEditText();
- void setreleaseLineEditText(QString text);
- // QLineEdit* VersionLineEdit;
- QString getversionLineEditText();
- void setversionLineEditText(QString text);
- // QLineEdit* VendorLineEdit;
- QString getvendorLineEditText();
- void setvendorLineEditText(QString text);
- // QLineEdit* LicenseLineEdit;
- QString getlicenseLineEditText();
- void setlicenseLineEditText(QString text);
- // QLineEdit* uploadURLLineEdit;
- QString getuploadURLLineEditText();
- void setuploadURLLineEditText(QString text);
- // QLineEdit* PackagerLineEdit;
- QString getpackagerLineEditText();
- void setpackagerLineEditText(QString text);
- // QComboBox* archComboBox;
- QString getarchComboBoxText();
+ // TQLineEdit* archNameFormatLineEdit;
+ TQString getarchNameFormatLineEditText();
+ void setarchNameFormatLineEditText(TQString text);
+ // TQLineEdit* appNameLineEdit;
+ TQString getappNameFormatLineEditText();
+ void setappNameFormatLineEditText(TQString text);
+ // TQLineEdit* summaryLineEdit;
+ TQString getsummaryLineEditText();
+ void setsummaryLineEditText(TQString text);
+ // TQLineEdit* groupLineEdit;
+ TQString getgroupLineEditText();
+ void setgroupLineEditText(TQString text);
+ // TQLineEdit* releaseLineEdit;
+ TQString getreleaseLineEditText();
+ void setreleaseLineEditText(TQString text);
+ // TQLineEdit* VersionLineEdit;
+ TQString getversionLineEditText();
+ void setversionLineEditText(TQString text);
+ // TQLineEdit* VendorLineEdit;
+ TQString getvendorLineEditText();
+ void setvendorLineEditText(TQString text);
+ // TQLineEdit* LicenseLineEdit;
+ TQString getlicenseLineEditText();
+ void setlicenseLineEditText(TQString text);
+ // TQLineEdit* uploadURLLineEdit;
+ TQString getuploadURLLineEditText();
+ void setuploadURLLineEditText(TQString text);
+ // TQLineEdit* PackagerLineEdit;
+ TQString getpackagerLineEditText();
+ void setpackagerLineEditText(TQString text);
+ // TQComboBox* archComboBox;
+ TQString getarchComboBoxText();
int getarchComboBoxItem();
void setarchComboBoxItem(int item);
- // QListBox* uploadFileListBox;
- QString getuploadFileListBoxText();
+ // TQListBox* uploadFileListBox;
+ TQString getuploadFileListBoxText();
int getuploadFileListBoxItem();
void setuploadFileListBoxItem(int item);
- // QListBox* srcDistFileListBox;
- QString getsrcDistFileListBoxText();
+ // TQListBox* srcDistFileListBox;
+ TQString getsrcDistFileListBoxText();
int getsrcDistFileListBoxItem();
void setsrcDistFileListBoxItem(int item);
- // QMultiLineEdit* projectDescriptionMultilineEdit;
- QString getprojectDescriptionMultilineEditText();
- void setprojectDescriptionMultilineEditText(QString text);
+ // TQMultiLineEdit* projectDescriptionMultilineEdit;
+ TQString getprojectDescriptionMultilineEditText();
+ void setprojectDescriptionMultilineEditText(TQString text);
- QString getprojectChangelogMultilineEditText();
- void setprojectChangelogMultilineEditText(QString text);
+ TQString getprojectChangelogMultilineEditText();
+ void setprojectChangelogMultilineEditText(TQString text);
- QString getSourceName();
+ TQString getSourceName();
private:
void loadSettings();
@@ -203,7 +203,7 @@ private:
SpecSupport *m_spec;
DistpartPart *m_part;
- QString dir;
+ TQString dir;
};
diff --git a/parts/distpart/lsmsupport.cpp b/parts/distpart/lsmsupport.cpp
index b9a71e8b..5e3fcd89 100644
--- a/parts/distpart/lsmsupport.cpp
+++ b/parts/distpart/lsmsupport.cpp
@@ -26,7 +26,7 @@ LsmSupport::LsmSupport() : packageBase() {
LsmSupport::~LsmSupport() {
}
-QString LsmSupport::generatePackage( )
+TQString LsmSupport::generatePackage( )
{
return "";
}
diff --git a/parts/distpart/lsmsupport.h b/parts/distpart/lsmsupport.h
index 4d13bc8a..ce52194b 100644
--- a/parts/distpart/lsmsupport.h
+++ b/parts/distpart/lsmsupport.h
@@ -29,7 +29,7 @@ class LsmSupport : public packageBase
public:
LsmSupport();
virtual ~LsmSupport();
-QString generatePackage( );
+TQString generatePackage( );
};
#endif
diff --git a/parts/distpart/packagebase.cpp b/parts/distpart/packagebase.cpp
index 797c2613..f0c2db37 100644
--- a/parts/distpart/packagebase.cpp
+++ b/parts/distpart/packagebase.cpp
@@ -6,112 +6,112 @@ packageBase::packageBase() {
packageBase::~packageBase() {}
-QString packageBase::getAppName() {
+TQString packageBase::getAppName() {
return AppName;
}
-QString packageBase::getAppVersion() {
+TQString packageBase::getAppVersion() {
return AppVersion;
}
-QString packageBase::getAppRevision() {
+TQString packageBase::getAppRevision() {
return AppRevision;
}
-QString packageBase::getAppGroup() {
+TQString packageBase::getAppGroup() {
return AppGroup;
}
-QString packageBase::getAppPackager() {
+TQString packageBase::getAppPackager() {
return AppPackager;
}
-QString packageBase::getAppURL() {
+TQString packageBase::getAppURL() {
return AppURL;
}
-QString packageBase::getAppSummary() {
+TQString packageBase::getAppSummary() {
return AppSummary;
}
-QString packageBase::getAppVendor() {
+TQString packageBase::getAppVendor() {
return AppVendor;
}
-QString packageBase::getAppLicense() {
+TQString packageBase::getAppLicense() {
return AppLicense;
}
-QString packageBase::getAppArch() {
+TQString packageBase::getAppArch() {
return AppArch;
}
-QString packageBase::getAppDescription() {
+TQString packageBase::getAppDescription() {
return AppDescription;
}
-QString packageBase::getAppChangelog() {
+TQString packageBase::getAppChangelog() {
return AppChangelog;
}
-QString packageBase::getAppSource() {
+TQString packageBase::getAppSource() {
return AppSource;
}
-QStringList packageBase::getAppFileList() {
+TQStringList packageBase::getAppFileList() {
return AppFileList;
}
-void packageBase::setAppName(const QString& name) {
+void packageBase::setAppName(const TQString& name) {
AppName = name;
}
-void packageBase::setAppVersion(const QString& version){
+void packageBase::setAppVersion(const TQString& version){
AppVersion = version;
}
-void packageBase::setAppRevision(const QString& revision){
+void packageBase::setAppRevision(const TQString& revision){
AppRevision = revision;
}
-void packageBase::setAppGroup(const QString& group){
+void packageBase::setAppGroup(const TQString& group){
AppGroup = group;
}
-void packageBase::setAppPackager(const QString& packager){
+void packageBase::setAppPackager(const TQString& packager){
AppPackager = packager;
}
-void packageBase::setAppURL(const QString& url)
+void packageBase::setAppURL(const TQString& url)
{
AppURL = url;
}
-void packageBase::setAppSummary(const QString& summary){
+void packageBase::setAppSummary(const TQString& summary){
AppSummary = summary;
}
-void packageBase::setAppVendor(const QString& vendor){
+void packageBase::setAppVendor(const TQString& vendor){
AppVendor = vendor;
}
-void packageBase::setAppLicense(const QString& licence){
+void packageBase::setAppLicense(const TQString& licence){
AppLicense = licence;
}
-void packageBase::setAppArch(const QString& arch){
+void packageBase::setAppArch(const TQString& arch){
AppArch = arch;
}
-void packageBase::setAppDescription(const QString& description){
+void packageBase::setAppDescription(const TQString& description){
AppDescription = description;
}
-void packageBase::setAppChangelog(const QString& changelog){
+void packageBase::setAppChangelog(const TQString& changelog){
AppChangelog = changelog;
}
-void packageBase::setAppFileList( const QStringList & list )
+void packageBase::setAppFileList( const TQStringList & list )
{
AppFileList = list;
}
diff --git a/parts/distpart/packagebase.h b/parts/distpart/packagebase.h
index 95d7d813..b3ba172e 100644
--- a/parts/distpart/packagebase.h
+++ b/parts/distpart/packagebase.h
@@ -21,7 +21,7 @@
#define __PACKAGEBASE_H__
#include <kurl.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
class packageBase
{
@@ -31,54 +31,54 @@ public:
virtual ~packageBase();
// Generic accessors and mutators for child classes
- virtual QString generatePackage( ) = 0 ;
+ virtual TQString generatePackage( ) = 0 ;
//virtual bool loadFile(KURL theFile) = 0;
//virtual bool saveFile(KURL theFile) = 0;
- virtual QString getAppName();
- virtual QString getAppVersion();
- virtual QString getAppRevision();
- virtual QString getAppGroup();
- virtual QString getAppPackager();
- virtual QString getAppURL();
- virtual QString getAppSummary();
- virtual QString getAppVendor();
- virtual QString getAppLicense();
- virtual QString getAppArch();
- virtual QString getAppDescription();
- virtual QString getAppChangelog();
- virtual QString getAppSource();
- virtual QStringList getAppFileList();
+ virtual TQString getAppName();
+ virtual TQString getAppVersion();
+ virtual TQString getAppRevision();
+ virtual TQString getAppGroup();
+ virtual TQString getAppPackager();
+ virtual TQString getAppURL();
+ virtual TQString getAppSummary();
+ virtual TQString getAppVendor();
+ virtual TQString getAppLicense();
+ virtual TQString getAppArch();
+ virtual TQString getAppDescription();
+ virtual TQString getAppChangelog();
+ virtual TQString getAppSource();
+ virtual TQStringList getAppFileList();
- virtual void setAppName(const QString&);
- virtual void setAppVersion(const QString&);
- virtual void setAppRevision(const QString&);
- virtual void setAppGroup(const QString&);
- virtual void setAppPackager(const QString&);
- virtual void setAppURL(const QString&);
- virtual void setAppSummary(const QString&);
- virtual void setAppVendor(const QString&);
- virtual void setAppLicense(const QString&);
- virtual void setAppArch(const QString&);
- virtual void setAppDescription(const QString&);
- virtual void setAppChangelog(const QString&);
- virtual void setAppFileList(const QStringList &list);
+ virtual void setAppName(const TQString&);
+ virtual void setAppVersion(const TQString&);
+ virtual void setAppRevision(const TQString&);
+ virtual void setAppGroup(const TQString&);
+ virtual void setAppPackager(const TQString&);
+ virtual void setAppURL(const TQString&);
+ virtual void setAppSummary(const TQString&);
+ virtual void setAppVendor(const TQString&);
+ virtual void setAppLicense(const TQString&);
+ virtual void setAppArch(const TQString&);
+ virtual void setAppDescription(const TQString&);
+ virtual void setAppChangelog(const TQString&);
+ virtual void setAppFileList(const TQStringList &list);
private:
- QString AppName;
- QString AppVersion;
- QString AppRevision;
- QString AppGroup;
- QString AppPackager;
- QString AppURL;
- QString AppSummary;
- QString AppVendor;
- QString AppLicense;
- QString AppArch;
- QString AppDescription;
- QString AppChangelog;
- QString AppSource;
- QStringList AppFileList;
+ TQString AppName;
+ TQString AppVersion;
+ TQString AppRevision;
+ TQString AppGroup;
+ TQString AppPackager;
+ TQString AppURL;
+ TQString AppSummary;
+ TQString AppVendor;
+ TQString AppLicense;
+ TQString AppArch;
+ TQString AppDescription;
+ TQString AppChangelog;
+ TQString AppSource;
+ TQStringList AppFileList;
};
#endif
diff --git a/parts/distpart/specsupport.cpp b/parts/distpart/specsupport.cpp
index e3ca8a65..ab4d684f 100644
--- a/parts/distpart/specsupport.cpp
+++ b/parts/distpart/specsupport.cpp
@@ -27,25 +27,25 @@
#include <kfiledialog.h>
#include <klocale.h>
#include <kprocess.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qerrormessage.h>
-#include <qregexp.h>
-#include <qpushbutton.h>
-//#include <qvbox.h>
-#include <qgroupbox.h>
-#include <qtabwidget.h>
-#include <qmessagebox.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqerrormessage.h>
+#include <tqregexp.h>
+#include <tqpushbutton.h>
+//#include <tqvbox.h>
+#include <tqgroupbox.h>
+#include <tqtabwidget.h>
+#include <tqmessagebox.h>
/// \FIXME This is at least the fifth place in the kdevelop code something like this exists
-QString QRegExp_escape(const QString& str )
+TQString QRegExp_escape(const TQString& str )
{
#if QT_VERSION >= 0x030100
- return QRegExp::escape(str);
+ return TQRegExp::escape(str);
#else
// this block is copyrighted by Trolltech AS (GPL)
static const char meta[] = "$()*+.?[\\]^{|}";
- QString quoted = str;
+ TQString quoted = str;
int i = 0;
while ( i < (int) quoted.length() ) {
@@ -60,21 +60,21 @@ QString QRegExp_escape(const QString& str )
SpecSupport::SpecSupport(DistpartPart *part) : packageBase(), m_part(part) {
dir = "";
-// srcPackagePushButton = new QPushButton(i18n("Src Package"),area());
-// buildAllPushButton = new QPushButton(i18n("Src/Binary Packages"),area());
-// exportSPECPushButton = new QPushButton(i18n("Export SPEC File"),area());
-// importSPECPushButton = new QPushButton(i18n("Import SPEC File"),area());
+// srcPackagePushButton = new TQPushButton(i18n("Src Package"),area());
+// buildAllPushButton = new TQPushButton(i18n("Src/Binary Packages"),area());
+// exportSPECPushButton = new TQPushButton(i18n("Export SPEC File"),area());
+// importSPECPushButton = new TQPushButton(i18n("Import SPEC File"),area());
//
//
//
-// connect(buildAllPushButton, SIGNAL(clicked()),
-// this, SLOT(slotbuildAllPushButtonPressed()));
-// connect(exportSPECPushButton, SIGNAL(clicked()),
-// this, SLOT(slotexportSPECPushButtonPressed()));
-// connect(importSPECPushButton, SIGNAL(clicked()),
-// this, SLOT(slotimportSPECPushButtonPressed()));
-// connect(srcPackagePushButton, SIGNAL(clicked()),
-// this, SLOT(slotsrcPackagePushButtonPressed()));
+// connect(buildAllPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotbuildAllPushButtonPressed()));
+// connect(exportSPECPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotexportSPECPushButtonPressed()));
+// connect(importSPECPushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotimportSPECPushButtonPressed()));
+// connect(srcPackagePushButton, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotsrcPackagePushButtonPressed()));
parseDotRpmmacros();
}
@@ -82,14 +82,14 @@ SpecSupport::SpecSupport(DistpartPart *part) : packageBase(), m_part(part) {
SpecSupport::~SpecSupport() {
}
-// QPushButton* buildAllPushButton;
+// TQPushButton* buildAllPushButton;
void SpecSupport::slotbuildAllPushButtonPressed() {
- QMap<QString,QString>::Iterator it;
- QFile file1(dir + "/" + getAppSource());
- QFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
+ TQMap<TQString,TQString>::Iterator it;
+ TQFile file1(dir + "/" + getAppSource());
+ TQFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
if (!file2.exists()) {
if (!file1.exists()) {
- QMessageBox::critical(0 ,i18n("Error"),i18n("You need to create a source archive first."));
+ TQMessageBox::critical(0 ,i18n("Error"),i18n("You need to create a source archive first."));
return;
}
else
@@ -102,15 +102,15 @@ void SpecSupport::slotbuildAllPushButtonPressed() {
" && rpmbuild -ba " + m_part->project()->projectName() + ".spec");
}
-// QPushButton* exportSPECPushButton;
+// TQPushButton* exportSPECPushButton;
void SpecSupport::slotexportSPECPushButtonPressed() {
- QMap<QString,QString>::Iterator it;
- QString specname = ((it = map.find("_specdir")) != map.end()) ? (*it) : (m_part->project()->projectDirectory());
+ TQMap<TQString,TQString>::Iterator it;
+ TQString specname = ((it = map.find("_specdir")) != map.end()) ? (*it) : (m_part->project()->projectDirectory());
specname += ("/" + m_part->project()->projectName() + ".spec");
- QFile file(specname);
+ TQFile file(specname);
if(file.open(IO_WriteOnly)) {
- QTextStream stream(&file);
+ TQTextStream stream(&file);
stream << generatePackage();
file.close();
} else {
@@ -118,26 +118,26 @@ void SpecSupport::slotexportSPECPushButtonPressed() {
}
}
-QString SpecSupport::getInfo(QString s, QString motif) {
- QRegExp re(motif + "[ \t]*([^ \t].*[^ \t])[ \t]*");
+TQString SpecSupport::getInfo(TQString s, TQString motif) {
+ TQRegExp re(motif + "[ \t]*([^ \t].*[^ \t])[ \t]*");
if (re.exactMatch(s))
return re.cap(1);
- return QString::null;
+ return TQString::null;
}
-// QPushButton* importSPECPushButton;
+// TQPushButton* importSPECPushButton;
void SpecSupport::slotimportSPECPushButtonPressed() {
- QString fileName = KFileDialog::getOpenFileName(dir,"*.spec");
+ TQString fileName = KFileDialog::getOpenFileName(dir,"*.spec");
if( fileName.isEmpty())
return;
- QFile file(fileName);
+ TQFile file(fileName);
if(file.open(IO_ReadOnly)) {
- QTextStream stream(&file);
+ TQTextStream stream(&file);
while (!stream.atEnd()) {
- QString s = stream.readLine();
- QString info;
+ TQString s = stream.readLine();
+ TQString info;
if (!(info = getInfo(s,"Name:")).isEmpty())
setAppName(info);
else if (!(info = getInfo(s,"Version:")).isEmpty())
@@ -155,18 +155,18 @@ void SpecSupport::slotimportSPECPushButtonPressed() {
else if (!(info = getInfo(s,"Packager:")).isEmpty())
setAppPackager(info);
else if (s.startsWith("%description")) {
- QString desc;
+ TQString desc;
while (!stream.atEnd()) {
- QString str = stream.readLine();
+ TQString str = stream.readLine();
if (str.startsWith("%")) break;
else desc += str + "\n";
}
setAppDescription(desc);
}
else if (s.startsWith("%changelog")) {
- QString change;
+ TQString change;
while (!stream.atEnd()) {
- QString str = stream.readLine();
+ TQString str = stream.readLine();
if (str.startsWith("%")) break;
else change += str + "\n";
}
@@ -177,18 +177,18 @@ void SpecSupport::slotimportSPECPushButtonPressed() {
}
void SpecSupport::slotAddFileButtonPressed(){
-QString filename = KFileDialog::getOpenFileName ();
+TQString filename = KFileDialog::getOpenFileName ();
}
-// QPushButton* srcPackagePushButton;
+// TQPushButton* srcPackagePushButton;
void SpecSupport::slotsrcPackagePushButtonPressed() {
- QMap<QString,QString>::Iterator it;
+ TQMap<TQString,TQString>::Iterator it;
- QFile file1(dir + "/" + getAppSource());
- QFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
+ TQFile file1(dir + "/" + getAppSource());
+ TQFile file2(*(map.find("_sourcedir")) + "/" + getAppSource());
if (!file2.exists()) {
if (!file1.exists()) {
- QMessageBox::critical(0,i18n("Error"),i18n("You need to create a source archive first."));
+ TQMessageBox::critical(0,i18n("Error"),i18n("You need to create a source archive first."));
return;
}
else
@@ -202,15 +202,15 @@ void SpecSupport::slotsrcPackagePushButtonPressed() {
}
void SpecSupport::parseDotRpmmacros() {
- QFile dotfile(QDir::homeDirPath() + "/.rpmmacros");
+ TQFile dotfile(TQDir::homeDirPath() + "/.rpmmacros");
if (!dotfile.open(IO_ReadOnly)) {
-// QErrorMessage * msg = new QErrorMessage(this);
+// TQErrorMessage * msg = new TQErrorMessage(this);
// msg->message("It seems you don't have a ~/.rpmmacros\nYou may experience problems building packages.\n");
// msg->exec();
return;
}
- QTextStream stream(&dotfile);
+ TQTextStream stream(&dotfile);
// Perhaps will it appear as a necessity to parse the global rpm config file?
@@ -219,14 +219,14 @@ void SpecSupport::parseDotRpmmacros() {
// .rpmmacros parsing :
while (!stream.atEnd()) {
- QString s = stream.readLine();
- QRegExp re("%([^ \t]*)[ \t][ \t]*([^\t]*)$");
+ TQString s = stream.readLine();
+ TQRegExp re("%([^ \t]*)[ \t][ \t]*([^\t]*)$");
if(re.exactMatch(s)) {
- QRegExp subst("%\\{([^%]*)\\}");
- QString value = re.cap(2).stripWhiteSpace();
+ TQRegExp subst("%\\{([^%]*)\\}");
+ TQString value = re.cap(2).stripWhiteSpace();
while(subst.search(value) != -1) {
- value.replace(QRegExp("%\\{"+ QRegExp_escape( subst.cap(1) ) +"\\}"),*map.find(subst.cap(1)));
+ value.replace(TQRegExp("%\\{"+ QRegExp_escape( subst.cap(1) ) +"\\}"),*map.find(subst.cap(1)));
}
map.insert(re.cap(1),value);
}
@@ -243,18 +243,18 @@ void SpecSupport::parseDotRpmmacros() {
createRpmDirectoryFromMacro("_srcrpmdir");
}
-bool SpecSupport::createRpmDirectoryFromMacro(const QString & name) {
- QMap<QString,QString>::Iterator it;
+bool SpecSupport::createRpmDirectoryFromMacro(const TQString & name) {
+ TQMap<TQString,TQString>::Iterator it;
if((it = map.find(name)) != map.end()) {
- QDir dir(*it);
+ TQDir dir(*it);
if (!dir.exists()) return dir.mkdir(*it);
}
return false;
}
-QString SpecSupport::generatePackage( )
+TQString SpecSupport::generatePackage( )
{
- QString spec;
+ TQString spec;
spec += "# This spec file was generated by KDevelop \n";
spec += "# Please report any problem to KDevelop Team <kdevelop-devel@kdevelop.org> \n";
spec += "# Thanks to Matthias Saou for his explanations on http://freshrpms.net/docs/fight.html\n\n";
diff --git a/parts/distpart/specsupport.h b/parts/distpart/specsupport.h
index 3689771c..aeaca906 100644
--- a/parts/distpart/specsupport.h
+++ b/parts/distpart/specsupport.h
@@ -20,8 +20,8 @@
#ifndef __SPECSUPPORT_H__
#define __SPECSUPPORT_H__
-#include <qstring.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqmap.h>
#include "packagebase.h"
#include "distpart_part.h"
#include "distpart_widget.h"
@@ -33,7 +33,7 @@ public:
~SpecSupport();
public:
- QString generatePackage();
+ TQString generatePackage();
void slotbuildAllPushButtonPressed();
void slotexportSPECPushButtonPressed();
void slotimportSPECPushButtonPressed();
@@ -42,13 +42,13 @@ public:
private:
void parseDotRpmmacros();
- bool createRpmDirectoryFromMacro(const QString & name);
+ bool createRpmDirectoryFromMacro(const TQString & name);
- QString getInfo(QString s, QString motif);
+ TQString getInfo(TQString s, TQString motif);
- QString dir;
+ TQString dir;
DistpartPart *m_part;
- QMap<QString,QString> map;
+ TQMap<TQString,TQString> map;
};
#endif