diff options
Diffstat (limited to 'parts/doxygen/input.cpp')
-rw-r--r-- | parts/doxygen/input.cpp | 154 |
1 files changed, 77 insertions, 77 deletions
diff --git a/parts/doxygen/input.cpp b/parts/doxygen/input.cpp index d5745bad..e316d69e 100644 --- a/parts/doxygen/input.cpp +++ b/parts/doxygen/input.cpp @@ -11,13 +11,13 @@ * * ***************************************************************************/ -#include <qlabel.h> -#include <qlayout.h> -#include <qcombobox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqcombobox.h> #include <klineedit.h> -#include <qpushbutton.h> -#include <qspinbox.h> -#include <qtooltip.h> +#include <tqpushbutton.h> +#include <tqspinbox.h> +#include <tqtooltip.h> #include <klocale.h> #include <kfiledialog.h> #include <kglobal.h> @@ -110,18 +110,18 @@ static const char* const update_xpm_data[] = const char **update_xpm = (const char **)update_xpm_data; -InputBool::InputBool(const QCString &k, const QString &text, QWidget * parent, bool &flag) - : QWidget(parent), state(flag), key(k) +InputBool::InputBool(const TQCString &k, const TQString &text, TQWidget * parent, bool &flag) + : TQWidget(parent), state(flag), key(k) { - QHBoxLayout *layout = new QHBoxLayout(this); - cb = new QCheckBox(text,this); + TQHBoxLayout *layout = new TQHBoxLayout(this); + cb = new TQCheckBox(text,this); init(); layout->addWidget(cb); layout->addStretch(1); - connect( cb, SIGNAL(toggled(bool)), this, SLOT(valueChanged(bool))); + connect( cb, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(valueChanged(bool))); } @@ -151,13 +151,13 @@ void InputBool::setEnabled(bool b) } -InputInt::InputInt(const QString &label, QWidget *parent, int &val, int minVal, int maxVal) - : QWidget(parent), m_val(val), m_minVal(minVal), m_maxVal(maxVal) +InputInt::InputInt(const TQString &label, TQWidget *parent, int &val, int minVal, int maxVal) + : TQWidget(parent), m_val(val), m_minVal(minVal), m_maxVal(maxVal) { - QHBoxLayout *layout = new QHBoxLayout(this, 5); + TQHBoxLayout *layout = new TQHBoxLayout(this, 5); - sp = new QSpinBox(minVal, maxVal, 1, this); - lab = new QLabel(sp, label+":", this); + sp = new TQSpinBox(minVal, maxVal, 1, this); + lab = new TQLabel(sp, label+":", this); init(); @@ -165,7 +165,7 @@ InputInt::InputInt(const QString &label, QWidget *parent, int &val, int minVal, layout->addWidget(sp); layout->addStretch(1); - connect(sp, SIGNAL(valueChanged(int)), this, SLOT(valueChanged(int))); + connect(sp, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int))); } @@ -196,43 +196,43 @@ void InputInt::setEnabled(bool state) } -InputString::InputString(const QString & label, - QWidget *parent, QCString &s, StringMode m) - : QWidget(parent), str(s), sm(m), m_values(0), m_index(0) +InputString::InputString(const TQString & label, + TQWidget *parent, TQCString &s, StringMode m) + : TQWidget(parent), str(s), sm(m), m_values(0), m_index(0) { le = 0; br = 0; com = 0; if (m == StringFixed) { - QHBoxLayout *layout = new QHBoxLayout(this, 5); - com = new QComboBox(this); - lab = new QLabel(com,label+":", this); + TQHBoxLayout *layout = new TQHBoxLayout(this, 5); + com = new TQComboBox(this); + lab = new TQLabel(com,label+":", this); layout->addWidget(lab); layout->addWidget(com); layout->addStretch(1); } else { - QGridLayout *layout = new QGridLayout(this, 1, m==StringFree? 1 : 3, 5); + TQGridLayout *layout = new TQGridLayout(this, 1, m==StringFree? 1 : 3, 5); le = new KLineEdit(this); - lab = new QLabel(le,label+":", this); + lab = new TQLabel(le,label+":", this); layout->addWidget(lab, 0, 0); le->setText(s); layout->addWidget(le, 0, 1); if (m == StringFile || m == StringDir) { - br = new QPushButton(this); + br = new TQPushButton(this); br->setPixmap(SmallIcon(m==StringFile? "document" : "folder")); - QToolTip::add(br, m==StringFile? i18n("Browse to a file") : i18n("Browse to a folder")); + TQToolTip::add(br, m==StringFile? i18n("Browse to a file") : i18n("Browse to a folder")); layout->addWidget(br, 0, 2); } } if (le) - connect( le, SIGNAL(textChanged(const QString&)), - this, SLOT(textChanged(const QString&)) ); + connect( le, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(textChanged(const TQString&)) ); if (br) - connect( br, SIGNAL(clicked()), this, SLOT(browse()) ); + connect( br, TQT_SIGNAL(clicked()), this, TQT_SLOT(browse()) ); if (com) - connect( com, SIGNAL(activated(const QString &)), - this, SLOT(textChanged(const QString &)) ); + connect( com, TQT_SIGNAL(activated(const TQString &)), + this, TQT_SLOT(textChanged(const TQString &)) ); } InputString::~InputString() @@ -259,7 +259,7 @@ void InputString::addValue(const char *s) { if (sm == StringFixed) { if (!m_values) - m_values = new QDict<int>; + m_values = new TQDict<int>; m_values->setAutoDelete(true); m_values->insert(s, new int(m_index++)); com->insertItem(s); @@ -277,7 +277,7 @@ void InputString::clear() } -void InputString::textChanged(const QString &s) +void InputString::textChanged(const TQString &s) { if (str!=s.latin1()) { str = s.latin1(); @@ -300,7 +300,7 @@ void InputString::setEnabled(bool state) void InputString::browse() { if (sm == StringFile) { - QString fileName = KFileDialog::getOpenFileName(); + TQString fileName = KFileDialog::getOpenFileName(); if (!fileName.isNull()) { le->setText(fileName); @@ -310,7 +310,7 @@ void InputString::browse() } } } else { // sm==StringDir - QString dirName = KFileDialog::getExistingDirectory(); + TQString dirName = KFileDialog::getExistingDirectory(); if (!dirName.isNull()) { le->setText( dirName ); @@ -323,75 +323,75 @@ void InputString::browse() } -InputStrList::InputStrList(const QString & label, - QWidget *parent, QStrList &sl, ListMode lm) - : QWidget(parent), strList(sl) +InputStrList::InputStrList(const TQString & label, + TQWidget *parent, TQStrList &sl, ListMode lm) + : TQWidget(parent), strList(sl) { - QGridLayout *layout = new QGridLayout(this, 2, 2, 5); + TQGridLayout *layout = new TQGridLayout(this, 2, 2, 5); - QWidget *dw = new QWidget(this); /* dummy widget used for layouting */ - QHBoxLayout *boxlayout = new QHBoxLayout(dw, 0, 5); + TQWidget *dw = new TQWidget(this); /* dummy widget used for layouting */ + TQHBoxLayout *boxlayout = new TQHBoxLayout(dw, 0, 5); le = new KLineEdit(dw); - lab = new QLabel(le,label+":", this ); + lab = new TQLabel(le,label+":", this ); layout->addWidget(lab, 0, 0); boxlayout->addWidget(le, 1); - add = new QPushButton(dw); - add->setPixmap(QPixmap( add_xpm )); - QToolTip::add(add, i18n("Add item")); + add = new TQPushButton(dw); + add->setPixmap(TQPixmap( add_xpm )); + TQToolTip::add(add, i18n("Add item")); boxlayout->addWidget(add); - del = new QPushButton(dw); - del->setPixmap(QPixmap( del_xpm )); - QToolTip::add(del, i18n("Delete selected item")); + del = new TQPushButton(dw); + del->setPixmap(TQPixmap( del_xpm )); + TQToolTip::add(del, i18n("Delete selected item")); boxlayout->addWidget(del); - upd = new QPushButton(dw); - upd->setPixmap(QPixmap( update_xpm )); - QToolTip::add(upd, i18n("Update selected item")); + upd = new TQPushButton(dw); + upd->setPixmap(TQPixmap( update_xpm )); + TQToolTip::add(upd, i18n("Update selected item")); boxlayout->addWidget(upd); - lb = new QListBox(this); + lb = new TQListBox(this); lb->setMinimumSize(400, 100); init(); - lb->setVScrollBarMode(QScrollView::Auto); - lb->setHScrollBarMode(QScrollView::Auto); + lb->setVScrollBarMode(TQScrollView::Auto); + lb->setHScrollBarMode(TQScrollView::Auto); brFile = 0; brDir = 0; if (lm != ListString) { if (lm & ListFile) { - brFile = new QPushButton(dw); + brFile = new TQPushButton(dw); brFile->setPixmap(SmallIcon("document")); - QToolTip::add(brFile, i18n("Browse to a file")); + TQToolTip::add(brFile, i18n("Browse to a file")); boxlayout->addWidget(brFile); } if (lm & ListDir) { - brDir = new QPushButton(dw); + brDir = new TQPushButton(dw); brDir->setPixmap(SmallIcon("folder")); - QToolTip::add(brDir, i18n("Browse to a folder")); + TQToolTip::add(brDir, i18n("Browse to a folder")); boxlayout->addWidget(brDir); } } layout->addWidget(dw, 0, 1); layout->addWidget(lb, 1, 1); - connect( le, SIGNAL(returnPressed()), - this, SLOT(addString()) ); - connect( add, SIGNAL(clicked()), - this, SLOT(addString()) ); - connect( del, SIGNAL(clicked()), - this, SLOT(delString()) ); - connect( upd, SIGNAL(clicked()), - this, SLOT(updateString()) ); + connect( le, TQT_SIGNAL(returnPressed()), + this, TQT_SLOT(addString()) ); + connect( add, TQT_SIGNAL(clicked()), + this, TQT_SLOT(addString()) ); + connect( del, TQT_SIGNAL(clicked()), + this, TQT_SLOT(delString()) ); + connect( upd, TQT_SIGNAL(clicked()), + this, TQT_SLOT(updateString()) ); if (brFile) - connect( brFile, SIGNAL(clicked()), - this, SLOT(browseFiles()) ); + connect( brFile, TQT_SIGNAL(clicked()), + this, TQT_SLOT(browseFiles()) ); if (brDir) - connect( brDir, SIGNAL(clicked()), - this, SLOT(browseDir()) ); - connect( lb, SIGNAL(selected(const QString &)), - this, SLOT(selectText(const QString &)) ); + connect( brDir, TQT_SIGNAL(clicked()), + this, TQT_SLOT(browseDir()) ); + connect( lb, TQT_SIGNAL(selected(const TQString &)), + this, TQT_SLOT(selectText(const TQString &)) ); strList = sl; } @@ -446,7 +446,7 @@ void InputStrList::updateString() } -void InputStrList::selectText(const QString &s) +void InputStrList::selectText(const TQString &s) { le->setText(s); } @@ -469,10 +469,10 @@ void InputStrList::setEnabled(bool state) void InputStrList::browseFiles() { - QStringList fileNames = KFileDialog::getOpenFileNames(); + TQStringList fileNames = KFileDialog::getOpenFileNames(); if (!fileNames.isEmpty()) { - QStringList::Iterator it; + TQStringList::Iterator it; for (it = fileNames.begin(); it != fileNames.end(); ++it) { lb->insertItem(*it); strList.append(( *it ).latin1()); @@ -485,7 +485,7 @@ void InputStrList::browseFiles() void InputStrList::browseDir() { - QString dirName = KFileDialog::getExistingDirectory(); + TQString dirName = KFileDialog::getExistingDirectory(); if (!dirName.isNull()) { lb->insertItem(dirName); |