summaryrefslogtreecommitdiffstats
path: root/kate/app/katefileselector.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:11:21 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:11:21 -0600
commitf537c21b68e08f649b1b297bce8f3904603137e0 (patch)
treefb33065387509dea898c90022ddec9c3f8ede86d /kate/app/katefileselector.cpp
parentdc5f267664506a312203c26bfe9001a448b0bb0f (diff)
downloadtdebase-f537c21b68e08f649b1b297bce8f3904603137e0.tar.gz
tdebase-f537c21b68e08f649b1b297bce8f3904603137e0.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kate/app/katefileselector.cpp')
-rw-r--r--kate/app/katefileselector.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kate/app/katefileselector.cpp b/kate/app/katefileselector.cpp
index beeed2082..7a0e429f8 100644
--- a/kate/app/katefileselector.cpp
+++ b/kate/app/katefileselector.cpp
@@ -71,7 +71,7 @@ static void silenceQToolBar(TQtMsgType, const char *){}
// helper classes to be able to have a toolbar without move handle
KateFileSelectorToolBar::KateFileSelectorToolBar(TQWidget *parent)
- : KToolBar( parent, "Kate FileSelector Toolbar", true )
+ : TDEToolBar( parent, "Kate FileSelector Toolbar", true )
{
setMinimumWidth(10);
}
@@ -80,7 +80,7 @@ KateFileSelectorToolBar::~KateFileSelectorToolBar(){}
void KateFileSelectorToolBar::setMovingEnabled( bool)
{
- KToolBar::setMovingEnabled(false);
+ TDEToolBar::setMovingEnabled(false);
}
@@ -111,7 +111,7 @@ KateFileSelector::KateFileSelector( KateMainWindow *mainWindow,
mainwin(mainWindow),
viewmanager(viewManager)
{
- mActionCollection = new KActionCollection( this );
+ mActionCollection = new TDEActionCollection( this );
TQtMsgHandler oldHandler = tqInstallMsgHandler( silenceQToolBar );
@@ -136,18 +136,18 @@ KateFileSelector::KateFileSelector( KateMainWindow *mainWindow,
this, TQT_SLOT( selectorViewChanged(KFileView *) ) );
setStretchFactor(dir, 2);
- KActionCollection *coll = dir->actionCollection();
+ TDEActionCollection *coll = dir->actionCollection();
// some shortcuts of diroperator that clashes with Kate
- coll->action( "delete" )->setShortcut( KShortcut( ALT + Key_Delete ) );
- coll->action( "reload" )->setShortcut( KShortcut( ALT + Key_F5 ) );
- coll->action( "back" )->setShortcut( KShortcut( ALT + SHIFT + Key_Left ) );
- coll->action( "forward" )->setShortcut( KShortcut( ALT + SHIFT + Key_Right ) );
+ coll->action( "delete" )->setShortcut( TDEShortcut( ALT + Key_Delete ) );
+ coll->action( "reload" )->setShortcut( TDEShortcut( ALT + Key_F5 ) );
+ coll->action( "back" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Left ) );
+ coll->action( "forward" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Right ) );
// some consistency - reset up for dir too
- coll->action( "up" )->setShortcut( KShortcut( ALT + SHIFT + Key_Up ) );
- coll->action( "home" )->setShortcut( KShortcut( CTRL + ALT + Key_Home ) );
+ coll->action( "up" )->setShortcut( TDEShortcut( ALT + SHIFT + Key_Up ) );
+ coll->action( "home" )->setShortcut( TDEShortcut( CTRL + ALT + Key_Home ) );
// bookmarks action!
- KActionMenu *acmBookmarks = new KActionMenu( i18n("Bookmarks"), "bookmark",
+ TDEActionMenu *acmBookmarks = new TDEActionMenu( i18n("Bookmarks"), "bookmark",
mActionCollection, "bookmarks" );
acmBookmarks->setDelayed( false );
bookmarkHandler = new KBookmarkHandler( this, acmBookmarks->popupMenu() );
@@ -167,9 +167,9 @@ KateFileSelector::KateFileSelector( KateMainWindow *mainWindow,
filter, TQT_SLOT( addToHistory(const TQString&) ) );
// kaction for the dir sync method
- acSyncDir = new KAction( i18n("Current Document Folder"), "curfiledir", 0,
+ acSyncDir = new TDEAction( i18n("Current Document Folder"), "curfiledir", 0,
TQT_TQOBJECT(this), TQT_SLOT( setActiveDocumentDir() ), mActionCollection, "sync_dir" );
- toolbar->setIconText( KToolBar::IconOnly );
+ toolbar->setIconText( TDEToolBar::IconOnly );
toolbar->setIconSize( 16 );
toolbar->setEnableContextMenu( false );
@@ -268,7 +268,7 @@ void KateFileSelector::setupToolbar( TDEConfig *config )
"short view" << "detailed view" <<
"bookmarks" << "sync_dir";
}
- KAction *ac;
+ TDEAction *ac;
for ( TQStringList::Iterator it=tbactions.begin(); it != tbactions.end(); ++it ) {
if ( *it == "bookmarks" || *it == "sync_dir" )
ac = mActionCollection->action( (*it).latin1() );
@@ -534,7 +534,7 @@ KFSConfigPage::KFSConfigPage( TQWidget *parent, const char *name, KateFileSelect
// Toolbar - a lot for a little...
TQGroupBox *gbToolbar = new TQGroupBox( 1, Qt::Vertical, i18n("Toolbar"), this );
- acSel = new KActionSelector( gbToolbar );
+ acSel = new TDEActionSelector( gbToolbar );
acSel->setAvailableLabel( i18n("A&vailable actions:") );
acSel->setSelectedLabel( i18n("S&elected actions:") );
lo->addWidget( gbToolbar );
@@ -689,7 +689,7 @@ void KFSConfigPage::init()
"show hidden" << "properties"*/ <<
"bookmarks" << "sync_dir";
TQRegExp re("&(?=[^&])");
- KAction *ac;
+ TDEAction *ac;
TQListBox *lb;
for ( TQStringList::Iterator it=allActions.begin(); it != allActions.end(); ++it ) {
lb = l.contains( *it ) ? acSel->selectedListBox() : acSel->availableListBox();