class KOpenWithDlg

"Open with" dialog box. More...

Definition#include <kopenwith.h>
InheritsQDialog (qt) [public ]
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 )

KOpenWithDlg

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 )

KOpenWithDlg

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 )

KOpenWithDlg

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 ()

~KOpenWithDlg

Destructor

QString  text ()

text

Returns: the text the user entered

KService::Ptr  service ()

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 ()

slotClear

[slot]

The slot for clearing the edit widget

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

slotSelected

[slot]

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

slotHighlighted

[slot]

void  slotTextChanged ()

slotTextChanged

[slot]

void  slotTerminalToggled (bool)

slotTerminalToggled

[slot]

void  slotDbClick ()

slotDbClick

[slot]

void  slotOK ()

slotOK

[slot]

void  accept ()

accept

[protected slots virtual slot]

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

Reimplemented from QDialog.

void  setServiceType ( const KURL::List& _urls )

setServiceType

[protected]

Determine service type from URLs

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

init

[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

edit

[protected]

QString m_command

m_command

[protected]

KApplicationTree* m_pTree

m_pTree

[protected]

QLabel * label

label

[protected]

QString qName

qName

[protected]

QString qServiceType

qServiceType

[protected]

bool m_terminaldirty

m_terminaldirty

[protected]

QCheckBox * terminal

terminal

[protected]

QCheckBox * remember

remember

[protected]

QPushButton * ok

ok

[protected]

QPushButton * clear

clear

[protected]

QPushButton * cancel

cancel

[protected]

KService::Ptr m_pService

m_pService

[protected]

KOpenWithDlgPrivate * d

d

[protected]