From f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 16:33:55 +0200 Subject: Initial TDE conversion --- src/kbibtexshell.cpp | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src/kbibtexshell.cpp') 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 #include -#include +#include #include -#include +#include #include #include -#include +#include #include -#include +#include #include -#include +#include #include -#include +#include #include #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." ) ); -- cgit v1.2.1