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