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.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/parts/filecreate/fcconfigwidget.cpp b/parts/filecreate/fcconfigwidget.cpp
index 7c6fabc4..14066c11 100644
--- a/parts/filecreate/fcconfigwidget.cpp
+++ b/parts/filecreate/fcconfigwidget.cpp
@@ -35,8 +35,8 @@
#include "fcconfigwidget.h"
#include "filecreate_part.h"
#include "filecreate_filetype.h"
-#include "kdevproject.h"
-#include "kdevpartcontroller.h"
+#include "tdevproject.h"
+#include "tdevpartcontroller.h"
FCConfigWidget::FCConfigWidget(FileCreatePart * part, bool global, TQWidget *parent, const char *name):
@@ -90,7 +90,7 @@ void FCConfigWidget::accept()
void FCConfigWidget::loadGlobalConfig(TQListView *view, bool checkmarks)
{
- TQString globalXMLFile = ::locate("data", "kdevfilecreate/template-info.xml");
+ TQString globalXMLFile = ::locate("data", "tdevfilecreate/template-info.xml");
TQDomDocument globalDom;
if (!globalXMLFile.isNull() &&
DomUtil::openDOMFile(globalDom,globalXMLFile)) {
@@ -103,7 +103,7 @@ void FCConfigWidget::loadGlobalConfig(TQListView *view, bool checkmarks)
if (checkmarks)
{
TQDomElement useGlobalTypes =
- DomUtil::elementByPath(*(m_part->projectDom()),"/kdevfilecreate/useglobaltypes");
+ DomUtil::elementByPath(*(m_part->projectDom()),"/tdevfilecreate/useglobaltypes");
for(TQDomNode node = useGlobalTypes.firstChild(); !node.isNull();node=node.nextSibling())
{
if (node.isElement() && node.nodeName()=="type")
@@ -171,14 +171,14 @@ void FCConfigWidget::saveGlobalConfig()
TQDomDocument globalDom;
TQDomElement element = globalDom.createElement("tdevelop" );
globalDom.appendChild(element);
- TQDomElement apPart = globalDom.createElement("kdevfilecreate");
+ TQDomElement apPart = globalDom.createElement("tdevfilecreate");
element.appendChild(apPart);
TQDomElement fileTypes = globalDom.createElement( "filetypes" );
apPart.appendChild( fileTypes );
saveConfiguration(globalDom, fileTypes, true);
- TQFile config( TDEGlobal::dirs()->saveLocation("data", "kdevfilecreate/", true) + "template-info.xml" );
+ TQFile config( TDEGlobal::dirs()->saveLocation("data", "tdevfilecreate/", true) + "template-info.xml" );
config.open(IO_WriteOnly | IO_Truncate);
TQTextStream stream(&config);
stream << "<?xml version = '1.0'?>";
@@ -190,10 +190,10 @@ void FCConfigWidget::saveProjectConfig()
{
TQDomDocument dom = *m_part->projectDom( );
TQDomElement element = dom.documentElement( );
- TQDomElement apPart = element.namedItem( "kdevfilecreate" ).toElement( );
+ TQDomElement apPart = element.namedItem( "tdevfilecreate" ).toElement( );
if( apPart.isNull( ) )
{
- apPart = dom.createElement( "kdevfilecreate" );
+ apPart = dom.createElement( "tdevfilecreate" );
element.appendChild( apPart );
}
@@ -291,7 +291,7 @@ void FCConfigWidget::saveConfiguration(TQDomDocument &dom, TQDomElement &element
{
TQString dest;
if (global)
- dest = TDEGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true);
+ dest = TDEGlobal::dirs()->saveLocation("data", "/tdevfilecreate/file-templates/", true);
else
dest = m_part->project()->projectDirectory() + "/templates/";
if (it.current()->text(4) == "create")
@@ -318,7 +318,7 @@ void FCConfigWidget::saveConfiguration(TQDomDocument &dom, TQDomElement &element
{
TQString dest;
if (global)
- dest = TDEGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true);
+ dest = TDEGlobal::dirs()->saveLocation("data", "/tdevfilecreate/file-templates/", true);
else
dest = m_part->project()->projectDirectory() + "/templates/";
if (lastChild->text(4) == "create")
@@ -440,7 +440,7 @@ void FCConfigWidget::copyToProject_button_clicked()
it->parent()->text(1),
it->parent()->text(2),
it->parent()->text(3),
- locate("data", "kdevfilecreate/file-templates/"+ it->parent()->text(0)));
+ locate("data", "tdevfilecreate/file-templates/"+ it->parent()->text(0)));
destParent += it->parent()->text(0) + "-";
TQCheckListItem *chk = dynamic_cast<TQCheckListItem*>(it->parent());
if (chk)
@@ -452,13 +452,13 @@ void FCConfigWidget::copyToProject_button_clicked()
it->text(1),
it->text(2),
it->text(3),
- locate("data", "kdevfilecreate/file-templates/"+destParent + it->text(0)));
+ locate("data", "tdevfilecreate/file-templates/"+destParent + it->text(0)));
else
it_copy = new TQListViewItem(fc_view, it->text(0),
it->text(1),
it->text(2),
it->text(3),
- locate("data", "kdevfilecreate/file-templates/" +destParent+ it->text(0)));
+ locate("data", "tdevfilecreate/file-templates/" +destParent+ it->text(0)));
TQCheckListItem *chk = dynamic_cast<TQCheckListItem*>(it);
if (chk)
chk->setOn(false);
@@ -470,7 +470,7 @@ void FCConfigWidget::copyToProject_button_clicked()
it_child->text(1),
it_child->text(2),
it_child->text(3),
- locate("data", "kdevfilecreate/file-templates/"+ it_copy->text(0) + "-" + it_child->text(0)));
+ locate("data", "tdevfilecreate/file-templates/"+ it_copy->text(0) + "-" + it_child->text(0)));
TQCheckListItem *chk_child = dynamic_cast<TQCheckListItem*>(it_child);
if (chk_child)
chk_child->setOn(false);
@@ -683,7 +683,7 @@ void FCConfigWidget::edit_type_content_button_clicked( )
}
else
{
- TQString dest = TDEGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true);
+ TQString dest = TDEGlobal::dirs()->saveLocation("data", "/tdevfilecreate/file-templates/", true);
TQString typePath = dest + type_name;
KURL content;
content.setPath(typePath);
@@ -691,7 +691,7 @@ void FCConfigWidget::edit_type_content_button_clicked( )
{
TQFileInfo fi(dest+type_name);
if (!fi.exists())
- copyTemplate(locate("data", "kdevfilecreate/file-templates/" + type_name), dest, type_name);
+ copyTemplate(locate("data", "tdevfilecreate/file-templates/" + type_name), dest, type_name);
m_part->partController()->editDocument(content);
}
else