summaryrefslogtreecommitdiffstats
path: root/lib/widgets/flagboxes.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 /lib/widgets/flagboxes.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 'lib/widgets/flagboxes.h')
-rw-r--r--lib/widgets/flagboxes.h142
1 files changed, 71 insertions, 71 deletions
diff --git a/lib/widgets/flagboxes.h b/lib/widgets/flagboxes.h
index dc64f296..234cf3a5 100644
--- a/lib/widgets/flagboxes.h
+++ b/lib/widgets/flagboxes.h
@@ -28,11 +28,11 @@
Support classes for compiler plugins.
*/
-#include <qlistview.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
+#include <tqlistview.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
class QSpinBox;
class FlagListBox;
@@ -49,16 +49,16 @@ class KURLRequester;
class FlagListItem : public QCheckListItem
{
public:
- FlagListItem(FlagListBox *parent, const QString &flagstr,
- const QString &description);
- FlagListItem(FlagListBox *parent, const QString &flagstr,
- const QString &description, const QString &offstr);
+ FlagListItem(FlagListBox *parent, const TQString &flagstr,
+ const TQString &description);
+ FlagListItem(FlagListBox *parent, const TQString &flagstr,
+ const TQString &description, const TQString &offstr);
~FlagListItem()
{}
private:
- QString flag;
- QString off;
- QString desc;
+ TQString flag;
+ TQString off;
+ TQString desc;
friend class FlagListToolTip;
friend class FlagListBox;
};
@@ -69,12 +69,12 @@ class FlagListBox : public QListView
{
Q_OBJECT
public:
- FlagListBox( QWidget *parent=0, const char *name=0 );
+ FlagListBox( TQWidget *parent=0, const char *name=0 );
~FlagListBox()
{}
- void readFlags(QStringList *list);
- void writeFlags(QStringList *list);
+ void readFlags(TQStringList *list);
+ void writeFlags(TQStringList *list);
};
@@ -83,21 +83,21 @@ class FlagCheckBox : public QCheckBox
{
Q_OBJECT
public:
- FlagCheckBox(QWidget *parent, FlagCheckBoxController *controller,
- const QString &flagstr, const QString &description);
- FlagCheckBox(QWidget *parent, FlagCheckBoxController *controller,
- const QString &flagstr, const QString &description,
- const QString &offstr);
- FlagCheckBox(QWidget *parent, FlagCheckBoxController *controller,
- const QString &flagstr, const QString &description,
- const QString &offstr, const QString &defstr);
+ FlagCheckBox(TQWidget *parent, FlagCheckBoxController *controller,
+ const TQString &flagstr, const TQString &description);
+ FlagCheckBox(TQWidget *parent, FlagCheckBoxController *controller,
+ const TQString &flagstr, const TQString &description,
+ const TQString &offstr);
+ FlagCheckBox(TQWidget *parent, FlagCheckBoxController *controller,
+ const TQString &flagstr, const TQString &description,
+ const TQString &offstr, const TQString &defstr);
~FlagCheckBox()
{}
private:
- QString flag;
- QString off;
- QString def;
+ TQString flag;
+ TQString off;
+ TQString def;
bool includeOff;
bool useDef;
bool defSet;
@@ -109,13 +109,13 @@ class FlagRadioButton : public QRadioButton
{
Q_OBJECT
public:
- FlagRadioButton(QWidget *parent, FlagRadioButtonController *controller,
- const QString &flagstr, const QString &description);
+ FlagRadioButton(TQWidget *parent, FlagRadioButtonController *controller,
+ const TQString &flagstr, const TQString &description);
~FlagRadioButton()
{}
private:
- QString flag;
+ TQString flag;
friend class FlagRadioButtonController;
};
@@ -125,26 +125,26 @@ class FlagPathEdit: public QWidget
Q_OBJECT
public:
/**If the pathDelimiter is not empty then path edit can contain a list of paths*/
- FlagPathEdit(QWidget *parent, QString pathDelimiter, FlagPathEditController *controller,
- const QString &flagstr, const QString &description, KFile::Mode mode = KFile::Directory);
+ FlagPathEdit(TQWidget *parent, TQString pathDelimiter, FlagPathEditController *controller,
+ const TQString &flagstr, const TQString &description, KFile::Mode mode = KFile::Directory);
~FlagPathEdit() {}
- void setText(const QString text);
+ void setText(const TQString text);
bool isEmpty();
- QString text();
+ TQString text();
private slots:
void showPathDetails();
private:
KLineEdit *edit;
- QPushButton *details;
+ TQPushButton *details;
KURLRequester *url;
- QString delimiter;
- QString flag;
- QString m_description;
+ TQString delimiter;
+ TQString flag;
+ TQString m_description;
friend class FlagPathEditController;
};
@@ -154,27 +154,27 @@ class FlagListEdit: public QWidget
Q_OBJECT
public:
/**If the listDelimiter is not empty then list edit can contain a list of entries*/
- FlagListEdit(QWidget *parent, QString listDelimiter, FlagEditController *controller,
- const QString &flagstr, const QString &description);
+ FlagListEdit(TQWidget *parent, TQString listDelimiter, FlagEditController *controller,
+ const TQString &flagstr, const TQString &description);
~FlagListEdit() {}
- void setText(const QString text);
- void appendText(const QString text);
+ void setText(const TQString text);
+ void appendText(const TQString text);
bool isEmpty();
- QString text();
- QStringList flags();
+ TQString text();
+ TQStringList flags();
private slots:
void showListDetails();
private:
KLineEdit *edit;
- QPushButton *details;
+ TQPushButton *details;
- QString delimiter;
- QString flag;
- QString m_description;
+ TQString delimiter;
+ TQString flag;
+ TQString m_description;
friend class FlagEditController;
};
@@ -182,21 +182,21 @@ private:
class FlagSpinEdit: public QWidget
{
public:
- FlagSpinEdit(QWidget *parent, int minVal, int maxVal, int incr, int defaultVal, FlagEditController *controller,
- const QString &flagstr, const QString &description);
+ FlagSpinEdit(TQWidget *parent, int minVal, int maxVal, int incr, int defaultVal, FlagEditController *controller,
+ const TQString &flagstr, const TQString &description);
~FlagSpinEdit() {}
- void setText(const QString text);
- QString text();
+ void setText(const TQString text);
+ TQString text();
bool isDefault();
- QString flags();
+ TQString flags();
private:
int m_defaultVal;
- QString flag;
+ TQString flag;
- QSpinBox *spb;
+ TQSpinBox *spb;
friend class FlagEditController;
};
@@ -208,12 +208,12 @@ public:
FlagPathEditController();
~FlagPathEditController();
- void readFlags(QStringList *list);
- void writeFlags(QStringList *list);
+ void readFlags(TQStringList *list);
+ void writeFlags(TQStringList *list);
private:
void addPathEdit(FlagPathEdit *item);
- QPtrList<FlagPathEdit> plist;
+ TQPtrList<FlagPathEdit> plist;
friend class FlagPathEdit;
};
@@ -224,14 +224,14 @@ public:
FlagEditController();
~FlagEditController();
- void readFlags(QStringList *list);
- void writeFlags(QStringList *list);
+ void readFlags(TQStringList *list);
+ void writeFlags(TQStringList *list);
private:
void addListEdit(FlagListEdit *item);
void addSpinBox(FlagSpinEdit *item);
- QPtrList<FlagListEdit> plist;
- QPtrList<FlagSpinEdit> slist;
+ TQPtrList<FlagListEdit> plist;
+ TQPtrList<FlagSpinEdit> slist;
friend class FlagListEdit;
friend class FlagSpinEdit;
};
@@ -244,18 +244,18 @@ public:
multiKeys must contain a list of option names like {-v}
in the above example.
*/
- FlagCheckBoxController(QStringList multiKeys = QStringList());
+ FlagCheckBoxController(TQStringList multiKeys = TQStringList());
~FlagCheckBoxController()
{}
- void readFlags(QStringList *list);
- void writeFlags(QStringList *list);
+ void readFlags(TQStringList *list);
+ void writeFlags(TQStringList *list);
void addCheckBox(FlagCheckBox *item);
private:
- QPtrList<FlagCheckBox> cblist;
+ TQPtrList<FlagCheckBox> cblist;
- QStringList m_multiKeys;
+ TQStringList m_multiKeys;
};
/**Controller for radiobutton editors.*/
@@ -266,18 +266,18 @@ public:
multiKeys must contain a list of option names like {-v}
in the above example.
*/
- FlagRadioButtonController(QStringList multiKeys = QStringList());
+ FlagRadioButtonController(TQStringList multiKeys = TQStringList());
~FlagRadioButtonController()
{}
- void readFlags(QStringList *list);
- void writeFlags(QStringList *list);
+ void readFlags(TQStringList *list);
+ void writeFlags(TQStringList *list);
void addRadioButton(FlagRadioButton *item);
private:
- QPtrList<FlagRadioButton> cblist;
+ TQPtrList<FlagRadioButton> cblist;
- QStringList m_multiKeys;
+ TQStringList m_multiKeys;
};
#endif