diff options
Diffstat (limited to 'kimagemapeditor/kimedialogs.cpp')
-rw-r--r-- | kimagemapeditor/kimedialogs.cpp | 238 |
1 files changed, 119 insertions, 119 deletions
diff --git a/kimagemapeditor/kimedialogs.cpp b/kimagemapeditor/kimedialogs.cpp index 0196b0e5..4cb26986 100644 --- a/kimagemapeditor/kimedialogs.cpp +++ b/kimagemapeditor/kimedialogs.cpp @@ -47,8 +47,8 @@ // LOCAL #include "kimedialogs.h" -CoordsEdit::CoordsEdit(TQWidget *parent, Area* a) - : TQWidget(parent) +CoordsEdit::CoordsEdit(TQWidget *tqparent, Area* a) + : TQWidget(tqparent) { area=a; } @@ -66,56 +66,56 @@ CoordsEdit::~CoordsEdit() { } -RectCoordsEdit::RectCoordsEdit(TQWidget *parent, Area* a) - : CoordsEdit(parent,a) +RectCoordsEdit::RectCoordsEdit(TQWidget *tqparent, Area* a) + : CoordsEdit(tqparent,a) { - TQGridLayout *layout= new TQGridLayout(this,5,2,5,5); + TQGridLayout *tqlayout= new TQGridLayout(this,5,2,5,5); topXSpin = new TQSpinBox(this); topXSpin->setMaxValue(INT_MAX); topXSpin->setMinValue(0); topXSpin->setValue(a->rect().left()); - layout->addWidget(topXSpin,0,1); + tqlayout->addWidget(topXSpin,0,1); connect( topXSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); TQLabel *lbl= new TQLabel(i18n("Top &X:"),this); lbl->setBuddy(topXSpin); - layout->addWidget(lbl,0,0); + tqlayout->addWidget(lbl,0,0); topYSpin = new TQSpinBox(this); topYSpin->setMaxValue(INT_MAX); topYSpin->setMinValue(0); topYSpin->setValue(a->rect().top()); - layout->addWidget(topYSpin,1,1); + tqlayout->addWidget(topYSpin,1,1); connect( topYSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); lbl= new TQLabel(i18n("Top &Y:"),this); lbl->setBuddy(topYSpin); - layout->addWidget(lbl,1,0); + tqlayout->addWidget(lbl,1,0); widthSpin = new TQSpinBox(this); widthSpin->setMaxValue(INT_MAX); widthSpin->setMinValue(0); widthSpin->setValue(a->rect().width()); - layout->addWidget(widthSpin,2,1); + tqlayout->addWidget(widthSpin,2,1); connect( widthSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); lbl= new TQLabel(i18n("&Width:"),this); lbl->setBuddy(widthSpin); - layout->addWidget(lbl,2,0); + tqlayout->addWidget(lbl,2,0); heightSpin = new TQSpinBox(this); heightSpin->setMaxValue(INT_MAX); heightSpin->setMinValue(0); heightSpin->setValue(a->rect().height()); - layout->addWidget(heightSpin,3,1); + tqlayout->addWidget(heightSpin,3,1); connect( heightSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); lbl= new TQLabel(i18n("Hei&ght:"),this); lbl->setBuddy(heightSpin); - layout->addWidget(lbl,3,0); + tqlayout->addWidget(lbl,3,0); - layout->setRowStretch(4,10); + tqlayout->setRowStretch(4,10); } void RectCoordsEdit::applyChanges() { @@ -127,47 +127,47 @@ void RectCoordsEdit::applyChanges() { area->setRect(r); } -CircleCoordsEdit::CircleCoordsEdit(TQWidget *parent, Area* a) - : CoordsEdit(parent,a) +CircleCoordsEdit::CircleCoordsEdit(TQWidget *tqparent, Area* a) + : CoordsEdit(tqparent,a) { - TQGridLayout *layout= new TQGridLayout(this,4,2,5,5); + TQGridLayout *tqlayout= new TQGridLayout(this,4,2,5,5); centerXSpin = new TQSpinBox(this); centerXSpin->setMaxValue(INT_MAX); centerXSpin->setMinValue(0); centerXSpin->setValue(a->rect().center().x()); - layout->addWidget(centerXSpin,0,1); + tqlayout->addWidget(centerXSpin,0,1); connect( centerXSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); TQLabel *lbl= new TQLabel(i18n("Center &X:"),this); lbl->setBuddy(centerXSpin); - layout->addWidget(lbl,0,0); + tqlayout->addWidget(lbl,0,0); centerYSpin = new TQSpinBox(this); centerYSpin->setMaxValue(INT_MAX); centerYSpin->setMinValue(0); centerYSpin->setValue(a->rect().center().y()); - layout->addWidget(centerYSpin,1,1); + tqlayout->addWidget(centerYSpin,1,1); connect( centerYSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); lbl= new TQLabel(i18n("Center &Y:"),this); lbl->setBuddy(centerYSpin); - layout->addWidget(lbl,1,0); + tqlayout->addWidget(lbl,1,0); radiusSpin = new TQSpinBox(this); radiusSpin->setMaxValue(INT_MAX); radiusSpin->setMinValue(0); radiusSpin->setValue(a->rect().width()/2); - layout->addWidget(radiusSpin,2,1); + tqlayout->addWidget(radiusSpin,2,1); connect( radiusSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); lbl= new TQLabel(i18n("&Radius:"),this); lbl->setBuddy(radiusSpin); - layout->addWidget(lbl,2,0); + tqlayout->addWidget(lbl,2,0); - layout->setRowStretch(3,10); + tqlayout->setRowStretch(3,10); } @@ -180,11 +180,11 @@ void CircleCoordsEdit::applyChanges() { area->setRect(r); } -PolyCoordsEdit::PolyCoordsEdit(TQWidget *parent, Area* a) - : CoordsEdit(parent,a) +PolyCoordsEdit::PolyCoordsEdit(TQWidget *tqparent, Area* a) + : CoordsEdit(tqparent,a) { if (!a) return; - TQVBoxLayout *layout= new TQVBoxLayout(this); + TQVBoxLayout *tqlayout= new TQVBoxLayout(this); int numPoints=a->coords()->count(); coordsTable= new TQTable(numPoints,2,this); coordsTable->horizontalHeader()->setLabel(0,"X"); @@ -205,15 +205,15 @@ PolyCoordsEdit::PolyCoordsEdit(TQWidget *parent, Area* a) // coordsTable->setMaximumHeight(400); // coordsTable->resizeContents(100,100); coordsTable->resize(coordsTable->width(),100); - layout->addWidget(coordsTable); - layout->setStretchFactor(coordsTable,-1); + tqlayout->addWidget(coordsTable); + tqlayout->setStretchFactor(coordsTable,-1); TQHBox *hbox= new TQHBox(this); TQPushButton *addBtn=new TQPushButton(i18n("Add"),hbox); connect( addBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotAddPoint())); TQPushButton *removeBtn=new TQPushButton(i18n("Remove"),hbox); connect( removeBtn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotRemovePoint())); - layout->addWidget(hbox); + tqlayout->addWidget(hbox); slotHighlightPoint(1); } @@ -274,32 +274,32 @@ void PolyCoordsEdit::applyChanges() { } } -SelectionCoordsEdit::SelectionCoordsEdit(TQWidget *parent, Area* a) - : CoordsEdit(parent,a) +SelectionCoordsEdit::SelectionCoordsEdit(TQWidget *tqparent, Area* a) + : CoordsEdit(tqparent,a) { - TQGridLayout *layout= new TQGridLayout(this,2,2); + TQGridLayout *tqlayout= new TQGridLayout(this,2,2); topXSpin = new TQSpinBox(this); topXSpin->setMaxValue(INT_MAX); topXSpin->setMinValue(0); topXSpin->setValue(a->rect().left()); - layout->addWidget(topXSpin,0,1); + tqlayout->addWidget(topXSpin,0,1); connect( topXSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); TQLabel *lbl= new TQLabel(i18n("Top &X"),this); lbl->setBuddy(topXSpin); - layout->addWidget(lbl,0,0); + tqlayout->addWidget(lbl,0,0); topYSpin = new TQSpinBox(this); topYSpin->setMaxValue(INT_MAX); topYSpin->setMinValue(0); topYSpin->setValue(a->rect().top()); - layout->addWidget(topYSpin,1,1); + tqlayout->addWidget(topYSpin,1,1); connect( topYSpin, TQT_SIGNAL(valueChanged(const TQString &)), this, TQT_SLOT(slotTriggerUpdate())); lbl= new TQLabel(i18n("Top &Y"),this); lbl->setBuddy(topYSpin); - layout->addWidget(lbl,1,0); + tqlayout->addWidget(lbl,1,0); } void SelectionCoordsEdit::applyChanges() { @@ -308,13 +308,13 @@ void SelectionCoordsEdit::applyChanges() { -TQLineEdit* AreaDialog::createLineEdit(TQWidget* parent, TQGridLayout *layout, int y, const TQString & value, const TQString & name) +TQLineEdit* AreaDialog::createLineEdit(TQWidget* tqparent, TQGridLayout *tqlayout, int y, const TQString & value, const TQString & name) { - TQLineEdit* edit=new TQLineEdit(value,parent); - layout->addWidget(edit,y,2); - TQLabel* lbl=new TQLabel(name,parent); + TQLineEdit* edit=new TQLineEdit(value,tqparent); + tqlayout->addWidget(edit,y,2); + TQLabel* lbl=new TQLabel(name,tqparent); lbl->setBuddy(edit); - layout->addWidget(lbl,y,1); + tqlayout->addWidget(lbl,y,1); return edit; } @@ -322,7 +322,7 @@ TQLineEdit* AreaDialog::createLineEdit(TQWidget* parent, TQGridLayout *layout, i TQWidget* AreaDialog::createGeneralPage() { TQFrame* page = new TQFrame(this); - TQGridLayout* layout = new TQGridLayout(page,5,2,5,5); + TQGridLayout* tqlayout = new TQGridLayout(page,5,2,5,5); TQHBox *hbox= new TQHBox(page); @@ -332,25 +332,25 @@ TQWidget* AreaDialog::createGeneralPage() connect( btn, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotChooseHref())); hbox->setMinimumHeight(hbox->height()); - layout->addWidget(hbox,0,2); + tqlayout->addWidget(hbox,0,2); TQLabel *lbl=new TQLabel(i18n( "&HREF:" ),page); lbl->setBuddy(hrefEdit); - layout->addWidget(lbl,0,1); + tqlayout->addWidget(lbl,0,1); - altEdit = createLineEdit(page,layout,1,area->attribute("alt"),i18n("Alt. &Text:")); - targetEdit = createLineEdit(page,layout,2,area->attribute("target"),i18n("Tar&get:")); - titleEdit = createLineEdit(page,layout,3,area->attribute("title"),i18n("Tit&le:")); + altEdit = createLineEdit(page,tqlayout,1,area->attribute("alt"),i18n("Alt. &Text:")); + targetEdit = createLineEdit(page,tqlayout,2,area->attribute("target"),i18n("Tar&get:")); + titleEdit = createLineEdit(page,tqlayout,3,area->attribute("title"),i18n("Tit&le:")); if (area->type()==Area::Default) { defaultAreaChk = new TQCheckBox(i18n("Enable default map"),page); if (area->finished()) defaultAreaChk->setChecked(true); - layout->addWidget(defaultAreaChk,3,2); + tqlayout->addWidget(defaultAreaChk,3,2); } - layout->setRowStretch(4,10); + tqlayout->setRowStretch(4,10); return page; } @@ -358,11 +358,11 @@ TQWidget* AreaDialog::createGeneralPage() TQWidget* AreaDialog::createCoordsPage() { TQFrame* page = new TQFrame(this); - TQVBoxLayout *layout = new TQVBoxLayout(page); - layout->setMargin(5); + TQVBoxLayout *tqlayout = new TQVBoxLayout(page); + tqlayout->setMargin(5); coordsEdit = createCoordsEdit(page,area); - layout->addWidget(coordsEdit); + tqlayout->addWidget(coordsEdit); connect( coordsEdit, TQT_SIGNAL(update()), this, TQT_SLOT(slotUpdateArea())); return page; @@ -371,17 +371,17 @@ TQWidget* AreaDialog::createCoordsPage() TQWidget* AreaDialog::createJavascriptPage() { TQFrame* page = new TQFrame(this); - TQGridLayout* layout = new TQGridLayout(page,8,2,5,5); + TQGridLayout* tqlayout = new TQGridLayout(page,8,2,5,5); - onClickEdit = createLineEdit(page,layout,0,area->attribute("onClick"),i18n("OnClick:")); - onDblClickEdit = createLineEdit(page,layout,1,area->attribute("onDblClick"),i18n("OnDblClick:")); - onMouseDownEdit = createLineEdit(page,layout,2,area->attribute("onMouseDown"),i18n("OnMouseDown:")); - onMouseUpEdit = createLineEdit(page,layout,3,area->attribute("onMouseUp"),i18n("OnMouseUp:")); - onMouseOverEdit = createLineEdit(page,layout,4,area->attribute("onMouseOver"),i18n("OnMouseOver:")); - onMouseMoveEdit = createLineEdit(page,layout,5,area->attribute("onMouseMove"),i18n("OnMouseMove:")); - onMouseOutEdit = createLineEdit(page,layout,6,area->attribute("onMouseOut"),i18n("OnMouseOut:")); + onClickEdit = createLineEdit(page,tqlayout,0,area->attribute("onClick"),i18n("OnClick:")); + onDblClickEdit = createLineEdit(page,tqlayout,1,area->attribute("onDblClick"),i18n("OnDblClick:")); + onMouseDownEdit = createLineEdit(page,tqlayout,2,area->attribute("onMouseDown"),i18n("OnMouseDown:")); + onMouseUpEdit = createLineEdit(page,tqlayout,3,area->attribute("onMouseUp"),i18n("OnMouseUp:")); + onMouseOverEdit = createLineEdit(page,tqlayout,4,area->attribute("onMouseOver"),i18n("OnMouseOver:")); + onMouseMoveEdit = createLineEdit(page,tqlayout,5,area->attribute("onMouseMove"),i18n("OnMouseMove:")); + onMouseOutEdit = createLineEdit(page,tqlayout,6,area->attribute("onMouseOut"),i18n("OnMouseOut:")); - layout->setRowStretch(7,10); + tqlayout->setRowStretch(7,10); return page; @@ -408,59 +408,59 @@ TQWidget* AreaDialog::createButtonBar() } -AreaDialog::AreaDialog(KImageMapEditor* parent,Area * a) - : KDialog(parent->widget(),"",true) -// : KDialogBase(Tabbed,i18n("Area Tag Editor"),Ok|Apply|Cancel,Ok,parent,"") -// : KDialogBase(parent,"",true,"Area Tag Editor",Ok|Apply|Cancel,Ok,true) +AreaDialog::AreaDialog(KImageMapEditor* tqparent,Area * a) + : KDialog(tqparent->widget(),"",true) +// : KDialogBase(Tabbed,i18n("Area Tag Editor"),Ok|Apply|Cancel,Ok,tqparent,"") +// : KDialogBase(tqparent,"",true,"Area Tag Editor",Ok|Apply|Cancel,Ok,true) { if (!a) { slotCancel(); return; } - _document=parent; + _document=tqparent; setCaption(i18n("Area Tag Editor")); area=a; - TQString shape="Default"; + TQString tqshape="Default"; areaCopy= a->clone(); oldArea= new Area(); oldArea->setRect( a->rect() ); switch (a->type()) { - case Area::Rectangle : shape=i18n("Rectangle");break; - case Area::Circle : shape=i18n("Circle");break; - case Area::Polygon : shape=i18n("Polygon");break; - case Area::Selection : shape=i18n("Selection");break; + case Area::Rectangle : tqshape=i18n("Rectangle");break; + case Area::Circle : tqshape=i18n("Circle");break; + case Area::Polygon : tqshape=i18n("Polygon");break; + case Area::Selection : tqshape=i18n("Selection");break; default : break; } // To get a margin around everything - TQVBoxLayout *layout = new TQVBoxLayout(this); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this); - layout->setMargin(5); + tqlayout->setMargin(5); - TQLabel *lbl = new TQLabel("<b>"+shape+"</b>",this); - lbl->setTextFormat(Qt::RichText); - layout->addWidget(lbl); + TQLabel *lbl = new TQLabel("<b>"+tqshape+"</b>",this); + lbl->setTextFormat(TQt::RichText); + tqlayout->addWidget(lbl); TQFrame *line = new TQFrame(this); line->setFrameStyle(TQFrame::HLine | TQFrame::Sunken); line->setFixedHeight(10); - layout->addWidget(line); + tqlayout->addWidget(line); TQTabWidget *tab = new TQTabWidget(this); - layout->addWidget(tab); + tqlayout->addWidget(tab); tab->addTab(createGeneralPage(),i18n("&General")); if (a->type()==Area::Default) { - shape=i18n("Default"); + tqshape=i18n("Default"); } else tab->addTab(createCoordsPage(),i18n("Coor&dinates")); @@ -470,9 +470,9 @@ AreaDialog::AreaDialog(KImageMapEditor* parent,Area * a) line = new TQFrame(this); line->setFrameStyle(TQFrame::HLine | TQFrame::Sunken); line->setFixedHeight(10); - layout->addWidget(line); + tqlayout->addWidget(line); - layout->addWidget(createButtonBar()); + tqlayout->addWidget(createButtonBar()); setMinimumHeight(360); setMinimumWidth(327); @@ -485,28 +485,28 @@ AreaDialog::~AreaDialog() { delete oldArea; } -CoordsEdit* AreaDialog::createCoordsEdit(TQWidget *parent, Area *a) { +CoordsEdit* AreaDialog::createCoordsEdit(TQWidget *tqparent, Area *a) { if (!a) return 0; switch (a->type()) { case Area::Rectangle : - return new RectCoordsEdit(parent,a); + return new RectCoordsEdit(tqparent,a); break; case Area::Circle : - return new CircleCoordsEdit(parent,a); + return new CircleCoordsEdit(tqparent,a); break; case Area::Polygon : - return new PolyCoordsEdit(parent,a); + return new PolyCoordsEdit(tqparent,a); break; case Area::Selection : - return new SelectionCoordsEdit(parent,a); + return new SelectionCoordsEdit(tqparent,a); break; - case Area::Default : return new CoordsEdit(parent,a); break; - default : return new CoordsEdit(parent,a);break; + case Area::Default : return new CoordsEdit(tqparent,a); break; + default : return new CoordsEdit(tqparent,a);break; } } void AreaDialog::slotChooseHref() { - KURL url=KFileDialog::getOpenURL(TQString::null, "*|" + i18n( "All Files" ), this, i18n("Choose File")); + KURL url=KFileDialog::getOpenURL(TQString(), "*|" + i18n( "All Files" ), this, i18n("Choose File")); if (!url.isEmpty()) { hrefEdit->setText(url.url()); } @@ -570,8 +570,8 @@ void AreaDialog::slotUpdateArea() { oldArea->setRect(area->rect()); } -ImageMapChooseDialog::ImageMapChooseDialog(TQWidget* parent,TQPtrList<MapTag> *_maps,TQPtrList<ImageTag> *_images,const KURL & _baseUrl) - : KDialogBase(parent,"",true,i18n( "Choose Map & Image to Edit" ),Ok,Ok,true) +ImageMapChooseDialog::ImageMapChooseDialog(TQWidget* tqparent,TQPtrList<MapTag> *_maps,TQPtrList<ImageTag> *_images,const KURL & _baseUrl) + : KDialogBase(tqparent,"",true,i18n( "Choose Map & Image to Edit" ),Ok,Ok,true) { baseUrl=_baseUrl; maps=_maps; @@ -580,17 +580,17 @@ ImageMapChooseDialog::ImageMapChooseDialog(TQWidget* parent,TQPtrList<MapTag> *_ TQWidget *page=new TQWidget(this); setMainWidget(page); setCaption(baseUrl.fileName()); - TQVBoxLayout *layout = new TQVBoxLayout(page,5,5); + TQVBoxLayout *tqlayout = new TQVBoxLayout(page,5,5); TQLabel *lbl= new TQLabel(i18n("Select an image and/or a map that you want to edit"),page); lbl->setFont(TQFont("Sans Serif",12, TQFont::Bold)); - layout->addWidget(lbl); + tqlayout->addWidget(lbl); TQFrame *line= new TQFrame(page); line->setFrameStyle(TQFrame::HLine | TQFrame::Sunken); line->setFixedHeight(10); - layout->addWidget(line,0); + tqlayout->addWidget(line,0); - TQGridLayout *gridLayout= new TQGridLayout(layout,2,3,5); + TQGridLayout *gridLayout= new TQGridLayout(tqlayout,2,3,5); gridLayout->setRowStretch(0,0); gridLayout->setRowStretch(1,100); lbl=new TQLabel(i18n("&Maps"),page); @@ -602,7 +602,7 @@ ImageMapChooseDialog::ImageMapChooseDialog(TQWidget* parent,TQPtrList<MapTag> *_ line= new TQFrame(page); line->setFrameStyle(TQFrame::VLine | TQFrame::Sunken); line->setFixedWidth(10); -// line->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding)); +// line->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding)); gridLayout->addWidget(line,1,1); lbl=new TQLabel(i18n("Image Preview"),page); @@ -610,7 +610,7 @@ ImageMapChooseDialog::ImageMapChooseDialog(TQWidget* parent,TQPtrList<MapTag> *_ imagePreview= new TQLabel(page); imagePreview->setFixedSize(310,210); - imagePreview->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding)); + imagePreview->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding)); imagePreview->setFrameStyle(TQLabel::Panel | TQLabel::Sunken); imagePreview->setIndent(5); imagePreview->setBackgroundColor(TQColor("white")); @@ -619,12 +619,12 @@ ImageMapChooseDialog::ImageMapChooseDialog(TQWidget* parent,TQPtrList<MapTag> *_ // lbl= new TQLabel(i18n("&Maps"),page); // lbl->setBuddy(mapListBox); gridLayout->addWidget(imagePreview,1,2); -// layout->addLayout(gridLayout,1); +// tqlayout->addLayout(gridLayout,1); line= new TQFrame(page); line->setFrameStyle(TQFrame::HLine | TQFrame::Sunken); line->setFixedHeight(10); - layout->addWidget(line,0); + tqlayout->addWidget(line,0); if (maps->isEmpty()) { @@ -648,29 +648,29 @@ ImageMapChooseDialog::ImageMapChooseDialog(TQWidget* parent,TQPtrList<MapTag> *_ resize(510,460); } -void ImageMapChooseDialog::initImageListTable(TQWidget* parent) { +void ImageMapChooseDialog::initImageListTable(TQWidget* tqparent) { if (images->isEmpty()) { - imageListTable= new TQTable(1,1,parent); + imageListTable= new TQTable(1,1,tqparent); imageListTable->setText(0,0,i18n("No images found")); imageListTable->setEnabled(false); imageListTable->horizontalHeader()->hide(); imageListTable->setTopMargin(0); imageListTable->setColumnStretchable(0,true); } else { - imageListTable= new TQTable(images->count(),2,parent); + imageListTable= new TQTable(images->count(),2,tqparent); imageListTable->setColumnStretchable(0,true); } imageListTable->verticalHeader()->hide(); imageListTable->setLeftMargin(0); - TQLabel *lbl= new TQLabel(i18n("&Images"),parent); + TQLabel *lbl= new TQLabel(i18n("&Images"),tqparent); lbl->setBuddy(imageListTable); - parent->layout()->add(lbl); - parent->layout()->add(imageListTable); + tqparent->tqlayout()->add(lbl); + tqparent->tqlayout()->add(imageListTable); if (images->isEmpty()) return; @@ -687,10 +687,10 @@ void ImageMapChooseDialog::initImageListTable(TQWidget* parent) { for (ImageTag *tag = images->first(); tag!=0L; tag=images->next()) { TQString src=""; TQString usemap=""; - if (tag->find("src")) - src=*tag->find("src"); - if (tag->find("usemap")) - usemap=*tag->find("usemap"); + if (tag->tqfind("src")) + src=*tag->tqfind("src"); + if (tag->tqfind("usemap")) + usemap=*tag->tqfind("usemap"); imageListTable->setText(row,0,src); imageListTable->setText(row,1,usemap); @@ -711,8 +711,8 @@ void ImageMapChooseDialog::slotImageChanged() { int i=imageListTable->currentRow(); TQImage pix; - if (images->at(i)->find("src")) { - TQString str=*images->at(i)->find("src"); + if (images->at(i)->tqfind("src")) { + TQString str=*images->at(i)->tqfind("src"); // relative url pixUrl=KURL(baseUrl,str); pix=TQImage(pixUrl.path()); @@ -731,7 +731,7 @@ void ImageMapChooseDialog::slotImageChanged() pix2.convertFromImage(pix); imagePreview->setPixmap(pix2); -// imagePreview->repaint(); +// imagePreview->tqrepaint(); } void ImageMapChooseDialog::selectImageWithUsemap(const TQString & usemap) { @@ -749,8 +749,8 @@ void ImageMapChooseDialog::slotMapChanged(int i) { selectImageWithUsemap(currentMap->name); } -PreferencesDialog::PreferencesDialog(TQWidget *parent, KConfig* conf) - : KDialogBase(parent,"",true,i18n("Preferences"),Ok|Apply|Cancel,Ok,true) +PreferencesDialog::PreferencesDialog(TQWidget *tqparent, KConfig* conf) + : KDialogBase(tqparent,"",true,i18n("Preferences"),Ok|Apply|Cancel,Ok,true) { config = conf; TQVBox *page=new TQVBox(this); @@ -836,8 +836,8 @@ void PreferencesDialog::slotApply( void ) { emit applyClicked(); } -HTMLPreviewDialog::HTMLPreviewDialog(TQWidget* parent, KURL url, const TQString & htmlCode) - : KDialogBase(parent, "", true, i18n("Preview"), KDialogBase::Ok) +HTMLPreviewDialog::HTMLPreviewDialog(TQWidget* tqparent, KURL url, const TQString & htmlCode) + : KDialogBase(tqparent, "", true, i18n("Preview"), KDialogBase::Ok) { tempFile = new KTempFile(url.directory(false), ".html"); tempFile->setAutoDelete(true); @@ -866,8 +866,8 @@ HTMLPreviewDialog::~HTMLPreviewDialog() { void HTMLPreviewDialog::show() { KDialogBase::show(); htmlPart->openURL(KURL( tempFile->name() )); -// htmlView->layout(); -// htmlView->repaint(); +// htmlView->tqlayout(); +// htmlView->tqrepaint(); resize(800,600); } |