Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KOpenWithDlg Class Reference

#include <kopenwith.h>

List of all members.

Public Slots

void slotClear ()

Public Methods

 KOpenWithDlg (const KURL::List &urls, QWidget *parent=0L)
 KOpenWithDlg (const KURL::List &urls, const QString &text, const QString &value, QWidget *parent=0L)
 KOpenWithDlg (const QString &serviceType, const QString &value, QWidget *parent=0L)
 KOpenWithDlg (QWidget *parent=0L)
 ~KOpenWithDlg ()
QString text () const
KService::Ptr service () const

Protected Slots

virtual void accept ()

Protected Methods

void setServiceType (const KURL::List &_urls)
void init (const QString &text, const QString &value)


Detailed Description

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

Author:
David Faure <faure@kde.org>

Definition at line 47 of file kopenwith.h.


Constructor & Destructor Documentation

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

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

KOpenWithDlg::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:
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

KOpenWithDlg::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:
serviceType  the service type we want to choose an application for.
value  is the initial value of the line
parent  parent widget

KOpenWithDlg::KOpenWithDlg QWidget *    parent = 0L
 

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

Parameters:
parent  parent widget
Since:
3.1

KOpenWithDlg::~KOpenWithDlg  
 

Destructor


Member Function Documentation

virtual void KOpenWithDlg::accept   [protected, virtual, slot]
 

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

void KOpenWithDlg::init const QString &    text,
const QString &    value
[protected]
 

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

KService::Ptr KOpenWithDlg::service   const [inline]
 

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

Definition at line 105 of file kopenwith.h.

void KOpenWithDlg::setServiceType const KURL::List   _urls [protected]
 

Determine service type from URLs

void KOpenWithDlg::slotClear   [slot]
 

The slot for clearing the edit widget

QString KOpenWithDlg::text  
 

Returns:
the text the user entered


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:19 2003 for kdelibs by doxygen1.2.18