summaryrefslogtreecommitdiffstats
path: root/src/kbibtexshell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kbibtexshell.cpp')
-rw-r--r--src/kbibtexshell.cpp50
1 files changed, 25 insertions, 25 deletions
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." ) );