diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-03-02 20:05:33 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-03-02 20:05:33 +0100 |
commit | 722ce1efbac31c61b1d4b13f7e075c9f311e3e73 (patch) | |
tree | db1b6b28566e5fe9accb4a688f7257673cecb080 /parts/fileselector/fileselector_part.cpp | |
parent | afb74575caf7dd8ccb6c235b1c8d788e320c19da (diff) | |
download | tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.tar.gz tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.zip |
Finish renaming tdevelop components
Diffstat (limited to 'parts/fileselector/fileselector_part.cpp')
-rw-r--r-- | parts/fileselector/fileselector_part.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/parts/fileselector/fileselector_part.cpp b/parts/fileselector/fileselector_part.cpp index a6b4a6bb..331bb639 100644 --- a/parts/fileselector/fileselector_part.cpp +++ b/parts/fileselector/fileselector_part.cpp @@ -13,33 +13,33 @@ #include <ktextbrowser.h> #include <tdeconfig.h> #include <tdefileitem.h> -#include <kdevgenericfactory.h> +#include <tdevgenericfactory.h> #include <tdediroperator.h> #include <kdialogbase.h> #include <tdemessagebox.h> -#include <kdevapi.h> -#include <kdevcore.h> -#include <kdevproject.h> -#include <kdevmainwindow.h> -#include <kdevpartcontroller.h> -#include <kdevplugininfo.h> -#include <kdevcreatefile.h> +#include <tdevapi.h> +#include <tdevcore.h> +#include <tdevproject.h> +#include <tdevmainwindow.h> +#include <tdevpartcontroller.h> +#include <tdevplugininfo.h> +#include <tdevcreatefile.h> #include <ktip.h> #include "fileselector_widget.h" -typedef KDevGenericFactory<FileSelectorPart> FileSelectorFactory; -static const KDevPluginInfo data("kdevfileselector"); -K_EXPORT_COMPONENT_FACTORY( libkdevfileselector, FileSelectorFactory( data ) ) +typedef TDevGenericFactory<FileSelectorPart> FileSelectorFactory; +static const TDevPluginInfo data("tdevfileselector"); +K_EXPORT_COMPONENT_FACTORY( libtdevfileselector, FileSelectorFactory( data ) ) FileSelectorPart::FileSelectorPart(TQObject *parent, const char *name, const TQStringList &) - : KDevPlugin(&data, parent, name ? name : "FileSelectorPart") + : TDevPlugin(&data, parent, name ? name : "FileSelectorPart") { setInstance(FileSelectorFactory::instance()); - m_filetree = new KDevFileSelector( this, mainWindow(), partController(), 0, "fileselectorwidget" ); + m_filetree = new TDevFileSelector( this, mainWindow(), partController(), 0, "fileselectorwidget" ); connect( m_filetree->dirOperator(), TQT_SIGNAL(fileSelected(const KFileItem*)), this, TQT_SLOT(fileSelected(const KFileItem*))); @@ -63,7 +63,7 @@ FileSelectorPart::~FileSelectorPart() mainWindow()->removeView( m_filetree ); } - delete (KDevFileSelector*) m_filetree; + delete (TDevFileSelector*) m_filetree; } void FileSelectorPart::fileSelected( const KFileItem * file ) @@ -90,14 +90,14 @@ void FileSelectorPart::slotConfigWidget( KDialogBase * dlg ) void FileSelectorPart::newFile() { - KDevCreateFile *creator = extension<KDevCreateFile>("TDevelop/CreateFile"); + TDevCreateFile *creator = extension<TDevCreateFile>("TDevelop/CreateFile"); if (creator) { - KDevCreateFile::CreatedFile file = creator->createNewFile("", + TDevCreateFile::CreatedFile file = creator->createNewFile("", m_filetree->dirOperator()->url().path()); - if (file.status == KDevCreateFile::CreatedFile::STATUS_NOTCREATED) + if (file.status == TDevCreateFile::CreatedFile::STATUS_NOTCREATED) KMessageBox::error(0, i18n("Cannot create file. Check whether the directory and filename are valid.")); - else if (file.status != KDevCreateFile::CreatedFile::STATUS_CANCELED) + else if (file.status != TDevCreateFile::CreatedFile::STATUS_CANCELED) { partController()->editDocument(KURL::fromPathOrURL( file.dir + "/" + file.filename)); |