# class KOpenWithDialog

###

Module | kio
Namespace |
Class | KOpenWithDialog
Inherits | KDialog

"Open with" dialog box.

Author David Faure <faure@kde.org>

### methods

- KOpenWithDialog (urls, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  urls | KUrl.List |
  parent | QWidget | 0

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

  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

- KOpenWithDialog (urls, text, value, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  urls | KUrl.List |
  text | QString |
  value | QString |
  parent | QWidget | 0

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

  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

- KOpenWithDialog (mimeType, value, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  mimeType | QString |
  value | QString |
  parent | QWidget | 0

  Create a dialog to select a service for a given mimetype. Note that this dialog doesn't apply to URLs.

  mimeType - the mime type we want to choose an application for.

  value - is the initial value of the line

  parent - parent widget

- KOpenWithDialog (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

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

  parent - parent widget

- KOpenWithDialog (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KOpenWithDialog |

- KOpenWithDialog (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KUrl.List |
  a1 | QWidget | 0

- accept ( )

  returns Nothing

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

- hideNoCloseOnExit ( )

  returns Nothing

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

- hideRunInTerminal ( )

  returns Nothing

  Hide the "Run in &terminal" Checkbox

- service ( )

  returns KService.Ptr

  Returns the chosen service in the application tree Can be null, if the user typed some text and didn't select a service.

- setSaveNewApplications (b)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  b | bool |

  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.

- slotHighlighted (_name, _exec)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  _name | QString |
  _exec | QString |

- slotSelected (_name, _exec)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  _name | QString |
  _exec | QString |

- slotTerminalToggled (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- slotTextChanged ( )

  returns Nothing

- text ( )

  returns QString

  Returns the text the user entered