summaryrefslogtreecommitdiffstats
path: root/konqueror
diff options
context:
space:
mode:
Diffstat (limited to 'konqueror')
-rw-r--r--konqueror/ChangeLog2
-rw-r--r--konqueror/konq_combo.cc12
-rw-r--r--konqueror/konq_combo.h4
-rw-r--r--konqueror/konq_mainwindow.cc32
-rw-r--r--konqueror/konq_mainwindow.h4
5 files changed, 27 insertions, 27 deletions
diff --git a/konqueror/ChangeLog b/konqueror/ChangeLog
index 181bd9451..bdd198606 100644
--- a/konqueror/ChangeLog
+++ b/konqueror/ChangeLog
@@ -270,7 +270,7 @@
Sat Nov 25 17:38:27 2000 Carsten Pfeiffer <pfeiffer@kde.org>
* konq_mainwindow.cc: Completion handling overhauled. We have
- one KonqHistoryManager, which holds a KCompletion object and syncs
+ one KonqHistoryManager, which holds a TDECompletion object and syncs
the history with the completion.
* konq_view.cc:
diff --git a/konqueror/konq_combo.cc b/konqueror/konq_combo.cc
index 888f79283..9476940c7 100644
--- a/konqueror/konq_combo.cc
+++ b/konqueror/konq_combo.cc
@@ -83,7 +83,7 @@ public:
void setCompletedItems( const TQStringList& items );
};
-class KonqComboCompletionBox : public KCompletionBox
+class KonqComboCompletionBox : public TDECompletionBox
{
public:
KonqComboCompletionBox( TQWidget *parent, const char *name = 0 );
@@ -108,7 +108,7 @@ KonqCombo::KonqCombo( TQWidget *parent, const char *name )
// We should also connect the completionBox' highlighted signal to
// our setEditText() slot, because we're handling the signals ourselves.
- // But we're lazy and let KCompletionBox do this and simply switch off
+ // But we're lazy and let TDECompletionBox do this and simply switch off
// handling of signals later.
setHandleSignals( true );
@@ -139,7 +139,7 @@ KonqCombo::~KonqCombo()
{
}
-void KonqCombo::init( KCompletion *completion )
+void KonqCombo::init( TDECompletion *completion )
{
setCompletionObject( completion, false ); //KonqMainWindow handles signals
setAutoDeleteCompletionObject( false );
@@ -838,7 +838,7 @@ void KonqComboLineEdit::setCompletedItems( const TQStringList& items )
///////////////////////////////////////////////////////////////////////////////
KonqComboCompletionBox::KonqComboCompletionBox( TQWidget *parent, const char *name )
- :KCompletionBox( parent, name ) {}
+ :TDECompletionBox( parent, name ) {}
void KonqComboCompletionBox::setItems( const TQStringList& items )
{
@@ -889,9 +889,9 @@ void KonqComboCompletionBox::setItems( const TQStringList& items )
blockSignals( block );
- // Trigger d->down_workaround = true within KCompletionBox
+ // Trigger d->down_workaround = true within TDECompletionBox
TQStringList dummy;
- KCompletionBox::insertItems( dummy, 1 );
+ TDECompletionBox::insertItems( dummy, 1 );
}
void KonqComboCompletionBox::insertStringList( const TQStringList & list, int index )
diff --git a/konqueror/konq_combo.h b/konqueror/konq_combo.h
index d3bdd436e..0bfe76a87 100644
--- a/konqueror/konq_combo.h
+++ b/konqueror/konq_combo.h
@@ -25,7 +25,7 @@
#include <kcombobox.h>
#include <konq_historymgr.h>
-class KCompletion;
+class TDECompletion;
class TDEConfig;
// we use KHistoryCombo _only_ for the up/down keyboard handling, otherwise
@@ -39,7 +39,7 @@ public:
~KonqCombo();
// initializes with the completion object and calls loadItems()
- void init( KCompletion * );
+ void init( TDECompletion * );
// determines internally if it's temporary or final
void setURL( const TQString& url );
diff --git a/konqueror/konq_mainwindow.cc b/konqueror/konq_mainwindow.cc
index 69b7b85f5..33fdb3de2 100644
--- a/konqueror/konq_mainwindow.cc
+++ b/konqueror/konq_mainwindow.cc
@@ -123,7 +123,7 @@ template class TQPtrList<TDEToggleAction>;
TQPtrList<KonqMainWindow> *KonqMainWindow::s_lstViews = 0;
TDEConfig * KonqMainWindow::s_comboConfig = 0;
-KCompletion * KonqMainWindow::s_pCompletion = 0;
+TDECompletion * KonqMainWindow::s_pCompletion = 0;
TQFile * KonqMainWindow::s_crashlog_file = 0;
bool KonqMainWindow::s_preloaded = false;
KonqMainWindow* KonqMainWindow::s_preloadedWindow = 0;
@@ -3287,8 +3287,8 @@ void KonqMainWindow::initCombo()
TQT_SLOT( slotMakeCompletion( const TQString& )));
connect( m_combo, TQT_SIGNAL( substringCompletion( const TQString& )),
TQT_SLOT( slotSubstringcompletion( const TQString& )));
- connect( m_combo, TQT_SIGNAL( textRotation( KCompletionBase::KeyBindingType) ),
- TQT_SLOT( slotRotation( KCompletionBase::KeyBindingType )));
+ connect( m_combo, TQT_SIGNAL( textRotation( TDECompletionBase::KeyBindingType) ),
+ TQT_SLOT( slotRotation( TDECompletionBase::KeyBindingType )));
connect( m_combo, TQT_SIGNAL( cleared() ),
TQT_SLOT ( slotClearHistory() ) );
connect( m_pURLCompletion, TQT_SIGNAL( match(const TQString&) ),
@@ -3382,17 +3382,17 @@ void KonqMainWindow::slotSubstringcompletion( const TQString& text )
m_combo->setCompletedItems( items );
}
-void KonqMainWindow::slotRotation( KCompletionBase::KeyBindingType type )
+void KonqMainWindow::slotRotation( TDECompletionBase::KeyBindingType type )
{
// Tell slotMatch() to do nothing
m_urlCompletionStarted = false;
- bool prev = (type == KCompletionBase::PrevCompletionMatch);
- if ( prev || type == KCompletionBase::NextCompletionMatch ) {
+ bool prev = (type == TDECompletionBase::PrevCompletionMatch);
+ if ( prev || type == TDECompletionBase::NextCompletionMatch ) {
TQString completion = prev ? m_pURLCompletion->previousMatch() :
m_pURLCompletion->nextMatch();
- if( completion.isNull() ) { // try the history KCompletion object
+ if( completion.isNull() ) { // try the history TDECompletion object
completion = prev ? s_pCompletion->previousMatch() :
s_pCompletion->nextMatch();
}
@@ -5550,10 +5550,10 @@ static TQString hp_tryPrepend( const TQString& s )
}
-static void hp_removeDupe( KCompletionMatches& l, const TQString& dupe,
- KCompletionMatches::Iterator it_orig )
+static void hp_removeDupe( TDECompletionMatches& l, const TQString& dupe,
+ TDECompletionMatches::Iterator it_orig )
{
- for( KCompletionMatches::Iterator it = l.begin();
+ for( TDECompletionMatches::Iterator it = l.begin();
it != l.end();
) {
if( it == it_orig ) {
@@ -5572,14 +5572,14 @@ static void hp_removeDupe( KCompletionMatches& l, const TQString& dupe,
// remove duplicates like 'http://www.kde.org' and 'http://www.kde.org/'
// (i.e. the trailing slash)
// some duplicates are also created by prepending protocols
-static void hp_removeDuplicates( KCompletionMatches& l )
+static void hp_removeDuplicates( TDECompletionMatches& l )
{
TQString http = "http://";
TQString ftp = "ftp://ftp.";
TQString file = "file:";
TQString file2 = "file://";
l.removeDuplicates();
- for( KCompletionMatches::Iterator it = l.begin();
+ for( TDECompletionMatches::Iterator it = l.begin();
it != l.end();
++it ) {
TQString str = (*it).value();
@@ -5602,9 +5602,9 @@ static void hp_removeDuplicates( KCompletionMatches& l )
}
}
-static void hp_removeCommonPrefix( KCompletionMatches& l, const TQString& prefix )
+static void hp_removeCommonPrefix( TDECompletionMatches& l, const TQString& prefix )
{
- for( KCompletionMatches::Iterator it = l.begin();
+ for( TDECompletionMatches::Iterator it = l.begin();
it != l.end();
) {
if( (*it).value().startsWith( prefix )) {
@@ -5617,7 +5617,7 @@ static void hp_removeCommonPrefix( KCompletionMatches& l, const TQString& prefix
// don't include common prefixes like 'http://', i.e. when s == 'h', include
// http://hotmail.com but don't include everything just starting with 'http://'
-static void hp_checkCommonPrefixes( KCompletionMatches& matches, const TQString& s )
+static void hp_checkCommonPrefixes( TDECompletionMatches& matches, const TQString& s )
{
static const char* const prefixes[] = {
"http://",
@@ -5652,7 +5652,7 @@ TQStringList KonqMainWindow::historyPopupCompletionItems( const TQString& s)
const TQString file2 = "file://";
if( s.isEmpty())
return TQStringList();
- KCompletionMatches matches= s_pCompletion->allWeightedMatches( s );
+ TDECompletionMatches matches= s_pCompletion->allWeightedMatches( s );
hp_checkCommonPrefixes( matches, s );
bool checkDuplicates = false;
if ( !s.startsWith( ftp ) ) {
diff --git a/konqueror/konq_mainwindow.h b/konqueror/konq_mainwindow.h
index 8b19f5fd0..ad31c4360 100644
--- a/konqueror/konq_mainwindow.h
+++ b/konqueror/konq_mainwindow.h
@@ -494,7 +494,7 @@ protected slots:
void slotCompletionModeChanged( TDEGlobalSettings::Completion );
void slotMakeCompletion( const TQString& );
void slotSubstringcompletion( const TQString& );
- void slotRotation( KCompletionBase::KeyBindingType );
+ void slotRotation( TDECompletionBase::KeyBindingType );
void slotMatch( const TQString& );
void slotClearHistory();
void slotClearComboHistory();
@@ -730,7 +730,7 @@ private:
static TDEConfig *s_comboConfig;
KURLCompletion *m_pURLCompletion;
// just a reference to KonqHistoryManager's completionObject
- static KCompletion *s_pCompletion;
+ static TDECompletion *s_pCompletion;
ToggleViewGUIClient *m_toggleViewGUIClient;