org.kde.koala

Class KFileFilterCombo

public class KFileFilterCombo extends KComboBox

See KFileFilterComboSignals for signals emitted by KFileFilterCombo
Constructor Summary
protected KFileFilterCombo(Class dummy)
KFileFilterCombo(QWidget parent, String name)
KFileFilterCombo(QWidget parent)
KFileFilterCombo()
Method Summary
StringclassName()
StringcurrentFilter()
StringdefaultFilter()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
booleaneventFilter(QObject o, QEvent e)
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
voidsetCurrentFilter(String filter)
Sets the current filter.
voidsetDefaultFilter(String filter)
This method allows you to set a default-filter, that is used when an empty filter is set.
voidsetFilter(String filter)
voidsetMimeFilter(String[] types, String defaultType)
Sets a list of mimetypes.
booleanshowsAllTypes()

Constructor Detail

KFileFilterCombo

protected KFileFilterCombo(Class dummy)

KFileFilterCombo

public KFileFilterCombo(QWidget parent, String name)

KFileFilterCombo

public KFileFilterCombo(QWidget parent)

KFileFilterCombo

public KFileFilterCombo()

Method Detail

className

public String className()

currentFilter

public String currentFilter()

Returns: the current filter, either something like "*.cpp *.h" or the current mimetype, like "text/html", or a list of those, like " "text/html text/plain image/png", all separated with one space.

UNKNOWN:

defaultFilter

public String defaultFilter()

Returns: the default filter, used when an empty filter is set.

See Also: KFileFilterCombo

UNKNOWN:

dispose

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

eventFilter

public boolean eventFilter(QObject o, QEvent e)

finalize

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

isDisposed

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

metaObject

public QMetaObject metaObject()

setCurrentFilter

public void setCurrentFilter(String filter)
Sets the current filter. Filter must match one of the filter items passed before to this widget.

UNKNOWN: Sets the current filter.

setDefaultFilter

public void setDefaultFilter(String filter)
This method allows you to set a default-filter, that is used when an empty filter is set. Make sure you call this before calling setFilter(). By default, this is set to i18n("*|All Files")

See Also: KFileFilterCombo

UNKNOWN: This method allows you to set a default-filter, that is used when an empty filter is set.

setFilter

public void setFilter(String filter)

setMimeFilter

public void setMimeFilter(String[] types, String defaultType)
Sets a list of mimetypes. If defaultType is set, it will be set as the current item. Otherwise, a first item showing all the mimetypes will be created.

UNKNOWN: Sets a list of mimetypes.

showsAllTypes

public boolean showsAllTypes()

Returns: true if the filter's first item is the list of all mimetypes

UNKNOWN: