org.kde.koala

Class KOpenWithDlg

public class KOpenWithDlg extends QDialog

"Open with" dialog box. Used automatically by KRun, and used by libkonq.

Author: David Faure

UNKNOWN: "Open with" dialog box.

Constructor Summary
protected KOpenWithDlg(Class dummy)
KOpenWithDlg(ArrayList urls, QWidget parent)
Create a dialog that asks for a application to open a given URL(s) with.
KOpenWithDlg(ArrayList urls)
KOpenWithDlg(ArrayList urls, String text, String value, QWidget parent)
Create a dialog that asks for a application to open a given URL(s) with.
KOpenWithDlg(ArrayList urls, String text, String value)
KOpenWithDlg(String serviceType, String value, QWidget parent)
Create a dialog to select a service for a given service type.
KOpenWithDlg(String serviceType, String value)
KOpenWithDlg(QWidget parent)
Create a dialog to select an application Note that this dialog doesn't apply to URLs.
KOpenWithDlg()
Method Summary
protected voidaccept()
Reimplemented from QDialog.accept() to save history of the combobox
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
voidhideNoCloseOnExit()
Hide the "Do not &close when command exits" Checkbox
voidhideRunInTerminal()
Hide the "Run in &terminal" Checkbox
protected voidinit(String text, String value)
Create a dialog that asks for a application to open a given URL(s) with.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
voidsetSaveNewApplications(boolean b)
Set whether a new .desktop file should be created if the user selects an application for which no corresponding .desktop file can be found.
protected voidsetServiceType(ArrayList _urls)
Determine service type from URLs
voidslotClear()
The slot for clearing the edit widget
voidslotDbClick()
voidslotHighlighted(String _name, String _exec)
voidslotOK()
voidslotSelected(String _name, String _exec)
voidslotTerminalToggled(boolean arg1)
voidslotTextChanged()
Stringtext()

Constructor Detail

KOpenWithDlg

protected KOpenWithDlg(Class dummy)

KOpenWithDlg

public KOpenWithDlg(ArrayList urls, QWidget parent)
Create a dialog that asks for a application to open a given URL(s) with.

Parameters: urls the URLs that should be opened. The list can be empty, if the dialog is used to choose an application but not for some particular URLs. parent parent widget

UNKNOWN: Create a dialog that asks for a application to open a given URL(s) with.

KOpenWithDlg

public KOpenWithDlg(ArrayList urls)

KOpenWithDlg

public KOpenWithDlg(ArrayList urls, String text, String value, QWidget parent)
Create a dialog that asks for a application to open a given URL(s) with.

Parameters: urls is the URL that should be opened text appears as a label on top of the entry box. value is the initial value of the line parent parent widget

UNKNOWN: Create a dialog that asks for a application to open a given URL(s) with.

KOpenWithDlg

public KOpenWithDlg(ArrayList urls, String text, String value)

KOpenWithDlg

public KOpenWithDlg(String serviceType, String value, QWidget parent)
Create a dialog to select a service for a given service type. Note that this dialog doesn't apply to URLs.

Parameters: serviceType the service type we want to choose an application for. value is the initial value of the line parent parent widget

UNKNOWN: Create a dialog to select a service for a given service type.

KOpenWithDlg

public KOpenWithDlg(String serviceType, String value)

KOpenWithDlg

public KOpenWithDlg(QWidget parent)
Create a dialog to select an application Note that this dialog doesn't apply to URLs.

Parameters: parent parent widget

UNKNOWN: Create a dialog to select an application Note that this dialog doesn't apply to URLs.

KOpenWithDlg

public KOpenWithDlg()

Method Detail

accept

protected void accept()
Reimplemented from QDialog.accept() to save history of the combobox

UNKNOWN: Reimplemented from QDialog.accept() to save history of the combobox

className

public String className()

dispose

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

finalize

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

hideNoCloseOnExit

public void hideNoCloseOnExit()
Hide the "Do not &close when command exits" Checkbox

UNKNOWN: Hide the "Do not &close when command exits" Checkbox

hideRunInTerminal

public void hideRunInTerminal()
Hide the "Run in &terminal" Checkbox

UNKNOWN: Hide the "Run in &terminal" Checkbox

init

protected void init(String text, String value)
Create a dialog that asks for a application to open a given URL(s) with.

Parameters: text appears as a label on top of the entry box. value is the initial value of the line

UNKNOWN: Create a dialog that asks for a application to open a given URL(s) with.

isDisposed

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

metaObject

public QMetaObject metaObject()

setSaveNewApplications

public void setSaveNewApplications(boolean b)
Set whether a new .desktop file should be created if the user selects an application for which no corresponding .desktop file can be found. Regardless of this setting a new .desktop file may still be created if the user has chosen to remember the file association. The default is false: no .desktop files are created.

UNKNOWN: Set whether a new .

setServiceType

protected void setServiceType(ArrayList _urls)
Determine service type from URLs

UNKNOWN: Determine service type from URLs

slotClear

public void slotClear()
The slot for clearing the edit widget

UNKNOWN: The slot for clearing the edit widget

slotDbClick

public void slotDbClick()

slotHighlighted

public void slotHighlighted(String _name, String _exec)

slotOK

public void slotOK()

slotSelected

public void slotSelected(String _name, String _exec)

slotTerminalToggled

public void slotTerminalToggled(boolean arg1)

slotTextChanged

public void slotTextChanged()

text

public String text()

Returns: the text the user entered

UNKNOWN: