summaryrefslogtreecommitdiffstats
path: root/kimagemapeditor/kimedialogs.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit6c79d50fa9fbdff7f69ca57a8ab5fcc942375593 (patch)
treef47737d56c3239a0d8bc600674f0ca04b6e30d6e /kimagemapeditor/kimedialogs.cpp
parent36c36b53a129509d56fdaa0a7c9fcbcacd0c5826 (diff)
downloadtdewebdev-6c79d50fa9fbdff7f69ca57a8ab5fcc942375593.tar.gz
tdewebdev-6c79d50fa9fbdff7f69ca57a8ab5fcc942375593.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimagemapeditor/kimedialogs.cpp')
-rw-r--r--kimagemapeditor/kimedialogs.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/kimagemapeditor/kimedialogs.cpp b/kimagemapeditor/kimedialogs.cpp
index cd7999f0..c2e50c7c 100644
--- a/kimagemapeditor/kimedialogs.cpp
+++ b/kimagemapeditor/kimedialogs.cpp
@@ -47,8 +47,8 @@
// LOCAL
#include "kimedialogs.h"
-CoordsEdit::CoordsEdit(TQWidget *tqparent, Area* a)
- : TQWidget(tqparent)
+CoordsEdit::CoordsEdit(TQWidget *parent, Area* a)
+ : TQWidget(parent)
{
area=a;
}
@@ -66,8 +66,8 @@ CoordsEdit::~CoordsEdit()
{
}
-RectCoordsEdit::RectCoordsEdit(TQWidget *tqparent, Area* a)
- : CoordsEdit(tqparent,a)
+RectCoordsEdit::RectCoordsEdit(TQWidget *parent, Area* a)
+ : CoordsEdit(parent,a)
{
TQGridLayout *tqlayout= new TQGridLayout(this,5,2,5,5);
@@ -127,8 +127,8 @@ void RectCoordsEdit::applyChanges() {
area->setRect(r);
}
-CircleCoordsEdit::CircleCoordsEdit(TQWidget *tqparent, Area* a)
- : CoordsEdit(tqparent,a)
+CircleCoordsEdit::CircleCoordsEdit(TQWidget *parent, Area* a)
+ : CoordsEdit(parent,a)
{
TQGridLayout *tqlayout= new TQGridLayout(this,4,2,5,5);
@@ -180,8 +180,8 @@ void CircleCoordsEdit::applyChanges() {
area->setRect(r);
}
-PolyCoordsEdit::PolyCoordsEdit(TQWidget *tqparent, Area* a)
- : CoordsEdit(tqparent,a)
+PolyCoordsEdit::PolyCoordsEdit(TQWidget *parent, Area* a)
+ : CoordsEdit(parent,a)
{
if (!a) return;
TQVBoxLayout *tqlayout= new TQVBoxLayout(this);
@@ -274,8 +274,8 @@ void PolyCoordsEdit::applyChanges() {
}
}
-SelectionCoordsEdit::SelectionCoordsEdit(TQWidget *tqparent, Area* a)
- : CoordsEdit(tqparent,a)
+SelectionCoordsEdit::SelectionCoordsEdit(TQWidget *parent, Area* a)
+ : CoordsEdit(parent,a)
{
TQGridLayout *tqlayout= new TQGridLayout(this,2,2);
@@ -308,11 +308,11 @@ void SelectionCoordsEdit::applyChanges() {
-TQLineEdit* AreaDialog::createLineEdit(TQWidget* tqparent, TQGridLayout *tqlayout, int y, const TQString & value, const TQString & name)
+TQLineEdit* AreaDialog::createLineEdit(TQWidget* parent, TQGridLayout *tqlayout, int y, const TQString & value, const TQString & name)
{
- TQLineEdit* edit=new TQLineEdit(value,tqparent);
+ TQLineEdit* edit=new TQLineEdit(value,parent);
tqlayout->addWidget(edit,y,2);
- TQLabel* lbl=new TQLabel(name,tqparent);
+ TQLabel* lbl=new TQLabel(name,parent);
lbl->setBuddy(edit);
tqlayout->addWidget(lbl,y,1);
@@ -408,17 +408,17 @@ TQWidget* AreaDialog::createButtonBar()
}
-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)
+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)
{
if (!a) {
slotCancel();
return;
}
- _document=tqparent;
+ _document=parent;
setCaption(i18n("Area Tag Editor"));
@@ -485,23 +485,23 @@ AreaDialog::~AreaDialog() {
delete oldArea;
}
-CoordsEdit* AreaDialog::createCoordsEdit(TQWidget *tqparent, Area *a) {
+CoordsEdit* AreaDialog::createCoordsEdit(TQWidget *parent, Area *a) {
if (!a) return 0;
switch (a->type()) {
case Area::Rectangle :
- return new RectCoordsEdit(tqparent,a);
+ return new RectCoordsEdit(parent,a);
break;
case Area::Circle :
- return new CircleCoordsEdit(tqparent,a);
+ return new CircleCoordsEdit(parent,a);
break;
case Area::Polygon :
- return new PolyCoordsEdit(tqparent,a);
+ return new PolyCoordsEdit(parent,a);
break;
case Area::Selection :
- return new SelectionCoordsEdit(tqparent,a);
+ return new SelectionCoordsEdit(parent,a);
break;
- case Area::Default : return new CoordsEdit(tqparent,a); break;
- default : return new CoordsEdit(tqparent,a);break;
+ case Area::Default : return new CoordsEdit(parent,a); break;
+ default : return new CoordsEdit(parent,a);break;
}
}
@@ -570,8 +570,8 @@ void AreaDialog::slotUpdateArea() {
oldArea->setRect(area->rect());
}
-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)
+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)
{
baseUrl=_baseUrl;
maps=_maps;
@@ -648,29 +648,29 @@ ImageMapChooseDialog::ImageMapChooseDialog(TQWidget* tqparent,TQPtrList<MapTag>
resize(510,460);
}
-void ImageMapChooseDialog::initImageListTable(TQWidget* tqparent) {
+void ImageMapChooseDialog::initImageListTable(TQWidget* parent) {
if (images->isEmpty()) {
- imageListTable= new TQTable(1,1,tqparent);
+ imageListTable= new TQTable(1,1,parent);
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,tqparent);
+ imageListTable= new TQTable(images->count(),2,parent);
imageListTable->setColumnStretchable(0,true);
}
imageListTable->verticalHeader()->hide();
imageListTable->setLeftMargin(0);
- TQLabel *lbl= new TQLabel(i18n("&Images"),tqparent);
+ TQLabel *lbl= new TQLabel(i18n("&Images"),parent);
lbl->setBuddy(imageListTable);
- tqparent->tqlayout()->add(lbl);
- tqparent->tqlayout()->add(imageListTable);
+ parent->tqlayout()->add(lbl);
+ parent->tqlayout()->add(imageListTable);
if (images->isEmpty())
return;
@@ -749,8 +749,8 @@ void ImageMapChooseDialog::slotMapChanged(int i) {
selectImageWithUsemap(currentMap->name);
}
-PreferencesDialog::PreferencesDialog(TQWidget *tqparent, KConfig* conf)
- : KDialogBase(tqparent,"",true,i18n("Preferences"),Ok|Apply|Cancel,Ok,true)
+PreferencesDialog::PreferencesDialog(TQWidget *parent, KConfig* conf)
+ : KDialogBase(parent,"",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* tqparent, KURL url, const TQString & htmlCode)
- : KDialogBase(tqparent, "", true, i18n("Preview"), KDialogBase::Ok)
+HTMLPreviewDialog::HTMLPreviewDialog(TQWidget* parent, KURL url, const TQString & htmlCode)
+ : KDialogBase(parent, "", true, i18n("Preview"), KDialogBase::Ok)
{
tempFile = new KTempFile(url.directory(false), ".html");
tempFile->setAutoDelete(true);