summaryrefslogtreecommitdiffstats
path: root/parts/filecreate
diff options
context:
space:
mode:
Diffstat (limited to 'parts/filecreate')
-rw-r--r--parts/filecreate/addglobaldlg.cpp6
-rw-r--r--parts/filecreate/addglobaldlg.h2
-rw-r--r--parts/filecreate/fcconfigwidget.cpp38
-rw-r--r--parts/filecreate/fcconfigwidget.h2
-rw-r--r--parts/filecreate/fctemplateedit.cpp4
-rw-r--r--parts/filecreate/fctemplateedit.h2
-rw-r--r--parts/filecreate/fctypeedit.cpp4
-rw-r--r--parts/filecreate/fctypeedit.h2
-rw-r--r--parts/filecreate/filecreate_filedialog.cpp4
-rw-r--r--parts/filecreate/filecreate_filedialog.h2
-rw-r--r--parts/filecreate/filecreate_newfile.cpp4
-rw-r--r--parts/filecreate/filecreate_newfile.h2
-rw-r--r--parts/filecreate/filecreate_part.cpp8
-rw-r--r--parts/filecreate/filecreate_part.h2
-rw-r--r--parts/filecreate/filecreate_widget2.cpp2
-rw-r--r--parts/filecreate/filecreate_widget3.cpp2
16 files changed, 43 insertions, 43 deletions
diff --git a/parts/filecreate/addglobaldlg.cpp b/parts/filecreate/addglobaldlg.cpp
index ca31669f..93914a2f 100644
--- a/parts/filecreate/addglobaldlg.cpp
+++ b/parts/filecreate/addglobaldlg.cpp
@@ -21,14 +21,14 @@
#include <klocale.h>
/*
- * Constructs a AddGlobalDlg as a child of 'tqparent', with the
+ * Constructs a AddGlobalDlg as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
-AddGlobalDlg::AddGlobalDlg( TQWidget* tqparent, const char* name, bool modal, WFlags fl )
- : TQDialog( tqparent, name, modal, fl )
+AddGlobalDlg::AddGlobalDlg( TQWidget* parent, const char* name, bool modal, WFlags fl )
+ : TQDialog( parent, name, modal, fl )
{
if ( !name )
diff --git a/parts/filecreate/addglobaldlg.h b/parts/filecreate/addglobaldlg.h
index 2e7435dc..32605ace 100644
--- a/parts/filecreate/addglobaldlg.h
+++ b/parts/filecreate/addglobaldlg.h
@@ -26,7 +26,7 @@ class AddGlobalDlg : public TQDialog
TQ_OBJECT
public:
- AddGlobalDlg( TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ AddGlobalDlg( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~AddGlobalDlg();
TQPushButton* buttonHelp;
diff --git a/parts/filecreate/fcconfigwidget.cpp b/parts/filecreate/fcconfigwidget.cpp
index 201fb65f..d670c8e3 100644
--- a/parts/filecreate/fcconfigwidget.cpp
+++ b/parts/filecreate/fcconfigwidget.cpp
@@ -39,8 +39,8 @@
#include "kdevpartcontroller.h"
-FCConfigWidget::FCConfigWidget(FileCreatePart * part, bool global, TQWidget *tqparent, const char *name):
- FCConfigWidgetBase(tqparent, name), m_part(part), m_global(global)
+FCConfigWidget::FCConfigWidget(FileCreatePart * part, bool global, TQWidget *parent, const char *name):
+ FCConfigWidgetBase(parent, name), m_part(part), m_global(global)
{
fc_view->setSorting(-1, FALSE);
fcglobal_view->setSorting(-1, FALSE);
@@ -217,7 +217,7 @@ void FCConfigWidget::saveProjectConfig()
TQListViewItemIterator it( fcglobal_view );
for( ; it.current( ); ++it ){
- if (!it.current()->tqparent())
+ if (!it.current()->parent())
{
TQCheckListItem *chit = dynamic_cast<TQCheckListItem*>(it.current());
if ( !chit ) continue;
@@ -271,7 +271,7 @@ void FCConfigWidget::saveConfiguration(TQDomDocument &dom, TQDomElement &element
{
TQListViewItemIterator it( fc_view );
for( ; it.current( ); ++it ){
- if (!it.current()->tqparent())
+ if (!it.current()->parent())
{
TQDomElement type = dom.createElement( "type" );
type.setAttribute( "ext", it.current()->text(0) );
@@ -434,15 +434,15 @@ void FCConfigWidget::copyToProject_button_clicked()
{
TQListViewItem *it_copy_parent = 0;
TQString destParent;
- if (it->tqparent())
+ if (it->parent())
{
- it_copy_parent = new TQListViewItem(fc_view, it->tqparent()->text(0),
- it->tqparent()->text(1),
- it->tqparent()->text(2),
- it->tqparent()->text(3),
- locate("data", "kdevfilecreate/file-templates/"+ it->tqparent()->text(0)));
- destParent += it->tqparent()->text(0) + "-";
- TQCheckListItem *chk = dynamic_cast<TQCheckListItem*>(it->tqparent());
+ it_copy_parent = new TQListViewItem(fc_view, it->parent()->text(0),
+ it->parent()->text(1),
+ it->parent()->text(2),
+ it->parent()->text(3),
+ locate("data", "kdevfilecreate/file-templates/"+ it->parent()->text(0)));
+ destParent += it->parent()->text(0) + "-";
+ TQCheckListItem *chk = dynamic_cast<TQCheckListItem*>(it->parent());
if (chk)
chk->setOn(false);
}
@@ -497,7 +497,7 @@ void FCConfigWidget::newtype_button_clicked()
void FCConfigWidget::newsubtype_button_clicked()
{
- if (fc_view->currentItem() && (!fc_view->currentItem()->tqparent()))
+ if (fc_view->currentItem() && (!fc_view->currentItem()->parent()))
{
FCTypeEdit *te = new FCTypeEdit(this);
if (te->exec() == TQDialog::Accepted )
@@ -541,10 +541,10 @@ void FCConfigWidget::moveup_button_clicked()
return;
TQListViewItemIterator it( i );
- TQListViewItem *tqparent = i->tqparent();
+ TQListViewItem *parent = i->parent();
--it;
while ( it.current() ) {
- if ( it.current()->tqparent() == tqparent )
+ if ( it.current()->parent() == parent )
break;
--it;
}
@@ -564,10 +564,10 @@ void FCConfigWidget::movedown_button_clicked()
return;
TQListViewItemIterator it( i );
- TQListViewItem *tqparent = i->tqparent();
+ TQListViewItem *parent = i->parent();
it++;
while ( it.current() ) {
- if ( it.current()->tqparent() == tqparent )
+ if ( it.current()->parent() == parent )
break;
it++;
}
@@ -662,8 +662,8 @@ void FCConfigWidget::edit_type_content_button_clicked( )
return;
TQListViewItem *it = fc_view->currentItem();
TQString type_name = it->text(0);
- if (it->tqparent())
- type_name.prepend(it->tqparent()->text(0) + "-");
+ if (it->parent())
+ type_name.prepend(it->parent()->text(0) + "-");
if (!m_global)
{
TQString typePath = m_part->project()->projectDirectory() + "/templates/" + type_name;
diff --git a/parts/filecreate/fcconfigwidget.h b/parts/filecreate/fcconfigwidget.h
index 19087ba6..24e97932 100644
--- a/parts/filecreate/fcconfigwidget.h
+++ b/parts/filecreate/fcconfigwidget.h
@@ -31,7 +31,7 @@ class FCConfigWidget : public FCConfigWidgetBase
Q_OBJECT
TQ_OBJECT
public:
- FCConfigWidget(FileCreatePart * part, bool global, TQWidget *tqparent, const char *name);
+ FCConfigWidget(FileCreatePart * part, bool global, TQWidget *parent, const char *name);
~FCConfigWidget();
diff --git a/parts/filecreate/fctemplateedit.cpp b/parts/filecreate/fctemplateedit.cpp
index 1fcc6e02..b019ddb9 100644
--- a/parts/filecreate/fctemplateedit.cpp
+++ b/parts/filecreate/fctemplateedit.cpp
@@ -11,8 +11,8 @@
#include "fctemplateedit.h"
#include <tqpushbutton.h>
-FCTemplateEdit::FCTemplateEdit(TQWidget *tqparent, const char *name):
- FCTemplateEditBase(tqparent, name)
+FCTemplateEdit::FCTemplateEdit(TQWidget *parent, const char *name):
+ FCTemplateEditBase(parent, name)
{
connect( templatename_edit, TQT_SIGNAL(textChanged ( const TQString & )),
this, TQT_SLOT( slotTemplateNameChanged( )));
diff --git a/parts/filecreate/fctemplateedit.h b/parts/filecreate/fctemplateedit.h
index a5a0c2f6..a1fe6e2e 100644
--- a/parts/filecreate/fctemplateedit.h
+++ b/parts/filecreate/fctemplateedit.h
@@ -19,7 +19,7 @@ class FCTemplateEdit : public FCTemplateEditBase
Q_OBJECT
TQ_OBJECT
public:
- FCTemplateEdit(TQWidget *tqparent=0, const char *name=0);
+ FCTemplateEdit(TQWidget *parent=0, const char *name=0);
~FCTemplateEdit();
diff --git a/parts/filecreate/fctypeedit.cpp b/parts/filecreate/fctypeedit.cpp
index dfb29ef6..5ee4eb0d 100644
--- a/parts/filecreate/fctypeedit.cpp
+++ b/parts/filecreate/fctypeedit.cpp
@@ -13,8 +13,8 @@
#include "fctypeedit.h"
-FCTypeEdit::FCTypeEdit(TQWidget *tqparent, char *name)
- : FCTypeEditBase(tqparent, name)
+FCTypeEdit::FCTypeEdit(TQWidget *parent, char *name)
+ : FCTypeEditBase(parent, name)
{
connect( typeext_edit, TQT_SIGNAL( textChanged ( const TQString & )),this, TQT_SLOT( slotTypeEditTextChanged()));
connect( typename_edit, TQT_SIGNAL( textChanged ( const TQString & )),this, TQT_SLOT( slotTypeEditTextChanged( )));
diff --git a/parts/filecreate/fctypeedit.h b/parts/filecreate/fctypeedit.h
index 122b0b57..40bee906 100644
--- a/parts/filecreate/fctypeedit.h
+++ b/parts/filecreate/fctypeedit.h
@@ -19,7 +19,7 @@ class FCTypeEdit : public FCTypeEditBase
Q_OBJECT
TQ_OBJECT
public:
- FCTypeEdit(TQWidget *tqparent = 0, char *name = 0);
+ FCTypeEdit(TQWidget *parent = 0, char *name = 0);
~FCTypeEdit();
diff --git a/parts/filecreate/filecreate_filedialog.cpp b/parts/filecreate/filecreate_filedialog.cpp
index 1baa2132..ecc8df42 100644
--- a/parts/filecreate/filecreate_filedialog.cpp
+++ b/parts/filecreate/filecreate_filedialog.cpp
@@ -21,9 +21,9 @@
namespace FileCreate {
FileDialog::FileDialog(const TQString& startDir, const TQString& filter,
- TQWidget *tqparent, const char *name,
+ TQWidget *parent, const char *name,
bool modal, TQWidget * extraWidget) :
- KFileDialog(startDir, filter, tqparent, name, modal, extraWidget) {
+ KFileDialog(startDir, filter, parent, name, modal, extraWidget) {
setOperationMode(Saving);
diff --git a/parts/filecreate/filecreate_filedialog.h b/parts/filecreate/filecreate_filedialog.h
index 26852cfc..a2785b54 100644
--- a/parts/filecreate/filecreate_filedialog.h
+++ b/parts/filecreate/filecreate_filedialog.h
@@ -25,7 +25,7 @@ namespace FileCreate {
public:
FileDialog(const TQString& startDir, const TQString& filter,
- TQWidget *tqparent, const char *name,
+ TQWidget *parent, const char *name,
bool modal, TQWidget * extraWidget);
virtual ~FileDialog();
diff --git a/parts/filecreate/filecreate_newfile.cpp b/parts/filecreate/filecreate_newfile.cpp
index 6b41bb0b..b4b84de1 100644
--- a/parts/filecreate/filecreate_newfile.cpp
+++ b/parts/filecreate/filecreate_newfile.cpp
@@ -29,9 +29,9 @@
namespace FileCreate {
- NewFileChooser::NewFileChooser(TQWidget * tqparent) :
+ NewFileChooser::NewFileChooser(TQWidget * parent) :
KDialogBase(KDialogBase::Plain, i18n("New file dialog (title)", "New File"), KDialogBase::Ok|KDialogBase::Cancel,
- KDialogBase::Ok, tqparent, "New file", true)
+ KDialogBase::Ok, parent, "New file", true)
{
TQVBoxLayout* lay = new TQVBoxLayout( plainPage(), 5, 5 );
diff --git a/parts/filecreate/filecreate_newfile.h b/parts/filecreate/filecreate_newfile.h
index 04239e90..ab04dec9 100644
--- a/parts/filecreate/filecreate_newfile.h
+++ b/parts/filecreate/filecreate_newfile.h
@@ -28,7 +28,7 @@ namespace FileCreate {
Q_OBJECT
TQ_OBJECT
public:
- NewFileChooser(TQWidget *tqparent=0);
+ NewFileChooser(TQWidget *parent=0);
virtual ~NewFileChooser();
void setFileTypes(TQPtrList<FileType> typelist);
KURL url() const;
diff --git a/parts/filecreate/filecreate_part.cpp b/parts/filecreate/filecreate_part.cpp
index e7ad379e..75523c5d 100644
--- a/parts/filecreate/filecreate_part.cpp
+++ b/parts/filecreate/filecreate_part.cpp
@@ -61,9 +61,9 @@ K_EXPORT_COMPONENT_FACTORY( libkdevfilecreate, FileCreateFactory( data ) )
using namespace FileCreate;
-FileCreatePart::FileCreatePart(TQObject *tqparent, const char *name, const TQStringList & )
-// : KDevCreateFile(&data, tqparent, name ? name : "FileCreatePart"), m_selectedWidget(-1), m_useSideTab(true), m_subPopups(0)
- : KDevCreateFile(&data, tqparent, name ? name : "FileCreatePart"), m_subPopups(0)
+FileCreatePart::FileCreatePart(TQObject *parent, const char *name, const TQStringList & )
+// : KDevCreateFile(&data, parent, name ? name : "FileCreatePart"), m_selectedWidget(-1), m_useSideTab(true), m_subPopups(0)
+ : KDevCreateFile(&data, parent, name ? name : "FileCreatePart"), m_subPopups(0)
{
setInstance(FileCreateFactory::instance());
setXMLFile("kdevpart_filecreate.rc");
@@ -483,7 +483,7 @@ void FileCreatePart::slotInitialize( )
}
} else {
// if an extension + subtype have been specified, enable
- // the subtype and the extension (the 'tqparent')
+ // the subtype and the extension (the 'parent')
FileType * filetype = getType(ext);
FileType * subtype = getType(ext,subtyperef);
if (filetype && subtype) {
diff --git a/parts/filecreate/filecreate_part.h b/parts/filecreate/filecreate_part.h
index c8da5b27..574541fb 100644
--- a/parts/filecreate/filecreate_part.h
+++ b/parts/filecreate/filecreate_part.h
@@ -43,7 +43,7 @@ class FileCreatePart : public KDevCreateFile
friend class FCConfigWidget;
public:
- FileCreatePart(TQObject *tqparent, const char *name, const TQStringList &);
+ FileCreatePart(TQObject *parent, const char *name, const TQStringList &);
virtual ~FileCreatePart();
/**
diff --git a/parts/filecreate/filecreate_widget2.cpp b/parts/filecreate/filecreate_widget2.cpp
index ca37957a..840d62b4 100644
--- a/parts/filecreate/filecreate_widget2.cpp
+++ b/parts/filecreate/filecreate_widget2.cpp
@@ -67,7 +67,7 @@ namespace FileCreate {
else kdDebug(9034) << "No match!" << endl;
}
- // If an exact match is not found (e.g. current points to a 'tqparent' type) then
+ // If an exact match is not found (e.g. current points to a 'parent' type) then
// look instead for an extension match
if (changeToRow==-1) {
for(it = typeForRow.begin(); it!= typeForRow.end() && changeToRow==-1; ++it) {
diff --git a/parts/filecreate/filecreate_widget3.cpp b/parts/filecreate/filecreate_widget3.cpp
index 282426c0..5d307bff 100644
--- a/parts/filecreate/filecreate_widget3.cpp
+++ b/parts/filecreate/filecreate_widget3.cpp
@@ -70,7 +70,7 @@ namespace FileCreate {
lvi = lvi->nextSibling();
else {
while (lvi && !lvi->nextSibling())
- lvi = lvi->tqparent();
+ lvi = lvi->parent();
}
}