summaryrefslogtreecommitdiffstats
path: root/parts/doxygen/input.h
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 /parts/doxygen/input.h
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 'parts/doxygen/input.h')
-rw-r--r--parts/doxygen/input.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/parts/doxygen/input.h b/parts/doxygen/input.h
index 15c3a263..473d94dd 100644
--- a/parts/doxygen/input.h
+++ b/parts/doxygen/input.h
@@ -14,8 +14,8 @@
#ifndef _INPUT_H
#define _INPUT_H
-#include <qcheckbox.h>
-#include <qdict.h>
+#include <tqcheckbox.h>
+#include <tqdict.h>
class QComboBox;
class QLabel;
@@ -29,49 +29,49 @@ class IInput
public:
virtual void init() = 0;
virtual void setEnabled(bool) = 0;
- virtual QObject *qobject() = 0;
+ virtual TQObject *qobject() = 0;
};
-class InputBool : public QWidget, public IInput
+class InputBool : public TQWidget, public IInput
{
Q_OBJECT
public:
- InputBool(const QCString &key, const QString &text, QWidget *parent, bool &flag);
+ InputBool(const TQCString &key, const TQString &text, TQWidget *parent, bool &flag);
~InputBool();
void init();
virtual void setEnabled(bool b);
- virtual QObject *qobject() { return this; }
+ virtual TQObject *qobject() { return this; }
virtual bool getState() const { return state; }
signals:
void changed();
- void toggle(const QString &, bool);
+ void toggle(const TQString &, bool);
private slots:
void valueChanged(bool);
private:
bool &state;
- QCString key;
- QCheckBox *cb;
+ TQCString key;
+ TQCheckBox *cb;
};
-class InputInt : public QWidget, public IInput
+class InputInt : public TQWidget, public IInput
{
Q_OBJECT
public:
- InputInt(const QString &text, QWidget *parent,
+ InputInt(const TQString &text, TQWidget *parent,
int &val, int minVal, int maxVal);
~InputInt();
void init();
virtual void setEnabled(bool);
- QObject *qobject() { return this; }
+ TQObject *qobject() { return this; }
signals:
void changed();
@@ -80,15 +80,15 @@ private slots:
void valueChanged(int val);
private:
- QLabel *lab;
- QSpinBox *sp;
+ TQLabel *lab;
+ TQSpinBox *sp;
int &m_val;
int m_minVal;
int m_maxVal;
};
-class InputString : public QWidget, public IInput
+class InputString : public TQWidget, public IInput
{
Q_OBJECT
@@ -99,36 +99,36 @@ public:
StringFixed=3
};
- InputString(const QString &text, QWidget *parent,
- QCString &s, StringMode m=StringFree);
+ InputString(const TQString &text, TQWidget *parent,
+ TQCString &s, StringMode m=StringFree);
~InputString();
void init();
void addValue(const char *s);
void setEnabled(bool);
- QObject *qobject() { return this; }
+ TQObject *qobject() { return this; }
signals:
void changed();
private slots:
- void textChanged(const QString&);
+ void textChanged(const TQString&);
void browse();
void clear();
private:
- QLabel *lab;
+ TQLabel *lab;
KLineEdit *le;
- QPushButton *br;
- QComboBox *com;
- QCString &str;
+ TQPushButton *br;
+ TQComboBox *com;
+ TQCString &str;
StringMode sm;
- QDict<int> *m_values;
+ TQDict<int> *m_values;
int m_index;
};
-class InputStrList : public QWidget, public IInput
+class InputStrList : public TQWidget, public IInput
{
Q_OBJECT
@@ -139,13 +139,13 @@ public:
ListFileDir=ListFile|ListDir
};
- InputStrList(const QString &text, QWidget *parent,
- QStrList &sl, ListMode v=ListString);
+ InputStrList(const TQString &text, TQWidget *parent,
+ TQStrList &sl, ListMode v=ListString);
~InputStrList();
void init();
void setEnabled(bool);
- QObject *qobject() { return this; }
+ TQObject *qobject() { return this; }
signals:
void changed();
@@ -154,20 +154,20 @@ private slots:
void addString();
void delString();
void updateString();
- void selectText(const QString &s);
+ void selectText(const TQString &s);
void browseFiles();
void browseDir();
private:
- QLabel *lab;
+ TQLabel *lab;
KLineEdit *le;
- QPushButton *add;
- QPushButton *del;
- QPushButton *upd;
- QPushButton *brFile;
- QPushButton *brDir;
- QListBox *lb;
- QStrList &strList;
+ TQPushButton *add;
+ TQPushButton *del;
+ TQPushButton *upd;
+ TQPushButton *brFile;
+ TQPushButton *brDir;
+ TQListBox *lb;
+ TQStrList &strList;
};
#endif