org.kde.koala

Class KFilePreview

public class KFilePreview extends QSplitter implements KFileViewInterface

See KFilePreviewSignals for signals emitted by KFilePreview
Constructor Summary
protected KFilePreview(Class dummy)
KFilePreview(QWidget parent, String name)
KFilePreview(KFileViewInterface view, QWidget parent, String name)
Method Summary
KActionCollectionactionCollection()
This overrides KFileView.actionCollection() by returning the actionCollection() of the KFileView (member left) it contains.
voidaddItemList(ArrayList list)
inserts a list of items.
static intautoOpenDelay()
delay before auto opening a directory
StringclassName()
voidclear()
voidclearSelection()
voidclearView()
intcount()
KFileItemcurrentFileItem()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
intdropOptions()
Returns the DND options in effect.
voidensureItemVisible(KFileItem arg1)
KFileViewInterfacefileView()
protected voidfinalize()
Deletes the wrapped C++ instance
KFileItemfirstFileItem()
voidinsertItem(KFileItem arg1)
voidinvertSelection()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisReversed()
Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).
booleanisSelected(KFileItem arg1)
ArrayListitems()
voidlistingCompleted()
QMetaObjectmetaObject()
KFileItemnextItem(KFileItem arg1)
intnumDirs()
intnumFiles()
booleanonlyDoubleClickSelectsFiles()
KFileItemprevItem(KFileItem arg1)
voidreadConfig(KConfig arg1, String group)
voidreadConfig(KConfig arg1)
voidremoveItem(KFileItem arg1)
voidselectAll()
ArrayListselectedItems()
voidsetCurrentItem(KFileItem arg1)
voidsetCurrentItem(String filename)
Sets filename the current item in the view, if available.
voidsetDropOptions(int options)
Specify DND options.
protected voidsetDropOptions_impl(int options)
voidsetFileView(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.
voidsetOnlyDoubleClickSelectsFiles(boolean enable)
This is a KFileDialog specific hack: we want to select directories with single click, but not files.
voidsetParentView(KFileViewInterface parent)
voidsetPreviewWidget(QWidget w, KURL u)
voidsetSelected(KFileItem arg1, boolean arg2)
voidsetSelectionMode(int sm)
voidsetSorting(int sort)
voidsetViewMode(int vm)
voidsetViewName(String name)
Sets the name of the view, which could be displayed somewhere.
KFileViewSignalersignaler()
protected voidslotHighlighted(KFileItem arg1)
intsorting()
Returns the sorting order of the internal list.
static StringsortingKey(String value, boolean isDir, int sortSpec)
This method calculates a String from the given parameters, that is suitable for sorting with e.g.
static StringsortingKey(long value, boolean isDir, int sortSpec)
An overloaded method that takes not a String, but a number as sort criterion.
voidsortReversed()
booleanupdateNumbers(KFileItem i)
increases the number of dirs and files.
voidupdateView(boolean arg1)
voidupdateView(KFileItem arg1)
voidupdateView()
intviewMode()
StringviewName()
QWidgetwidget()
voidwriteConfig(KConfig arg1, String group)
voidwriteConfig(KConfig arg1)

Constructor Detail

KFilePreview

protected KFilePreview(Class dummy)

KFilePreview

public KFilePreview(QWidget parent, String name)

KFilePreview

public KFilePreview(KFileViewInterface view, QWidget parent, String name)

Method Detail

actionCollection

public KActionCollection actionCollection()
This overrides KFileView.actionCollection() by returning the actionCollection() of the KFileView (member left) it contains. This means that KFilePreview will never create a KActionCollection object of its own.

UNKNOWN: This overrides KFileView.actionCollection() by returning the actionCollection() of the KFileView (member left) it contains.

addItemList

public void addItemList(ArrayList list)
inserts a list of items.

UNKNOWN: inserts a list of items.

autoOpenDelay

public static int autoOpenDelay()
delay before auto opening a directory

UNKNOWN:

className

public String className()

clear

public void clear()

clearSelection

public void clearSelection()

clearView

public void clearView()

count

public int count()

Returns: the number of dirs and files

UNKNOWN:

currentFileItem

public KFileItem currentFileItem()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

dropOptions

public int dropOptions()
Returns the DND options in effect. See DropOptions for details.

UNKNOWN: Returns the DND options in effect.

ensureItemVisible

public void ensureItemVisible(KFileItem arg1)

fileView

public KFileViewInterface fileView()

Returns: the current fileview

UNKNOWN:

finalize

protected void finalize()
Deletes the wrapped C++ instance

firstFileItem

public KFileItem firstFileItem()

insertItem

public void insertItem(KFileItem arg1)

invertSelection

public void invertSelection()

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isReversed

public boolean isReversed()
Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).

UNKNOWN: Tells whether the current items are in reversed order (shortcut to sorting() & QDir.Reversed).

isSelected

public boolean isSelected(KFileItem arg1)

items

public ArrayList items()

Returns: all items currently available in the current sort-order

UNKNOWN:

listingCompleted

public void listingCompleted()

metaObject

public QMetaObject metaObject()

nextItem

public KFileItem nextItem(KFileItem arg1)

numDirs

public int numDirs()

Returns: the number of directories

UNKNOWN:

numFiles

public int numFiles()

Returns: the number of files.

UNKNOWN:

onlyDoubleClickSelectsFiles

public boolean onlyDoubleClickSelectsFiles()

Returns: whether files (not directories) should only be select()ed by double-clicks.

See Also: KFilePreview

UNKNOWN:

prevItem

public KFileItem prevItem(KFileItem arg1)

readConfig

public void readConfig(KConfig arg1, String group)

readConfig

public void readConfig(KConfig arg1)

removeItem

public void removeItem(KFileItem arg1)

selectAll

public void selectAll()

selectedItems

public ArrayList selectedItems()

Returns: all currently highlighted items.

UNKNOWN:

setCurrentItem

public void setCurrentItem(KFileItem arg1)

setCurrentItem

public void setCurrentItem(String filename)
Sets filename the current item in the view, if available.

UNKNOWN: Sets filename the current item in the view, if available.

setDropOptions

public void setDropOptions(int options)
Specify DND options. See DropOptions for details. All options are disabled by default.

UNKNOWN: Specify DND options.

setDropOptions_impl

protected void setDropOptions_impl(int options)

setFileView

public 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.

UNKNOWN: Delets the current view and sets the view to the given view.

setOnlyDoubleClickSelectsFiles

public void setOnlyDoubleClickSelectsFiles(boolean enable)
This is a KFileDialog specific hack: we want to select directories with single click, but not files. But as a generic class, we have to be able to select files on single click as well. This gives us the opportunity to do both. Every view has to decide when to call select( item ) when a file was single-clicked, based on onlyDoubleClickSelectsFiles().

UNKNOWN: This is a KFileDialog specific hack: we want to select directories with single click, but not files.

setParentView

public void setParentView(KFileViewInterface parent)

setPreviewWidget

public void setPreviewWidget(QWidget w, KURL u)

setSelected

public void setSelected(KFileItem arg1, boolean arg2)

setSelectionMode

public void setSelectionMode(int sm)

setSorting

public void setSorting(int sort)

setViewMode

public void setViewMode(int vm)

setViewName

public void setViewName(String name)
Sets the name of the view, which could be displayed somewhere. E.g. "Image Preview".

UNKNOWN: Sets the name of the view, which could be displayed somewhere.

signaler

public KFileViewSignaler signaler()

slotHighlighted

protected void slotHighlighted(KFileItem arg1)

sorting

public int sorting()
Returns the sorting order of the internal list. Newly added files are added through this sorting.

UNKNOWN: Returns the sorting order of the internal list.

sortingKey

public 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. QIconView or QListView. Their Item-classes usually have a setKey( String ) method or a virtual method String key() that is used for sorting.

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.

sortingKey

public static String sortingKey(long value, boolean isDir, int sortSpec)
An overloaded method that takes not a String, but a number as sort criterion. You can use this for file-sizes or dates/times for example. If you use a time_t, you need to cast that to KIO.filesize_t because of ambiguity problems.

UNKNOWN: An overloaded method that takes not a String, but a number as sort criterion.

sortReversed

public void sortReversed()

updateNumbers

public boolean updateNumbers(KFileItem i)
increases the number of dirs and files.

Returns: true if the item fits the view mode

UNKNOWN: increases the number of dirs and files.

updateView

public void updateView(boolean arg1)

updateView

public void updateView(KFileItem arg1)

updateView

public void updateView()

viewMode

public int viewMode()

viewName

public String viewName()

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:

widget

public QWidget widget()

writeConfig

public void writeConfig(KConfig arg1, String group)

writeConfig

public void writeConfig(KConfig arg1)