summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/puke/pwidget.cpp')
-rw-r--r--ksirc/puke/pwidget.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/ksirc/puke/pwidget.cpp b/ksirc/puke/pwidget.cpp
index d254832b..9ce99a2b 100644
--- a/ksirc/puke/pwidget.cpp
+++ b/ksirc/puke/pwidget.cpp
@@ -6,7 +6,7 @@
#include <unistd.h>
#include <stdlib.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
PWidget::PWidget(PObject *)
: PObject()
@@ -54,15 +54,15 @@ PWidget::~PWidget()
PObject *PWidget::createWidget(CreateArgs &ca)
{
PWidget *pw = new PWidget();
- QWidget *tw;
- if(ca.fetchedObj != 0 && ca.fetchedObj->inherits("QWidget") == TRUE){
- tw = (QWidget *) ca.fetchedObj;
+ TQWidget *tw;
+ if(ca.fetchedObj != 0 && ca.fetchedObj->inherits("TQWidget") == TRUE){
+ tw = (TQWidget *) ca.fetchedObj;
pw->setDeleteAble(FALSE);
}
else if(ca.parent != 0 && ca.parent->widget()->isWidgetType() == TRUE)
- tw = new QWidget((QWidget *) ca.parent->widget());
+ tw = new TQWidget((TQWidget *) ca.parent->widget());
else
- tw = new QWidget();
+ tw = new TQWidget();
pw->setWidget(tw);
pw->setWidgetId(ca.pwI);
pw->setPukeController(ca.pc);
@@ -175,7 +175,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
{
pmRet.cArg = new char[15];
pmRet.iTextSize = 15;
- QColor back = widget()->backgroundColor();
+ TQColor back = widget()->backgroundColor();
sprintf(pmRet.cArg, "%d,%d,%d", back.red(), back.green(), back.blue());
pmRet.iCommand = -pm->iCommand;
@@ -186,7 +186,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
break;
}
case PUKE_WIDGET_SET_BACKGROUND_PIXMAP:
- widget()->setBackgroundPixmap(QPixmap(pm->cArg));
+ widget()->setBackgroundPixmap(TQPixmap(pm->cArg));
pmRet.iCommand = -pm->iCommand;
pmRet.iWinId = pm->iWinId;
@@ -195,7 +195,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
emit outputMessage(fd, &pmRet);
break;
case PUKE_WIDGET_SET_BACKGROUND_MODE:
- widget()->setBackgroundMode((QWidget::BackgroundMode) pm->iArg);
+ widget()->setBackgroundMode((TQWidget::BackgroundMode) pm->iArg);
pmRet.iCommand = -pm->iCommand;
pmRet.iWinId = pm->iWinId;
@@ -208,15 +208,15 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
{
int *pos;
pos = (int *) pm->cArg;
- QColor bg(pos[0], pos[1], pos[2]);
- QColorGroup cg = QColorGroup(widget()->colorGroup().foreground(),
+ TQColor bg(pos[0], pos[1], pos[2]);
+ TQColorGroup cg = TQColorGroup(widget()->colorGroup().foreground(),
bg,
widget()->colorGroup().light(),
widget()->colorGroup().dark(),
widget()->colorGroup().mid(),
widget()->colorGroup().text(),
bg);
- widget()->setPalette(QPalette(cg,cg,cg));
+ widget()->setPalette(TQPalette(cg,cg,cg));
pmRet.iCommand = -pm->iCommand;
pmRet.iWinId = pm->iWinId;
@@ -236,7 +236,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
break;
case PUKE_WIDGET_RECREATE:
{
- QWidget *nparent = 0x0;
+ TQWidget *nparent = 0x0;
if(pm->iArg != 0x0){
widgetId wiWidget;
wiWidget.fd = fd;
@@ -250,7 +250,7 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
qWarning("Recreate: %d %d %d", point_show[0], point_show[1], point_show[3]);
- widget()->reparent(nparent, (WFlags) 0, QPoint(point_show[0], point_show[1]), point_show[3]);
+ widget()->reparent(nparent, (WFlags) 0, TQPoint(point_show[0], point_show[1]), point_show[3]);
pmRet.iCommand = PUKE_WIDGET_RECREATE_ACK;
pmRet.iWinId = pm->iWinId;
@@ -264,29 +264,29 @@ void PWidget::messageHandler(int fd, PukeMessage *pm)
}
}
-void PWidget::setWidget(QObject *_w)
+void PWidget::setWidget(TQObject *_w)
{
- if(_w != 0 && _w->inherits("QWidget") == FALSE)
+ if(_w != 0 && _w->inherits("TQWidget") == FALSE)
{
errorInvalidSet(_w);
return;
}
- w = (QWidget *) _w;
+ w = (TQWidget *) _w;
if(w != 0){
widget()->installEventFilter(this);
}
PObject::setWidget(_w);
}
-QWidget *PWidget::widget()
+TQWidget *PWidget::widget()
{
// kdDebug(5008) << "PWidget widget called" << endl;
return w;
}
// PWidget specific
-bool PWidget::eventFilter(QObject *o, QEvent *e)
+bool PWidget::eventFilter(TQObject *o, TQEvent *e)
{
if(e->type() < 20 && e->type() >= 0){
(this->*(eventList[e->type()]))(o,e);
@@ -307,7 +307,7 @@ bool PWidget::eventFilter(QObject *o, QEvent *e)
return false;
}
-void PWidget::eventNone(QObject *, QEvent *e)
+void PWidget::eventNone(TQObject *, TQEvent *e)
{
PukeMessage pm;
widgetId wI;
@@ -324,12 +324,12 @@ void PWidget::eventNone(QObject *, QEvent *e)
}
-void PWidget::eventTimer(QObject *, QEvent *e)
+void PWidget::eventTimer(TQObject *, TQEvent *e)
{
PukeMessage pm;
widgetId wI;
- QTimerEvent *et = (QTimerEvent *)(e);
+ TQTimerEvent *et = (TQTimerEvent *)(e);
wI = widgetIden();
pm.iCommand = PUKE_WIDGET_EVENT_TIMER;
@@ -341,12 +341,12 @@ void PWidget::eventTimer(QObject *, QEvent *e)
}
-void PWidget::eventMouse(QObject *, QEvent *e)
+void PWidget::eventMouse(TQObject *, TQEvent *e)
{
PukeMessage pm;
widgetId wI;
- QMouseEvent *me = (QMouseEvent *)(e);
+ TQMouseEvent *me = (TQMouseEvent *)(e);
wI = widgetIden();
pm.iCommand = - e->type() - 1020; // 1020 offset for events
@@ -368,12 +368,12 @@ void PWidget::eventMouse(QObject *, QEvent *e)
}
-void PWidget::eventKey(QObject *, QEvent *e)
+void PWidget::eventKey(TQObject *, TQEvent *e)
{
PukeMessage pm;
widgetId wI;
- QKeyEvent *ke = (QKeyEvent *)(e);
+ TQKeyEvent *ke = (TQKeyEvent *)(e);
wI = widgetIden();
pm.iCommand = - e->type() - 1020; // 1020 offset for events
@@ -394,14 +394,14 @@ void PWidget::eventKey(QObject *, QEvent *e)
}
-void PWidget::eventFocus(QObject *, QEvent *e)
+void PWidget::eventFocus(TQObject *, TQEvent *e)
{
PukeMessage pm;
widgetId wI;
// kdDebug(5008) << "PWidget: eventFocus" << endl;
- QFocusEvent *fe = (QFocusEvent *)(e);
+ TQFocusEvent *fe = (TQFocusEvent *)(e);
wI = widgetIden();
pm.iCommand = - e->type() - 1020; // 1020 offset for events
@@ -418,7 +418,7 @@ void PWidget::eventFocus(QObject *, QEvent *e)
delete[] pm.cArg;
}
-void PWidget::eventPaint(QObject *, QEvent *e)
+void PWidget::eventPaint(TQObject *, TQEvent *e)
{
PukeMessage pm;
widgetId wI;
@@ -433,12 +433,12 @@ void PWidget::eventPaint(QObject *, QEvent *e)
}
-void PWidget::eventMove(QObject *, QEvent *e)
+void PWidget::eventMove(TQObject *, TQEvent *e)
{
PukeMessage pm;
widgetId wI;
- QMoveEvent *me = (QMoveEvent *)(e);
+ TQMoveEvent *me = (TQMoveEvent *)(e);
wI = widgetIden();
pm.iCommand = - e->type() - 1020; // 1020 offset for events
@@ -460,12 +460,12 @@ void PWidget::eventMove(QObject *, QEvent *e)
}
-void PWidget::eventResize(QObject *, QEvent *e)
+void PWidget::eventResize(TQObject *, TQEvent *e)
{
PukeMessage pm;
widgetId wI;
- QResizeEvent *re = (QResizeEvent *)(e);
+ TQResizeEvent *re = (TQResizeEvent *)(e);
wI = widgetIden();
pm.iCommand = - e->type() - 1020; // 1020 offset for events