KFile Class Reference
from PyKDE4.kio import *
Detailed Description
KFile is a class which provides a namespace for some enumerated
values associated with the kfile library. You will never need to
construct a KFile object itself.
Enumerations |
| FileView | { Default, Simple, Detail, SeparateDirs, PreviewContents, PreviewInfo, Tree, DetailTree, FileViewMax } |
| Mode | { File, Directory, Files, ExistingOnly, LocalOnly, ModeMax } Typesafe wrapper: Modes |
| SelectionMode | { Single, Multi, Extended, NoSelection } |
Methods |
| | __init__ (self) |
Static Methods |
| bool | isDefaultView (KFile.FileView view) |
| bool | isDetailTreeView (KFile.FileView view) |
| bool | isDetailView (KFile.FileView view) |
| bool | isPreviewContents (KFile.FileView view) |
| bool | isPreviewInfo (KFile.FileView view) |
| bool | isSeparateDirs (KFile.FileView view) |
| bool | isSimpleView (KFile.FileView view) |
| bool | isSortByDate (QDir.SortFlags sort) |
| bool | isSortByName (QDir.SortFlags sort) |
| bool | isSortBySize (QDir.SortFlags sort) |
| bool | isSortByType (QDir.SortFlags sort) |
| bool | isSortCaseInsensitive (QDir.SortFlags sort) |
| bool | isSortDirsFirst (QDir.SortFlags sort) |
| bool | isTreeView (KFile.FileView view) |
Method Documentation
| bool isDefaultView |
( |
KFile.FileView |
view |
|
) |
|
|
|
| bool isDetailTreeView |
( |
KFile.FileView |
view |
|
) |
|
|
|
| bool isDetailView |
( |
KFile.FileView |
view |
|
) |
|
|
|
| bool isPreviewContents |
( |
KFile.FileView |
view |
|
) |
|
|
|
| bool isPreviewInfo |
( |
KFile.FileView |
view |
|
) |
|
|
|
| bool isSeparateDirs |
( |
KFile.FileView |
view |
|
) |
|
|
|
| bool isSimpleView |
( |
KFile.FileView |
view |
|
) |
|
|
|
| bool isSortByDate |
( |
QDir.SortFlags |
sort |
|
) |
|
|
|
| bool isSortByName |
( |
QDir.SortFlags |
sort |
|
) |
|
|
|
| bool isSortBySize |
( |
QDir.SortFlags |
sort |
|
) |
|
|
|
| bool isSortByType |
( |
QDir.SortFlags |
sort |
|
) |
|
|
|
| bool isSortCaseInsensitive |
( |
QDir.SortFlags |
sort |
|
) |
|
|
|
| bool isSortDirsFirst |
( |
QDir.SortFlags |
sort |
|
) |
|
|
|
| bool isTreeView |
( |
KFile.FileView |
view |
|
) |
|
|
|
Enumeration Documentation
- Enumerator:
-
| Default = 0 | |
| Simple = 1 | |
| Detail = 2 | |
| SeparateDirs = 4 | |
| PreviewContents = 8 | |
| PreviewInfo = 16 | |
| Tree = 32 | |
| DetailTree = 64 | |
| FileViewMax = 65536 | |
Modes of operation for the dialog.
File - Get a single file name from the user.
Directory - Get a directory name from the user.
Files - Get multiple file names from the user.
ExistingOnly - Never return a filename which does not exist yet
LocalOnly - Don't return remote filenames
- Note:
- It is necessary to wrap members of this enumeration in a
Modes instance when passing them to a method as group of flags. For example: Modes( File | Directory)
- Enumerator:
-
| File = 1 | |
| Directory = 2 | |
| Files = 4 | |
| ExistingOnly = 8 | |
| LocalOnly = 16 | |
| ModeMax = 65536 | |
- Enumerator:
-
| Single = 1 | |
| Multi = 2 | |
| Extended = 4 | |
| NoSelection = 8 | |