summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am4
-rw-r--r--src/commentwidget.cpp8
-rw-r--r--src/documentlistview.cpp46
-rw-r--r--src/documentlistview.h18
-rw-r--r--src/documentlistviewitem.cpp8
-rw-r--r--src/documentlistviewitem.h4
-rw-r--r--src/documentsourceview.cpp24
-rw-r--r--src/documentsourceview.h6
-rw-r--r--src/documentwidget.cpp44
-rw-r--r--src/documentwidget.h26
-rw-r--r--src/entrywidget.cpp24
-rw-r--r--src/entrywidget.h6
-rw-r--r--src/entrywidgetauthor.cpp2
-rw-r--r--src/entrywidgetexternal.cpp8
-rw-r--r--src/entrywidgetkeyword.cpp10
-rw-r--r--src/entrywidgetkeyword.h6
-rw-r--r--src/entrywidgetmisc.cpp2
-rw-r--r--src/entrywidgetother.cpp10
-rw-r--r--src/entrywidgetother.h4
-rw-r--r--src/entrywidgetpublication.cpp2
-rw-r--r--src/entrywidgetsource.cpp6
-rw-r--r--src/entrywidgettab.cpp2
-rw-r--r--src/entrywidgettitle.cpp2
-rw-r--r--src/entrywidgetuserdefined.cpp2
-rw-r--r--src/entrywidgetwarningsitem.cpp10
-rw-r--r--src/fieldlineedit.cpp2
-rw-r--r--src/fieldlineedit.h4
-rw-r--r--src/fieldlistview.cpp14
-rw-r--r--src/fieldlistview.h4
-rw-r--r--src/findduplicates.cpp4
-rw-r--r--src/idsuggestions.cpp2
-rw-r--r--src/idsuggestionswidget.cpp24
-rw-r--r--src/kbibtex.desktop4
-rw-r--r--src/kbibtex_part.cpp142
-rw-r--r--src/kbibtex_part.desktop2
-rw-r--r--src/kbibtex_part.h82
-rw-r--r--src/kbibtex_part.rc2
-rw-r--r--src/kbibtexshell.cpp50
-rw-r--r--src/kbibtexshell.h22
-rw-r--r--src/macrowidget.cpp2
-rw-r--r--src/main.cpp30
-rw-r--r--src/mergeelements.cpp28
-rw-r--r--src/mergeelements.h10
-rw-r--r--src/messagehandler.cpp2
-rw-r--r--src/preamblewidget.cpp2
-rw-r--r--src/searchbar.cpp10
-rw-r--r--src/searchbar.h2
-rw-r--r--src/settings.cpp50
-rw-r--r--src/settings.h18
-rw-r--r--src/settingsdlg.cpp2
-rw-r--r--src/settingsediting.cpp14
-rw-r--r--src/settingsediting.h4
-rw-r--r--src/settingsfileio.cpp6
-rw-r--r--src/settingsidsuggestions.cpp28
-rw-r--r--src/settingsidsuggestions.h12
-rw-r--r--src/settingskeyword.cpp18
-rw-r--r--src/settingskeyword.h4
-rw-r--r--src/settingssearchurl.cpp12
-rw-r--r--src/settingssearchurl.h4
-rw-r--r--src/settingsuserdefinedinput.cpp16
-rw-r--r--src/settingsuserdefinedinput.h4
-rw-r--r--src/settingsz3950.cpp16
-rw-r--r--src/settingsz3950.h10
-rw-r--r--src/sidebar.cpp18
-rw-r--r--src/sidebar.h8
-rw-r--r--src/valuewidget.cpp2
-rw-r--r--src/webquery.cpp48
-rw-r--r--src/webquery.h22
-rw-r--r--src/webqueryamatex.cpp8
-rw-r--r--src/webqueryarxiv.cpp32
-rw-r--r--src/webqueryarxiv.h8
-rw-r--r--src/webquerybibsonomy.cpp8
-rw-r--r--src/webquerycitebase.cpp8
-rw-r--r--src/webqueryciteseerx.cpp12
-rw-r--r--src/webqueryciteseerx.h4
-rw-r--r--src/webquerycsb.cpp10
-rw-r--r--src/webquerycsb.h2
-rw-r--r--src/webquerydblp.cpp10
-rw-r--r--src/webquerygooglescholar.cpp44
-rw-r--r--src/webquerygooglescholar.h12
-rw-r--r--src/webqueryieeexplore.cpp22
-rw-r--r--src/webqueryieeexplore.h4
-rw-r--r--src/webquerymathscinet.cpp10
-rw-r--r--src/webquerypubmed.cpp10
-rw-r--r--src/webquerysciencedirect.cpp20
-rw-r--r--src/webquerysciencedirect.h4
-rw-r--r--src/webqueryspireshep.cpp10
-rw-r--r--src/webqueryz3950.cpp14
-rw-r--r--src/webqueryzmath.cpp8
-rw-r--r--src/z3950connection.cpp2
90 files changed, 653 insertions, 653 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c8b98f8..d1999a4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -43,7 +43,7 @@ bin_PROGRAMS = kbibtex
# the application source, library search path, and link libraries
kbibtex_SOURCES = kbibtexshell.cpp main.cpp
kbibtex_LDFLAGS = $(all_libraries)
-kbibtex_LDADD = $(LIB_KPARTS) $(LIB_KIO) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT)
+kbibtex_LDADD = $(LIB_KPARTS) $(LIB_KIO) $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_QT)
# this is where the desktop file will go
shelldesktopdir = $(xdg_appsdir)
@@ -75,7 +75,7 @@ libkbibtexpart_la_SOURCES = comment.cpp fileexporterdocbook5.cpp commentwidget.c
xsltransform.cpp webquerysciencedirect.cpp findduplicates.cpp settingsz3950.cpp \
messagehandler.cpp iso6937converter.cpp iso5426converter.cpp webquerymathscinet.cpp
libkbibtexpart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
-libkbibtexpart_la_LIBADD = $(LIB_KPARTS) $(LIB_KIO) $(LIB_KFILE) $(LIB_KUTILS) $(LIBXSLT_LIBS) $(LIBXML_LIBS) $(LIBYAZ_LIBS) $(LIBBIBUTILS_LIBS) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI) -lDCOP -lkatepartinterfaces -lktexteditor
+libkbibtexpart_la_LIBADD = $(LIB_KPARTS) $(LIB_KIO) $(LIB_KFILE) $(LIB_KUTILS) $(LIBXSLT_LIBS) $(LIBXML_LIBS) $(LIBYAZ_LIBS) $(LIBBIBUTILS_LIBS) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) -lDCOP -lkatepartinterfaces -ltdetexteditor
# this is where the desktop file will go
partdesktopdir = $(kde_servicesdir)
diff --git a/src/commentwidget.cpp b/src/commentwidget.cpp
index 56a6854..3925ae4 100644
--- a/src/commentwidget.cpp
+++ b/src/commentwidget.cpp
@@ -22,9 +22,9 @@
#include <ntqlayout.h>
#include <ntqcheckbox.h>
#include <kdialogbase.h>
-#include <kglobalsettings.h>
-#include <klocale.h>
-#include <kmessagebox.h>
+#include <tdeglobalsettings.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
#include <comment.h>
#include <element.h>
@@ -56,7 +56,7 @@ namespace KBibTeX
layout->addWidget( label );
m_multiLineEdit = new TQMultiLineEdit( this );
- m_multiLineEdit->setFont( KGlobalSettings::fixedFont() );
+ m_multiLineEdit->setFont( TDEGlobalSettings::fixedFont() );
layout->addWidget( m_multiLineEdit );
label->setBuddy( m_multiLineEdit );
m_multiLineEdit->setReadOnly( m_isReadOnly );
diff --git a/src/documentlistview.cpp b/src/documentlistview.cpp
index 7478252..ca68162 100644
--- a/src/documentlistview.cpp
+++ b/src/documentlistview.cpp
@@ -33,16 +33,16 @@
#include <ntqtextstream.h>
#include <ntqtimer.h>
-#include <kapplication.h>
-#include <kio/netaccess.h>
-#include <ktempfile.h>
-#include <klocale.h>
+#include <tdeapplication.h>
+#include <tdeio/netaccess.h>
+#include <tdetempfile.h>
+#include <tdelocale.h>
#include <kurl.h>
#include <kurldrag.h>
-#include <kactionclasses.h>
-#include <kaction.h>
-#include <kpopupmenu.h>
-#include <kmessagebox.h>
+#include <tdeactionclasses.h>
+#include <tdeaction.h>
+#include <tdepopupmenu.h>
+#include <tdemessagebox.h>
#include <kprogress.h>
#include <kiconloader.h>
@@ -70,7 +70,7 @@
namespace KBibTeX
{
DocumentListView::DocumentListView( KBibTeX::DocumentWidget *docWidget, bool isReadOnly, TQWidget *parent, const char *name )
- : KListView( parent, name ), m_docWidget( docWidget ), m_bibtexFile( NULL ), m_contextMenu( NULL ), m_headerMenu( NULL ), m_isReadOnly( isReadOnly ), m_newElementCounter( 1 )
+ : TDEListView( parent, name ), m_docWidget( docWidget ), m_bibtexFile( NULL ), m_contextMenu( NULL ), m_headerMenu( NULL ), m_isReadOnly( isReadOnly ), m_newElementCounter( 1 )
{
setAllColumnsShowFocus( true );
setShowSortIndicator( true );
@@ -85,7 +85,7 @@ namespace KBibTeX
setDropVisualizer( TRUE );
connect( header(), SIGNAL( clicked( int ) ), this, SLOT( setSortingColumn( int ) ) );
- connect( this, SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ), this, SLOT( showBibtexListContextMenu( KListView *, TQListViewItem *, const TQPoint & ) ) );
+ connect( this, SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ), this, SLOT( showBibtexListContextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ) );
connect( this, SIGNAL( doubleClicked( TQListViewItem*, const TQPoint&, int ) ), this, SLOT( slotDoubleClick( TQListViewItem* ) ) );
connect( this, SIGNAL( dropped( TQDropEvent*, TQListViewItem* ) ), this, SLOT( slotDropped( TQDropEvent*, TQListViewItem* ) ) );
}
@@ -97,7 +97,7 @@ namespace KBibTeX
void DocumentListView::setFactory( KXMLGUIFactory *factory, KXMLGUIClient *client )
{
- m_contextMenu = static_cast<KPopupMenu*>( factory -> container( "popup_bibtexlist", client ) );
+ m_contextMenu = static_cast<TDEPopupMenu*>( factory -> container( "popup_bibtexlist", client ) );
}
bool DocumentListView::setBibTeXFile( BibTeX::File *bibtexFile )
@@ -237,15 +237,15 @@ namespace KBibTeX
if ( settings->editing_UseSpecialFont )
setFont( settings->editing_SpecialFont );
else
- setFont( KGlobalSettings::generalFont() );
- header() ->setFont( KGlobalSettings::generalFont() );
+ setFont( TDEGlobalSettings::generalFont() );
+ header() ->setFont( TDEGlobalSettings::generalFont() );
restoreColumnIndex();
restoreColumnWidths();
restoreSortingColumn();
}
- void DocumentListView::setViewShowColumnsMenu( KActionMenu *actionMenu )
+ void DocumentListView::setViewShowColumnsMenu( TDEActionMenu *actionMenu )
{
if ( m_headerMenu == NULL )
{
@@ -446,7 +446,7 @@ namespace KBibTeX
return FALSE;
// build popup menu
- KPopupMenu * popup = new KPopupMenu( this, "pastePopup" );
+ TDEPopupMenu * popup = new TDEPopupMenu( this, "pastePopup" );
popup->insertTitle( i18n( "Paste text as..." ) );
for ( int i = ( int ) BibTeX::EntryField::ftAuthor; i <= ( int ) BibTeX::EntryField::ftYear; i++ )
{
@@ -454,7 +454,7 @@ namespace KBibTeX
popup->insertItem( Settings::fieldTypeToI18NString( ft ), i );
}
popup->insertSeparator();
- TQIconSet cancelPixmap = KGlobal::iconLoader() ->loadIconSet( "cancel", KIcon::Small );
+ TQIconSet cancelPixmap = TDEGlobal::iconLoader() ->loadIconSet( "cancel", TDEIcon::Small );
int cancelId = popup->insertItem( cancelPixmap, i18n( "Cancel" ) );
// show popup menu
@@ -563,7 +563,7 @@ namespace KBibTeX
}
}
- void DocumentListView::showBibtexListContextMenu( KListView *, TQListViewItem *, const TQPoint & p )
+ void DocumentListView::showBibtexListContextMenu( TDEListView *, TQListViewItem *, const TQPoint & p )
{
if ( m_contextMenu != NULL )
{
@@ -665,22 +665,22 @@ namespace KBibTeX
{
TQString url = urlList.at( 0 );
TQString tmpFile;
- if ( ! KIO::NetAccess::download( url, tmpFile, 0 ) )
+ if ( ! TDEIO::NetAccess::download( url, tmpFile, 0 ) )
{
- KMessageBox::error( this, KIO::NetAccess::lastErrorString() );
+ KMessageBox::error( this, TDEIO::NetAccess::lastErrorString() );
return ;
}
TQFile f( tmpFile );
if ( ! f.open( IO_ReadOnly ) )
{
KMessageBox::error( this, f.errorString() );
- KIO::NetAccess::removeTempFile( tmpFile );
+ TDEIO::NetAccess::removeTempFile( tmpFile );
return ;
}
TQByteArray ba = f.readAll();
text = TQString( ba );
f.close();
- KIO::NetAccess::removeTempFile( tmpFile );
+ TDEIO::NetAccess::removeTempFile( tmpFile );
}
else if ( !TQTextDrag::decode( event, text ) )
return;
@@ -710,7 +710,7 @@ namespace KBibTeX
}
}
- return KListView::eventFilter( watched, e );
+ return TDEListView::eventFilter( watched, e );
}
void DocumentListView::keyPressEvent( TQKeyEvent *e )
@@ -724,7 +724,7 @@ namespace KBibTeX
emit executed( item );
}
else
- KListView::keyPressEvent( e );
+ TDEListView::keyPressEvent( e );
}
void DocumentListView::showColumn( int col, int colWidth )
diff --git a/src/documentlistview.h b/src/documentlistview.h
index aedb0b2..07fe06d 100644
--- a/src/documentlistview.h
+++ b/src/documentlistview.h
@@ -20,7 +20,7 @@
#ifndef KBIBTEXDOCUMENTLISTVIEW_H
#define KBIBTEXDOCUMENTLISTVIEW_H
-#include <klistview.h>
+#include <tdelistview.h>
#include <kxmlguifactory.h>
#include <fileimporter.h>
@@ -29,15 +29,15 @@
class TQString;
class KURL;
-class KActionMenu;
-class KPopupMenu;
+class TDEActionMenu;
+class TDEPopupMenu;
namespace KBibTeX
{
class DocumentWidget;
class DocumentListViewItem;
- class DocumentListView : public KListView
+ class DocumentListView : public TDEListView
{
Q_OBJECT
public:
@@ -45,7 +45,7 @@ namespace KBibTeX
~DocumentListView();
void setFactory( KXMLGUIFactory *factory, KXMLGUIClient *client );
- void setViewShowColumnsMenu( KActionMenu *actionMenu );
+ void setViewShowColumnsMenu( TDEActionMenu *actionMenu );
bool setBibTeXFile( BibTeX::File *bibtexFile );
BibTeX::File* getBibTeXFile( );
@@ -82,7 +82,7 @@ namespace KBibTeX
private slots:
void slotDoubleClick( TQListViewItem * item = NULL );
void setSortingColumn( int column );
- void showBibtexListContextMenu( KListView *, TQListViewItem *, const TQPoint &p );
+ void showBibtexListContextMenu( TDEListView *, TQListViewItem *, const TQPoint &p );
void slotDropped( TQDropEvent* event, TQListViewItem* item );
void saveColumnIndex();
void restoreColumnIndex();
@@ -103,9 +103,9 @@ namespace KBibTeX
static const int maxColumns = 256;
KBibTeX::DocumentWidget *m_docWidget;
BibTeX::File *m_bibtexFile;
- KPopupMenu *m_contextMenu;
- KPopupMenu *m_headerMenu;
- KActionMenu *m_columnVisibleAction;
+ TDEPopupMenu *m_contextMenu;
+ TDEPopupMenu *m_headerMenu;
+ TDEActionMenu *m_columnVisibleAction;
bool m_isReadOnly;
TQValueList<DocumentListViewItem*> m_unreadItems;
diff --git a/src/documentlistviewitem.cpp b/src/documentlistviewitem.cpp
index ce4db30..2f7eeb1 100644
--- a/src/documentlistviewitem.cpp
+++ b/src/documentlistviewitem.cpp
@@ -21,7 +21,7 @@
#include <ntqpainter.h>
#include <ntqpen.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include "documentlistviewitem.h"
#include "entry.h"
@@ -31,12 +31,12 @@
namespace KBibTeX
{
- DocumentListViewItem::DocumentListViewItem( BibTeX::File *file, BibTeX::Element *element, DocumentListView *parent ) : KListViewItem( parent, parent->lastItem() ), m_element( element ), m_bibtexFile( file ), m_parent( parent ), m_unreadStatus( FALSE )
+ DocumentListViewItem::DocumentListViewItem( BibTeX::File *file, BibTeX::Element *element, DocumentListView *parent ) : TDEListViewItem( parent, parent->lastItem() ), m_element( element ), m_bibtexFile( file ), m_parent( parent ), m_unreadStatus( FALSE )
{
setTexts();
}
- DocumentListViewItem::DocumentListViewItem( BibTeX::File *file, BibTeX::Element *element, DocumentListView *parent, TQListViewItem *after ) : KListViewItem( parent, after ), m_element( element ), m_bibtexFile( file ), m_parent( parent )
+ DocumentListViewItem::DocumentListViewItem( BibTeX::File *file, BibTeX::Element *element, DocumentListView *parent, TQListViewItem *after ) : TDEListViewItem( parent, after ), m_element( element ), m_bibtexFile( file ), m_parent( parent )
{
setTexts();
}
@@ -74,7 +74,7 @@ namespace KBibTeX
p->setFont( f );
}
- KListViewItem::paintCell( p, cg, column, width, align );
+ TDEListViewItem::paintCell( p, cg, column, width, align );
}
diff --git a/src/documentlistviewitem.h b/src/documentlistviewitem.h
index 5debafa..ce96a20 100644
--- a/src/documentlistviewitem.h
+++ b/src/documentlistviewitem.h
@@ -20,14 +20,14 @@
#ifndef DOCUMENTLISTVIEWITEM_H
#define DOCUMENTLISTVIEWITEM_H
-#include <klistview.h>
+#include <tdelistview.h>
#include <element.h>
#include "documentlistview.h"
namespace KBibTeX
{
- class DocumentListViewItem : public KListViewItem
+ class DocumentListViewItem : public TDEListViewItem
{
public:
DocumentListViewItem( BibTeX::File *file, BibTeX::Element *element, DocumentListView *parent );
diff --git a/src/documentsourceview.cpp b/src/documentsourceview.cpp
index 86d2322..683a735 100644
--- a/src/documentsourceview.cpp
+++ b/src/documentsourceview.cpp
@@ -23,20 +23,20 @@
#include <klibloader.h>
#include <kxmlguifactory.h>
-#include <kapplication.h>
+#include <tdeapplication.h>
#include <klibloader.h>
#include <kfinddialog.h>
#include <kdebug.h>
-#include <klocale.h>
-#include <kmessagebox.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
#include <ktrader.h>
#include <kmimetype.h>
#include <kservice.h>
#include <kprogress.h>
-#include <kparts/componentfactory.h>
-#include <ktexteditor/configinterface.h>
-#include <ktexteditor/editorchooser.h>
-#include <ktexteditor/undointerface.h>
+#include <tdeparts/componentfactory.h>
+#include <tdetexteditor/configinterface.h>
+#include <tdetexteditor/editorchooser.h>
+#include <tdetexteditor/undointerface.h>
#include <fileexporterbibtex.h>
#include <fileimporterbibtex.h>
@@ -122,7 +122,7 @@ namespace KBibTeX
void DocumentSourceView::setFactory( KXMLGUIFactory *factory, KXMLGUIClient * client )
{
KTextEditor::PopupMenuInterface * popupInterface = dynamic_cast<KTextEditor::PopupMenuInterface*>( m_view );
- popupInterface->installPopup(( TQPopupMenu* )( factory ->container( "ktexteditor_popup", client ) ) );
+ popupInterface->installPopup(( TQPopupMenu* )( factory ->container( "tdetexteditor_popup", client ) ) );
}
void DocumentSourceView::configureEditor()
@@ -314,17 +314,17 @@ namespace KBibTeX
void DocumentSourceView::readConfig()
{
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
readConfig( config );
}
void DocumentSourceView::writeConfig()
{
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
writeConfig( config );
}
- void DocumentSourceView::readConfig( KConfig *config )
+ void DocumentSourceView::readConfig( TDEConfig *config )
{
if ( m_view )
{
@@ -334,7 +334,7 @@ namespace KBibTeX
}
}
- void DocumentSourceView::writeConfig( KConfig *config )
+ void DocumentSourceView::writeConfig( TDEConfig *config )
{
if ( m_view )
{
diff --git a/src/documentsourceview.h b/src/documentsourceview.h
index 1ea0519..fb157de 100644
--- a/src/documentsourceview.h
+++ b/src/documentsourceview.h
@@ -24,7 +24,7 @@
#include <file.h>
-#include <ktexteditor/editinterface.h>
+#include <tdetexteditor/editinterface.h>
#include <kate/view.h>
#include <kate/document.h>
@@ -82,8 +82,8 @@ namespace KBibTeX
void setupGUI();
void readConfig();
void writeConfig();
- void readConfig( KConfig *config );
- void writeConfig( KConfig *config );
+ void readConfig( TDEConfig *config );
+ void writeConfig( TDEConfig *config );
void search( int fromLine, int fromCol );
diff --git a/src/documentwidget.cpp b/src/documentwidget.cpp
index 1353dee..2f47be5 100644
--- a/src/documentwidget.cpp
+++ b/src/documentwidget.cpp
@@ -34,17 +34,17 @@
#include <ntqfileinfo.h>
#include <kdebug.h>
-#include <klocale.h>
-#include <ktempfile.h>
-#include <kglobalsettings.h>
+#include <tdelocale.h>
+#include <tdetempfile.h>
+#include <tdeglobalsettings.h>
#include <kurl.h>
#include <kinputdialog.h>
-#include <kpopupmenu.h>
+#include <tdepopupmenu.h>
#include <kiconloader.h>
-#include <kio/netaccess.h>
+#include <tdeio/netaccess.h>
#include <kstandarddirs.h>
-#include <kmessagebox.h>
-#include <kapplication.h>
+#include <tdemessagebox.h>
+#include <tdeapplication.h>
#include <klineedit.h>
#include <kdebug.h>
#include <ktextedit.h>
@@ -140,7 +140,7 @@ namespace KBibTeX
m_sourceView = new DocumentSourceView( this, m_isReadOnly, this , "source_view" );
addTab( m_sourceView, i18n( "So&urce view" ) );
- m_sourceView->setFont( KGlobalSettings::fixedFont() );
+ m_sourceView->setFont( TDEGlobalSettings::fixedFont() );
// Setup actions
connect( m_searchBar, SIGNAL( onlineSearch() ), this, SLOT( onlineSearch() ) );
@@ -362,7 +362,7 @@ namespace KBibTeX
case BibTeX::FileExporterExternal::exporterNone:
case BibTeX::FileExporterExternal::exporterXSLT:
{
- KStandardDirs * kstd = KGlobal::dirs();
+ TDEStandardDirs * kstd = TDEGlobal::dirs();
TQString resPath = kstd->findResource( "data", "kbibtexpart/xslt/html.xsl" );
if ( resPath != NULL )
transform = new BibTeX::XSLTransform( resPath );
@@ -624,10 +624,10 @@ namespace KBibTeX
m_listViewElements->setFactory( factory, client );
m_sourceView->setFactory( factory, client );
- m_viewDocumentActionMenu = dynamic_cast<KActionMenu*>( client->action( "view_document" ) );
+ m_viewDocumentActionMenu = dynamic_cast<TDEActionMenu*>( client->action( "view_document" ) );
if ( m_viewDocumentActionMenu != NULL )
connect( m_viewDocumentActionMenu->popupMenu(), SIGNAL( activated( int ) ), this, SLOT( slotViewDocument( int ) ) );
- m_assignKeywordsActionMenu = dynamic_cast<KActionMenu*>( client->action( "assign_keywords" ) );
+ m_assignKeywordsActionMenu = dynamic_cast<TDEActionMenu*>( client->action( "assign_keywords" ) );
if ( m_assignKeywordsActionMenu != NULL )
connect( m_assignKeywordsActionMenu->popupMenu(), SIGNAL( activated( int ) ), this, SLOT( slotAssignKeywords( int ) ) );
@@ -638,8 +638,8 @@ namespace KBibTeX
m_actionEditSelectAll = client->action( "edit_select_all" );
m_actionEditFind = client->action( "edit_find" );
m_actionEditFindNext = client->action( "edit_find_next" );
- m_listViewElements->setViewShowColumnsMenu( dynamic_cast<KActionMenu*>( client->action( "view_showcolumns" ) ) );
- m_searchWebsitesActionMenu = dynamic_cast<KActionMenu*>( client->action( "search_document_online" ) );
+ m_listViewElements->setViewShowColumnsMenu( dynamic_cast<TDEActionMenu*>( client->action( "view_showcolumns" ) ) );
+ m_searchWebsitesActionMenu = dynamic_cast<TDEActionMenu*>( client->action( "search_document_online" ) );
}
void DocumentWidget::updateViewDocumentMenu( )
@@ -650,7 +650,7 @@ namespace KBibTeX
return;
}
- KPopupMenu * popup = m_viewDocumentActionMenu->popupMenu();
+ TDEPopupMenu * popup = m_viewDocumentActionMenu->popupMenu();
popup->clear();
m_viewDocumentActionMenuURLs.clear();
@@ -699,7 +699,7 @@ namespace KBibTeX
return;
}
- KPopupMenu * popup = m_assignKeywordsActionMenu->popupMenu();
+ TDEPopupMenu * popup = m_assignKeywordsActionMenu->popupMenu();
popup->clear();
m_assignKeywordsActionMenuURLs.clear();
TQStringList entryKeywords;
@@ -788,7 +788,7 @@ namespace KBibTeX
{
int maxCountPerSubMenu = ( int )sqrt( allKeywords.count() ) + 1;
int countPerSubMenu = 0;
- KPopupMenu *subMenu = new KPopupMenu( popup );
+ TDEPopupMenu *subMenu = new TDEPopupMenu( popup );
connect( subMenu, SIGNAL( activated( int ) ), this, SLOT( slotAssignKeywords( int ) ) );
TQString startWord, endWord;
for ( TQStringList::Iterator it = allKeywords.begin(); it != allKeywords.end(); ++it )
@@ -804,7 +804,7 @@ namespace KBibTeX
if ( countPerSubMenu >= maxCountPerSubMenu )
{
popup->insertItem( TQString( i18n( "%1 ... %2" ) ).arg( startWord ).arg( endWord ), subMenu );
- subMenu = new KPopupMenu( popup );
+ subMenu = new TDEPopupMenu( popup );
connect( subMenu, SIGNAL( activated( int ) ), this, SLOT( slotAssignKeywords( int ) ) );
countPerSubMenu = 0;
}
@@ -822,10 +822,10 @@ namespace KBibTeX
popup->insertSeparator();
TQWidget *container = new TQWidget( popup );
- container->setBackgroundColor( KGlobalSettings::baseColor() );
+ container->setBackgroundColor( TDEGlobalSettings::baseColor() );
TQHBoxLayout *layout = new TQHBoxLayout( container, 1, 1 );
TQLabel *label = new TQLabel( i18n( "New keyword:" ), container );
- label->setBackgroundColor( KGlobalSettings::baseColor() );
+ label->setBackgroundColor( TDEGlobalSettings::baseColor() );
layout->addWidget( label );
m_lineEditNewKeyword = new KLineEdit( container );
layout->addWidget( m_lineEditNewKeyword );
@@ -861,7 +861,7 @@ namespace KBibTeX
if ( m_searchWebsitesActionMenu != NULL )
{
- KPopupMenu * popup = m_searchWebsitesActionMenu->popupMenu();
+ TDEPopupMenu * popup = m_searchWebsitesActionMenu->popupMenu();
popup->clear();
int i = 0;
for ( TQValueList<Settings::SearchURL*>::ConstIterator it = settings->searchURLs.begin(); it != settings->searchURLs.end(); ++it )
@@ -871,7 +871,7 @@ namespace KBibTeX
if ( settings->editing_UseSpecialFont )
m_preview->setFont( settings->editing_SpecialFont );
else
- m_preview->setFont( KGlobalSettings::generalFont() );
+ m_preview->setFont( TDEGlobalSettings::generalFont() );
}
@@ -1419,7 +1419,7 @@ namespace KBibTeX
if ( entry != NULL )
m_bibtexfile->completeReferencedFields( entry );
- KStandardDirs * kstd = KGlobal::dirs();
+ TDEStandardDirs * kstd = TDEGlobal::dirs();
BibTeX::XSLTransform *transform = new BibTeX::XSLTransform( kstd->findResource( "data", "kbibtexpart/xslt/html.xsl" ) );
if ( transform != NULL )
diff --git a/src/documentwidget.h b/src/documentwidget.h
index abdd570..31b05ae 100644
--- a/src/documentwidget.h
+++ b/src/documentwidget.h
@@ -34,8 +34,8 @@ class TQListViewItem;
class TQWidget;
class TQSplitter;
-class KPopupMenu;
-class KActionMenu;
+class TDEPopupMenu;
+class TDEActionMenu;
class KURL;
class KTextEdit;
class KLineEdit;
@@ -126,19 +126,19 @@ namespace KBibTeX
TQProgressDialog *m_progressDialog;
int m_newElementCounter;
EditMode m_editMode;
- KActionMenu *m_viewDocumentActionMenu;
- KActionMenu *m_assignKeywordsActionMenu;
+ TDEActionMenu *m_viewDocumentActionMenu;
+ TDEActionMenu *m_assignKeywordsActionMenu;
TQStringList m_viewDocumentActionMenuURLs;
TQMap<int, TQString> m_assignKeywordsActionMenuURLs;
- KActionMenu *m_searchWebsitesActionMenu;
- KAction *m_actionEditCut;
- KAction *m_actionEditCopy;
- KAction *m_actionEditCopyRef;
- KAction *m_actionEditPaste;
- KAction *m_actionEditSelectAll;
- KAction *m_actionEditFind;
- KAction *m_actionEditFindNext;
- KAction *m_actionNormalizeIds;
+ TDEActionMenu *m_searchWebsitesActionMenu;
+ TDEAction *m_actionEditCut;
+ TDEAction *m_actionEditCopy;
+ TDEAction *m_actionEditCopyRef;
+ TDEAction *m_actionEditPaste;
+ TDEAction *m_actionEditSelectAll;
+ TDEAction *m_actionEditFind;
+ TDEAction *m_actionEditFindNext;
+ TDEAction *m_actionNormalizeIds;
KDirWatch m_dirWatch;
void setupGUI();
diff --git a/src/entrywidget.cpp b/src/entrywidget.cpp
index 377ae7c..4d68f3e 100644
--- a/src/entrywidget.cpp
+++ b/src/entrywidget.cpp
@@ -31,13 +31,13 @@
#include <ntqtimer.h>
#include <ntqlineedit.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kdebug.h>
#include <kiconloader.h>
-#include <kmessagebox.h>
-#include <kapplication.h>
-#include <kconfig.h>
-#include <kwin.h>
+#include <tdemessagebox.h>
+#include <tdeapplication.h>
+#include <tdeconfig.h>
+#include <twin.h>
#include <entry.h>
#include <entryfield.h>
@@ -113,7 +113,7 @@ namespace KBibTeX
delete m_wqa;
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
config->setGroup( "EntryWidget" );
saveWindowSize( config );
}
@@ -125,7 +125,7 @@ namespace KBibTeX
if ( ewt != NULL )
ewt->m_fieldLineEditTitle->setFocus();
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
config->setGroup( "EntryWidget" );
restoreWindowSize( config );
}
@@ -350,7 +350,7 @@ namespace KBibTeX
m_checkBoxEnableAll = new TQCheckBox( i18n( "Enable all &fields for editing" ), this );
layout->addMultiCellWidget( m_checkBoxEnableAll, 2, 2, 0, 4 );
- m_pushButtonRefetch = new TQPushButton( KGlobal::iconLoader() ->loadIconSet( "reload", KIcon::Small ), i18n( "Refetch" ), this );
+ m_pushButtonRefetch = new TQPushButton( TDEGlobal::iconLoader() ->loadIconSet( "reload", TDEIcon::Small ), i18n( "Refetch" ), this );
layout->addWidget( m_pushButtonRefetch, 2, 5 );
connect( m_pushButtonRefetch, SIGNAL( clicked() ), this, SLOT( refreshFromURL() ) );
@@ -542,8 +542,8 @@ namespace KBibTeX
m_lineEditID->setText( m_idToSuggestion[id] );
}
- /* This function was taken form KMainWindow of KDE 3.5 and modified to fit KBibTeX */
- void EntryWidget::saveWindowSize( KConfig *config ) const
+ /* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */
+ void EntryWidget::saveWindowSize( TDEConfig *config ) const
{
int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
TQRect desk = TQApplication::desktop()->screenGeometry( scnum );
@@ -576,8 +576,8 @@ namespace KBibTeX
config->writeEntry( heightString, h );
}
- /* This function was taken form KMainWindow of KDE 3.5 and modified to fit KBibTeX */
- void EntryWidget::restoreWindowSize( KConfig *config )
+ /* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */
+ void EntryWidget::restoreWindowSize( TDEConfig *config )
{
// restore the size
int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
diff --git a/src/entrywidget.h b/src/entrywidget.h
index 3d9ad2f..d1bdb02 100644
--- a/src/entrywidget.h
+++ b/src/entrywidget.h
@@ -39,7 +39,7 @@ class TQString;
class TQTimer;
class TQListView;
-class KConfig;
+class TDEConfig;
namespace KBibTeX
{
@@ -115,8 +115,8 @@ namespace KBibTeX
void updateGUI();
void internalApply( BibTeX::Entry *entry );
void internalReset( BibTeX::Entry *entry );
- void restoreWindowSize( KConfig *config );
- void saveWindowSize( KConfig *config ) const;
+ void restoreWindowSize( TDEConfig *config );
+ void saveWindowSize( TDEConfig *config ) const;
};
class EntryWidgetDialog: public KDialogBase
diff --git a/src/entrywidgetauthor.cpp b/src/entrywidgetauthor.cpp
index 578a9d8..e31bafb 100644
--- a/src/entrywidgetauthor.cpp
+++ b/src/entrywidgetauthor.cpp
@@ -21,7 +21,7 @@
#include <ntqlabel.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <fieldlistview.h>
#include <entrywidgetwarningsitem.h>
diff --git a/src/entrywidgetexternal.cpp b/src/entrywidgetexternal.cpp
index f316c82..ef5e84c 100644
--- a/src/entrywidgetexternal.cpp
+++ b/src/entrywidgetexternal.cpp
@@ -23,12 +23,12 @@
#include <kpushbutton.h>
#include <kdialog.h>
-#include <klocale.h>
-#include <kfiledialog.h>
+#include <tdelocale.h>
+#include <tdefiledialog.h>
#include <kurl.h>
#include <kurllabel.h>
#include <kiconloader.h>
-#include <kpopupmenu.h>
+#include <tdepopupmenu.h>
#include <fieldlineedit.h>
#include <settings.h>
@@ -278,7 +278,7 @@ namespace KBibTeX
containerLayout->addStretch( 10 );
m_pushButtonBrowseLocalFile->setIconSet( TQIconSet( SmallIcon( "fileopen" ) ) );
- KPopupMenu *menu = new KPopupMenu( m_pushButtonBrowseLocalFile );
+ TDEPopupMenu *menu = new TDEPopupMenu( m_pushButtonBrowseLocalFile );
menu->insertTitle( i18n( "Select base directory" ) );
menu->insertItem( TQIconSet( SmallIcon( "favorite" ) ), i18n( "Current directory" ), m_menuIdCurrentDirectory );
if ( m_previousDirectory != TQString::null )
diff --git a/src/entrywidgetkeyword.cpp b/src/entrywidgetkeyword.cpp
index da34947..f00e7e8 100644
--- a/src/entrywidgetkeyword.cpp
+++ b/src/entrywidgetkeyword.cpp
@@ -25,11 +25,11 @@
#include <ntqlabel.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kiconloader.h>
#include <kdialogbase.h>
-#include <kmessagebox.h>
-#include <klistview.h>
+#include <tdemessagebox.h>
+#include <tdelistview.h>
#include <kguiitem.h>
#include <kdebug.h>
@@ -38,7 +38,7 @@
namespace KBibTeX
{
- KeywordListViewItem::KeywordListViewItem( KListView * parent, const TQString & text, bool global ) : TQCheckListItem( parent, text, TQCheckListItem::CheckBox )
+ KeywordListViewItem::KeywordListViewItem( TDEListView * parent, const TQString & text, bool global ) : TQCheckListItem( parent, text, TQCheckListItem::CheckBox )
{
setGlobal( global );
}
@@ -225,7 +225,7 @@ namespace KBibTeX
TQGridLayout * gridLayout = new TQGridLayout( this, 6, 2, KDialog::marginHint(), KDialog::spacingHint(), "gridLayout" );
gridLayout->setRowStretch( 4, 1 );
- m_listviewKeywords = new KListView( this );
+ m_listviewKeywords = new TDEListView( this );
m_listviewKeywords->setEnabled( !m_isReadOnly );
m_listviewKeywords->addColumn( i18n( "Keyword" ) );
m_listviewKeywords->addColumn( i18n( "Origin" ) );
diff --git a/src/entrywidgetkeyword.h b/src/entrywidgetkeyword.h
index e8a7c75..3de2838 100644
--- a/src/entrywidgetkeyword.h
+++ b/src/entrywidgetkeyword.h
@@ -23,14 +23,14 @@
#include <entrywidgettab.h>
class TQPushButton;
-class KListView;
+class TDEListView;
namespace KBibTeX
{
class KeywordListViewItem: public TQCheckListItem
{
public:
- KeywordListViewItem( KListView * parent, const TQString & text, bool isGlobal );
+ KeywordListViewItem( TDEListView * parent, const TQString & text, bool isGlobal );
~KeywordListViewItem();
bool isGlobal()
@@ -75,7 +75,7 @@ namespace KBibTeX
TQStringList m_fileKeywords;
TQStringList m_usedKeywords;
bool m_isModified;
- KListView *m_listviewKeywords;
+ TDEListView *m_listviewKeywords;
TQPushButton *m_buttonNew;
TQPushButton *m_buttonEdit;
TQPushButton *m_buttonToggleGlobal;
diff --git a/src/entrywidgetmisc.cpp b/src/entrywidgetmisc.cpp
index 66ec617..fe1b757 100644
--- a/src/entrywidgetmisc.cpp
+++ b/src/entrywidgetmisc.cpp
@@ -21,7 +21,7 @@
#include <ntqlabel.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <fieldlineedit.h>
#include <value.h>
diff --git a/src/entrywidgetother.cpp b/src/entrywidgetother.cpp
index cd165f2..1201a60 100644
--- a/src/entrywidgetother.cpp
+++ b/src/entrywidgetother.cpp
@@ -24,11 +24,11 @@
#include <ntqwhatsthis.h>
#include <kdialog.h>
-#include <kapplication.h>
-#include <klistview.h>
-#include <klocale.h>
+#include <tdeapplication.h>
+#include <tdelistview.h>
+#include <tdelocale.h>
#include <kiconloader.h>
-#include <kio/netaccess.h>
+#include <tdeio/netaccess.h>
#include <kpushbutton.h>
#include <klineedit.h>
@@ -149,7 +149,7 @@ namespace KBibTeX
TQSpacerItem* spacer = new TQSpacerItem( 20, 110, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
gridLayout->addItem( spacer, 2, 0 );
- m_listViewFields = new KListView( this, "m_listViewFields" );
+ m_listViewFields = new TDEListView( this, "m_listViewFields" );
m_listViewFields->addColumn( i18n( "Key" ) );
m_listViewFields->addColumn( i18n( "Value" ) );
m_listViewFields->setAllColumnsShowFocus( true );
diff --git a/src/entrywidgetother.h b/src/entrywidgetother.h
index e8aae71..39f42b9 100644
--- a/src/entrywidgetother.h
+++ b/src/entrywidgetother.h
@@ -25,7 +25,7 @@
#include <entrywidgettab.h>
class TQPushButton;
-class KListView;
+class TDEListView;
class TQLineEdit;
namespace KBibTeX
@@ -59,7 +59,7 @@ namespace KBibTeX
TQPushButton *m_pushButtonOpen;
TQLineEdit *m_lineEditKey;
FieldLineEdit *m_fieldLineEditValue;
- KListView *m_listViewFields;
+ TDEListView *m_listViewFields;
KURL m_internalURL;
void setupGUI();
diff --git a/src/entrywidgetpublication.cpp b/src/entrywidgetpublication.cpp
index b048970..953e05f 100644
--- a/src/entrywidgetpublication.cpp
+++ b/src/entrywidgetpublication.cpp
@@ -27,7 +27,7 @@
#include <kurl.h>
#include <kiconloader.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <settings.h>
#include <fieldlineedit.h>
diff --git a/src/entrywidgetsource.cpp b/src/entrywidgetsource.cpp
index f3f03d9..8c811fc 100644
--- a/src/entrywidgetsource.cpp
+++ b/src/entrywidgetsource.cpp
@@ -23,8 +23,8 @@
#include <kdialog.h>
#include <kpushbutton.h>
-#include <klocale.h>
-#include <kglobalsettings.h>
+#include <tdelocale.h>
+#include <tdeglobalsettings.h>
#include <fileexporterbibtex.h>
#include <fileimporterbibtex.h>
@@ -149,7 +149,7 @@ namespace KBibTeX
m_textEditSource = new TQTextEdit( this );
gridLayout->addMultiCellWidget( m_textEditSource, 0, 0, 0, 1 );
- m_textEditSource->setFont( KGlobalSettings::fixedFont() );
+ m_textEditSource->setFont( TDEGlobalSettings::fixedFont() );
m_textEditSource->setReadOnly( m_isReadOnly );
KPushButton *btnReset = new KPushButton( i18n( "Restore" ), this );
diff --git a/src/entrywidgettab.cpp b/src/entrywidgettab.cpp
index 6d0ac07..1838380 100644
--- a/src/entrywidgettab.cpp
+++ b/src/entrywidgettab.cpp
@@ -17,7 +17,7 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include <klocale.h>
+#include <tdelocale.h>
#include <entry.h>
#include <entrywidgetwarningsitem.h>
diff --git a/src/entrywidgettitle.cpp b/src/entrywidgettitle.cpp
index 06164b2..85bc82f 100644
--- a/src/entrywidgettitle.cpp
+++ b/src/entrywidgettitle.cpp
@@ -20,7 +20,7 @@
#include <ntqlayout.h>
#include <ntqlabel.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <fieldlineedit.h>
#include <value.h>
diff --git a/src/entrywidgetuserdefined.cpp b/src/entrywidgetuserdefined.cpp
index b231938..87d020f 100644
--- a/src/entrywidgetuserdefined.cpp
+++ b/src/entrywidgetuserdefined.cpp
@@ -23,7 +23,7 @@
#include <kdebug.h>
#include <kdialog.h>
#include <kiconloader.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <settings.h>
#include "entrywidgetuserdefined.h"
diff --git a/src/entrywidgetwarningsitem.cpp b/src/entrywidgetwarningsitem.cpp
index 92346fc..f9101bb 100644
--- a/src/entrywidgetwarningsitem.cpp
+++ b/src/entrywidgetwarningsitem.cpp
@@ -18,7 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <kiconloader.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include "entrywidgetwarningsitem.h"
@@ -28,17 +28,17 @@ namespace KBibTeX
EntryWidgetWarningsItem::EntryWidgetWarningsItem( WarningLevel level, const TQString &message, TQWidget *widget, TQListView *parent, const char* name )
: TQListViewItem( parent, name ), m_widget( widget )
{
- KIconLoader * loader = KGlobal::instance() ->iconLoader();
+ TDEIconLoader * loader = TDEGlobal::instance() ->iconLoader();
switch ( level )
{
case wlInformation:
- setPixmap( 0, loader->loadIcon( "messagebox_info", KIcon::NoGroup, KIcon::SizeSmall ) );
+ setPixmap( 0, loader->loadIcon( "messagebox_info", TDEIcon::NoGroup, TDEIcon::SizeSmall ) );
break;
case wlWarning:
- setPixmap( 0, loader->loadIcon( "messagebox_warning", KIcon::NoGroup, KIcon::SizeSmall ) );
+ setPixmap( 0, loader->loadIcon( "messagebox_warning", TDEIcon::NoGroup, TDEIcon::SizeSmall ) );
break;
case wlError:
- setPixmap( 0, loader->loadIcon( "messagebox_critical", KIcon::NoGroup, KIcon::SizeSmall ) );
+ setPixmap( 0, loader->loadIcon( "messagebox_critical", TDEIcon::NoGroup, TDEIcon::SizeSmall ) );
break;
default:
{
diff --git a/src/fieldlineedit.cpp b/src/fieldlineedit.cpp
index 03296ca..db6f755 100644
--- a/src/fieldlineedit.cpp
+++ b/src/fieldlineedit.cpp
@@ -24,7 +24,7 @@
#include <ntqtextedit.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kiconloader.h>
#include <klineedit.h>
diff --git a/src/fieldlineedit.h b/src/fieldlineedit.h
index ebff73f..0d6dd6f 100644
--- a/src/fieldlineedit.h
+++ b/src/fieldlineedit.h
@@ -28,7 +28,7 @@
class KLineEdit;
class TQTextEdit;
class TQPushButton;
-class KCompletion;
+class TDECompletion;
namespace KBibTeX
{
@@ -95,7 +95,7 @@ namespace KBibTeX
InputType m_inputType;
bool m_isModified;
BibTeX::EntryField::FieldType m_fieldType;
- KCompletion *m_completion;
+ TDECompletion *m_completion;
void setupGUI( const char *name );
void enableSignals( bool enabled );
diff --git a/src/fieldlistview.cpp b/src/fieldlistview.cpp
index edb21a4..d132ce8 100644
--- a/src/fieldlistview.cpp
+++ b/src/fieldlistview.cpp
@@ -27,10 +27,10 @@
#include <ntqpushbutton.h>
#include <ntqcheckbox.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <klineedit.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kdebug.h>
#include <kiconloader.h>
@@ -201,7 +201,7 @@ namespace KBibTeX
{
if ( isSimple() )
{
- KListViewItem * item = new KListViewItem( m_listViewElements, m_listViewElements->lastItem(), TQString( "%1%2" ).arg( m_prefixNew ).arg( ++m_newValueCounter ) );
+ TDEListViewItem * item = new TDEListViewItem( m_listViewElements, m_listViewElements->lastItem(), TQString( "%1%2" ).arg( m_prefixNew ).arg( ++m_newValueCounter ) );
m_listViewElements->setSelected( item, TRUE );
updateGUI();
TQTimer::singleShot( 100, this, SLOT( slotEdit() ) );
@@ -212,7 +212,7 @@ namespace KBibTeX
{
if ( isSimple() )
{
- KListViewItem * item = static_cast<KListViewItem*>( m_listViewElements->selectedItem() );
+ TDEListViewItem * item = static_cast<TDEListViewItem*>( m_listViewElements->selectedItem() );
if ( item != NULL )
m_listViewElements->rename( item, 0 );
}
@@ -293,10 +293,10 @@ namespace KBibTeX
TQGridLayout * layout = new TQGridLayout( this, 8, 2, 0, KDialog::spacingHint() );
layout->setRowStretch( 5, 1 );
- m_listViewElements = new KListView( this );
+ m_listViewElements = new TDEListView( this );
layout->addMultiCellWidget( m_listViewElements, 0, 6, 0, 0 );
m_listViewElements->renameLineEdit() ->setCompletionObject( settings->completion( m_fieldType ) );
- m_listViewElements->renameLineEdit() ->setCompletionMode( KGlobalSettings::CompletionPopup );
+ m_listViewElements->renameLineEdit() ->setCompletionMode( TDEGlobalSettings::CompletionPopup );
m_listViewElements->renameLineEdit() ->completionObject() ->setIgnoreCase( true );
m_listViewElements->setDefaultRenameAction( TQListView::Accept );
m_listViewElements->addColumn( m_caption );
@@ -304,7 +304,7 @@ namespace KBibTeX
m_listViewElements->setItemsRenameable( TRUE );
if ( settings->editing_UseSpecialFont )
m_listViewElements->setFont( settings->editing_SpecialFont );
- m_listViewElements->header() ->setFont( KGlobalSettings::generalFont() );
+ m_listViewElements->header() ->setFont( TDEGlobalSettings::generalFont() );
m_listViewElements->header() ->setClickEnabled( FALSE );
m_listViewElements->header() ->setStretchEnabled( TRUE, 0 );
diff --git a/src/fieldlistview.h b/src/fieldlistview.h
index 9cfed77..7ec1fd4 100644
--- a/src/fieldlistview.h
+++ b/src/fieldlistview.h
@@ -26,7 +26,7 @@
#include <entryfield.h>
class TQString;
-class KListView;
+class TDEListView;
class TQListViewItem;
class TQPushButton;
class TQCheckBox;
@@ -81,7 +81,7 @@ namespace KBibTeX
bool m_isModified;
int m_newValueCounter;
BibTeX::EntryField::FieldType m_fieldType;
- KListView *m_listViewElements;
+ TDEListView *m_listViewElements;
TQPushButton *m_pushButtonAdd;
TQPushButton *m_pushButtonEdit;
TQPushButton *m_pushButtonDelete;
diff --git a/src/findduplicates.cpp b/src/findduplicates.cpp
index 0fd937b..89a7bc1 100644
--- a/src/findduplicates.cpp
+++ b/src/findduplicates.cpp
@@ -25,8 +25,8 @@
#include <ntqapplication.h>
#include <kdebug.h>
-#include <klocale.h>
-#include <kmessagebox.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
#include <kprogress.h>
#include <element.h>
diff --git a/src/idsuggestions.cpp b/src/idsuggestions.cpp
index 05d8a11..b0d35a4 100644
--- a/src/idsuggestions.cpp
+++ b/src/idsuggestions.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include <ntqregexp.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <encoderlatex.h>
#include <file.h>
diff --git a/src/idsuggestionswidget.cpp b/src/idsuggestionswidget.cpp
index 5faaff9..1bde3f0 100644
--- a/src/idsuggestionswidget.cpp
+++ b/src/idsuggestionswidget.cpp
@@ -24,14 +24,14 @@
#include <ntqobjectlist.h>
#include <ntqscrollview.h>
-#include <kglobalsettings.h>
+#include <tdeglobalsettings.h>
#include <klineedit.h>
-#include <kpopupmenu.h>
+#include <tdepopupmenu.h>
#include <kcombobox.h>
#include <kpushbutton.h>
#include <kdialogbase.h>
#include <kiconloader.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <idsuggestions.h>
#include <fileimporter.h>
@@ -117,8 +117,8 @@ namespace KBibTeX
TQFont labelFont( label->font() );
labelFont.setBold( TRUE );
label->setFont( labelFont );
- label->setBackgroundColor( KGlobalSettings::highlightColor() );
- label->setPaletteForegroundColor( KGlobalSettings::highlightedTextColor() );
+ label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
+ label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
label->setAlignment( TQt::AlignHCenter | TQt::AlignVCenter );
layout->addMultiCellWidget( label, 0, 0, 0, 2 );
@@ -206,8 +206,8 @@ namespace KBibTeX
TQFont labelFont( label->font() );
labelFont.setBold( TRUE );
label->setFont( labelFont );
- label->setBackgroundColor( KGlobalSettings::highlightColor() );
- label->setPaletteForegroundColor( KGlobalSettings::highlightedTextColor() );
+ label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
+ label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
label->setAlignment( TQt::AlignHCenter | TQt::AlignVCenter );
layout->addMultiCellWidget( label, 0, 0, 0, 2 );
@@ -281,8 +281,8 @@ namespace KBibTeX
TQFont labelFont( label->font() );
labelFont.setBold( TRUE );
label->setFont( labelFont );
- label->setBackgroundColor( KGlobalSettings::highlightColor() );
- label->setPaletteForegroundColor( KGlobalSettings::highlightedTextColor() );
+ label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
+ label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
label->setAlignment( TQt::AlignHCenter | TQt::AlignVCenter );
layout->addMultiCellWidget( label, 0, 0, 0, 2 );
@@ -316,8 +316,8 @@ namespace KBibTeX
TQFont labelFont( label->font() );
labelFont.setBold( TRUE );
label->setFont( labelFont );
- label->setBackgroundColor( KGlobalSettings::highlightColor() );
- label->setPaletteForegroundColor( KGlobalSettings::highlightedTextColor() );
+ label->setBackgroundColor( TDEGlobalSettings::highlightColor() );
+ label->setPaletteForegroundColor( TDEGlobalSettings::highlightedTextColor() );
label->setAlignment( TQt::AlignHCenter | TQt::AlignVCenter );
layout->addMultiCellWidget( label, 0, 0, 0, 2 );
@@ -479,7 +479,7 @@ namespace KBibTeX
TQVBoxLayout *listLayout = new TQVBoxLayout( m_listOfComponents, 0, KDialog::spacingHint() );
listLayout->setAutoAdd( TRUE );
- KPopupMenu *addMenu = new KPopupMenu( m_pushButtonAdd );
+ TDEPopupMenu *addMenu = new TDEPopupMenu( m_pushButtonAdd );
addMenu->insertItem( i18n( "Author" ), 1 );
addMenu->insertItem( i18n( "Year" ), 2 );
addMenu->insertItem( i18n( "Title" ), 3 );
diff --git a/src/kbibtex.desktop b/src/kbibtex.desktop
index 5c9d9c3..70ac095 100644
--- a/src/kbibtex.desktop
+++ b/src/kbibtex.desktop
@@ -7,6 +7,6 @@ X-DocPath=kbibtex/kbibtex.html
Comment=A BibTeX editor for KDE
Comment[de]=Ein BibTeX-Editor für KDE
MimeType=text/x-bibtex;
-Categories=Qt;KDE;Office;
-X-KDE-HasTempFileOption=true
+Categories=Qt;TDE;Office;
+X-TDE-HasTempFileOption=true
X-DCOP-ServiceType=Unique
diff --git a/src/kbibtex_part.cpp b/src/kbibtex_part.cpp
index eaf72b8..d41fcb8 100644
--- a/src/kbibtex_part.cpp
+++ b/src/kbibtex_part.cpp
@@ -33,26 +33,26 @@
#include <ntqtextedit.h>
#include <ntqclipboard.h>
#include <kinstance.h>
-#include <kaction.h>
+#include <tdeaction.h>
#include <kstdaction.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <kdebug.h>
-#include <klocale.h>
-#include <kfiledialog.h>
-#include <ktempfile.h>
-#include <kconfigdialog.h>
+#include <tdelocale.h>
+#include <tdefiledialog.h>
+#include <tdetempfile.h>
+#include <tdeconfigdialog.h>
#include <kstatusbar.h>
-#include <kglobalsettings.h>
-#include <kmessagebox.h>
+#include <tdeglobalsettings.h>
+#include <tdemessagebox.h>
#include <kinputdialog.h>
-#include <kshortcut.h>
+#include <tdeshortcut.h>
#include <kstandarddirs.h>
#include <kiconloader.h>
-#include <kapplication.h>
+#include <tdeapplication.h>
#include <kxmlguifactory.h>
-#include <kpopupmenu.h>
-#include <kio/netaccess.h>
-#include <kmainwindow.h>
+#include <tdepopupmenu.h>
+#include <tdeio/netaccess.h>
+#include <tdemainwindow.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -76,7 +76,7 @@ KBibTeXPart::KBibTeXPart( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name )
: KParts::ReadWritePart( parent, name ), m_defInitCounter( 0 ), m_settingsDlg( NULL ), m_initializationDone( FALSE ), m_inPipe( NULL )
{
- m_mainWindow = dynamic_cast<KMainWindow*>( parent );
+ m_mainWindow = dynamic_cast<TDEMainWindow*>( parent );
if ( m_mainWindow == NULL )
kdDebug( ) << "Cannot determine main window" << endl;
@@ -131,7 +131,7 @@ void KBibTeXPart::setReadWrite( bool rw )
void KBibTeXPart::setModified( bool modified )
{
// get a handle on our Save action and make sure it is valid
- KAction * save = actionCollection() ->action( KStdAction::stdName( KStdAction::Save ) );
+ TDEAction * save = actionCollection() ->action( KStdAction::stdName( KStdAction::Save ) );
if ( save )
{
@@ -229,7 +229,7 @@ bool KBibTeXPart::saveFile()
usedFileName = KBibTeX::Settings::resolveLink( m_file, fi.readLink() );
m_documentWidget->dirWatch().stopScan();
- success = KIO::NetAccess::file_copy( KURL( tempBibFile.name() ), KURL( usedFileName ), -1, true, false, widget() );
+ success = TDEIO::NetAccess::file_copy( KURL( tempBibFile.name() ), KURL( usedFileName ), -1, true, false, widget() );
m_documentWidget->dirWatch().startScan();
}
@@ -253,7 +253,7 @@ bool KBibTeXPart::saveAs()
if ( saveURL.isValid() && !saveURL.isEmpty() )
{
- if ( KIO::NetAccess::exists( saveURL, FALSE, widget() ) && KMessageBox::warningContinueCancel( widget(), i18n( "A file named '%1' already exists. Are you sure you want to overwrite it?" ).arg( saveURL.filename() ), TQString::null, i18n( "Overwrite" ) ) != KMessageBox::Continue )
+ if ( TDEIO::NetAccess::exists( saveURL, FALSE, widget() ) && KMessageBox::warningContinueCancel( widget(), i18n( "A file named '%1' already exists. Are you sure you want to overwrite it?" ).arg( saveURL.filename() ), TQString::null, i18n( "Overwrite" ) ) != KMessageBox::Continue )
return result;
if ( ReadWritePart::saveAs( saveURL ) )
@@ -274,7 +274,7 @@ void KBibTeXPart::slotFileExport()
if ( exportURL.isValid() && !exportURL.isEmpty() )
{
- if ( KIO::NetAccess::exists( exportURL, FALSE, widget() ) )
+ if ( TDEIO::NetAccess::exists( exportURL, FALSE, widget() ) )
{
if ( KMessageBox::warningContinueCancel( widget(), i18n( "A file named '%1' already exists. Are you sure you want to overwrite it?" ).arg( exportURL.filename() ), TQString::null, i18n( "Overwrite" ) ) != KMessageBox::Continue )
return ;
@@ -334,12 +334,12 @@ void KBibTeXPart::slotFileExport()
if ( !error )
{
tempBibFile.close();
- error = !KIO::NetAccess::file_copy( KURL( tempBibFile.name() ), exportURL, -1, TRUE, FALSE, widget() );
+ error = !TDEIO::NetAccess::file_copy( KURL( tempBibFile.name() ), exportURL, -1, TRUE, FALSE, widget() );
}
if ( error )
{
-#if (KDE_VERSION_MINOR>=4) && (KDE_VERSION_MAJOR>=3)
+#if (TDE_VERSION_MINOR>=4) && (TDE_VERSION_MAJOR>=3)
if ( !errorLog.empty() )
KMessageBox::errorList( widget(), TQString( i18n( "File could not be exported in '%1'." ) ).arg( exportURL.prettyURL() ).append( i18n( "\n\nSee the following error log for details." ) ), errorLog, i18n( "Exporting failed" ) );
else
@@ -378,7 +378,7 @@ void KBibTeXPart::slotFileMerge()
return;
extension = extension.mid( extPos );
- if ( !KIO::NetAccess::exists( mergeURL, TRUE, widget() ) )
+ if ( !TDEIO::NetAccess::exists( mergeURL, TRUE, widget() ) )
{
KMessageBox::error( widget(), i18n( "The given file could not be read, check if it exists or if it is readable for the current user." ) );
return ;
@@ -386,7 +386,7 @@ void KBibTeXPart::slotFileMerge()
KTempFile tempBibFile = KTempFile( locateLocal( "tmp", "bibmerge" ), extension );
tempBibFile.setAutoDelete( TRUE );
- bool error = !KIO::NetAccess::file_copy( mergeURL, KURL( tempBibFile.name() ), -1, TRUE, FALSE, widget() );
+ bool error = !TDEIO::NetAccess::file_copy( mergeURL, KURL( tempBibFile.name() ), -1, TRUE, FALSE, widget() );
if ( !error )
error = !m_documentWidget->open( tempBibFile.name(), TRUE );
@@ -427,11 +427,11 @@ void KBibTeXPart::setupActions()
KStdAction::save( this, SLOT( save() ), actionCollection() ) ->setToolTip( i18n( "Save the current file" ) );
KStdAction::saveAs( this, SLOT( slotFileSaveAs() ), actionCollection() ) ->setToolTip( i18n( "Save the current file under a new filename" ) );
}
- m_actionFileStatistics = new KAction( i18n( "Statistics..." ), CTRL + SHIFT + Key_I, this, SLOT( slotFileStatistics() ), actionCollection(), "file_statistics" );
- m_actionFileFindDups = new KAction( i18n( "Find Duplicates..." ), CTRL + SHIFT + Key_D, this, SLOT( slotFileFindDups() ), actionCollection(), "file_finddups" );
- m_actionFileExport = new KAction( i18n( "Export..." ), SmallIconSet( "goto" ), CTRL + Key_E, this, SLOT( slotFileExport() ), actionCollection(), "file_export" );
+ m_actionFileStatistics = new TDEAction( i18n( "Statistics..." ), CTRL + SHIFT + Key_I, this, SLOT( slotFileStatistics() ), actionCollection(), "file_statistics" );
+ m_actionFileFindDups = new TDEAction( i18n( "Find Duplicates..." ), CTRL + SHIFT + Key_D, this, SLOT( slotFileFindDups() ), actionCollection(), "file_finddups" );
+ m_actionFileExport = new TDEAction( i18n( "Export..." ), SmallIconSet( "goto" ), CTRL + Key_E, this, SLOT( slotFileExport() ), actionCollection(), "file_export" );
m_actionFileExport->setToolTip( i18n( "Export to a different file format" ) );
- m_actionFileMerge = new KAction( i18n( "Merge..." ), SmallIconSet( "reload" ), CTRL + Key_M, this, SLOT( slotFileMerge() ), actionCollection(), "file_merge" );
+ m_actionFileMerge = new TDEAction( i18n( "Merge..." ), SmallIconSet( "reload" ), CTRL + Key_M, this, SLOT( slotFileMerge() ), actionCollection(), "file_merge" );
m_actionFileMerge->setToolTip( i18n( "Merge BibTeX entries from another file" ) );
m_actionEditCut = KStdAction::cut( m_documentWidget, SLOT( cutElements() ), actionCollection() );
@@ -442,14 +442,14 @@ void KBibTeXPart::setupActions()
m_actionEditCopy->setEnabled( FALSE );
m_actionEditUndo = KStdAction::undo( m_documentWidget, SLOT( undoEditor() ), actionCollection() );
connect( m_documentWidget, SIGNAL( undoChanged( bool ) ), this, SLOT( slotUndoChanged( bool ) ) );
- m_actionEditCopyRef = new KAction( i18n( "Copy &Reference" ), CTRL + SHIFT + Key_C, m_documentWidget, SLOT( copyRefElements() ), actionCollection(), "edit_copyref" );
+ m_actionEditCopyRef = new TDEAction( i18n( "Copy &Reference" ), CTRL + SHIFT + Key_C, m_documentWidget, SLOT( copyRefElements() ), actionCollection(), "edit_copyref" );
m_actionEditCopyRef->setToolTip( i18n( "Copy a reference of the selected BibTeX elements to the clipboard" ) );
m_actionEditCopyRef->setEnabled( FALSE );
m_actionEditPaste = KStdAction::paste( m_documentWidget, SLOT( pasteElements() ), actionCollection() );
m_actionEditPaste->setToolTip( i18n( "Paste BibTeX elements from the clipboard" ) );
m_actionEditSelectAll = KStdAction::selectAll( m_documentWidget, SLOT( selectAll() ), actionCollection() );
m_actionEditSelectAll->setToolTip( i18n( "Select all BibTeX elements" ) );
- m_actionElementSendToLyX = new KAction( i18n( "Send Reference to &LyX" ), CTRL + SHIFT + Key_L, m_documentWidget, SLOT( sendSelectedToLyx() ), actionCollection(), "element_sendtolyx" );
+ m_actionElementSendToLyX = new TDEAction( i18n( "Send Reference to &LyX" ), CTRL + SHIFT + Key_L, m_documentWidget, SLOT( sendSelectedToLyx() ), actionCollection(), "element_sendtolyx" );
m_actionElementSendToLyX->setToolTip( i18n( "Send a reference of the selected BibTeX elements to LyX" ) );
m_actionElementSendToLyX->setEnabled( FALSE );
m_actionEditFind = KStdAction::find( m_documentWidget, SLOT( find() ), actionCollection() );
@@ -459,66 +459,66 @@ void KBibTeXPart::setupActions()
m_actionEditFind->setEnabled( FALSE );
m_actionEditFindNext->setEnabled( FALSE );
- m_actionSearchOnlineDatabases = new KAction( i18n( "Search Online Databases" ), SmallIconSet( "network" ), CTRL + SHIFT + Key_S, m_documentWidget, SLOT( onlineSearch() ), actionCollection(), "search_onlinedatabases" );
+ m_actionSearchOnlineDatabases = new TDEAction( i18n( "Search Online Databases" ), SmallIconSet( "network" ), CTRL + SHIFT + Key_S, m_documentWidget, SLOT( onlineSearch() ), actionCollection(), "search_onlinedatabases" );
m_actionSearchOnlineDatabases->setToolTip( i18n( "Search online databases to import bibliography data" ) );
- m_actionMenuSearchWebsites = new KActionMenu( i18n( "Search Document Online" ), actionCollection(), "search_document_online" );
+ m_actionMenuSearchWebsites = new TDEActionMenu( i18n( "Search Document Online" ), actionCollection(), "search_document_online" );
m_actionMenuSearchWebsites->setToolTip( i18n( "Search websites for the selected BibTeX element" ) );
connect( m_actionMenuSearchWebsites->popupMenu(), SIGNAL( activated( int ) ), this, SLOT( slotSearchWebsites( int ) ) );
m_actionMenuSearchWebsites->setEnabled( FALSE );
- m_actionViewShowColumns = new KActionMenu( i18n( "&Show Columns" ), actionCollection(), "view_showcolumns" );
+ m_actionViewShowColumns = new TDEActionMenu( i18n( "&Show Columns" ), actionCollection(), "view_showcolumns" );
m_actionViewShowColumns->setToolTip( i18n( "Select columns to show in the main list" ) );
- m_actionViewDocument = new KActionMenu( i18n( "View Document" ), actionCollection(), "view_document" );
+ m_actionViewDocument = new TDEActionMenu( i18n( "View Document" ), actionCollection(), "view_document" );
m_actionViewDocument->setToolTip( i18n( "View the documents associated with this BibTeX entry" ) );
m_actionViewDocument->setEnabled( FALSE );
- m_actionViewFirstDocument = new KAction( i18n( "View Primary Document" ), 0, m_documentWidget, SLOT( slotViewFirstDocument() ), actionCollection(), "view_first_document" );
+ m_actionViewFirstDocument = new TDEAction( i18n( "View Primary Document" ), 0, m_documentWidget, SLOT( slotViewFirstDocument() ), actionCollection(), "view_first_document" );
m_actionViewFirstDocument->setShortcut( TQt::Key_F4 );
- m_actionViewDocumentOnlineRef = new KAction( i18n( "View Primary Online Reference" ), 0, m_documentWidget, SLOT( slotViewFirstDocumentsOnlineRef() ), actionCollection(), "view_first_documents_online_ref" );
+ m_actionViewDocumentOnlineRef = new TDEAction( i18n( "View Primary Online Reference" ), 0, m_documentWidget, SLOT( slotViewFirstDocumentsOnlineRef() ), actionCollection(), "view_first_documents_online_ref" );
m_actionViewDocumentOnlineRef->setShortcut( TQt::Key_F5 );
- m_actionAssignKeywords = new KActionMenu( i18n( "Assign Keywords" ), actionCollection(), "assign_keywords" );
+ m_actionAssignKeywords = new TDEActionMenu( i18n( "Assign Keywords" ), actionCollection(), "assign_keywords" );
m_actionAssignKeywords->setToolTip( i18n( "Assign keywords to this entry" ) );
m_actionAssignKeywords->setEnabled( FALSE );
- m_actionNormalizeIds = new KAction( i18n( "Normalize Entry Ids" ), 0, m_documentWidget, SLOT( slotNormalizeIds() ), actionCollection( ), "normalize_ids" );
+ m_actionNormalizeIds = new TDEAction( i18n( "Normalize Entry Ids" ), 0, m_documentWidget, SLOT( slotNormalizeIds() ), actionCollection( ), "normalize_ids" );
m_actionNormalizeIds->setToolTip( i18n( "Set entry ids as specified in the id suggestion settings" ) );
m_actionNormalizeIds->setEnabled( FALSE );
m_actionPreferences = KStdAction::preferences( this, SLOT( slotPreferences() ), actionCollection() );
m_actionPreferences->setToolTip( i18n( "Configure KBibTeX" ) );
- KAction *actionSourceEditor = new KAction( i18n( "Configure Source View..." ), 0, m_documentWidget, SLOT( configureEditor() ), actionCollection(), "options_configure_editor" );
+ TDEAction *actionSourceEditor = new TDEAction( i18n( "Configure Source View..." ), 0, m_documentWidget, SLOT( configureEditor() ), actionCollection(), "options_configure_editor" );
actionSourceEditor ->setToolTip( i18n( "Configure the Source Editor" ) );
- ( new KAction( i18n( "Article" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_article" ) ) ->setToolTip( i18n( "Add an article to the BibTeX file" ) );
- ( new KAction( i18n( "Book" ), "element_new_entry_book", CTRL + Key_B, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_book" ) ) ->setToolTip( i18n( "Add a book to the BibTeX file" ) );
- ( new KAction( i18n( "Booklet" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_booklet" ) ) ->setToolTip( i18n( "Add a booklet to the BibTeX file" ) );
- ( new KAction( i18n( "Electronic (IEEE)" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_electronic" ) ) ->setToolTip( i18n( "Add an electronic reference (IEEE) to the BibTeX file" ) );
- ( new KAction( i18n( "InBook" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_inbook" ) ) ->setToolTip( i18n( "Add a part of a book to the BibTeX file" ) );
- ( new KAction( i18n( "InCollection" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_incollection" ) ) ->setToolTip( i18n( "Add a publication which is part of some collection to the BibTeX file" ) );
- ( new KAction( i18n( "InProceedings" ), "element_new_entry_inproceedings", CTRL + Key_I, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_inproceedings" ) ) ->setToolTip( i18n( "Add a publication which is part of some proceedings to the BibTeX file" ) );
- ( new KAction( i18n( "Manual" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_manual" ) ) ->setToolTip( i18n( "Add a manual to the BibTeX file" ) );
- ( new KAction( i18n( "MastersThesis" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_mastersthesis" ) ) ->setToolTip( i18n( "Add a master or diploma thesis to the BibTeX file" ) );
- ( new KAction( i18n( "Misc" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_misc" ) ) ->setToolTip( i18n( "Add a not specified document or reference to the BibTeX file" ) );
- ( new KAction( i18n( "PhDThesis" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_phdthesis" ) ) ->setToolTip( i18n( "Add a PhD thesis to the BibTeX file" ) );
- ( new KAction( i18n( "Proceedings" ), "element_new_entry_phdthesis" , CTRL + Key_P, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_proceedings" ) ) ->setToolTip( i18n( "Add some proceedings to the BibTeX file" ) );
- ( new KAction( i18n( "TechReport" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_techreport" ) ) ->setToolTip( i18n( "Add a technical report to the BibTeX file" ) );
- ( new KAction( i18n( "Unpublished" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_unpublished" ) ) ->setToolTip( i18n( "Add an unpublished document to the BibTeX file" ) );
- ( new KAction( i18n( "Preamble" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_preamble" ) ) ->setToolTip( i18n( "Add a preamble to the BibTeX file" ) );
- ( new KAction( i18n( "Comment" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_comment" ) ) ->setToolTip( i18n( "Add a comment to the BibTeX file" ) );
- ( new KAction( i18n( "Macro" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_macro" ) ) ->setToolTip( i18n( "Add a macro to the BibTeX file" ) );
-
- m_actionEditElement = new KAction( i18n( "&Edit" ), 0, m_documentWidget, SLOT( editElement() ), actionCollection(), "element_edit" );
+ ( new TDEAction( i18n( "Article" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_article" ) ) ->setToolTip( i18n( "Add an article to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Book" ), "element_new_entry_book", CTRL + Key_B, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_book" ) ) ->setToolTip( i18n( "Add a book to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Booklet" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_booklet" ) ) ->setToolTip( i18n( "Add a booklet to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Electronic (IEEE)" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_electronic" ) ) ->setToolTip( i18n( "Add an electronic reference (IEEE) to the BibTeX file" ) );
+ ( new TDEAction( i18n( "InBook" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_inbook" ) ) ->setToolTip( i18n( "Add a part of a book to the BibTeX file" ) );
+ ( new TDEAction( i18n( "InCollection" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_incollection" ) ) ->setToolTip( i18n( "Add a publication which is part of some collection to the BibTeX file" ) );
+ ( new TDEAction( i18n( "InProceedings" ), "element_new_entry_inproceedings", CTRL + Key_I, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_inproceedings" ) ) ->setToolTip( i18n( "Add a publication which is part of some proceedings to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Manual" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_manual" ) ) ->setToolTip( i18n( "Add a manual to the BibTeX file" ) );
+ ( new TDEAction( i18n( "MastersThesis" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_mastersthesis" ) ) ->setToolTip( i18n( "Add a master or diploma thesis to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Misc" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_misc" ) ) ->setToolTip( i18n( "Add a not specified document or reference to the BibTeX file" ) );
+ ( new TDEAction( i18n( "PhDThesis" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_phdthesis" ) ) ->setToolTip( i18n( "Add a PhD thesis to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Proceedings" ), "element_new_entry_phdthesis" , CTRL + Key_P, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_proceedings" ) ) ->setToolTip( i18n( "Add some proceedings to the BibTeX file" ) );
+ ( new TDEAction( i18n( "TechReport" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_techreport" ) ) ->setToolTip( i18n( "Add a technical report to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Unpublished" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_entry_unpublished" ) ) ->setToolTip( i18n( "Add an unpublished document to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Preamble" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_preamble" ) ) ->setToolTip( i18n( "Add a preamble to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Comment" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_comment" ) ) ->setToolTip( i18n( "Add a comment to the BibTeX file" ) );
+ ( new TDEAction( i18n( "Macro" ), 0, this, SLOT( slotNewElement() ), actionCollection(), "element_new_macro" ) ) ->setToolTip( i18n( "Add a macro to the BibTeX file" ) );
+
+ m_actionEditElement = new TDEAction( i18n( "&Edit" ), 0, m_documentWidget, SLOT( editElement() ), actionCollection(), "element_edit" );
m_actionEditElement->setToolTip( i18n( "Edit the selected BibTeX element" ) );
m_actionEditElement->setEnabled( FALSE );
- m_actionDeleteElement = new KAction( i18n( "&Delete" ), 0, m_documentWidget, SLOT( deleteElements() ), actionCollection(), "element_delete" );
+ m_actionDeleteElement = new TDEAction( i18n( "&Delete" ), 0, m_documentWidget, SLOT( deleteElements() ), actionCollection(), "element_delete" );
m_actionDeleteElement->setToolTip( i18n( "Delete the selected BibTeX elements" ) );
m_actionDeleteElement->setEnabled( FALSE );
- m_actionShowComments = new KToggleAction( i18n( "Show &Comments" ), 0, this, SLOT( slotToggleShowSpecialElements() ), actionCollection(), "view_showcomments" );
+ m_actionShowComments = new TDEToggleAction( i18n( "Show &Comments" ), 0, this, SLOT( slotToggleShowSpecialElements() ), actionCollection(), "view_showcomments" );
m_actionShowComments->setToolTip( i18n( "Show the comments of a BibTeX document" ) );
- m_actionShowMacros = new KToggleAction( i18n( "Show &Macros" ), 0, this, SLOT( slotToggleShowSpecialElements() ), actionCollection(), "view_showmacros" );
+ m_actionShowMacros = new TDEToggleAction( i18n( "Show &Macros" ), 0, this, SLOT( slotToggleShowSpecialElements() ), actionCollection(), "view_showmacros" );
m_actionShowMacros->setToolTip( i18n( "Show the macros of a BibTeX document" ) );
- m_actionUseInPipe = new KToggleAction( i18n( "Accept input from other programs" ), 0, this , SLOT( slotUseInPipe() ), actionCollection(), "useinpipe" );
+ m_actionUseInPipe = new TDEToggleAction( i18n( "Accept input from other programs" ), 0, this , SLOT( slotUseInPipe() ), actionCollection(), "useinpipe" );
connect( m_documentWidget, SIGNAL( listViewSelectionChanged( int ) ), this, SLOT( slotUpdateMenu( int ) ) );
@@ -534,7 +534,7 @@ void KBibTeXPart::setupActions()
actionCollection() ->setHighlightingEnabled( true );
- KActionMenu *acmElementNew = new KActionMenu( i18n( "&New" ), TQIconSet( SmallIcon( "filenew" ) ), actionCollection(), "element_new" );
+ TDEActionMenu *acmElementNew = new TDEActionMenu( i18n( "&New" ), TQIconSet( SmallIcon( "filenew" ) ), actionCollection(), "element_new" );
acmElementNew->setToolTip( i18n( "Add a new element to this BibTeX document" ) );
acmElementNew->setEnabled( FALSE );
}
@@ -568,7 +568,7 @@ bool KBibTeXPart::slotNewElement()
void KBibTeXPart::readSettings()
{
KBibTeX::Settings * settings = KBibTeX::Settings::self();
- KConfig * config = KBibTeXPartFactory::instance() ->config();
+ TDEConfig * config = KBibTeXPartFactory::instance() ->config();
settings->load( config );
m_actionShowComments->setChecked( settings->editing_ShowComments );
@@ -583,7 +583,7 @@ void KBibTeXPart::writeSettings()
KBibTeX::Settings * settings = KBibTeX::Settings::self();
m_documentWidget->saveState();
- KConfig * config = KBibTeXPartFactory::instance() ->config();
+ TDEConfig * config = KBibTeXPartFactory::instance() ->config();
settings->editing_ShowComments = m_actionShowComments->isChecked();
settings->editing_ShowMacros = m_actionShowMacros->isChecked();
@@ -700,12 +700,12 @@ void KBibTeXPart::slotDeferredInitialization()
}
// It's usually safe to leave the factory code alone.. with the
-// notable exception of the KAboutData data
-#include <kaboutdata.h>
-#include <klocale.h>
+// notable exception of the TDEAboutData data
+#include <tdeaboutdata.h>
+#include <tdelocale.h>
-KInstance* KBibTeXPartFactory::s_instance = 0L;
-KAboutData* KBibTeXPartFactory::s_about = 0L;
+TDEInstance* KBibTeXPartFactory::s_instance = 0L;
+TDEAboutData* KBibTeXPartFactory::s_about = 0L;
KBibTeXPartFactory::KBibTeXPartFactory()
: KParts::Factory()
@@ -735,13 +735,13 @@ KParts::Part* KBibTeXPartFactory::createPartObject( TQWidget *parentWidget, cons
return obj;
}
-KInstance* KBibTeXPartFactory::instance()
+TDEInstance* KBibTeXPartFactory::instance()
{
if ( !s_instance )
{
- s_about = new KAboutData( "kbibtexpart", I18N_NOOP( "KBibTeXPart" ), "0.2.3.91" );
+ s_about = new TDEAboutData( "kbibtexpart", I18N_NOOP( "KBibTeXPart" ), "0.2.3.91" );
s_about->addAuthor( "Thomas Fischer", 0, "fischer@unix-ag.uni-kl.de" );
- s_instance = new KInstance( s_about );
+ s_instance = new TDEInstance( s_about );
}
return s_instance;
}
diff --git a/src/kbibtex_part.desktop b/src/kbibtex_part.desktop
index 57cba41..93e3b2e 100644
--- a/src/kbibtex_part.desktop
+++ b/src/kbibtex_part.desktop
@@ -11,5 +11,5 @@ Name[pt_BR]=Parte do KBibTeX
Name[de]=Einbettungsfähige Komponente von KBibTeX
MimeType=text/x-bibtex;application/x-endnote-library;
ServiceTypes=KParts/ReadOnlyPart,KParts/ReadWritePart
-X-KDE-Library=libkbibtexpart
+X-TDE-Library=libkbibtexpart
Type=Service
diff --git a/src/kbibtex_part.h b/src/kbibtex_part.h
index 05031e8..eab599d 100644
--- a/src/kbibtex_part.h
+++ b/src/kbibtex_part.h
@@ -21,8 +21,8 @@
#ifndef _KBIBTEXPART_H_
#define _KBIBTEXPART_H_
-#include <kparts/part.h>
-#include <kparts/factory.h>
+#include <tdeparts/part.h>
+#include <tdeparts/factory.h>
#include <element.h>
#include <xsltransform.h>
@@ -38,11 +38,11 @@ class TQPainter;
class TQListViewItem;
class TQProgressDialog;
class KURL;
-class KListView;
-class KAction;
-class KActionMenu;
-class KToggleAction;
-class KMainWindow;
+class TDEListView;
+class TDEAction;
+class TDEActionMenu;
+class TDEToggleAction;
+class TDEMainWindow;
class KBibTeXPart : public KParts::ReadWritePart
{
@@ -104,35 +104,35 @@ private:
TQProgressDialog *m_progressDialog;
KBibTeX::DocumentWidget *m_documentWidget;
KBibTeX::SettingsDlg *m_settingsDlg;
- KAction *m_actionFileMerge;
- KAction *m_actionFileExport;
- KAction *m_actionFileStatistics;
- KAction *m_actionFileFindDups;
- KAction *m_actionEditUndo;
- KAction *m_actionElementSendToLyX;
- KAction *m_actionEditElement;
- KAction *m_actionDeleteElement;
- KAction *m_actionEditCut;
- KAction *m_actionEditCopy;
- KAction *m_actionEditCopyRef;
- KAction *m_actionEditPaste;
- KAction *m_actionEditSelectAll;
- KAction *m_actionEditFind;
- KAction *m_actionEditFindNext;
- KAction *m_actionPreferences;
- KAction *m_actionSearchOnlineDatabases;
- KActionMenu *m_actionViewDocument;
- KAction *m_actionViewFirstDocument;
- KAction *m_actionViewDocumentOnlineRef;
- KActionMenu *m_actionAssignKeywords;
- KAction *m_actionNormalizeIds;
- KActionMenu *m_actionMenuSearchWebsites;
- KActionMenu *m_actionViewShowColumns;
- KAction *m_actionSearchNCBI;
- KToggleAction *m_actionUseInPipe;
- KToggleAction *m_actionShowComments;
- KToggleAction *m_actionShowMacros;
- KMainWindow *m_mainWindow;
+ TDEAction *m_actionFileMerge;
+ TDEAction *m_actionFileExport;
+ TDEAction *m_actionFileStatistics;
+ TDEAction *m_actionFileFindDups;
+ TDEAction *m_actionEditUndo;
+ TDEAction *m_actionElementSendToLyX;
+ TDEAction *m_actionEditElement;
+ TDEAction *m_actionDeleteElement;
+ TDEAction *m_actionEditCut;
+ TDEAction *m_actionEditCopy;
+ TDEAction *m_actionEditCopyRef;
+ TDEAction *m_actionEditPaste;
+ TDEAction *m_actionEditSelectAll;
+ TDEAction *m_actionEditFind;
+ TDEAction *m_actionEditFindNext;
+ TDEAction *m_actionPreferences;
+ TDEAction *m_actionSearchOnlineDatabases;
+ TDEActionMenu *m_actionViewDocument;
+ TDEAction *m_actionViewFirstDocument;
+ TDEAction *m_actionViewDocumentOnlineRef;
+ TDEActionMenu *m_actionAssignKeywords;
+ TDEAction *m_actionNormalizeIds;
+ TDEActionMenu *m_actionMenuSearchWebsites;
+ TDEActionMenu *m_actionViewShowColumns;
+ TDEAction *m_actionSearchNCBI;
+ TDEToggleAction *m_actionUseInPipe;
+ TDEToggleAction *m_actionShowComments;
+ TDEToggleAction *m_actionShowMacros;
+ TDEMainWindow *m_mainWindow;
TQValueList<KBibTeX::WebQuery*> webQueryList;
bool m_initializationDone;
TQFile *m_inPipe;
@@ -147,8 +147,8 @@ signals:
void progressCancel();
};
-class KInstance;
-class KAboutData;
+class TDEInstance;
+class TDEAboutData;
class KBibTeXPartFactory : public KParts::Factory
{
@@ -159,11 +159,11 @@ public:
virtual KParts::Part* createPartObject( TQWidget * parentWidget, const char * widgetName,
TQObject * parent, const char * name,
const char * classname, const TQStringList & /* args */ );
- static KInstance* instance();
+ static TDEInstance* instance();
private:
- static KInstance* s_instance;
- static KAboutData* s_about;
+ static TDEInstance* s_instance;
+ static TDEAboutData* s_about;
};
#endif // _KBIBTEXPART_H_
diff --git a/src/kbibtex_part.rc b/src/kbibtex_part.rc
index 9c970d9..863e7a5 100644
--- a/src/kbibtex_part.rc
+++ b/src/kbibtex_part.rc
@@ -127,7 +127,7 @@
<Action name="element_new_comment" />
<Action name="element_new_macro" />
</Menu>
-<Menu name="ktexteditor_popup" noMerge="1">
+<Menu name="tdetexteditor_popup" noMerge="1">
<Menu name="element_new"><text>&amp;New</text>
<Action name="element_new_entry_article" />
<Action name="element_new_entry_book" />
diff --git a/src/kbibtexshell.cpp b/src/kbibtexshell.cpp
index 531d4e2..ec35da9 100644
--- a/src/kbibtexshell.cpp
+++ b/src/kbibtexshell.cpp
@@ -21,18 +21,18 @@
#include <kkeydialog.h>
#include <kencodingfiledialog.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
#include <kurl.h>
-#include <kactionclasses.h>
+#include <tdeactionclasses.h>
#include <kedittoolbar.h>
#include <kdebug.h>
-#include <kaction.h>
+#include <tdeaction.h>
#include <kstdaction.h>
-#include <kio/netaccess.h>
+#include <tdeio/netaccess.h>
#include <klibloader.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <kstatusbar.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kbibtex_part.h>
#include "kbibtexshell.h"
@@ -137,7 +137,7 @@ KParts::ReadWritePart * KBibTeXShell::part()
return m_part;
}
-void KBibTeXShell::readConfig( KConfig *config )
+void KBibTeXShell::readConfig( TDEConfig *config )
{
config->setGroup( "Session" );
m_recentFiles->loadEntries( config );
@@ -145,7 +145,7 @@ void KBibTeXShell::readConfig( KConfig *config )
m_recentFiles->setToolTip( i18n( "Click to open a file\nClick and hold to open a recent file" ) );
}
-void KBibTeXShell::writeConfig( KConfig *config )
+void KBibTeXShell::writeConfig( TDEConfig *config )
{
config->setGroup( "Session" );
m_recentFiles->saveEntries( config );
@@ -154,13 +154,13 @@ void KBibTeXShell::writeConfig( KConfig *config )
void KBibTeXShell::readConfig()
{
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
readConfig( config );
}
void KBibTeXShell::writeConfig()
{
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
writeConfig( config );
}
@@ -176,11 +176,11 @@ void KBibTeXShell::slotAddRecentURL( const KURL&url )
void KBibTeXShell::setupActions()
{
- KAction * action;
+ TDEAction * action;
action = KStdAction::openNew( this, SLOT( slotFileNew() ), actionCollection() );
action ->setToolTip( i18n( "Create a new window for a new BibTeX file" ) );
- KAction *actionOpen = KStdAction::open( this, SLOT( slotFileOpen() ), actionCollection() );
+ TDEAction *actionOpen = KStdAction::open( this, SLOT( slotFileOpen() ), actionCollection() );
actionOpen->setToolTip( i18n( "Open an existing BibTeX file" ) );
m_recentFiles = KStdAction::openRecent( this, SLOT( slotFileOpen( const KURL& ) ), actionCollection() );
@@ -210,14 +210,14 @@ void KBibTeXShell::slotActionStatusText( const TQString &text )
stb->message( text );
}
-void KBibTeXShell::saveProperties( KConfig* /*config*/ )
+void KBibTeXShell::saveProperties( TDEConfig* /*config*/ )
{
// the 'config' object points to the session managed
// config file. anything you write here will be available
// later when this app is restored
}
-void KBibTeXShell::readProperties( KConfig* /*config*/ )
+void KBibTeXShell::readProperties( TDEConfig* /*config*/ )
{
// the 'config' object points to the session managed
// config file. this function is automatically called whenever
@@ -248,14 +248,14 @@ void KBibTeXShell::optionsConfigureKeys()
void KBibTeXShell::optionsConfigureToolbars()
{
-#if defined(KDE_MAKE_VERSION)
-# if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0)
- saveMainWindowSettings( KGlobal::config(), autoSaveGroup() );
+#if defined(TDE_MAKE_VERSION)
+# if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
+ saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
# else
- saveMainWindowSettings( KGlobal::config() );
+ saveMainWindowSettings( TDEGlobal::config() );
# endif
#else
- saveMainWindowSettings( KGlobal::config() );
+ saveMainWindowSettings( TDEGlobal::config() );
#endif
// use the standard toolbar editor
@@ -267,14 +267,14 @@ void KBibTeXShell::optionsConfigureToolbars()
void KBibTeXShell::applyNewToolbarConfig()
{
-#if defined(KDE_MAKE_VERSION)
-# if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0)
- applyMainWindowSettings( KGlobal::config(), autoSaveGroup() );
+#if defined(TDE_MAKE_VERSION)
+# if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
+ applyMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
# else
- applyMainWindowSettings( KGlobal::config() );
+ applyMainWindowSettings( TDEGlobal::config() );
# endif
#else
- applyMainWindowSettings( KGlobal::config() );
+ applyMainWindowSettings( TDEGlobal::config() );
#endif
}
@@ -326,7 +326,7 @@ void KBibTeXShell::slotFileOpen( const KURL& url )
{
if ( url.isEmpty() ) return ;
- if ( !KIO::NetAccess::exists( url, TRUE, this ) )
+ if ( !TDEIO::NetAccess::exists( url, TRUE, this ) )
{
m_recentFiles->removeURL( url );
KMessageBox::error( this, i18n( "The given file could not be read, check if it exists or if it is readable for the current user." ) );
diff --git a/src/kbibtexshell.h b/src/kbibtexshell.h
index bbf7a54..969dec9 100644
--- a/src/kbibtexshell.h
+++ b/src/kbibtexshell.h
@@ -25,15 +25,15 @@
#include <config.h>
#endif
-#include <kapplication.h>
-#include <kparts/mainwindow.h>
+#include <tdeapplication.h>
+#include <tdeparts/mainwindow.h>
class TQWidget;
class TQFrame;
-class KToggleAction;
-class KConfig;
-class KRecentFilesAction;
+class TDEToggleAction;
+class TDEConfig;
+class TDERecentFilesAction;
class KBibTeXShell : public KParts::MainWindow
{
@@ -50,8 +50,8 @@ public:
//config file functions
public:
- void readConfig( KConfig * );
- void writeConfig( KConfig * );
+ void readConfig( TDEConfig * );
+ void writeConfig( TDEConfig * );
void readConfig();
void writeConfig();
@@ -82,12 +82,12 @@ private:
KParts::ReadWritePart *m_part;
TQWidget* m_parentWidget;
- KToggleAction *m_statusbarAction;
+ TDEToggleAction *m_statusbarAction;
- KRecentFilesAction *m_recentFiles;
+ TDERecentFilesAction *m_recentFiles;
- void saveProperties( KConfig * );
- void readProperties( KConfig * );
+ void saveProperties( TDEConfig * );
+ void readProperties( TDEConfig * );
void setupAccel();
void setupActions();
diff --git a/src/macrowidget.cpp b/src/macrowidget.cpp
index ce89e14..167d8d5 100644
--- a/src/macrowidget.cpp
+++ b/src/macrowidget.cpp
@@ -22,7 +22,7 @@
#include <klineedit.h>
#include <kdialogbase.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kdebug.h>
#include <element.h>
diff --git a/src/main.cpp b/src/main.cpp
index b4fc9df..a3f4078 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,13 +25,13 @@
#ifdef UNIQUEAPP
#include <kuniqueapplication.h>
#else // UNIQUEAPP
-#include <kapplication.h>
+#include <tdeapplication.h>
#endif // UNIQUEAPP
-#include <kmessagebox.h>
-#include <kaboutdata.h>
-#include <kcmdlineargs.h>
-#include <klocale.h>
-#include <kglobal.h>
+#include <tdemessagebox.h>
+#include <tdeaboutdata.h>
+#include <tdecmdlineargs.h>
+#include <tdelocale.h>
+#include <tdeglobal.h>
#include <kstandarddirs.h>
#include <kdebug.h>
#include "kbibtexshell.h"
@@ -41,17 +41,17 @@ static const char description[] =
static const char version[] = "0.2.3.91";
-static KCmdLineOptions options[] =
+static TDECmdLineOptions options[] =
{
{ "+[URL]", I18N_NOOP( "Document to open." ), 0
},
- KCmdLineLastOption
+ TDECmdLineLastOption
};
#ifdef UNIQUEAPP
class KBibTeXApplication: public KUniqueApplication
#else // UNIQUEAPP
-class KBibTeXApplication: public KApplication
+class KBibTeXApplication: public TDEApplication
#endif // UNIQUEAPP
{
public:
@@ -64,7 +64,7 @@ public:
int newInstance()
{
#else // UNIQUEAPP
- KBibTeXApplication() : KApplication()
+ KBibTeXApplication() : TDEApplication()
{
#endif // UNIQUEAPP
// see if we are starting with session management
@@ -75,7 +75,7 @@ public:
else
{
// no session.. just start up normally
- KCmdLineArgs * args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs * args = TDECmdLineArgs::parsedArgs();
if ( args->count() == 0 )
{
@@ -108,12 +108,12 @@ public:
int main( int argc, char **argv )
{
- KAboutData about( "kbibtex", I18N_NOOP( "KBibTeX" ), version, description,
- KAboutData::License_GPL, "(C) 2004-2009 Thomas Fischer", 0, "http://www.unix-ag.uni-kl.de/~fischer/kbibtex/", "fischer@unix-ag.uni-kl.de" );
+ TDEAboutData about( "kbibtex", I18N_NOOP( "KBibTeX" ), version, description,
+ TDEAboutData::License_GPL, "(C) 2004-2009 Thomas Fischer", 0, "http://www.unix-ag.uni-kl.de/~fischer/kbibtex/", "fischer@unix-ag.uni-kl.de" );
about.addAuthor( "Thomas Fischer", 0, "fischer@unix-ag.uni-kl.de" );
about.setTranslator( I18N_NOOP( "NAME OF TRANSLATORS" ), I18N_NOOP( "EMAIL OF TRANSLATORS" ) );
- KCmdLineArgs::init( argc, argv, &about );
- KCmdLineArgs::addCmdLineOptions( options );
+ TDECmdLineArgs::init( argc, argv, &about );
+ TDECmdLineArgs::addCmdLineOptions( options );
#ifdef UNIQUEAPP
if ( !KUniqueApplication::start() )
diff --git a/src/mergeelements.cpp b/src/mergeelements.cpp
index 3bb1083..c996a17 100644
--- a/src/mergeelements.cpp
+++ b/src/mergeelements.cpp
@@ -24,14 +24,14 @@
#include <ntqprogressbar.h>
#include <ntqtimer.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kpushbutton.h>
-#include <kapplication.h>
-#include <kmessagebox.h>
+#include <tdeapplication.h>
+#include <tdemessagebox.h>
#include <ktextedit.h>
-#include <klistview.h>
-#include <kconfig.h>
-#include <kwin.h>
+#include <tdelistview.h>
+#include <tdeconfig.h>
+#include <twin.h>
#include <macro.h>
#include <comment.h>
@@ -128,7 +128,7 @@ namespace KBibTeX
MergeElements::~MergeElements()
{
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
config->setGroup( "MergeElements" );
saveWindowSize( config );
}
@@ -143,7 +143,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( i18n( "Select elements to merge. At least two elements must be checked to perform a merge operation. Checked entries will be replaced by the merged element, unchecked elements will be kept." ), vboxContainer );
label->setAlignment( TQt::WordBreak );
vboxLayout->addWidget( label );
- m_listViewClique = new KListView( vboxContainer );
+ m_listViewClique = new TDEListView( vboxContainer );
m_listViewClique->addColumn( i18n( "Entry/Macro Id" ) );
m_listViewClique->setFullWidth( true );
m_listViewClique->setAllColumnsShowFocus( true );
@@ -159,7 +159,7 @@ namespace KBibTeX
label = new TQLabel( i18n( "Choose from this list which alternatives you want to keep in the merged element." ), vboxContainer );
label->setAlignment( TQt::WordBreak );
vboxLayout->addWidget( label );
- m_listViewAlternatives = new KListView( vboxContainer );
+ m_listViewAlternatives = new TDEListView( vboxContainer );
m_listViewAlternatives->addColumn( i18n( "Field/Key" ) );
m_listViewAlternatives->setFullWidth( true );
m_listViewAlternatives->setAllColumnsShowFocus( true );
@@ -768,8 +768,8 @@ namespace KBibTeX
KBibTeX::PreambleWidget::execute( meci->preamble, TRUE, this );
}
- /* This function was taken form KMainWindow of KDE 3.5 and modified to fit KBibTeX */
- void MergeElements::saveWindowSize( KConfig *config ) const
+ /* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */
+ void MergeElements::saveWindowSize( TDEConfig *config ) const
{
int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
TQRect desk = TQApplication::desktop()->screenGeometry( scnum );
@@ -811,13 +811,13 @@ namespace KBibTeX
void MergeElements::slotRestore()
{
tqDebug( "slotRestore" );
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
config->setGroup( "MergeElements" );
restoreWindowSize( config );
}
- /* This function was taken form KMainWindow of KDE 3.5 and modified to fit KBibTeX */
- void MergeElements::restoreWindowSize( KConfig *config )
+ /* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */
+ void MergeElements::restoreWindowSize( TDEConfig *config )
{
// restore the size
int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
diff --git a/src/mergeelements.h b/src/mergeelements.h
index 4752175..cf433d3 100644
--- a/src/mergeelements.h
+++ b/src/mergeelements.h
@@ -28,7 +28,7 @@
class KPushButton;
class KTextEdit;
-class KListView;
+class TDEListView;
class TQProgressBar;
namespace KBibTeX
@@ -159,8 +159,8 @@ namespace KBibTeX
TQString preambleText;
} MergeSet;
- KListView *m_listViewClique;
- KListView *m_listViewAlternatives;
+ TDEListView *m_listViewClique;
+ TDEListView *m_listViewAlternatives;
TQProgressBar *m_progressBar;
FindDuplicates::DuplicateCliqueList m_duplicateCliqueList;
MergeSet **m_mergeSetList;
@@ -170,8 +170,8 @@ namespace KBibTeX
void setClique( int cliqueIndex );
void restoreCurrentMergeSet();
void applyMergeSet( BibTeX::File *bibTeXFile, BibTeX::File *otherBibTeXFile = NULL );
- void restoreWindowSize( KConfig *config );
- void saveWindowSize( KConfig *config ) const;
+ void restoreWindowSize( TDEConfig *config );
+ void saveWindowSize( TDEConfig *config ) const;
};
}
diff --git a/src/messagehandler.cpp b/src/messagehandler.cpp
index 941b53d..b666604 100644
--- a/src/messagehandler.cpp
+++ b/src/messagehandler.cpp
@@ -22,7 +22,7 @@
#include "messagehandler.h"
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
namespace KBibTeX {
diff --git a/src/preamblewidget.cpp b/src/preamblewidget.cpp
index 6b74ece..9389317 100644
--- a/src/preamblewidget.cpp
+++ b/src/preamblewidget.cpp
@@ -21,7 +21,7 @@
#include <ntqlayout.h>
#include <kdialogbase.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include "preamblewidget.h"
diff --git a/src/searchbar.cpp b/src/searchbar.cpp
index a77cf51..9e958b2 100644
--- a/src/searchbar.cpp
+++ b/src/searchbar.cpp
@@ -27,10 +27,10 @@
#include <kcombobox.h>
#include <kpushbutton.h>
#include <kcombobox.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kdialog.h>
#include <kiconloader.h>
-#include <kpopupmenu.h>
+#include <tdepopupmenu.h>
#include <settings.h>
#include "searchbar.h"
@@ -54,7 +54,7 @@ namespace KBibTeX
void SearchBar::setFactory( KXMLGUIFactory *factory, KXMLGUIClient *client )
{
- KPopupMenu * menu = static_cast<KPopupMenu*>( factory -> container( "popup_newelements", client ) );
+ TDEPopupMenu * menu = static_cast<TDEPopupMenu*>( factory -> container( "popup_newelements", client ) );
Settings * settings = Settings::self();
m_pushButtonAddElement->setPopup( menu );
m_comboboxFilter->setHistoryItems( settings->editing_FilterHistory );
@@ -66,7 +66,7 @@ namespace KBibTeX
if ( settings->editing_UseSpecialFont )
m_comboboxFilter->setFont( settings->editing_SpecialFont );
else
- m_comboboxFilter->setFont( KGlobalSettings::generalFont() );
+ m_comboboxFilter->setFont( TDEGlobalSettings::generalFont() );
}
void SearchBar::setSearch( const TQString&text, BibTeX::Element::FilterType filterType, BibTeX::EntryField::FieldType fieldType )
@@ -84,7 +84,7 @@ namespace KBibTeX
void SearchBar::setupGUI()
{
TQBoxLayout * layout = new TQHBoxLayout( this, 3 /* KDialog::marginHint()*/, KDialog::spacingHint() );
- KIconLoader iconLoader = KIconLoader( "kbibtex" );
+ TDEIconLoader iconLoader = TDEIconLoader( "kbibtex" );
m_pushButtonAddElement = new KPushButton( this );
m_pushButtonAddElement->setIconSet( TQIconSet( BarIcon( "add" ) ) );
diff --git a/src/searchbar.h b/src/searchbar.h
index 7f31a38..39ff4b6 100644
--- a/src/searchbar.h
+++ b/src/searchbar.h
@@ -29,7 +29,7 @@
class TQTimer;
class KPushButton;
-class KPopupMenu;
+class TDEPopupMenu;
class KHistoryCombo;
class KComboBox;
diff --git a/src/settings.cpp b/src/settings.cpp
index 653264e..853307d 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -26,13 +26,13 @@
#include <ntqprocess.h>
#include <ntqapplication.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
#include <kstandarddirs.h>
-#include <kmessagebox.h>
-#include <klocale.h>
+#include <tdemessagebox.h>
+#include <tdelocale.h>
#include <kbibtex_part.h>
#include <kdebug.h>
-#include <kio/netaccess.h>
+#include <tdeio/netaccess.h>
#include <entryfield.h>
#include <element.h>
@@ -51,19 +51,19 @@ namespace KBibTeX
{
checkExternalToolsAvailable();
- KStandardDirs * kstd = KGlobal::dirs();
+ TDEStandardDirs * kstd = TDEGlobal::dirs();
external_XSLTStylesheetHTML = kstd->findResource( "data", "kbibtexpart/xslt/html.xsl" );
if ( external_XSLTStylesheetHTML == NULL )
KMessageBox::error( NULL, i18n( "Could not determine filename for XSLT file" ), i18n( "Initialization failed" ) );
int numCompletions = BibTeX::EntryField::ftYear - BibTeX::EntryField::ftAbstract + 4;
- m_completion = new KCompletion * [ numCompletions ];
+ m_completion = new TDECompletion * [ numCompletions ];
for ( int i = 0; i < numCompletions; ++i )
{
- m_completion[ i ] = new KCompletion();
+ m_completion[ i ] = new TDECompletion();
m_completion[ i ] ->setIgnoreCase( TRUE );
}
- completionMacro = new KCompletion();
+ completionMacro = new TDECompletion();
completionMacro->setIgnoreCase( FALSE );
currentBibTeXFile = NULL;
@@ -88,7 +88,7 @@ namespace KBibTeX
return staticSettings;
}
- void Settings::load( KConfig * config )
+ void Settings::load( TDEConfig * config )
{
config->setGroup( "FileIO" );
fileIO_Encoding = config->readEntry( "Encoding", "latex" );
@@ -118,7 +118,7 @@ namespace KBibTeX
editing_ShowMacros = config->readBoolEntry( "ShowMacros", TRUE );
editing_HorSplitterSizes = config->readIntListEntry( "HorizontalSplitterSizes" );
editing_VertSplitterSizes = config->readIntListEntry( "VerticalSplitterSizes" );
- TQFont defaultFont = KGlobalSettings::generalFont();
+ TQFont defaultFont = TDEGlobalSettings::generalFont();
editing_SpecialFont = config->readFontEntry( "SpecialFont", &defaultFont );
editing_UseSpecialFont = config->readBoolEntry( "UseSpecialFont", FALSE );
editing_FirstNameFirst = config->readBoolEntry( "FirstNameFirst", FALSE );
@@ -224,7 +224,7 @@ namespace KBibTeX
#endif // HAVE_YAZ
}
- void Settings::save( KConfig * config )
+ void Settings::save( TDEConfig * config )
{
config->setGroup( "FileIO" );
config->writeEntry( "Encoding", fileIO_Encoding );
@@ -479,7 +479,7 @@ namespace KBibTeX
}
}
- KCompletion *Settings::completion( BibTeX::EntryField::FieldType fieldType )
+ TDECompletion *Settings::completion( BibTeX::EntryField::FieldType fieldType )
{
return m_completion[ completionFieldTypeToIndex( fieldType )];
}
@@ -779,14 +779,14 @@ namespace KBibTeX
if ( _filename.contains( "~/" ) && !userHome.isEmpty() ) _filename = _filename.replace( "~/", userHome.append( "/" ) );
KURL url( _filename );
- if ( url.isValid() && ( !url.isLocalFile() || KIO::NetAccess::exists( url, TRUE, window ) ) )
+ if ( url.isValid() && ( !url.isLocalFile() || TDEIO::NetAccess::exists( url, TRUE, window ) ) )
return url;
if ( bibTeXFileName != TQString::null )
{
TQString path = KURL( bibTeXFileName ).directory( FALSE, FALSE );
url = KURL( path + "/" + _filename );
- if ( url.isValid() && KIO::NetAccess::exists( url, TRUE, window ) )
+ if ( url.isValid() && TDEIO::NetAccess::exists( url, TRUE, window ) )
return url;
}
@@ -794,7 +794,7 @@ namespace KBibTeX
for ( TQStringList::Iterator it = settings->editing_DocumentSearchPaths.begin(); it != settings->editing_DocumentSearchPaths.end(); ++it )
{
url = KURL( *it + "/" + _filename );
- if ( url.isValid() && KIO::NetAccess::exists( url, TRUE, window ) )
+ if ( url.isValid() && TDEIO::NetAccess::exists( url, TRUE, window ) )
return url;
}
@@ -835,7 +835,7 @@ namespace KBibTeX
TQString z3950serverConfigFile = locate( "appdata", "z3950-servers.cfg" );
if ( !z3950serverConfigFile.isEmpty() )
{
- KConfig z3950serverConfig( z3950serverConfigFile, true, false );
+ TDEConfig z3950serverConfig( z3950serverConfigFile, true, false );
TQStringList serverList = z3950serverConfig.groupList();
for ( TQStringList::ConstIterator it = serverList.begin(); it != serverList.end(); ++it )
if ( !z3950_ServerList.contains( *it ) )
@@ -858,7 +858,7 @@ namespace KBibTeX
}
}
- void Settings::z3950loadUser( KConfig * config )
+ void Settings::z3950loadUser( TDEConfig * config )
{
config->setGroup( "Z3950Server" );
int i = 0;
@@ -882,7 +882,7 @@ namespace KBibTeX
}
}
- void Settings::z3950saveUser( KConfig *config )
+ void Settings::z3950saveUser( TDEConfig *config )
{
config->deleteGroup( "Z3950Server" );
config->setGroup( "Z3950Server" );
@@ -891,7 +891,7 @@ namespace KBibTeX
TQString z3950serverConfigFile = locate( "appdata", "z3950-servers.cfg" );
if ( !z3950serverConfigFile.isEmpty() )
{
- KConfig z3950serverConfig( z3950serverConfigFile, true, false );
+ TDEConfig z3950serverConfig( z3950serverConfigFile, true, false );
for ( TQMap<TQString, Z3950Server>::Iterator it = z3950_ServerList.begin(); it != z3950_ServerList.end(); ++it )
{
bool notInDefault = !z3950serverConfig.hasGroup( it.key() );
@@ -932,9 +932,9 @@ namespace KBibTeX
{
KURL backupN( basename + "~" + TQString::number( i ) );
KURL backupNmm( basename + "~" + TQString::number( i - 1 ) );
- if ( KIO::NetAccess::exists( backupNmm, true, window ) )
+ if ( TDEIO::NetAccess::exists( backupNmm, true, window ) )
{
- if ( !KIO::NetAccess::file_copy( backupNmm, backupN, -1, true, false, false ) )
+ if ( !TDEIO::NetAccess::file_copy( backupNmm, backupN, -1, true, false, false ) )
return false;
}
}
@@ -943,9 +943,9 @@ namespace KBibTeX
{
KURL backupN( basename + "~2" );
KURL backupNmm( basename + "~" );
- if ( KIO::NetAccess::exists( backupNmm, true, window ) )
+ if ( TDEIO::NetAccess::exists( backupNmm, true, window ) )
{
- if ( !KIO::NetAccess::file_copy( backupNmm, backupN, -1, true, false, false ) )
+ if ( !TDEIO::NetAccess::file_copy( backupNmm, backupN, -1, true, false, false ) )
return false;
}
}
@@ -953,9 +953,9 @@ namespace KBibTeX
{
KURL backupN( basename + "~" );
KURL backupNmm( basename );
- if ( KIO::NetAccess::exists( backupNmm, true, window ) )
+ if ( TDEIO::NetAccess::exists( backupNmm, true, window ) )
{
- if ( !KIO::NetAccess::file_copy( backupNmm, backupN, -1, true, false, false ) )
+ if ( !TDEIO::NetAccess::file_copy( backupNmm, backupN, -1, true, false, false ) )
return false;
}
}
diff --git a/src/settings.h b/src/settings.h
index c68bcab..dae3ce2 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -35,8 +35,8 @@
#include <entryfield.h>
#include <entry.h>
-class KConfig;
-class KStandardDirs;
+class TDEConfig;
+class TDEStandardDirs;
class KURL;
class TQString;
class TQRegExp;
@@ -64,8 +64,8 @@ namespace KBibTeX
static Settings* self( BibTeX::File *bibtexFile = NULL );
- void load( KConfig * config );
- void save( KConfig * config );
+ void load( TDEConfig * config );
+ void save( TDEConfig * config );
static TQString fieldTypeToI18NString( const BibTeX::EntryField::FieldType fieldType );
static TQString entryTypeToI18NString( const BibTeX::Entry::EntryType entryType );
@@ -80,8 +80,8 @@ namespace KBibTeX
#ifdef HAVE_YAZ
void z3950clearAll();
void z3950loadDefault();
- void z3950loadUser( KConfig * config );
- void z3950saveUser( KConfig *config );
+ void z3950loadUser( TDEConfig * config );
+ void z3950saveUser( TDEConfig *config );
typedef struct Z3950Server_
{
TQString charset, database, host, locale, name, syntax, user, password;
@@ -155,8 +155,8 @@ namespace KBibTeX
void addToCompletion( BibTeX::File *file );
void addToCompletion( BibTeX::Element *element );
void addToCompletion( BibTeX::Value *value, BibTeX::EntryField::FieldType fieldType );
- KCompletion* completion( BibTeX::EntryField::FieldType fieldType );
- KCompletion* completionMacro;
+ TDECompletion* completion( BibTeX::EntryField::FieldType fieldType );
+ TDECompletion* completionMacro;
// Keyword list
TQStringList keyword_GlobalList;
@@ -187,7 +187,7 @@ namespace KBibTeX
private:
static Settings* staticSettings;
- KCompletion **m_completion;
+ TDECompletion **m_completion;
static TQStringList m_lyxRcFileNames;
TQMap<TQString, TQString> m_webQueryDefaults;
diff --git a/src/settingsdlg.cpp b/src/settingsdlg.cpp
index 2ad3bba..37d8b3e 100644
--- a/src/settingsdlg.cpp
+++ b/src/settingsdlg.cpp
@@ -20,7 +20,7 @@
#include <ntqlayout.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kiconloader.h>
#include <settingsfileio.h>
diff --git a/src/settingsediting.cpp b/src/settingsediting.cpp
index 22f1868..a51b3c7 100644
--- a/src/settingsediting.cpp
+++ b/src/settingsediting.cpp
@@ -32,12 +32,12 @@
#include <kpushbutton.h>
#include <kdirselectdialog.h>
#include <kiconloader.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kurlrequester.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <klineedit.h>
#include <kdialog.h>
-#include <kfontdialog.h>
+#include <tdefontdialog.h>
#include <kurlcompletion.h>
#include <documentlistview.h>
@@ -69,7 +69,7 @@ namespace KBibTeX
label = new TQLabel( i18n( "List of paths:" ), this );
layout->addWidget( label, 2, 0 );
- m_listViewPathList = new KListView( this );
+ m_listViewPathList = new TDEListView( this );
m_listViewPathList->addColumn( i18n( "Path" ) );
m_listViewPathList->header()->setClickEnabled( false );
m_listViewPathList->setFullWidth( true );
@@ -131,7 +131,7 @@ namespace KBibTeX
TQDir pathObj( path );
if ( pathObj.exists() && pathObj.isReadable() )
{
- TQListViewItem *item = new KListViewItem( m_listViewPathList, path );
+ TQListViewItem *item = new TDEListViewItem( m_listViewPathList, path );
m_listViewPathList->ensureItemVisible( item );
m_listViewPathList->setSelected( item, TRUE );
slotSelectionChanged();
@@ -302,8 +302,8 @@ namespace KBibTeX
void SettingsEditing::slotSelectSpecialFont()
{
- int result = KFontDialog::getFont( m_specialFont );
- if ( result == KFontDialog::Accepted )
+ int result = TDEFontDialog::getFont( m_specialFont );
+ if ( result == TDEFontDialog::Accepted )
{
updateFontData();
emit configChanged();
diff --git a/src/settingsediting.h b/src/settingsediting.h
index ecb1f98..1edb0f7 100644
--- a/src/settingsediting.h
+++ b/src/settingsediting.h
@@ -29,7 +29,7 @@ class TQSlider;
class KPushButton;
class KURLRequester;
-class KListView;
+class TDEListView;
namespace KBibTeX
{
@@ -53,7 +53,7 @@ namespace KBibTeX
TQStringList &m_pathList;
KURLRequester *m_urlRequesterNewPath;
KPushButton *m_pushButtonAddDir;
- KListView *m_listViewPathList;
+ TDEListView *m_listViewPathList;
KPushButton *m_pushButtonDelDir;
};
diff --git a/src/settingsfileio.cpp b/src/settingsfileio.cpp
index 9a04b7c..223937e 100644
--- a/src/settingsfileio.cpp
+++ b/src/settingsfileio.cpp
@@ -30,10 +30,10 @@
#include <ntqradiobutton.h>
#include <ntqspinbox.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kurl.h>
-#include <kmessagebox.h>
-#include <kfiledialog.h>
+#include <tdemessagebox.h>
+#include <tdefiledialog.h>
#include <klineedit.h>
#include <kdialog.h>
#include <kdirselectdialog.h>
diff --git a/src/settingsidsuggestions.cpp b/src/settingsidsuggestions.cpp
index af41919..ebc094b 100644
--- a/src/settingsidsuggestions.cpp
+++ b/src/settingsidsuggestions.cpp
@@ -25,10 +25,10 @@
#include <ntqlabel.h>
#include <kinputdialog.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <kiconloader.h>
#include <kpushbutton.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kdialog.h>
#include <klineedit.h>
@@ -43,24 +43,24 @@ namespace KBibTeX
{
TQString SettingsIdSuggestions::exampleBibTeXEntry = "@Article{ dijkstra1983terminationdetect,\nauthor = {Edsger W. Dijkstra and W. H. J. Feijen and A. J. M. {van Gasteren}},\ntitle = {{Derivation of a Termination Detection Algorithm for Distributed Computations}},\njournal = {Information Processing Letters},\nvolume = 16,\nnumber = 5,\npages = {217--219},\nmonth = jun,\nyear = 1983\n}";
- IdSuggestionsListViewItem::IdSuggestionsListViewItem( KListView *list, const TQString& plainText, BibTeX::Entry *example ): KListViewItem( list ), m_original( plainText ), m_example( example )
+ IdSuggestionsListViewItem::IdSuggestionsListViewItem( TDEListView *list, const TQString& plainText, BibTeX::Entry *example ): TDEListViewItem( list ), m_original( plainText ), m_example( example )
{
- KListViewItem::setText( 0, parse( plainText ) );
- KListViewItem::setMultiLinesEnabled( TRUE );
+ TDEListViewItem::setText( 0, parse( plainText ) );
+ TDEListViewItem::setMultiLinesEnabled( TRUE );
}
- IdSuggestionsListViewItem::IdSuggestionsListViewItem( KListView *list, KListViewItem *prev, const TQString& plainText, BibTeX::Entry *example ): KListViewItem( list, prev ), m_original( plainText ), m_example( example )
+ IdSuggestionsListViewItem::IdSuggestionsListViewItem( TDEListView *list, TDEListViewItem *prev, const TQString& plainText, BibTeX::Entry *example ): TDEListViewItem( list, prev ), m_original( plainText ), m_example( example )
{
- KListViewItem::setText( 0, parse( plainText ) );
- KListViewItem::setMultiLinesEnabled( TRUE );
+ TDEListViewItem::setText( 0, parse( plainText ) );
+ TDEListViewItem::setMultiLinesEnabled( TRUE );
}
void IdSuggestionsListViewItem::setText( int col, const TQString& text )
{
if ( col == 0 )
- KListViewItem::setText( 0, parse( text ) );
+ TDEListViewItem::setText( 0, parse( text ) );
else
- KListViewItem::setText( col, text );
+ TDEListViewItem::setText( col, text );
}
int IdSuggestionsListViewItem::width( const TQFontMetrics & fm, const TQListView *, int c ) const
@@ -154,7 +154,7 @@ namespace KBibTeX
m_listSmallWords->clear();
for ( TQStringList::ConstIterator it = settings->idSuggestions_smallWords.begin(); it != settings->idSuggestions_smallWords.end(); ++it )
- new KListViewItem( m_listSmallWords, *it );
+ new TDEListViewItem( m_listSmallWords, *it );
m_lineEditSmallWords->setText( "" );
slotListSmallWordsChanged();
@@ -286,7 +286,7 @@ namespace KBibTeX
void SettingsIdSuggestions::slotAddSmallWord()
{
- new KListViewItem( m_listSmallWords, m_lineEditSmallWords->text() );
+ new TDEListViewItem( m_listSmallWords, m_lineEditSmallWords->text() );
m_lineEditSmallWords->setText( "" );
emit configChanged();
}
@@ -332,7 +332,7 @@ namespace KBibTeX
gridLayout->setRowStretch( 12, 1 );
gridLayout->setColStretch( 0, 1 );
- m_listIdSuggestions = new KListView( this );
+ m_listIdSuggestions = new TDEListView( this );
m_listIdSuggestions->setSorting( -1, FALSE );
m_listIdSuggestions->addColumn( i18n( "Id Suggestions" ) );
m_listIdSuggestions->header()->setClickEnabled( FALSE );
@@ -382,7 +382,7 @@ namespace KBibTeX
gridLayout->addWidget( m_buttonAddSmallWord, 10, 1 );
connect( m_buttonAddSmallWord, SIGNAL( clicked() ), this, SLOT( slotAddSmallWord() ) );
- m_listSmallWords = new KListView( this );
+ m_listSmallWords = new TDEListView( this );
m_listSmallWords->addColumn( i18n( "Small Words" ) );
m_listSmallWords->header()->setClickEnabled( true );
m_listSmallWords->setFullWidth( true );
diff --git a/src/settingsidsuggestions.h b/src/settingsidsuggestions.h
index 4d364bc..355efba 100644
--- a/src/settingsidsuggestions.h
+++ b/src/settingsidsuggestions.h
@@ -22,7 +22,7 @@
#include <ntqwidget.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <entry.h>
@@ -35,11 +35,11 @@ class KLineEdit;
namespace KBibTeX
{
- class IdSuggestionsListViewItem: public KListViewItem
+ class IdSuggestionsListViewItem: public TDEListViewItem
{
public:
- IdSuggestionsListViewItem( KListView *, const TQString&, BibTeX::Entry *example );
- IdSuggestionsListViewItem( KListView *, KListViewItem *, const TQString&, BibTeX::Entry *example );
+ IdSuggestionsListViewItem( TDEListView *, const TQString&, BibTeX::Entry *example );
+ IdSuggestionsListViewItem( TDEListView *, TDEListViewItem *, const TQString&, BibTeX::Entry *example );
void setText( int, const TQString& );
TQString originalText() const;
int width( const TQFontMetrics &, const TQListView *, int ) const;
@@ -83,7 +83,7 @@ namespace KBibTeX
void updateGUI();
private:
- KListView *m_listIdSuggestions;
+ TDEListView *m_listIdSuggestions;
KPushButton *m_buttonNewIdSuggestion;
KPushButton *m_buttonEditIdSuggestion;
KPushButton *m_buttonDeleteIdSuggestion;
@@ -91,7 +91,7 @@ namespace KBibTeX
KPushButton *m_buttonMoveDownIdSuggestion;
KPushButton *m_buttonToggleDefault;
TQCheckBox *m_checkBoxForceDefault;
- KListView *m_listSmallWords;
+ TDEListView *m_listSmallWords;
KLineEdit *m_lineEditSmallWords;
KPushButton *m_buttonAddSmallWord;
KPushButton *m_buttonDeleteSmallWord;
diff --git a/src/settingskeyword.cpp b/src/settingskeyword.cpp
index 3e446d6..c883895 100644
--- a/src/settingskeyword.cpp
+++ b/src/settingskeyword.cpp
@@ -23,11 +23,11 @@
#include <ntqtimer.h>
#include <ntqtooltip.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <kdialog.h>
#include <kiconloader.h>
-#include <kmessagebox.h>
-#include <klocale.h>
+#include <tdemessagebox.h>
+#include <tdelocale.h>
#include <file.h>
#include <entryfield.h>
@@ -64,7 +64,7 @@ namespace KBibTeX
m_listKeywords->clear();
for ( TQStringList::Iterator it = settings->keyword_GlobalList.begin(); it != settings->keyword_GlobalList.end(); ++it )
{
- KListViewItem *item = new KListViewItem( m_listKeywords, *it );
+ TDEListViewItem *item = new TDEListViewItem( m_listKeywords, *it );
item->setPixmap( 0, SmallIcon( "package" ) );
}
@@ -80,7 +80,7 @@ namespace KBibTeX
void SettingsKeyword::slotNewKeyword()
{
- KListViewItem * item = new KListViewItem( m_listKeywords, i18n( "New Keyword" ) );
+ TDEListViewItem * item = new TDEListViewItem( m_listKeywords, i18n( "New Keyword" ) );
item->setPixmap( 0, SmallIcon( "package" ) );
m_listKeywords->setSelected( item, TRUE );
m_listKeywords->ensureItemVisible( item );
@@ -89,7 +89,7 @@ namespace KBibTeX
void SettingsKeyword::slotEditKeyword()
{
- KListViewItem * item = static_cast<KListViewItem*>( m_listKeywords->selectedItem() );
+ TDEListViewItem * item = static_cast<TDEListViewItem*>( m_listKeywords->selectedItem() );
if ( item != NULL )
{
m_oldText = item->text( 0 );
@@ -99,7 +99,7 @@ namespace KBibTeX
void SettingsKeyword::slotDeleteKeyword()
{
- KListViewItem * item = static_cast<KListViewItem*>( m_listKeywords->selectedItem() );
+ TDEListViewItem * item = static_cast<TDEListViewItem*>( m_listKeywords->selectedItem() );
if ( item != NULL )
{
delete item;
@@ -124,7 +124,7 @@ namespace KBibTeX
m_listKeywords->clear();
for ( TQStringList::Iterator it = m_keywordsFromFile.begin(); it != m_keywordsFromFile.end(); ++it )
{
- KListViewItem *item = new KListViewItem( m_listKeywords, *it );
+ TDEListViewItem *item = new TDEListViewItem( m_listKeywords, *it );
item->setPixmap( 0, SmallIcon( "package" ) );
}
@@ -157,7 +157,7 @@ namespace KBibTeX
{
TQGridLayout * gridLayout = new TQGridLayout( this, 5, 2, 0, KDialog::spacingHint(), "gridLayout" );
- m_listKeywords = new KListView( this );
+ m_listKeywords = new TDEListView( this );
m_listKeywords->addColumn( i18n( "Keywords" ) );
m_listKeywords->header()->setClickEnabled( FALSE );
m_listKeywords->setFullWidth( true );
diff --git a/src/settingskeyword.h b/src/settingskeyword.h
index 49e3b7e..ae78471 100644
--- a/src/settingskeyword.h
+++ b/src/settingskeyword.h
@@ -22,7 +22,7 @@
#include <ntqwidget.h>
-class KListView;
+class TDEListView;
class TQPushButton;
namespace KBibTeX
@@ -55,7 +55,7 @@ namespace KBibTeX
private:
TQStringList *m_keywords;
TQStringList m_keywordsFromFile;
- KListView *m_listKeywords;
+ TDEListView *m_listKeywords;
TQPushButton *m_buttonNewKeyword;
TQPushButton *m_buttonEditKeyword;
TQPushButton *m_buttonDeleteKeyword;
diff --git a/src/settingssearchurl.cpp b/src/settingssearchurl.cpp
index 43bbfef..c0daacb 100644
--- a/src/settingssearchurl.cpp
+++ b/src/settingssearchurl.cpp
@@ -25,11 +25,11 @@
#include <ntqcombobox.h>
#include <kiconloader.h>
-#include <klistview.h>
-#include <klocale.h>
+#include <tdelistview.h>
+#include <tdelocale.h>
#include <kpushbutton.h>
#include <kdialogbase.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <settings.h>
#include "settingssearchurl.h"
@@ -69,7 +69,7 @@ namespace KBibTeX
m_listviewSearchURLs->clear();
for ( TQValueList<Settings::SearchURL*>::ConstIterator it = settings->searchURLs.begin(); it != settings->searchURLs.end(); ++it )
{
- KListViewItem *item = new KListViewItem( m_listviewSearchURLs, ( *it ) ->description, ( *it ) ->includeAuthor ? i18n( "Yes" ) : i18n( "No" ), ( *it ) ->url );
+ TDEListViewItem *item = new TDEListViewItem( m_listviewSearchURLs, ( *it ) ->description, ( *it ) ->includeAuthor ? i18n( "Yes" ) : i18n( "No" ), ( *it ) ->url );
item->setPixmap( 0, SmallIcon( "html" ) );
}
}
@@ -127,7 +127,7 @@ namespace KBibTeX
layout->setRowStretch( 3, 1 );
layout->setColStretch( 0, 1 );
- m_listviewSearchURLs = new KListView( this );
+ m_listviewSearchURLs = new TDEListView( this );
layout->addMultiCellWidget( m_listviewSearchURLs, 0, 4, 0, 0 );
m_listviewSearchURLs->setAllColumnsShowFocus( TRUE );
m_listviewSearchURLs->addColumn( i18n( "Description" ) );
@@ -203,7 +203,7 @@ namespace KBibTeX
{
if ( item == NULL )
{
- KListViewItem *item = new KListViewItem( m_listviewSearchURLs, descr->text(), cbIncludeAuthor->currentItem() == 0 ? i18n( "Yes" ) : i18n( "No" ), url->text() );
+ TDEListViewItem *item = new TDEListViewItem( m_listviewSearchURLs, descr->text(), cbIncludeAuthor->currentItem() == 0 ? i18n( "Yes" ) : i18n( "No" ), url->text() );
item->setPixmap( 0, SmallIcon( "html" ) );
}
else
diff --git a/src/settingssearchurl.h b/src/settingssearchurl.h
index da13cda..f415ee9 100644
--- a/src/settingssearchurl.h
+++ b/src/settingssearchurl.h
@@ -24,7 +24,7 @@
class TQLineEdit;
class KPushButton;
-class KListView;
+class TDEListView;
class TQListViewItem;
namespace KBibTeX
@@ -53,7 +53,7 @@ namespace KBibTeX
KPushButton *m_pushbuttonNew;
KPushButton *m_pushbuttonEdit;
KPushButton *m_pushbuttonDelete;
- KListView *m_listviewSearchURLs;
+ TDEListView *m_listviewSearchURLs;
KPushButton *m_pushbuttonReset;
int m_counter;
diff --git a/src/settingsuserdefinedinput.cpp b/src/settingsuserdefinedinput.cpp
index 3085814..d61e92a 100644
--- a/src/settingsuserdefinedinput.cpp
+++ b/src/settingsuserdefinedinput.cpp
@@ -26,12 +26,12 @@
#include <kdialogbase.h>
#include <klineedit.h>
#include <kcombobox.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <kdialog.h>
#include <kiconloader.h>
#include <kpushbutton.h>
-#include <kmessagebox.h>
-#include <klocale.h>
+#include <tdemessagebox.h>
+#include <tdelocale.h>
#include <settings.h>
#include <fieldlineedit.h>
@@ -68,10 +68,10 @@ namespace KBibTeX
{
m_listFields->clear();
Settings *settings = Settings::self( NULL );
- KListViewItem *prev = NULL;
+ TDEListViewItem *prev = NULL;
for ( TQValueList<Settings::UserDefinedInputFields*>::iterator it = settings->userDefinedInputFields.begin(); it != settings->userDefinedInputFields.end(); ++it )
{
- prev = new KListViewItem( m_listFields, prev, ( *it )->name, ( *it )->label, ( *it )->inputType == FieldLineEdit::itMultiLine ? i18n( "Multiple lines" ) : i18n( "Single line" ) );
+ prev = new TDEListViewItem( m_listFields, prev, ( *it )->name, ( *it )->label, ( *it )->inputType == FieldLineEdit::itMultiLine ? i18n( "Multiple lines" ) : i18n( "Single line" ) );
}
}
@@ -163,7 +163,7 @@ namespace KBibTeX
gridLayout->setRowStretch( 5, 1 );
gridLayout->setColStretch( 0, 1 );
- m_listFields = new KListView( this );
+ m_listFields = new TDEListView( this );
m_listFields->setSorting( -1, FALSE );
m_listFields->addColumn( i18n( "Name" ) );
m_listFields->header()->setClickEnabled( FALSE );
@@ -247,8 +247,8 @@ namespace KBibTeX
{
if ( item == NULL )
{
- /*KListViewItem *item = */
- new KListViewItem( m_listFields, m_lineEditName->text(), m_lineEditLabel->text(), comboBoxInputType->currentItem() == 0 ? i18n( "Single line" ) : i18n( "Multiple lines" ) );
+ /*TDEListViewItem *item = */
+ new TDEListViewItem( m_listFields, m_lineEditName->text(), m_lineEditLabel->text(), comboBoxInputType->currentItem() == 0 ? i18n( "Single line" ) : i18n( "Multiple lines" ) );
}
else
{
diff --git a/src/settingsuserdefinedinput.h b/src/settingsuserdefinedinput.h
index b0842fd..5bc2e5e 100644
--- a/src/settingsuserdefinedinput.h
+++ b/src/settingsuserdefinedinput.h
@@ -22,7 +22,7 @@
#include <ntqwidget.h>
-class KListView;
+class TDEListView;
class KPushButton;
class KDialogBase;
@@ -55,7 +55,7 @@ namespace KBibTeX
void updateDialogGUI();
private:
- KListView *m_listFields;
+ TDEListView *m_listFields;
KPushButton *m_buttonNewField;
KPushButton *m_buttonEditField;
KPushButton *m_buttonDeleteField;
diff --git a/src/settingsz3950.cpp b/src/settingsz3950.cpp
index 57784b9..25b6aed 100644
--- a/src/settingsz3950.cpp
+++ b/src/settingsz3950.cpp
@@ -30,12 +30,12 @@
#include <ntqspinbox.h>
#include <ntqregexp.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <kpushbutton.h>
#include <kiconloader.h>
#include <kdialogbase.h>
-#include <kmessagebox.h>
-#include <klocale.h>
+#include <tdemessagebox.h>
+#include <tdelocale.h>
#include <kcombobox.h>
#include <klineedit.h>
@@ -44,14 +44,14 @@
namespace KBibTeX
{
- ServerListViewItem::ServerListViewItem( KListView *list, const TQString &_id, Settings::Z3950Server& _server, bool _newItem )
- : KListViewItem( list, _server.name, _server.database ), server( _server ), id( _id ), newItem( _newItem )
+ ServerListViewItem::ServerListViewItem( TDEListView *list, const TQString &_id, Settings::Z3950Server& _server, bool _newItem )
+ : TDEListViewItem( list, _server.name, _server.database ), server( _server ), id( _id ), newItem( _newItem )
{
// nothing
}
- ServerListViewItem::ServerListViewItem( KListViewItem *item, const TQString &_id, Settings::Z3950Server& _server, bool _newItem )
- : KListViewItem( item, _server.name, _server.database ), server( _server ), id( _id ), newItem( _newItem )
+ ServerListViewItem::ServerListViewItem( TDEListViewItem *item, const TQString &_id, Settings::Z3950Server& _server, bool _newItem )
+ : TDEListViewItem( item, _server.name, _server.database ), server( _server ), id( _id ), newItem( _newItem )
{
// nothing
}
@@ -319,7 +319,7 @@ namespace KBibTeX
gridLayout->setRowStretch( 5, 1 );
gridLayout->setColStretch( 0, 1 );
- m_listServers = new KListView( this );
+ m_listServers = new TDEListView( this );
m_listServers->setSorting( -1, FALSE );
m_listServers->addColumn( i18n( "z3950 server", "Name" ) );
m_listServers->addColumn( i18n( "z3950 server", "Database" ) );
diff --git a/src/settingsz3950.h b/src/settingsz3950.h
index 084444f..841135a 100644
--- a/src/settingsz3950.h
+++ b/src/settingsz3950.h
@@ -32,17 +32,17 @@
class TQSpinBox;
class KPushButton;
-class KListView;
+class TDEListView;
class KLineEdit;
class KComboBox;
namespace KBibTeX
{
- class ServerListViewItem: public KListViewItem
+ class ServerListViewItem: public TDEListViewItem
{
public:
- ServerListViewItem( KListView *, const TQString &, Settings::Z3950Server& server, bool newItem );
- ServerListViewItem( KListViewItem *, const TQString &, Settings::Z3950Server& server, bool newItem );
+ ServerListViewItem( TDEListView *, const TQString &, Settings::Z3950Server& server, bool newItem );
+ ServerListViewItem( TDEListViewItem *, const TQString &, Settings::Z3950Server& server, bool newItem );
void refresh();
@@ -110,7 +110,7 @@ namespace KBibTeX
void updateGUI();
private:
- KListView *m_listServers;
+ TDEListView *m_listServers;
KPushButton *m_buttonNewServer;
KPushButton *m_buttonEditServer;
KPushButton *m_buttonDeleteServer;
diff --git a/src/sidebar.cpp b/src/sidebar.cpp
index e2202f0..fb7212c 100644
--- a/src/sidebar.cpp
+++ b/src/sidebar.cpp
@@ -26,10 +26,10 @@
#include <ntqtoolbutton.h>
#include <kdebug.h>
-#include <kpopupmenu.h>
-#include <klistview.h>
+#include <tdepopupmenu.h>
+#include <tdelistview.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kiconloader.h>
#include <settings.h>
@@ -61,8 +61,8 @@ namespace KBibTeX
if ( settings->editing_UseSpecialFont )
m_listAvailableItems->setFont( settings->editing_SpecialFont );
else
- m_listAvailableItems->setFont( KGlobalSettings::generalFont() );
- m_listAvailableItems->header() ->setFont( KGlobalSettings::generalFont() );
+ m_listAvailableItems->setFont( TDEGlobalSettings::generalFont() );
+ m_listAvailableItems->header() ->setFont( TDEGlobalSettings::generalFont() );
}
void SideBar::refreshLists( BibTeX::File *bibtexFile )
@@ -107,7 +107,7 @@ namespace KBibTeX
m_buttonToggleShowAll = new TQToolButton( this );
layout->addWidget( m_buttonToggleShowAll, 0, 0 );
- TQIconSet showAllPixmap = KGlobal::iconLoader() ->loadIconSet( "taskbar", KIcon::Small );
+ TQIconSet showAllPixmap = TDEGlobal::iconLoader() ->loadIconSet( "taskbar", TDEIcon::Small );
m_buttonToggleShowAll->setIconSet( showAllPixmap );
m_buttonToggleShowAll->setToggleButton( TRUE );
TQToolTip::add( m_buttonToggleShowAll, i18n( "Toggle between showing all fields or only important fields" ) );
@@ -118,12 +118,12 @@ namespace KBibTeX
m_buttonToggleMultiSelect = new TQToolButton( this );
layout->addWidget( m_buttonToggleMultiSelect, 0, 2 );
- showAllPixmap = KGlobal::iconLoader() ->loadIconSet( "planner", KIcon::Small );
+ showAllPixmap = TDEGlobal::iconLoader() ->loadIconSet( "planner", TDEIcon::Small );
m_buttonToggleMultiSelect->setIconSet( showAllPixmap );
m_buttonToggleMultiSelect->setToggleButton( TRUE );
TQToolTip::add( m_buttonToggleMultiSelect, i18n( "Toggle between selecting only one item or multiple items (AND-connected in search)" ) );
- m_listAvailableItems = new KListView( this );
+ m_listAvailableItems = new TDEListView( this );
m_listAvailableItems->addColumn( i18n( "#" ) );
m_listAvailableItems->addColumn( i18n( "Items" ) );
m_listAvailableItems->setAllColumnsShowFocus( TRUE );
@@ -131,7 +131,7 @@ namespace KBibTeX
m_listAvailableItems->setSorting( 1 );
layout->addMultiCellWidget( m_listAvailableItems, 1, 1, 0, 2 );
- m_popupMenu = new KPopupMenu( m_listAvailableItems );
+ m_popupMenu = new TDEPopupMenu( m_listAvailableItems );
m_popupMenu->insertItem( i18n( "Rename all occurrences" ), this, SLOT( startRenaming() ) );
connect( m_listAvailableItems, SIGNAL( selectionChanged() ), this, SLOT( prepareSearch() ) );
diff --git a/src/sidebar.h b/src/sidebar.h
index b612544..5acdef6 100644
--- a/src/sidebar.h
+++ b/src/sidebar.h
@@ -28,9 +28,9 @@
class TQComboBox;
class TQToolButton;
-class KListView;
+class TDEListView;
class TQListViewItem;
-class KPopupMenu;
+class TDEPopupMenu;
namespace KBibTeX
{
@@ -59,10 +59,10 @@ namespace KBibTeX
TQToolButton *m_buttonToggleShowAll;
TQToolButton *m_buttonToggleMultiSelect;
TQComboBox *m_listTypeList;
- KListView *m_listAvailableItems;
+ TDEListView *m_listAvailableItems;
static const BibTeX::EntryField::FieldType importantFields[ 6 ];
bool m_isReadOnly;
- KPopupMenu *m_popupMenu;
+ TDEPopupMenu *m_popupMenu;
TQString m_oldText;
void setupGUI();
diff --git a/src/valuewidget.cpp b/src/valuewidget.cpp
index fdbba3a..2008c24 100644
--- a/src/valuewidget.cpp
+++ b/src/valuewidget.cpp
@@ -24,7 +24,7 @@
#include <ntqpushbutton.h>
#include <kdialogbase.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kiconloader.h>
#include <value.h>
diff --git a/src/webquery.cpp b/src/webquery.cpp
index dd15343..5d3caaa 100644
--- a/src/webquery.cpp
+++ b/src/webquery.cpp
@@ -31,19 +31,19 @@
#include <ntqeventloop.h>
#include <ntqbuffer.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kcombobox.h>
#include <kiconloader.h>
#include <kdebug.h>
#include <kurllabel.h>
#include <klineedit.h>
-#include <kapplication.h>
+#include <tdeapplication.h>
#include <kpushbutton.h>
#include <kprogress.h>
#include <kcompletion.h>
-#include <kmessagebox.h>
-#include <kconfig.h>
-#include <kwin.h>
+#include <tdemessagebox.h>
+#include <tdeconfig.h>
+#include <twin.h>
#include <settings.h>
#include <idsuggestions.h>
@@ -100,7 +100,7 @@ namespace KBibTeX
connect( clearSearchText, SIGNAL( clicked() ), lineEditQuery, SLOT( clear() ) );
connect( lineEditQuery, SIGNAL( textChanged( const TQString& ) ), this, SLOT( slotTextChanged( const TQString& ) ) );
hLayout->setStretchFactor( lineEditQuery, 4 );
- KCompletion *completionQuery = lineEditQuery->completionObject();
+ TDECompletion *completionQuery = lineEditQuery->completionObject();
label = new TQLabel( i18n( "&Number of results:" ), this );
hLayout->addWidget( label );
@@ -215,11 +215,11 @@ namespace KBibTeX
m_incomingData = "";
m_currentJobTotalSize = -1;
- m_currentJob = KIO::get( url, false, false );
- connect( m_currentJob, SIGNAL( totalSize( KIO::Job*, KIO::filesize_t ) ), this, SLOT( slotSetJobTotalSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( m_currentJob, SIGNAL( processedSize( KIO::Job*, KIO::filesize_t ) ), this, SLOT( slotSetJobProcessedSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( m_currentJob, SIGNAL( data( KIO::Job*, const TQByteArray & ) ), this, SLOT( slotJobData( KIO::Job*, const TQByteArray & ) ) );
- connect( m_currentJob, SIGNAL( result( KIO::Job* ) ), this, SLOT( slotJobFinished( KIO::Job* ) ) );
+ m_currentJob = TDEIO::get( url, false, false );
+ connect( m_currentJob, SIGNAL( totalSize( TDEIO::Job*, TDEIO::filesize_t ) ), this, SLOT( slotSetJobTotalSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( m_currentJob, SIGNAL( processedSize( TDEIO::Job*, TDEIO::filesize_t ) ), this, SLOT( slotSetJobProcessedSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( m_currentJob, SIGNAL( data( TDEIO::Job*, const TQByteArray & ) ), this, SLOT( slotJobData( TDEIO::Job*, const TQByteArray & ) ) );
+ connect( m_currentJob, SIGNAL( result( TDEIO::Job* ) ), this, SLOT( slotJobFinished( TDEIO::Job* ) ) );
tqApp->eventLoop()->enterLoop();
@@ -249,20 +249,20 @@ namespace KBibTeX
return result;
}
- void WebQuery::slotSetJobTotalSize( KIO::Job *job, KIO::filesize_t size )
+ void WebQuery::slotSetJobTotalSize( TDEIO::Job *job, TDEIO::filesize_t size )
{
if ( job != m_currentJob ) return;
m_currentJobTotalSize = size;
}
- void WebQuery::slotSetJobProcessedSize( KIO::Job *job, KIO::filesize_t size )
+ void WebQuery::slotSetJobProcessedSize( TDEIO::Job *job, TDEIO::filesize_t size )
{
if ( job != m_currentJob ) return;
if ( m_currentJobTotalSize <= 0 ) m_currentJobTotalSize = size;
m_progressDialog->progressBar()->setProgress( m_currentStage * 100 + min( 100, size * 100 / m_currentJobTotalSize ) );
}
- void WebQuery::slotJobData( KIO::Job *job, const TQByteArray &data )
+ void WebQuery::slotJobData( TDEIO::Job *job, const TQByteArray &data )
{
if ( job != m_currentJob ) return;
TQCString dataStr = TQCString( data, data.size() + 1 );
@@ -270,7 +270,7 @@ namespace KBibTeX
m_incomingData.append( dataStr );
}
- void WebQuery::slotJobFinished( KIO::Job *job )
+ void WebQuery::slotJobFinished( TDEIO::Job *job )
{
if ( job != m_currentJob ) return;
m_currentJob = NULL;
@@ -296,14 +296,14 @@ namespace KBibTeX
WebQueryWizard::~WebQueryWizard()
{
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
config->setGroup( "WebQueryWizard" );
saveWindowSize( config );
}
void WebQueryWizard::showEvent( TQShowEvent * )
{
- KConfig * config = kapp->config();
+ TDEConfig * config = kapp->config();
config->setGroup( "WebQueryWizard" );
restoreWindowSize( config );
}
@@ -444,15 +444,15 @@ namespace KBibTeX
m_pushButtonSearch->setIconSet( TQIconSet( SmallIcon( "find" ) ) );
m_pushButtonSearch->setEnabled( FALSE );
- m_listViewResults = new KListView( this );
+ m_listViewResults = new TDEListView( this );
m_listViewResults->addColumn( i18n( "Year" ), 64 );
m_listViewResults->addColumn( i18n( "Author" ), 128 );
m_listViewResults->addColumn( i18n( "Title" ), 512 );
if ( settings->editing_UseSpecialFont )
m_listViewResults->setFont( settings->editing_SpecialFont );
else
- m_listViewResults->setFont( KGlobalSettings::generalFont() );
- m_listViewResults->header() ->setFont( KGlobalSettings::generalFont() );
+ m_listViewResults->setFont( TDEGlobalSettings::generalFont() );
+ m_listViewResults->header() ->setFont( TDEGlobalSettings::generalFont() );
m_listViewResults->setAllColumnsShowFocus( TRUE );
m_listViewResults->setFullWidth( true );
m_listViewResults->setSelectionMode( TQListView::Extended );
@@ -520,8 +520,8 @@ namespace KBibTeX
}
}
- /* This function was taken form KMainWindow of KDE 3.5 and modified to fit KBibTeX */
- void WebQueryWizard::saveWindowSize( KConfig *config ) const
+ /* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */
+ void WebQueryWizard::saveWindowSize( TDEConfig *config ) const
{
int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
TQRect desk = TQApplication::desktop()->screenGeometry( scnum );
@@ -554,8 +554,8 @@ namespace KBibTeX
config->writeEntry( heightString, h );
}
- /* This function was taken form KMainWindow of KDE 3.5 and modified to fit KBibTeX */
- void WebQueryWizard::restoreWindowSize( KConfig *config )
+ /* This function was taken form TDEMainWindow of KDE 3.5 and modified to fit KBibTeX */
+ void WebQueryWizard::restoreWindowSize( TDEConfig *config )
{
// restore the size
int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
diff --git a/src/webquery.h b/src/webquery.h
index d0bcfdb..0289ee0 100644
--- a/src/webquery.h
+++ b/src/webquery.h
@@ -24,9 +24,9 @@
#include <ntqstring.h>
#include <kdialogbase.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <klineedit.h>
-#include <kio/jobclasses.h>
+#include <tdeio/jobclasses.h>
#include <kprogress.h>
#include "entry.h"
@@ -36,7 +36,7 @@ class TQFrame;
class TQCheckBox;
class TQSpinBox;
class KComboBox;
-class KListView;
+class TDEListView;
class KPushButton;
namespace KBibTeX
@@ -110,16 +110,16 @@ namespace KBibTeX
private:
int m_currentStage;
int m_numStages;
- KIO::TransferJob *m_currentJob;
+ TDEIO::TransferJob *m_currentJob;
int m_currentJobTotalSize;
TQString m_incomingData;
private slots:
void slotCancelQuery();
- void slotSetJobTotalSize( KIO::Job *job, KIO::filesize_t size );
- void slotSetJobProcessedSize( KIO::Job *job, KIO::filesize_t size );
- void slotJobData( KIO::Job *job, const TQByteArray &data );
- void slotJobFinished( KIO::Job *job );
+ void slotSetJobTotalSize( TDEIO::Job *job, TDEIO::filesize_t size );
+ void slotSetJobProcessedSize( TDEIO::Job *job, TDEIO::filesize_t size );
+ void slotJobData( TDEIO::Job *job, const TQByteArray &data );
+ void slotJobFinished( TDEIO::Job *job );
};
class WebQueryWizard: public TQWidget
@@ -134,7 +134,7 @@ namespace KBibTeX
void changeButtonOK( bool state );
protected:
- KListView *m_listViewResults;
+ TDEListView *m_listViewResults;
KComboBox *m_comboBoxEngines;
TQWidgetStack *m_widgetStackQueries;
KURLLabel *m_disclaimerLabel;
@@ -160,8 +160,8 @@ namespace KBibTeX
void setupGUI( );
void setupQueries();
- void restoreWindowSize( KConfig *config );
- void saveWindowSize( KConfig *config ) const;
+ void restoreWindowSize( TDEConfig *config );
+ void saveWindowSize( TDEConfig *config ) const;
};
class ResultsListViewItem: public TQListViewItem
diff --git a/src/webqueryamatex.cpp b/src/webqueryamatex.cpp
index 47b3bad..8d31bc3 100644
--- a/src/webqueryamatex.cpp
+++ b/src/webqueryamatex.cpp
@@ -24,9 +24,9 @@
#include <ntqspinbox.h>
#include <klineedit.h>
-#include <klocale.h>
-#include <kmessagebox.h>
-#include <kio/netaccess.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
+#include <tdeio/netaccess.h>
#include <kurl.h>
#include <fileimporterbibtex.h>
@@ -105,7 +105,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/webqueryarxiv.cpp b/src/webqueryarxiv.cpp
index 93261ad..1405a34 100644
--- a/src/webqueryarxiv.cpp
+++ b/src/webqueryarxiv.cpp
@@ -21,9 +21,9 @@
#include <ntqbuffer.h>
#include <ntqspinbox.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <klineedit.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <kurl.h>
#include <fileimporterbibtex.h>
@@ -169,17 +169,17 @@ namespace KBibTeX
KURL url = KURL( TQString( "http://www.arxiv.org/find/all/1/all:+%2/0/1/0/all/0/1?per_page=%1" ).arg( m_numberOfResults ).arg( query.replace( "%", "%25" ).replace( "+", "%2B" ).replace( " ", "%20" ).replace( "#", "%23" ).replace( "&", "%26" ).replace( "?", "%3F" ) ) );
m_currentJobMutex.lock();
- KIO::Job *job = KIO::storedGet( url, FALSE, FALSE );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( unlockJob( KIO::Job * ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( arXivResult( KIO::Job * ) ) );
+ TDEIO::Job *job = TDEIO::storedGet( url, FALSE, FALSE );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( unlockJob( TDEIO::Job * ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( arXivResult( TDEIO::Job * ) ) );
}
- void WebQueryArXiv::unlockJob( KIO::Job * )
+ void WebQueryArXiv::unlockJob( TDEIO::Job * )
{
m_currentJobMutex.unlock();
}
- void WebQueryArXiv::arXivResult( KIO::Job *job )
+ void WebQueryArXiv::arXivResult( TDEIO::Job *job )
{
if ( job->error() == 0 && !m_aborted )
{
@@ -187,7 +187,7 @@ namespace KBibTeX
TQBuffer data;
data.open( IO_WriteOnly );
- data.writeBlock( dynamic_cast<KIO::StoredTransferJob*>( job )->data() );
+ data.writeBlock( dynamic_cast<TDEIO::StoredTransferJob*>( job )->data() );
data.close();
data.open( IO_ReadOnly );
TQTextStream ts( &data );
@@ -226,12 +226,12 @@ namespace KBibTeX
{
m_aborted = false;
m_currentJobMutex.lock();
- KIO::Job *job = KIO::storedGet( abstractURL, FALSE, FALSE );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( unlockJob( KIO::Job * ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( arXivAbstractResult( KIO::Job * ) ) );
+ TDEIO::Job *job = TDEIO::storedGet( abstractURL, FALSE, FALSE );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( unlockJob( TDEIO::Job * ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( arXivAbstractResult( TDEIO::Job * ) ) );
}
- void WebQueryArXiv::arXivAbstractResult( KIO::Job *job )
+ void WebQueryArXiv::arXivAbstractResult( TDEIO::Job *job )
{
if ( job->error() == 0 && !m_aborted )
{
@@ -240,7 +240,7 @@ namespace KBibTeX
TQBuffer data;
data.open( IO_WriteOnly );
- data.writeBlock( dynamic_cast<KIO::StoredTransferJob*>( job )->data() );
+ data.writeBlock( dynamic_cast<TDEIO::StoredTransferJob*>( job )->data() );
data.close();
data.open( IO_ReadOnly );
TQTextStream ts( &data );
@@ -553,9 +553,9 @@ namespace KBibTeX
KURL url = m_urls.first();
m_urls.remove( url );
m_currentJobMutex.lock();
- KIO::Job *job = KIO::storedGet( url, FALSE, FALSE );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( unlockJob( KIO::Job * ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( arXivAbstractResult( KIO::Job * ) ) );
+ TDEIO::Job *job = TDEIO::storedGet( url, FALSE, FALSE );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( unlockJob( TDEIO::Job * ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( arXivAbstractResult( TDEIO::Job * ) ) );
}
else
setEndSearch( WebQuery::statusSuccess );
diff --git a/src/webqueryarxiv.h b/src/webqueryarxiv.h
index 03eb89c..2fa80e1 100644
--- a/src/webqueryarxiv.h
+++ b/src/webqueryarxiv.h
@@ -24,7 +24,7 @@
#include <ntqstringlist.h>
#include <ntqregexp.h>
-#include <kio/job.h>
+#include <tdeio/job.h>
#include <fileimporterbibtex.h>
#include <webquery.h>
@@ -67,9 +67,9 @@ namespace KBibTeX
void cancelQuery();
private slots:
- void arXivResult( KIO::Job *job );
- void unlockJob( KIO::Job *job );
- void arXivAbstractResult( KIO::Job *job );
+ void arXivResult( TDEIO::Job *job );
+ void unlockJob( TDEIO::Job *job );
+ void arXivAbstractResult( TDEIO::Job *job );
private:
TQString m_lastHit;
diff --git a/src/webquerybibsonomy.cpp b/src/webquerybibsonomy.cpp
index eec1d3f..0aa954f 100644
--- a/src/webquerybibsonomy.cpp
+++ b/src/webquerybibsonomy.cpp
@@ -23,10 +23,10 @@
#include <ntqstring.h>
#include <ntqspinbox.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <klineedit.h>
-#include <kmessagebox.h>
-#include <kio/netaccess.h>
+#include <tdemessagebox.h>
+#include <tdeio/netaccess.h>
#include <kurl.h>
#include <settings.h>
@@ -110,7 +110,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/webquerycitebase.cpp b/src/webquerycitebase.cpp
index 8015df0..f8795f2 100644
--- a/src/webquerycitebase.cpp
+++ b/src/webquerycitebase.cpp
@@ -23,9 +23,9 @@
#include <ntqspinbox.h>
#include <klineedit.h>
-#include <klocale.h>
-#include <kmessagebox.h>
-#include <kio/netaccess.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
+#include <tdeio/netaccess.h>
#include <kurl.h>
#include <settings.h>
@@ -112,7 +112,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/webqueryciteseerx.cpp b/src/webqueryciteseerx.cpp
index 6ac7da4..c00502a 100644
--- a/src/webqueryciteseerx.cpp
+++ b/src/webqueryciteseerx.cpp
@@ -22,9 +22,9 @@
#include <ntqbuffer.h>
#include <ntqspinbox.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <klineedit.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <kurl.h>
#include <kdebug.h>
@@ -265,7 +265,7 @@ namespace KBibTeX
//_______________________________________________________________________________________________________________
// read data from the job and start the current parser
- void WebQueryCiteSeerX::getData( KIO::Job *job )
+ void WebQueryCiteSeerX::getData( TDEIO::Job *job )
{
// advance GUI progress bar
enterNextStage();
@@ -276,7 +276,7 @@ namespace KBibTeX
// read data
TQBuffer data;
data.open( IO_WriteOnly );
- data.writeBlock( dynamic_cast<KIO::StoredTransferJob*>( job )->data() );
+ data.writeBlock( dynamic_cast<TDEIO::StoredTransferJob*>( job )->data() );
data.close();
data.open( IO_ReadOnly );
TQTextStream ts( &data );
@@ -307,9 +307,9 @@ namespace KBibTeX
else if ( !m_aborted )
{
m_currentParser = m_queryQueue.front().parser;
- KIO::Job *job = KIO::storedGet( m_queryQueue.front().url, FALSE, FALSE );
+ TDEIO::Job *job = TDEIO::storedGet( m_queryQueue.front().url, FALSE, FALSE );
m_queryQueue.pop_front();
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( getData( KIO::Job * ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( getData( TDEIO::Job * ) ) );
}
}
diff --git a/src/webqueryciteseerx.h b/src/webqueryciteseerx.h
index 10f6533..8582058 100644
--- a/src/webqueryciteseerx.h
+++ b/src/webqueryciteseerx.h
@@ -23,7 +23,7 @@
#include <ntqstring.h>
#include <ntqstringlist.h>
-#include <kio/job.h>
+#include <tdeio/job.h>
#include <fileimporterbibtex.h>
#include <webquery.h>
@@ -97,7 +97,7 @@ namespace KBibTeX
/// Callback when the job is finished.
/**Reads the data from the job, and hands it over to the currently set parser. */
- void getData( KIO::Job *job );
+ void getData( TDEIO::Job *job );
private:
diff --git a/src/webquerycsb.cpp b/src/webquerycsb.cpp
index e668499..8768001 100644
--- a/src/webquerycsb.cpp
+++ b/src/webquerycsb.cpp
@@ -28,9 +28,9 @@
#include <ntqfile.h>
#include <ntqdatetime.h>
-#include <klocale.h>
-#include <kmessagebox.h>
-#include <kio/netaccess.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
+#include <tdeio/netaccess.h>
#include <klineedit.h>
#include <kcombobox.h>
#include <kpushbutton.h>
@@ -83,7 +83,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( i18n( "Search &term:" ), this );
hLayout->addWidget( label );
lineEditQuery = new KLineEdit( this );
- KCompletion *completionQuery = lineEditQuery->completionObject();
+ TDECompletion *completionQuery = lineEditQuery->completionObject();
hLayout->addWidget( lineEditQuery );
label->setBuddy( lineEditQuery );
hLayout->addSpacing( KDialog::spacingHint() * 2 );
@@ -274,7 +274,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/webquerycsb.h b/src/webquerycsb.h
index 14866cd..a12b337 100644
--- a/src/webquerycsb.h
+++ b/src/webquerycsb.h
@@ -20,7 +20,7 @@
#ifndef KBIBTEXWEBQUERYCSB_H
#define KBIBTEXWEBQUERYCSB_H
-#include <kio/job.h>
+#include <tdeio/job.h>
#include <fileimporterbibtex.h>
#include <webquery.h>
diff --git a/src/webquerydblp.cpp b/src/webquerydblp.cpp
index dceb074..88fe881 100644
--- a/src/webquerydblp.cpp
+++ b/src/webquerydblp.cpp
@@ -25,13 +25,13 @@
#include <ntqlabel.h>
#include <ntqlayout.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <kiconloader.h>
#include <kcombobox.h>
-#include <kmessagebox.h>
-#include <kio/netaccess.h>
+#include <tdemessagebox.h>
+#include <tdeio/netaccess.h>
#include <kurl.h>
#include <settings.h>
@@ -74,7 +74,7 @@ namespace KBibTeX
connect( clearSearchText, SIGNAL( clicked() ), lineEditQuery, SLOT( clear() ) );
connect( lineEditQuery, SIGNAL( textChanged( const TQString& ) ), this, SLOT( slotTextChanged( const TQString& ) ) );
hLayout->setStretchFactor( lineEditQuery, 4 );
- KCompletion *completionQuery = lineEditQuery->completionObject();
+ TDECompletion *completionQuery = lineEditQuery->completionObject();
label = new TQLabel( i18n( "&Number of results:" ), this );
hLayout->addWidget( label );
@@ -198,7 +198,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/webquerygooglescholar.cpp b/src/webquerygooglescholar.cpp
index b8fdc04..5822440 100644
--- a/src/webquerygooglescholar.cpp
+++ b/src/webquerygooglescholar.cpp
@@ -23,13 +23,13 @@
#include <ntqtimer.h>
#include <ntqmap.h>
#include <ntqspinbox.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
#include <klineedit.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kdebug.h>
-#include <kmessagebox.h>
-#include <kio/job.h>
+#include <tdemessagebox.h>
+#include <tdeio/job.h>
#include <dcopref.h>
@@ -112,9 +112,9 @@ namespace KBibTeX
/** prepare HTTP request (buffer, signals, job) */
m_transferJobBuffer = new TQBuffer();
m_transferJobBuffer->open( IO_WriteOnly );
- KIO::TransferJob* m_transferJob = KIO::get( KURL( "http://scholar.google.com/scholar_ncr" ), false, false );
- connect( m_transferJob, SIGNAL( data( KIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( KIO::Job *, const TQByteArray & ) ) );
- connect( m_transferJob, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotFinishedStartpage( KIO::Job * ) ) );
+ TDEIO::TransferJob* m_transferJob = TDEIO::get( KURL( "http://scholar.google.com/scholar_ncr" ), false, false );
+ connect( m_transferJob, SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( m_transferJob, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( slotFinishedStartpage( TDEIO::Job * ) ) );
}
void WebQueryGoogleScholar::cancelQuery()
@@ -125,7 +125,7 @@ namespace KBibTeX
setEndSearch( WebQuery::statusError );
}
- void WebQueryGoogleScholar::slotFinishedStartpage( KIO::Job *job )
+ void WebQueryGoogleScholar::slotFinishedStartpage( TDEIO::Job *job )
{
/** close and delete buffer (content does not matter) */
m_transferJobBuffer->close();
@@ -153,13 +153,13 @@ namespace KBibTeX
/** prepare next HTTP request for preferences page (buffer, signals, job) */
m_transferJobBuffer = new TQBuffer();
m_transferJobBuffer->open( IO_WriteOnly );
- KIO::TransferJob* m_transferJob = KIO::get( KURL( "http://scholar.google.com/scholar_preferences?hl=en" ), false, false );
- connect( m_transferJob, SIGNAL( data( KIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( KIO::Job *, const TQByteArray & ) ) );
- connect( m_transferJob, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotFinishedLoadingSettings( KIO::Job * ) ) );
+ TDEIO::TransferJob* m_transferJob = TDEIO::get( KURL( "http://scholar.google.com/scholar_preferences?hl=en" ), false, false );
+ connect( m_transferJob, SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( m_transferJob, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( slotFinishedLoadingSettings( TDEIO::Job * ) ) );
}
- void WebQueryGoogleScholar::slotFinishedLoadingSettings( KIO::Job *job )
+ void WebQueryGoogleScholar::slotFinishedLoadingSettings( TDEIO::Job *job )
{
/** close and delete buffer (content does not matter) */
m_transferJobBuffer->close();
@@ -197,12 +197,12 @@ namespace KBibTeX
KURL nextUrl( formFieldsToUrl( "http://scholar.google.com/scholar_setprefs", keyValues ) );
m_transferJobBuffer = new TQBuffer();
m_transferJobBuffer->open( IO_WriteOnly );
- KIO::TransferJob* m_transferJob = KIO::get( nextUrl, false, false );
- connect( m_transferJob, SIGNAL( data( KIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( KIO::Job *, const TQByteArray & ) ) );
- connect( m_transferJob, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotFinishedSavingSettings( KIO::Job * ) ) );
+ TDEIO::TransferJob* m_transferJob = TDEIO::get( nextUrl, false, false );
+ connect( m_transferJob, SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( m_transferJob, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( slotFinishedSavingSettings( TDEIO::Job * ) ) );
}
- void WebQueryGoogleScholar::slotFinishedSavingSettings( KIO::Job *job )
+ void WebQueryGoogleScholar::slotFinishedSavingSettings( TDEIO::Job *job )
{
/** close and delete buffer (content does not matter) */
m_transferJobBuffer->close();
@@ -238,12 +238,12 @@ namespace KBibTeX
KURL nextUrl( formFieldsToUrl( "http://scholar.google.com/scholar", keyValues ) );
m_transferJobBuffer = new TQBuffer();
m_transferJobBuffer->open( IO_WriteOnly );
- KIO::TransferJob* m_transferJob = KIO::get( nextUrl, false, false );
- connect( m_transferJob, SIGNAL( data( KIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( KIO::Job *, const TQByteArray & ) ) );
- connect( m_transferJob, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotFinishedReceivingResultOverview( KIO::Job * ) ) );
+ TDEIO::TransferJob* m_transferJob = TDEIO::get( nextUrl, false, false );
+ connect( m_transferJob, SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( m_transferJob, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( slotFinishedReceivingResultOverview( TDEIO::Job * ) ) );
}
- void WebQueryGoogleScholar::slotFinishedReceivingResultOverview( KIO::Job *job )
+ void WebQueryGoogleScholar::slotFinishedReceivingResultOverview( TDEIO::Job *job )
{
/** close and delete buffer (content does not matter) */
m_transferJobBuffer->close();
@@ -307,7 +307,7 @@ namespace KBibTeX
void WebQueryGoogleScholar::readAndChangeConfig()
{
- KConfig cfg( "kcookiejarrc" );
+ TDEConfig cfg( "kcookiejarrc" );
cfg.setGroup( "Cookie Policy" );
m_originalEnableCookies = cfg.readBoolEntry( "Cookies", true );
m_originalSessionCookies = cfg.readBoolEntry( "AcceptSessionCookies", true );
@@ -340,7 +340,7 @@ namespace KBibTeX
void WebQueryGoogleScholar::restoreConfig()
{
- KConfig cfg( "kcookiejarrc" );
+ TDEConfig cfg( "kcookiejarrc" );
cfg.setGroup( "Cookie Policy" );
cfg.writeEntry( "CookieGlobalAdvice", m_originalCookieGlobalAdvice );
cfg.writeEntry( "Cookies", m_originalEnableCookies );
diff --git a/src/webquerygooglescholar.h b/src/webquerygooglescholar.h
index 20003fd..db0c844 100644
--- a/src/webquerygooglescholar.h
+++ b/src/webquerygooglescholar.h
@@ -62,19 +62,19 @@ namespace KBibTeX
void cancelQuery();
private slots:
- void slotData( KIO::Job *, const TQByteArray &data )
+ void slotData( TDEIO::Job *, const TQByteArray &data )
{
m_transferJobBuffer->writeBlock( data.data(), data.size() );
};
/** Google Scholar's start page has been loaded */
- void slotFinishedStartpage( KIO::Job *job );
+ void slotFinishedStartpage( TDEIO::Job *job );
/** Settings page has been loaded */
- void slotFinishedLoadingSettings( KIO::Job *job );
+ void slotFinishedLoadingSettings( TDEIO::Job *job );
/** Settings page upload and search mask loaded */
- void slotFinishedSavingSettings( KIO::Job *job );
+ void slotFinishedSavingSettings( TDEIO::Job *job );
/** page with results loaded */
- void slotFinishedReceivingResultOverview( KIO::Job *job );
+ void slotFinishedReceivingResultOverview( TDEIO::Job *job );
private:
WebQueryGoogleScholarWidget *m_widget;
@@ -88,7 +88,7 @@ namespace KBibTeX
TQMap <TQString, TQString> m_originalCookieMap;
TQString m_originalCookieGlobalAdvice;
- KIO::TransferJob *m_transferJob;
+ TDEIO::TransferJob *m_transferJob;
TQBuffer *m_transferJobBuffer;
/** load KDE's cookie configuration, store values, and reset with Google-friendly values */
diff --git a/src/webqueryieeexplore.cpp b/src/webqueryieeexplore.cpp
index 1ffbd9e..cc28192 100644
--- a/src/webqueryieeexplore.cpp
+++ b/src/webqueryieeexplore.cpp
@@ -20,13 +20,13 @@
#include <ntqspinbox.h>
#include <ntqfile.h>
-#include <kio/jobclasses.h>
-#include <kio/job.h>
-#include <kio/netaccess.h>
+#include <tdeio/jobclasses.h>
+#include <tdeio/job.h>
+#include <tdeio/netaccess.h>
#include <klineedit.h>
#include <kurl.h>
-#include <klocale.h>
-#include <kmessagebox.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
#include <settings.h>
#include <entryfield.h>
@@ -150,7 +150,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
@@ -173,19 +173,19 @@ namespace KBibTeX
m_incomingData = "";
TQString data = "dlSelect=cite&fileFormate=BibTex&arnumber=%3Carnumber%3E" + TQString::number( arnum ) + "%3C%2Farnumber%3E&Submit=Download";
- KIO::TransferJob *job = KIO::http_post( m_risURL, data.utf8(), false );
+ TDEIO::TransferJob *job = TDEIO::http_post( m_risURL, data.utf8(), false );
job->addMetaData( "content-type", "Content-Type: application/x-www-form-urlencoded" );
- connect( job, SIGNAL( data( KIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( KIO::Job *, const TQByteArray & ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotResult( KIO::Job * ) ) );
+ connect( job, SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( slotResult( TDEIO::Job * ) ) );
}
- void WebQueryIEEExplore::slotData( KIO::Job *, const TQByteArray &data )
+ void WebQueryIEEExplore::slotData( TDEIO::Job *, const TQByteArray &data )
{
if ( data.size() > 0 )
m_incomingData.append( TQCString( data, data.size() + 1 ) );
}
- void WebQueryIEEExplore::slotResult( KIO::Job *job )
+ void WebQueryIEEExplore::slotResult( TDEIO::Job *job )
{
TQRegExp m_date( "^(((\\d{1,2}(-\\d{1,2}))\\s+)?(([A-Z][a-z]{2,3})(/([A-Z][a-z]{2,3}))?)\\.?\\s+)?(\\d{4})$" );
if ( job->error() )
diff --git a/src/webqueryieeexplore.h b/src/webqueryieeexplore.h
index 3314d74..b8fefb7 100644
--- a/src/webqueryieeexplore.h
+++ b/src/webqueryieeexplore.h
@@ -75,8 +75,8 @@ namespace KBibTeX
TQString parseMonth( const TQString &month );
private slots:
- void slotData( KIO::Job *job, const TQByteArray &data );
- void slotResult( KIO::Job *job );
+ void slotData( TDEIO::Job *job, const TQByteArray &data );
+ void slotResult( TDEIO::Job *job );
};
}
diff --git a/src/webquerymathscinet.cpp b/src/webquerymathscinet.cpp
index 33d78f1..4d526ab 100644
--- a/src/webquerymathscinet.cpp
+++ b/src/webquerymathscinet.cpp
@@ -25,12 +25,12 @@
#include <ntqspinbox.h>
#include <kpushbutton.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kiconloader.h>
#include <kurl.h>
#include <kdebug.h>
-#include <kio/netaccess.h>
-#include <kmessagebox.h>
+#include <tdeio/netaccess.h>
+#include <tdemessagebox.h>
#include <settings.h>
@@ -67,7 +67,7 @@ namespace KBibTeX
connect( clearSearchText, SIGNAL( clicked() ), lineEditQuery, SLOT( clear() ) );
connect( lineEditQuery, SIGNAL( textChanged( const TQString& ) ), this, SLOT( slotTextChanged( const TQString& ) ) );
hLayout->setStretchFactor( lineEditQuery, 4 );
- KCompletion *completionQuery = lineEditQuery->completionObject();
+ TDECompletion *completionQuery = lineEditQuery->completionObject();
/*
label = new TQLabel( i18n( "&Number of results:" ), this );
@@ -170,7 +170,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/webquerypubmed.cpp b/src/webquerypubmed.cpp
index 7dfeb32..8aea30c 100644
--- a/src/webquerypubmed.cpp
+++ b/src/webquerypubmed.cpp
@@ -28,10 +28,10 @@
#include <klineedit.h>
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kurl.h>
-#include <kmessagebox.h>
-#include <kio/netaccess.h>
+#include <tdemessagebox.h>
+#include <tdeio/netaccess.h>
#include <entryfield.h>
#include <value.h>
@@ -155,7 +155,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
KMessageBox::error( m_parent, message );
setEndSearch( WebQuery::statusError );
@@ -165,7 +165,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/webquerysciencedirect.cpp b/src/webquerysciencedirect.cpp
index 2b62da1..0e041a0 100644
--- a/src/webquerysciencedirect.cpp
+++ b/src/webquerysciencedirect.cpp
@@ -24,12 +24,12 @@
#include <ntqfile.h>
#include <kpushbutton.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kcombobox.h>
#include <kiconloader.h>
-#include <kio/jobclasses.h>
-#include <kio/job.h>
-#include <kio/netaccess.h>
+#include <tdeio/jobclasses.h>
+#include <tdeio/job.h>
+#include <tdeio/netaccess.h>
#include <settings.h>
#include <fileimporterris.h>
@@ -84,7 +84,7 @@ namespace KBibTeX
TQLabel *label = new TQLabel( i18n( "Title, abstract, keywords:" ), this );
hLayout->addWidget( label );
lineEditQuery = new KLineEdit( this );
- KCompletion *completionQuery = lineEditQuery->completionObject();
+ TDECompletion *completionQuery = lineEditQuery->completionObject();
hLayout->addWidget( lineEditQuery );
label->setBuddy( lineEditQuery );
connect( clearSearchText, SIGNAL( clicked() ), lineEditQuery, SLOT( clear() ) );
@@ -363,21 +363,21 @@ namespace KBibTeX
m_incomingData = "";
TQString data = TQString( "_ob=DownloadURL&_method=finish&_acct=%1&_userid=%2&_ArticleListID=%3&count=10&md5=%4&JAVASCRIPT_ON=&format=cite&citation-type=RIS&RETURN_URL=http://www.sciencedirect.com/science/home" ).arg( m_account ).arg( m_userid ).arg( m_articleListID ).arg( m_md5 );
KURL url = KURL( "http://www.sciencedirect.com/science" );
- KIO::TransferJob *job = KIO::http_post( url, data.utf8(), false );
+ TDEIO::TransferJob *job = TDEIO::http_post( url, data.utf8(), false );
job->addMetaData( "content-type", "Content-Type: application/x-www-form-urlencoded" );
- connect( job, SIGNAL( data( KIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( KIO::Job *, const TQByteArray & ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotResult( KIO::Job * ) ) );
+ connect( job, SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( job, SIGNAL( result( TDEIO::Job * ) ), this, SLOT( slotResult( TDEIO::Job * ) ) );
return true;
}
- void WebQueryScienceDirect::slotData( KIO::Job *, const TQByteArray &data )
+ void WebQueryScienceDirect::slotData( TDEIO::Job *, const TQByteArray &data )
{
if ( data.size() > 0 )
m_incomingData.append( TQCString( data, data.size() + 1 ) );
}
- void WebQueryScienceDirect::slotResult( KIO::Job *job )
+ void WebQueryScienceDirect::slotResult( TDEIO::Job *job )
{
if ( job->error() )
{
diff --git a/src/webquerysciencedirect.h b/src/webquerysciencedirect.h
index b3dab3a..b742f5a 100644
--- a/src/webquerysciencedirect.h
+++ b/src/webquerysciencedirect.h
@@ -81,8 +81,8 @@ namespace KBibTeX
bool getRISFile();
private slots:
- void slotData( KIO::Job *job, const TQByteArray &data );
- void slotResult( KIO::Job *job );
+ void slotData( TDEIO::Job *job, const TQByteArray &data );
+ void slotResult( TDEIO::Job *job );
};
}
diff --git a/src/webqueryspireshep.cpp b/src/webqueryspireshep.cpp
index 51745b5..e409841 100644
--- a/src/webqueryspireshep.cpp
+++ b/src/webqueryspireshep.cpp
@@ -26,10 +26,10 @@
#include <kiconloader.h>
#include <kcombobox.h>
#include <kpushbutton.h>
-#include <klocale.h>
-#include <kmessagebox.h>
+#include <tdelocale.h>
+#include <tdemessagebox.h>
#include <klineedit.h>
-#include <kio/netaccess.h>
+#include <tdeio/netaccess.h>
#include <kurl.h>
#include <settings.h>
@@ -104,7 +104,7 @@ namespace KBibTeX
connect( clearSearchText, SIGNAL( clicked() ), lineEditQuery, SLOT( clear() ) );
connect( lineEditQuery, SIGNAL( textChanged( const TQString& ) ), this, SLOT( slotTextChanged( const TQString& ) ) );
hLayout->setStretchFactor( lineEditQuery, 4 );
- KCompletion *completionQuery = lineEditQuery->completionObject();
+ TDECompletion *completionQuery = lineEditQuery->completionObject();
m_checkBoxFetchAbstracts = new TQCheckBox( i18n( "Include abstracts from arxiv.org if available" ), this );
vLayout->addWidget( m_checkBoxFetchAbstracts );
@@ -200,7 +200,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/webqueryz3950.cpp b/src/webqueryz3950.cpp
index f001b4d..d59f285 100644
--- a/src/webqueryz3950.cpp
+++ b/src/webqueryz3950.cpp
@@ -38,15 +38,15 @@
#include <ntqlayout.h>
#include <ntqlabel.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kstandarddirs.h>
#include <klineedit.h>
#include <kcombobox.h>
-#include <kmessagebox.h>
+#include <tdemessagebox.h>
#include <kpushbutton.h>
#include <kiconloader.h>
-#include <kio/netaccess.h>
-#include <kapplication.h>
+#include <tdeio/netaccess.h>
+#include <tdeapplication.h>
#include <kdebug.h>
#include <kurl.h>
@@ -120,7 +120,7 @@ namespace KBibTeX
label->setBuddy( lineEditQuery );
connect( clearSearchText, SIGNAL( clicked() ), lineEditQuery, SLOT( clear() ) );
connect( lineEditQuery, SIGNAL( textChanged( const TQString& ) ), this, SLOT( slotTextChanged( const TQString& ) ) );
- KCompletion *completionQuery = lineEditQuery->completionObject();
+ TDECompletion *completionQuery = lineEditQuery->completionObject();
connect( lineEditQuery, SIGNAL( returnPressed() ), this, SIGNAL( startSearch() ) );
connect( lineEditQuery, SIGNAL( returnPressed( const TQString& ) ), completionQuery, SLOT( addItem( const TQString& ) ) );
label = new TQLabel( i18n( "Search in:" ), this );
@@ -354,12 +354,12 @@ namespace KBibTeX
convertedResultText = resultText;
else if ( syntax == "usmarc" || syntax == "marc21" )
{
- if ( m_marc21transformer == NULL ) m_marc21transformer = new BibTeX::XSLTransform( KGlobal::dirs()->findResource( "data", "kbibtexpart/xslt/MARC21slim2MODS3.xsl" ) );
+ if ( m_marc21transformer == NULL ) m_marc21transformer = new BibTeX::XSLTransform( TDEGlobal::dirs()->findResource( "data", "kbibtexpart/xslt/MARC21slim2MODS3.xsl" ) );
convertedResultText = m_marc21transformer->transform( resultText );
}
else if ( syntax == "unimarc" )
{
- if ( m_unimarctransformer == NULL ) m_unimarctransformer = new BibTeX::XSLTransform( KGlobal::dirs()->findResource( "data", "kbibtexpart/xslt/UNIMARC2MODS3.xsl" ) );
+ if ( m_unimarctransformer == NULL ) m_unimarctransformer = new BibTeX::XSLTransform( TDEGlobal::dirs()->findResource( "data", "kbibtexpart/xslt/UNIMARC2MODS3.xsl" ) );
convertedResultText = m_unimarctransformer->transform( resultText );
}
diff --git a/src/webqueryzmath.cpp b/src/webqueryzmath.cpp
index b805829..e111b65 100644
--- a/src/webqueryzmath.cpp
+++ b/src/webqueryzmath.cpp
@@ -21,11 +21,11 @@
#include <ntqapplication.h>
#include <ntqspinbox.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <klineedit.h>
#include <kcombobox.h>
-#include <kmessagebox.h>
-#include <kio/netaccess.h>
+#include <tdemessagebox.h>
+#include <tdeio/netaccess.h>
#include <kurl.h>
#include <settings.h>
@@ -107,7 +107,7 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- TQString message = KIO::NetAccess::lastErrorString();
+ TQString message = TDEIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
diff --git a/src/z3950connection.cpp b/src/z3950connection.cpp
index 567253e..83dcf6b 100644
--- a/src/z3950connection.cpp
+++ b/src/z3950connection.cpp
@@ -41,7 +41,7 @@ extern "C"
}
#endif
-#include <klocale.h>
+#include <tdelocale.h>
#include <ntqfile.h>