summaryrefslogtreecommitdiffstats
path: root/src/progs/gui/hardware_config_widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/gui/hardware_config_widget.h')
-rw-r--r--src/progs/gui/hardware_config_widget.h33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/progs/gui/hardware_config_widget.h b/src/progs/gui/hardware_config_widget.h
index d373990..2f94e81 100644
--- a/src/progs/gui/hardware_config_widget.h
+++ b/src/progs/gui/hardware_config_widget.h
@@ -10,8 +10,8 @@
#ifndef HARDWARE_CONFIG_WIDGET
#define HARDWARE_CONFIG_WIDGET
-#include <qlineedit.h>
-#include <qcombobox.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
#include <kdialogbase.h>
#include <ktextbrowser.h>
@@ -24,11 +24,12 @@ namespace Hardware
{
//-----------------------------------------------------------------------------
-class HConfigWidget : public QFrame
+class HConfigWidget : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- HConfigWidget(::Programmer::Base &base, QWidget *parent, bool edit);
+ HConfigWidget(::Programmer::Base &base, TQWidget *tqparent, bool edit);
virtual ~HConfigWidget() { delete _hardware; }
virtual bool set(const Port::Description &pd, const Data &data) = 0;
virtual Data *data() const = 0;
@@ -36,7 +37,7 @@ public:
protected:
::Programmer::Hardware *_hardware;
- QVBoxLayout *_mainVBox, *_editVBox;
+ TQVBoxLayout *_mainVBox, *_editVBox;
bool _edit, _connected;
::Programmer::Base &_base;
};
@@ -47,9 +48,10 @@ class ConfigWidget;
class EditDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- EditDialog(ConfigWidget *parent, const QString &name, const Port::Description &pd, Data *data);
- QString savedName() const { return _savedName; }
+ EditDialog(ConfigWidget *tqparent, const TQString &name, const Port::Description &pd, Data *data);
+ TQString savedName() const { return _savedName; }
private slots:
virtual void slotOk();
@@ -57,22 +59,23 @@ private slots:
private:
ConfigWidget *_cwidget;
- QString _savedName;
+ TQString _savedName;
Data *_oldData;
HConfigWidget *_hc;
- QLineEdit *_name;
+ TQLineEdit *_name;
};
//-----------------------------------------------------------------------------
class ConfigWidget : public ::Programmer::ConfigWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- ConfigWidget(::Programmer::Base *base, Config *config, QWidget *parent);
+ ConfigWidget(::Programmer::Base *base, Config *config, TQWidget *tqparent);
virtual ~ConfigWidget() { delete _base; }
virtual void saveConfig();
virtual bool setPort(const ::Programmer::HardwareDescription &hd);
- virtual HConfigWidget *createHardwareConfigWidget(QWidget *parent, bool edit) const = 0;
+ virtual HConfigWidget *createHardwareConfigWidget(TQWidget *tqparent, bool edit) const = 0;
private slots:
void editClicked();
@@ -84,12 +87,12 @@ protected:
private:
Config *_config;
- QStringList _names;
+ TQStringList _names;
HConfigWidget *_hc;
- QPushButton *_editButton, *_deleteButton;
- QComboBox *_configCombo;
+ TQPushButton *_editButton, *_deleteButton;
+ TQComboBox *_configCombo;
KTextBrowser *_comment;
- QHBoxLayout *_hbox;
+ TQHBoxLayout *_hbox;
void updateList(PortType type);
bool set(const Port::Description &pd, uint i);