diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-05-25 15:37:31 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-05-25 15:37:31 +0900 |
commit | 6392f5a9dfce2bf83617d49bb7f332181ec6004e (patch) | |
tree | ab69e390f7962b7e7dda1a3a64f035c61c751cf4 /parts/fileselector/fileselector_part.cpp | |
parent | aba2788b428dc53243407902e9ccbb20b97a69fd (diff) | |
download | tdevelop-6392f5a9dfce2bf83617d49bb7f332181ec6004e.tar.gz tdevelop-6392f5a9dfce2bf83617d49bb7f332181ec6004e.zip |
Revert "Finish renaming tdevelop components"
This reverts commit 722ce1efbac31c61b1d4b13f7e075c9f311e3e73.
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 331bb639..a6b4a6bb 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 <tdevgenericfactory.h> +#include <kdevgenericfactory.h> #include <tdediroperator.h> #include <kdialogbase.h> #include <tdemessagebox.h> -#include <tdevapi.h> -#include <tdevcore.h> -#include <tdevproject.h> -#include <tdevmainwindow.h> -#include <tdevpartcontroller.h> -#include <tdevplugininfo.h> -#include <tdevcreatefile.h> +#include <kdevapi.h> +#include <kdevcore.h> +#include <kdevproject.h> +#include <kdevmainwindow.h> +#include <kdevpartcontroller.h> +#include <kdevplugininfo.h> +#include <kdevcreatefile.h> #include <ktip.h> #include "fileselector_widget.h" -typedef TDevGenericFactory<FileSelectorPart> FileSelectorFactory; -static const TDevPluginInfo data("tdevfileselector"); -K_EXPORT_COMPONENT_FACTORY( libtdevfileselector, FileSelectorFactory( data ) ) +typedef KDevGenericFactory<FileSelectorPart> FileSelectorFactory; +static const KDevPluginInfo data("kdevfileselector"); +K_EXPORT_COMPONENT_FACTORY( libkdevfileselector, FileSelectorFactory( data ) ) FileSelectorPart::FileSelectorPart(TQObject *parent, const char *name, const TQStringList &) - : TDevPlugin(&data, parent, name ? name : "FileSelectorPart") + : KDevPlugin(&data, parent, name ? name : "FileSelectorPart") { setInstance(FileSelectorFactory::instance()); - m_filetree = new TDevFileSelector( this, mainWindow(), partController(), 0, "fileselectorwidget" ); + m_filetree = new KDevFileSelector( 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 (TDevFileSelector*) m_filetree; + delete (KDevFileSelector*) m_filetree; } void FileSelectorPart::fileSelected( const KFileItem * file ) @@ -90,14 +90,14 @@ void FileSelectorPart::slotConfigWidget( KDialogBase * dlg ) void FileSelectorPart::newFile() { - TDevCreateFile *creator = extension<TDevCreateFile>("TDevelop/CreateFile"); + KDevCreateFile *creator = extension<KDevCreateFile>("TDevelop/CreateFile"); if (creator) { - TDevCreateFile::CreatedFile file = creator->createNewFile("", + KDevCreateFile::CreatedFile file = creator->createNewFile("", m_filetree->dirOperator()->url().path()); - if (file.status == TDevCreateFile::CreatedFile::STATUS_NOTCREATED) + if (file.status == KDevCreateFile::CreatedFile::STATUS_NOTCREATED) KMessageBox::error(0, i18n("Cannot create file. Check whether the directory and filename are valid.")); - else if (file.status != TDevCreateFile::CreatedFile::STATUS_CANCELED) + else if (file.status != KDevCreateFile::CreatedFile::STATUS_CANCELED) { partController()->editDocument(KURL::fromPathOrURL( file.dir + "/" + file.filename)); |