summaryrefslogtreecommitdiffstats
path: root/parts/filecreate/fcconfigwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/filecreate/fcconfigwidget.cpp')
-rw-r--r--parts/filecreate/fcconfigwidget.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/parts/filecreate/fcconfigwidget.cpp b/parts/filecreate/fcconfigwidget.cpp
index df4963fa..6a1dc7e6 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 *parent, const char *name):
- FCConfigWidgetBase(parent, name), m_part(part), m_global(global)
+FCConfigWidget::FCConfigWidget(FileCreatePart * part, bool global, TQWidget *tqparent, const char *name):
+ FCConfigWidgetBase(tqparent, name), m_part(part), m_global(global)
{
fc_view->setSorting(-1, FALSE);
fcglobal_view->setSorting(-1, FALSE);
@@ -113,7 +113,7 @@ void FCConfigWidget::loadGlobalConfig(TQListView *view, bool checkmarks)
TQString subtyperef = element.attribute("subtyperef");
if (subtyperef.isNull())
{
- TQListViewItem *it = view->findItem(ext, 0);
+ TQListViewItem *it = view->tqfindItem(ext, 0);
if (it)
{
((TQCheckListItem*)it)->setOn(true);
@@ -128,7 +128,7 @@ void FCConfigWidget::loadGlobalConfig(TQListView *view, bool checkmarks)
}
else
{
- TQListViewItem *it = view->findItem(subtyperef, 0);
+ TQListViewItem *it = view->tqfindItem(subtyperef, 0);
if (it)
((TQCheckListItem*)it)->setOn(true);
}
@@ -147,9 +147,9 @@ void FCConfigWidget::loadProjectTemplates(TQListView *view)
{
TQDir templDir( m_part->project()->projectDirectory() + "/templates/" );
templDir.setFilter( TQDir::Files );
- const QFileInfoList * list = templDir.entryInfoList();
+ const TQFileInfoList * list = templDir.entryInfoList();
if( list ){
- QFileInfoListIterator it( *list );
+ TQFileInfoListIterator it( *list );
TQFileInfo *fi;
while ( (fi = it.current()) != 0 ) {
FileType * filetype;
@@ -217,7 +217,7 @@ void FCConfigWidget::saveProjectConfig()
TQListViewItemIterator it( fcglobal_view );
for( ; it.current( ); ++it ){
- if (!it.current()->parent())
+ if (!it.current()->tqparent())
{
TQCheckListItem *chit = dynamic_cast<TQCheckListItem*>(it.current());
if ( !chit ) continue;
@@ -259,7 +259,7 @@ void FCConfigWidget::saveProjectConfig()
TQString dest;
dest = m_part->project()->projectDirectory() + "/templates/";
if (it2.current()->text(1) == "create")
- copyTemplate(TQString::null, dest, it2.current()->text(0));
+ copyTemplate(TQString(), dest, it2.current()->text(0));
else
copyTemplate(it2.current()->text(1), dest, it2.current()->text(0));
}
@@ -271,7 +271,7 @@ void FCConfigWidget::saveConfiguration(TQDomDocument &dom, TQDomElement &element
{
TQListViewItemIterator it( fc_view );
for( ; it.current( ); ++it ){
- if (!it.current()->parent())
+ if (!it.current()->tqparent())
{
TQDomElement type = dom.createElement( "type" );
type.setAttribute( "ext", it.current()->text(0) );
@@ -295,7 +295,7 @@ void FCConfigWidget::saveConfiguration(TQDomDocument &dom, TQDomElement &element
else
dest = m_part->project()->projectDirectory() + "/templates/";
if (it.current()->text(4) == "create")
- copyTemplate(TQString::null, dest, it.current()->text(0));
+ copyTemplate(TQString(), dest, it.current()->text(0));
else
copyTemplate(it.current()->text(4), dest, it.current()->text(0));
}
@@ -322,7 +322,7 @@ void FCConfigWidget::saveConfiguration(TQDomDocument &dom, TQDomElement &element
else
dest = m_part->project()->projectDirectory() + "/templates/";
if (lastChild->text(4) == "create")
- copyTemplate(TQString::null, dest, it.current()->text(0) + "-" + lastChild->text(0));
+ copyTemplate(TQString(), dest, it.current()->text(0) + "-" + lastChild->text(0));
else
copyTemplate(lastChild->text(4), dest, it.current()->text(0) + "-" + lastChild->text(0));
}
@@ -434,15 +434,15 @@ void FCConfigWidget::copyToProject_button_clicked()
{
TQListViewItem *it_copy_parent = 0;
TQString destParent;
- if (it->parent())
+ if (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());
+ 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());
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()->parent()))
+ if (fc_view->currentItem() && (!fc_view->currentItem()->tqparent()))
{
FCTypeEdit *te = new FCTypeEdit(this);
if (te->exec() == TQDialog::Accepted )
@@ -541,10 +541,10 @@ void FCConfigWidget::moveup_button_clicked()
return;
TQListViewItemIterator it( i );
- TQListViewItem *parent = i->parent();
+ TQListViewItem *tqparent = i->tqparent();
--it;
while ( it.current() ) {
- if ( it.current()->parent() == parent )
+ if ( it.current()->tqparent() == tqparent )
break;
--it;
}
@@ -564,10 +564,10 @@ void FCConfigWidget::movedown_button_clicked()
return;
TQListViewItemIterator it( i );
- TQListViewItem *parent = i->parent();
+ TQListViewItem *tqparent = i->tqparent();
it++;
while ( it.current() ) {
- if ( it.current()->parent() == parent )
+ if ( it.current()->tqparent() == tqparent )
break;
it++;
}
@@ -649,7 +649,7 @@ void FCConfigWidget::edit_template_content_button_clicked( )
m_part->partController()->editDocument(content);
else
{
- KMessageBox::information(this, i18n("Requested template does not exist yet.\nIt will be opened immediately after accepting the configuration dialog."), TQString::null, "Edit template content warning");
+ KMessageBox::information(this, i18n("Requested template does not exist yet.\nIt will be opened immediately after accepting the configuration dialog."), TQString(), "Edit template content warning");
fctemplates_view->currentItem()->setPixmap(0, SmallIcon("edit"));
urlsToEdit.append(content);
}
@@ -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->parent())
- type_name.prepend(it->parent()->text(0) + "-");
+ if (it->tqparent())
+ type_name.prepend(it->tqparent()->text(0) + "-");
if (!m_global)
{
TQString typePath = m_part->project()->projectDirectory() + "/templates/" + type_name;
@@ -674,9 +674,9 @@ void FCConfigWidget::edit_type_content_button_clicked( )
else
{
if (it->text(4) == "create")
- KMessageBox::information(this, i18n("Template for the selected file type does not exist yet.\nIt will be opened immediately after accepting the configuration dialog."), TQString::null, "Edit type template content warning");
+ KMessageBox::information(this, i18n("Template for the selected file type does not exist yet.\nIt will be opened immediately after accepting the configuration dialog."), TQString(), "Edit type template content warning");
else
- KMessageBox::information(this, i18n("Template for the selected file type has been changed.\nIt will be opened immediately after accepting the configuration dialog."), TQString::null, "Edit type template content warning");
+ KMessageBox::information(this, i18n("Template for the selected file type has been changed.\nIt will be opened immediately after accepting the configuration dialog."), TQString(), "Edit type template content warning");
fc_view->currentItem()->setPixmap(0, SmallIcon("edit"));
urlsToEdit.append(content);
}
@@ -697,9 +697,9 @@ void FCConfigWidget::edit_type_content_button_clicked( )
else
{
if (it->text(4) == "create")
- KMessageBox::information(this, i18n("Template for the selected file type does not exist yet.\nIt will be opened immediately after accepting the configuration dialog."), TQString::null, "Edit global type template content warning");
+ KMessageBox::information(this, i18n("Template for the selected file type does not exist yet.\nIt will be opened immediately after accepting the configuration dialog."), TQString(), "Edit global type template content warning");
else
- KMessageBox::information(this, i18n("Template for the selected file type has been changed.\nIt will be opened immediately after accepting the configuration dialog."), TQString::null, "Edit global type template content warning");
+ KMessageBox::information(this, i18n("Template for the selected file type has been changed.\nIt will be opened immediately after accepting the configuration dialog."), TQString(), "Edit global type template content warning");
fc_view->currentItem()->setPixmap(0, SmallIcon("edit"));
urlsToEdit.append(content);
}