summaryrefslogtreecommitdiffstats
path: root/languages/fortran/compiler
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/fortran/compiler
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/fortran/compiler')
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp6
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsfactory.h6
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp130
-rw-r--r--languages/fortran/compiler/pgioptions/pgioptionsplugin.h10
4 files changed, 76 insertions, 76 deletions
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp b/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
index 5fad6630..66a12fbb 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
+++ b/languages/fortran/compiler/pgioptions/pgioptionsfactory.cpp
@@ -25,7 +25,7 @@ extern "C" {
}
-PgiOptionsFactory::PgiOptionsFactory(QObject *parent, const char *name)
+PgiOptionsFactory::PgiOptionsFactory(TQObject *parent, const char *name)
: KLibFactory(parent, name)
{
instance();
@@ -39,8 +39,8 @@ PgiOptionsFactory::~PgiOptionsFactory()
}
-QObject *PgiOptionsFactory::createObject(QObject *parent, const char *name,
- const char * /*classname*/, const QStringList &args)
+TQObject *PgiOptionsFactory::createObject(TQObject *parent, const char *name,
+ const char * /*classname*/, const TQStringList &args)
{
if (args.count() > 0 && qstrcmp(args[0].latin1(), "pghpf") == 0) {
kdDebug(9021) << "Building PgiOptions for PGHPF" << endl;
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsfactory.h b/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
index 9e3113a7..4fd73b7f 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
+++ b/languages/fortran/compiler/pgioptions/pgioptionsfactory.h
@@ -20,11 +20,11 @@ class PgiOptionsFactory : public KLibFactory
Q_OBJECT
public:
- PgiOptionsFactory( QObject *parent=0, const char *name=0 );
+ PgiOptionsFactory( TQObject *parent=0, const char *name=0 );
~PgiOptionsFactory();
- virtual QObject* createObject( QObject *parent, const char *name,
- const char *classname, const QStringList &args);
+ virtual TQObject* createObject( TQObject *parent, const char *name,
+ const char *classname, const TQStringList &args);
static KInstance *instance();
private:
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp b/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
index 8bed362e..8f22453a 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
+++ b/languages/fortran/compiler/pgioptions/pgioptionsplugin.cpp
@@ -9,13 +9,13 @@
* *
***************************************************************************/
-#include <qapplication.h>
-#include <qheader.h>
-#include <qlayout.h>
-#include <qlistview.h>
-#include <qradiobutton.h>
-#include <qvbox.h>
-#include <qvbuttongroup.h>
+#include <tqapplication.h>
+#include <tqheader.h>
+#include <tqlayout.h>
+#include <tqlistview.h>
+#include <tqradiobutton.h>
+#include <tqvbox.h>
+#include <tqvbuttongroup.h>
#include <kdebug.h>
#include <klocale.h>
@@ -75,68 +75,68 @@ const char * const hpf_flags[] = {
class GeneralTab : public QWidget
{
public:
- GeneralTab( QWidget *parent=0, const char *name=0 );
+ GeneralTab( TQWidget *parent=0, const char *name=0 );
~GeneralTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
};
class OptimizationTab : public QWidget
{
public:
- OptimizationTab( PgiOptionsPlugin::Type type, QWidget *parent=0, const char *name=0 );
+ OptimizationTab( PgiOptionsPlugin::Type type, TQWidget *parent=0, const char *name=0 );
~OptimizationTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
- QRadioButton *Odefault, *O0, *O1, *O2;
- QListView *optBox;
+ TQRadioButton *Odefault, *O0, *O1, *O2;
+ TQListView *optBox;
};
class HpfTab : public QWidget
{
public:
- HpfTab( QWidget *parent=0, const char *name=0 );
+ HpfTab( TQWidget *parent=0, const char *name=0 );
~HpfTab();
- void readFlags(QStringList *str);
- void writeFlags(QStringList *str);
+ void readFlags(TQStringList *str);
+ void writeFlags(TQStringList *str);
private:
- QListView *hpfBox;
+ TQListView *hpfBox;
};
-OptimizationTab::OptimizationTab(PgiOptionsPlugin::Type type, QWidget *parent, const char *name)
- : QWidget(parent, name)
+OptimizationTab::OptimizationTab(PgiOptionsPlugin::Type type, TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- QVButtonGroup *group = new QVButtonGroup(i18n("Optimization Level"), this);
- Odefault = new QRadioButton(i18n("Default"), group);
+ TQVButtonGroup *group = new TQVButtonGroup(i18n("Optimization Level"), this);
+ Odefault = new TQRadioButton(i18n("Default"), group);
Odefault->setChecked(true);
- O0 = new QRadioButton(i18n("No optimization"), group);
- O1 = new QRadioButton(i18n("Level 1"), group);
- O2 = new QRadioButton(i18n("Level 2"), group);
+ O0 = new TQRadioButton(i18n("No optimization"), group);
+ O1 = new TQRadioButton(i18n("Level 1"), group);
+ O2 = new TQRadioButton(i18n("Level 2"), group);
if (type == PgiOptionsPlugin::PGHPF) {
- optBox = new QListView(this);
- optBox->addColumn(QString::null);
+ optBox = new TQListView(this);
+ optBox->addColumn(TQString::null);
optBox->header()->hide();
for (const char * const *p = optimization_flags; *p; ++p) {
- new QCheckListItem(optBox, *p, QCheckListItem::CheckBox);
+ new TQCheckListItem(optBox, *p, TQCheckListItem::CheckBox);
kdDebug() << (*p) << endl;
}
} else
optBox = 0;
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -145,20 +145,20 @@ OptimizationTab::~OptimizationTab()
{}
-void OptimizationTab::readFlags(QStringList *list)
+void OptimizationTab::readFlags(TQStringList *list)
{
if (optBox) {
- QListViewItem *item = optBox->firstChild();
+ TQListViewItem *item = optBox->firstChild();
for (; item; item = item->nextSibling()) {
- QStringList::Iterator sli = list->find(item->text(0));
+ TQStringList::Iterator sli = list->find(item->text(0));
if (sli != list->end()) {
- static_cast<QCheckListItem*>(item)->setOn(true);
+ static_cast<TQCheckListItem*>(item)->setOn(true);
list->remove(sli);
}
}
}
- QStringList::Iterator sli;
+ TQStringList::Iterator sli;
sli = list->find("-O0");
if (sli != list->end()) {
O0->setChecked(true);
@@ -177,12 +177,12 @@ void OptimizationTab::readFlags(QStringList *list)
}
-void OptimizationTab::writeFlags(QStringList *list)
+void OptimizationTab::writeFlags(TQStringList *list)
{
if (optBox) {
- QListViewItem *item = optBox->firstChild();
+ TQListViewItem *item = optBox->firstChild();
for (; item; item = item->nextSibling())
- if (static_cast<QCheckListItem*>(item)->isOn())
+ if (static_cast<TQCheckListItem*>(item)->isOn())
(*list) << item->text(0);
}
@@ -195,19 +195,19 @@ void OptimizationTab::writeFlags(QStringList *list)
}
-HpfTab::HpfTab(QWidget *parent, const char *name)
- : QWidget(parent, name)
+HpfTab::HpfTab(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- QBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true);
- hpfBox = new QListView(this);
- hpfBox->addColumn(QString::null);
+ hpfBox = new TQListView(this);
+ hpfBox->addColumn(TQString::null);
hpfBox->header()->hide();
for (const char * const *p = hpf_flags; *p; ++p)
- new QCheckListItem(hpfBox, *p, QCheckListItem::CheckBox);
+ new TQCheckListItem(hpfBox, *p, TQCheckListItem::CheckBox);
- QApplication::sendPostedEvents(this, QEvent::ChildInserted);
+ TQApplication::sendPostedEvents(this, TQEvent::ChildInserted);
layout->addStretch();
}
@@ -216,34 +216,34 @@ HpfTab::~HpfTab()
{}
-void HpfTab::readFlags(QStringList *list)
+void HpfTab::readFlags(TQStringList *list)
{
- QListViewItem *item = hpfBox->firstChild();
+ TQListViewItem *item = hpfBox->firstChild();
for (; item; item = item->nextSibling()) {
- QStringList::Iterator sli = list->find(item->text(0));
+ TQStringList::Iterator sli = list->find(item->text(0));
if (sli != list->end()) {
- static_cast<QCheckListItem*>(item)->setOn(true);
+ static_cast<TQCheckListItem*>(item)->setOn(true);
list->remove(sli);
}
}
}
-void HpfTab::writeFlags(QStringList *list)
+void HpfTab::writeFlags(TQStringList *list)
{
- QListViewItem *item = hpfBox->firstChild();
+ TQListViewItem *item = hpfBox->firstChild();
for (; item; item = item->nextSibling()) {
- if (static_cast<QCheckListItem*>(item)->isOn())
+ if (static_cast<TQCheckListItem*>(item)->isOn())
(*list) << item->text(0);
}
}
-PgiOptionsDialog::PgiOptionsDialog(PgiOptionsPlugin::Type type, QWidget *parent, const char *name)
+PgiOptionsDialog::PgiOptionsDialog(PgiOptionsPlugin::Type type, TQWidget *parent, const char *name)
: KDialogBase(Tabbed, (type == PgiOptionsPlugin::PGHPF)? i18n("PGHPF Compiler Options") : i18n("PGF77 Compiler Options"),
Ok|Cancel, Ok, parent, name, true)
{
- QVBox *vbox;
+ TQVBox *vbox;
// vbox = addVBoxPage(i18n("General"));
// general = new GeneralTab(vbox, "general tab");
@@ -265,9 +265,9 @@ PgiOptionsDialog::~PgiOptionsDialog()
}
-void PgiOptionsDialog::setFlags(const QString &flags)
+void PgiOptionsDialog::setFlags(const TQString &flags)
{
- QStringList flaglist = QStringList::split(" ", flags);
+ TQStringList flaglist = TQStringList::split(" ", flags);
// Hand them to 'general' at last, so it can make a line edit
// with the unprocessed items
@@ -278,17 +278,17 @@ void PgiOptionsDialog::setFlags(const QString &flags)
}
-QString PgiOptionsDialog::flags() const
+TQString PgiOptionsDialog::flags() const
{
- QStringList flaglist;
+ TQStringList flaglist;
if (hpf)
hpf->writeFlags(&flaglist);
optimization->writeFlags(&flaglist);
// general->writeFlags(&flaglist);
- QString flags;
- QStringList::ConstIterator li;
+ TQString flags;
+ TQStringList::ConstIterator li;
for (li = flaglist.begin(); li != flaglist.end(); ++li) {
flags += (*li);
flags += " ";
@@ -299,7 +299,7 @@ QString PgiOptionsDialog::flags() const
}
-PgiOptionsPlugin::PgiOptionsPlugin(Type type, QObject *parent, const char *name)
+PgiOptionsPlugin::PgiOptionsPlugin(Type type, TQObject *parent, const char *name)
: KDevCompilerOptions(parent, name)
{
pgitype = type;
@@ -310,12 +310,12 @@ PgiOptionsPlugin::~PgiOptionsPlugin()
{}
-QString PgiOptionsPlugin::exec(QWidget *parent, const QString &flags)
+TQString PgiOptionsPlugin::exec(TQWidget *parent, const TQString &flags)
{
PgiOptionsDialog *dlg = new PgiOptionsDialog(pgitype, parent, "pgi options dialog");
- QString newFlags = flags;
+ TQString newFlags = flags;
dlg->setFlags(flags);
- if (dlg->exec() == QDialog::Accepted)
+ if (dlg->exec() == TQDialog::Accepted)
newFlags = dlg->flags();
delete dlg;
return newFlags;
diff --git a/languages/fortran/compiler/pgioptions/pgioptionsplugin.h b/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
index dfbf4547..aba83fbc 100644
--- a/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
+++ b/languages/fortran/compiler/pgioptions/pgioptionsplugin.h
@@ -28,10 +28,10 @@ class PgiOptionsPlugin : public KDevCompilerOptions
public:
enum Type { PGHPF, PGF77 };
- PgiOptionsPlugin( Type type, QObject *parent=0, const char *name=0 );
+ PgiOptionsPlugin( Type type, TQObject *parent=0, const char *name=0 );
~PgiOptionsPlugin();
- virtual QString exec(QWidget *parent, const QString &flags);
+ virtual TQString exec(TQWidget *parent, const TQString &flags);
private:
Type pgitype;
@@ -41,11 +41,11 @@ private:
class PgiOptionsDialog : public KDialogBase
{
public:
- PgiOptionsDialog(PgiOptionsPlugin::Type type, QWidget *parent=0, const char *name=0 );
+ PgiOptionsDialog(PgiOptionsPlugin::Type type, TQWidget *parent=0, const char *name=0 );
~PgiOptionsDialog();
- void setFlags(const QString &flags);
- QString flags() const;
+ void setFlags(const TQString &flags);
+ TQString flags() const;
private:
OptimizationTab *optimization;