PyKDE - Python Bindings for KDE
class KDirOperator
Table of contents
Modules
kfile Classes
All Classes
Module
kfile
Class
KDirOperator
Inherits
TQWidget
enums
ActionTypes
= {SortActions, ViewActions, NavActions, FileActions, AllActions }
methods
KDirOperator
(urlName = KURL (), parent = 0, name = 0)
returns
a KDirOperator instance
Argument
Type
Default
urlName
KURL
KURL ()
parent
TQWidget
0
name
char
0
actionCollection
()
returns
(KActionCollection)
activatedMenu
(a0, pos)
returns
nothing
Argument
Type
Default
a0
KFileItem
pos
TQPoint
back
()
returns
nothing
cdUp
()
returns
nothing
checkPreviewSupport
()
returns
(bool)
clearFilter
()
returns
nothing
In versions KDE 3.1.2 and above only
clearHistory
()
returns
nothing
close
()
returns
nothing
close
(alsoDelete)
returns
(bool)
In versions KDE 3.4.0 and above only
Argument
Type
Default
alsoDelete
bool
completion
(a0)
returns
nothing
Argument
Type
Default
a0
TQString
completionObject
()
returns
(KCompletion)
createView
(parent, view)
returns
(KFileView)
Argument
Type
Default
parent
TQWidget
view
KFile.FileView
del_
(items, ask = 1, showProgress = 1)
returns
(KIO.DeleteJob)
Renamed: was
' del '
in C++
Argument
Type
Default
items
KFileItemList
ask
bool
1
showProgress
bool
1
del_
(items, parent, ask = 1, showProgress = 1)
returns
(KIO.DeleteJob)
Renamed: was
' del'
in C++
In versions KDE 3.0.3 and above only
Argument
Type
Default
items
KFileItemList
parent
TQWidget
ask
bool
1
showProgress
bool
1
deleteSelected
()
returns
nothing
dirActivated
(item)
returns
nothing
Argument
Type
Default
item
KFileItem
dirCompletionObject
()
returns
(KCompletion)
dirHighlighting
()
returns
(bool)
dirLister
()
returns
(KDirLister)
dirOnlyMode
()
returns
(bool)
dirOnlyMode
(mode)
returns
(bool)
static
Argument
Type
Default
mode
uint
dropped
(item, event, urls)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
item
KFileItem
event
TQDropEvent
urls
KURL.List
fileHighlighted
(item)
returns
nothing
Argument
Type
Default
item
KFileItem
fileSelected
(item)
returns
nothing
Argument
Type
Default
item
KFileItem
finishedLoading
()
returns
nothing
forward
()
returns
nothing
highlightFile
(i)
returns
nothing
Argument
Type
Default
i
KFileItem
home
()
returns
nothing
insertNewFiles
(newone)
returns
nothing
Argument
Type
Default
newone
KFileItemList
isRoot
()
returns
(bool)
isSelected
(item)
returns
(bool)
Argument
Type
Default
item
KFileItem
itemDeleted
(a0)
returns
nothing
Argument
Type
Default
a0
KFileItem
makeCompletion
(a0)
returns
(TQString)
Argument
Type
Default
a0
TQString
makeDirCompletion
(a0)
returns
(TQString)
Argument
Type
Default
a0
TQString
mimeFilter
()
returns
(TQStringList)
In versions KDE 3.1.2 and above only
mkdir
(directory, enterDirectory = 1)
returns
(bool)
Argument
Type
Default
directory
TQString
enterDirectory
bool
1
mkdir
()
returns
nothing
mode
()
returns
(KFile.Mode)
nameFilter
()
returns
(TQString)
numDirs
()
returns
(int)
numFiles
()
returns
(int)
onlyDoubleClickSelectsFiles
()
returns
(bool)
pathChanged
()
returns
nothing
prepareCompletionObjects
()
returns
nothing
progressBar
()
returns
(KProgress)
readConfig
(a0, group = TQString .null)
returns
nothing
Argument
Type
Default
a0
TDEConfig
group
TQString
TQString .null
rereadDir
()
returns
nothing
resetCursor
()
returns
nothing
resizeEvent
(a0)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
a0
TQResizeEvent
resizeEvent
(a0)
returns
nothing
In versions
less than
KDE 3.2.0 only
Argument
Type
Default
a0
TQResizeEvent
selectDir
(item)
returns
nothing
Argument
Type
Default
item
KFileItem
selectFile
(item)
returns
nothing
Argument
Type
Default
item
KFileItem
selectedItems
()
returns
(KFileItemList)
setAcceptDrops
(b)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
b
bool
setCurrentItem
(filename)
returns
nothing
Argument
Type
Default
filename
TQString
setDirLister
(lister)
returns
nothing
Argument
Type
Default
lister
KDirLister
setDropOptions
(options)
returns
nothing
In versions KDE 3.2.0 and above only
Argument
Type
Default
options
int
setEnableDirHighlighting
(enable)
returns
nothing
Argument
Type
Default
enable
bool
setMimeFilter
(mimetypes)
returns
nothing
In versions KDE 3.1.2 and above only
Argument
Type
Default
mimetypes
TQStringList
setMode
(m)
returns
nothing
Argument
Type
Default
m
KFile.Mode
setNameFilter
(filter)
returns
nothing
Argument
Type
Default
filter
TQString
setOnlyDoubleClickSelectsFiles
(enable)
returns
nothing
Argument
Type
Default
enable
bool
setPreviewWidget
(w)
returns
nothing
Argument
Type
Default
w
TQWidget
setShowHiddenFiles
(s)
returns
nothing
Argument
Type
Default
s
bool
setSorting
(a0)
returns
nothing
Argument
Type
Default
a0
TQDir.SortSpec
setURL
(url, clearforward)
returns
nothing
Argument
Type
Default
url
KURL
clearforward
bool
setView
(view)
returns
nothing
Argument
Type
Default
view
KFileView
setView
(view)
returns
nothing
Argument
Type
Default
view
KFile.FileView
setViewConfig
(config, group)
returns
nothing
In versions KDE 3.1.0 and above only
Argument
Type
Default
config
TDEConfig
group
TQString
setupActions
()
returns
nothing
setupMenu
(whichActions)
returns
nothing
In versions KDE 3.1.0 and above only
Argument
Type
Default
whichActions
int
setupMenu
()
returns
nothing
showHiddenFiles
()
returns
(bool)
slotCompletionMatch
(match)
returns
nothing
Argument
Type
Default
match
TQString
sortByDate
()
returns
nothing
sortByName
()
returns
nothing
sortBySize
()
returns
nothing
sortReversed
()
returns
nothing
sorting
()
returns
(TQDir.SortSpec)
toggleDirsFirst
()
returns
nothing
toggleIgnoreCase
()
returns
nothing
trash
(items, parent, ask = 1, showProgress = 1)
returns
(KIO.CopyJob)
In versions KDE 3.4.0 and above only
Argument
Type
Default
items
KFileItemList
parent
TQWidget
ask
bool
1
showProgress
bool
1
trashSelected
(a0, a1)
returns
nothing
In versions KDE 3.4.0 and above only
Argument
Type
Default
a0
KAction.ActivationReason
a1
TQt.ButtonState
updateDir
()
returns
nothing
updateInformation
(files, dirs)
returns
nothing
Argument
Type
Default
files
int
dirs
int
updateSelectionDependentActions
()
returns
nothing
updateSortActions
()
returns
nothing
updateViewActions
()
returns
nothing
url
()
returns
(KURL)
urlEntered
(a0)
returns
nothing
Argument
Type
Default
a0
KURL
view
()
returns
(KFileView)
viewChanged
(newView)
returns
nothing
Argument
Type
Default
newView
KFileView
viewConfig
()
returns
(TDEConfig)
In versions KDE 3.1.0 and above only
viewConfigGroup
()
returns
(TQString)
In versions KDE 3.1.0 and above only
viewWidget
()
returns
(TQWidget)
writeConfig
(a0, group = TQString .null)
returns
nothing
Argument
Type
Default
a0
TDEConfig
group
TQString
TQString .null