org.kde.koala
public class KFilePreview extends QSplitter implements KFileViewInterface
Constructor Summary | |
---|---|
protected | KFilePreview(Class dummy) |
KFilePreview(QWidget parent, String name) | |
KFilePreview(KFileViewInterface view, QWidget parent, String name) |
Method Summary | |
---|---|
KActionCollection | actionCollection()
This overrides KFileView.actionCollection() by returning
the actionCollection() of the KFileView (member left) it contains.
|
void | addItemList(ArrayList list)
inserts a list of items. |
static int | autoOpenDelay()
delay before auto opening a directory |
String | className() |
void | clear() |
void | clearSelection() |
void | clearView() |
int | count() |
KFileItem | currentFileItem() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
int | dropOptions()
Returns the DND options in effect.
|
void | ensureItemVisible(KFileItem arg1) |
KFileViewInterface | fileView() |
protected void | finalize() Deletes the wrapped C++ instance |
KFileItem | firstFileItem() |
void | insertItem(KFileItem arg1) |
void | invertSelection() |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isReversed()
Tells whether the current items are in reversed order (shortcut to
sorting() & QDir.Reversed). |
boolean | isSelected(KFileItem arg1) |
ArrayList | items() |
void | listingCompleted() |
QMetaObject | metaObject() |
KFileItem | nextItem(KFileItem arg1) |
int | numDirs() |
int | numFiles() |
boolean | onlyDoubleClickSelectsFiles() |
KFileItem | prevItem(KFileItem arg1) |
void | readConfig(KConfig arg1, String group) |
void | readConfig(KConfig arg1) |
void | removeItem(KFileItem arg1) |
void | selectAll() |
ArrayList | selectedItems() |
void | setCurrentItem(KFileItem arg1) |
void | setCurrentItem(String filename)
Sets filename the current item in the view, if available. |
void | setDropOptions(int options)
Specify DND options. |
protected void | setDropOptions_impl(int options) |
void | setFileView(KFileViewInterface view)
Delets the current view and sets the view to the given view.
The view is reparented to have this as parent, if necessary. |
void | setOnlyDoubleClickSelectsFiles(boolean enable)
This is a KFileDialog specific hack: we want to select directories with
single click, but not files. |
void | setParentView(KFileViewInterface parent) |
void | setPreviewWidget(QWidget w, KURL u) |
void | setSelected(KFileItem arg1, boolean arg2) |
void | setSelectionMode(int sm) |
void | setSorting(int sort) |
void | setViewMode(int vm) |
void | setViewName(String name)
Sets the name of the view, which could be displayed somewhere.
|
KFileViewSignaler | signaler() |
protected void | slotHighlighted(KFileItem arg1) |
int | sorting()
Returns the sorting order of the internal list. |
static String | sortingKey(String value, boolean isDir, int sortSpec)
This method calculates a String from the given parameters, that is
suitable for sorting with e.g. |
static String | sortingKey(long value, boolean isDir, int sortSpec)
An overloaded method that takes not a String, but a number as sort
criterion. |
void | sortReversed() |
boolean | updateNumbers(KFileItem i)
increases the number of dirs and files. |
void | updateView(boolean arg1) |
void | updateView(KFileItem arg1) |
void | updateView() |
int | viewMode() |
String | viewName() |
QWidget | widget() |
void | writeConfig(KConfig arg1, String group) |
void | writeConfig(KConfig arg1) |
UNKNOWN: This overrides KFileView.actionCollection() by returning the actionCollection() of the KFileView (member left) it contains.
UNKNOWN: inserts a list of items.
UNKNOWN:
Returns: the number of dirs and files
UNKNOWN:
UNKNOWN: Returns the DND options in effect.
Returns: the current fileview
UNKNOWN:
UNKNOWN: Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).
Returns: all items currently available in the current sort-order
UNKNOWN:
Returns: the number of directories
UNKNOWN:
Returns: the number of files.
UNKNOWN:
Returns: whether files (not directories) should only be select()ed by double-clicks.
See Also: KFilePreview
UNKNOWN:
Returns: all currently highlighted items.
UNKNOWN:
filename
the current item in the view, if available.UNKNOWN: Sets filename
the current item in the view, if available.
UNKNOWN: Specify DND options.
view.
The view is reparented to have this as parent, if necessary.UNKNOWN: Delets the current view and sets the view to the given view.
UNKNOWN: This is a KFileDialog specific hack: we want to select directories with single click, but not files.
UNKNOWN: Sets the name of the view, which could be displayed somewhere.
UNKNOWN: Returns the sorting order of the internal list.
Parameters: value Any string that should be used as sort criterion isDir Tells whether the key is computed for an item representing a directory (directories are usually sorted before files) sortSpec An ORed combination of QDir.SortSpec flags. Currently, the values IgnoreCase, Reversed and DirsFirst are taken into account.
UNKNOWN: This method calculates a String from the given parameters, that is suitable for sorting with e.
UNKNOWN: An overloaded method that takes not a String, but a number as sort criterion.
Returns: true if the item fits the view mode
UNKNOWN: increases the number of dirs and files.
Returns: the localized name of the view, which could be displayed somewhere, e.g. in a menu, where the user can choose between views.
See Also: KFilePreview
UNKNOWN: