class KOpenWithDlg

"Open with" dialog box. More...

Definition#include <kopenwith.h>
InheritsQDialog
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Protected Methods

Protected Slots

Protected Members


Detailed Description

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

 KOpenWithDlg ( const KURL::List& urls, QWidget *parent = 0L )

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

Parameters:
urlsthe 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.
parentparent widget

 KOpenWithDlg ( const KURL::List& urls, const QString& text, const QString& value, QWidget *parent = 0L )

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

Parameters:
urlsis the URL that should be opened
textappears as a label on top of the entry box.
valueis the initial value of the line
parentparent widget

 KOpenWithDlg ( const QString& serviceType, const QString& value, QWidget *parent = 0L )

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

Parameters:
serviceTypethe service type we want to choose an application for.
valueis the initial value of the line
parentparent widget

KOpenWithDlg ()

Destructor

QString  text ()

Returns: the text the user entered

KService::Ptr  service ()

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

void  slotClear ()

[slot]

The slot for clearing the edit widget

void  slotSelected ( const QString&_name, const QString& _exec )

[slot]

void  slotHighlighted ( const QString& _name, const QString& _exec )

[slot]

void  slotOK ()

[slot]

void  accept ()

[protected virtual slot]

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

void  setServiceType ( const KURL::List& _urls )

[protected]

Determine service type from URLs

void  init ( const QString& text, const QString& value )

[protected]

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

Parameters:
textappears as a label on top of the entry box.
valueis the initial value of the line

KURLRequester * edit

[protected]

QString m_command

[protected]

KApplicationTree* m_pTree

[protected]

QLabel * label

[protected]

QString qName

[protected]

QString qServiceType

[protected]

bool haveApp

[protected]

QCheckBox * terminal

[protected]

QCheckBox * remember

[protected]

QPushButton * ok

[protected]

QPushButton * clear

[protected]

QPushButton * cancel

[protected]

KService::Ptr m_pService

[protected]

KOpenWithDlgPrivate * d

[protected]