.TH "KOpenWithDlg" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KOpenWithDlg \- 'Open with' dialog box.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kopenwith.h>\fP
.PP
Inherits \fBQDialog\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBslotClear\fP ()"
.br
.ti -1c
.RI "void \fBslotSelected\fP (const \fBQString\fP &_name, const \fBQString\fP &_exec)"
.br
.ti -1c
.RI "void \fBslotHighlighted\fP (const \fBQString\fP &_name, const \fBQString\fP &_exec)"
.br
.ti -1c
.RI "void \fBslotTextChanged\fP ()"
.br
.ti -1c
.RI "void \fBslotTerminalToggled\fP (bool)"
.br
.ti -1c
.RI "void \fBslotDbClick\fP ()"
.br
.ti -1c
.RI "void \fBslotOK\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKOpenWithDlg\fP (const \fBKURL::List\fP &urls, \fBQWidget\fP *parent=0L)"
.br
.ti -1c
.RI "\fBKOpenWithDlg\fP (const \fBKURL::List\fP &urls, const \fBQString\fP &text, const \fBQString\fP &value, \fBQWidget\fP *parent=0L)"
.br
.ti -1c
.RI "\fBKOpenWithDlg\fP (const \fBQString\fP &serviceType, const \fBQString\fP &value, \fBQWidget\fP *parent=0L)"
.br
.ti -1c
.RI "\fBKOpenWithDlg\fP (\fBQWidget\fP *parent=0L)"
.br
.ti -1c
.RI "\fB~KOpenWithDlg\fP ()"
.br
.ti -1c
.RI "\fBQString\fP \fBtext\fP () const "
.br
.ti -1c
.RI "void \fBhideNoCloseOnExit\fP ()"
.br
.ti -1c
.RI "void \fBhideRunInTerminal\fP ()"
.br
.ti -1c
.RI "\fBKService::Ptr\fP \fBservice\fP () const "
.br
.ti -1c
.RI "void \fBsetSaveNewApplications\fP (bool b)"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "virtual void \fBaccept\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBsetServiceType\fP (const \fBKURL::List\fP &_urls)"
.br
.ti -1c
.RI "void \fBinit\fP (const \fBQString\fP &text, const \fBQString\fP &value)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKURLRequester\fP * \fBedit\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBm_command\fP"
.br
.ti -1c
.RI "KApplicationTree * \fBm_pTree\fP"
.br
.ti -1c
.RI "\fBQLabel\fP * \fBlabel\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBqName\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBqServiceType\fP"
.br
.ti -1c
.RI "bool \fBm_terminaldirty\fP"
.br
.ti -1c
.RI "\fBQCheckBox\fP * \fBterminal\fP"
.br
.ti -1c
.RI "\fBQCheckBox\fP * \fBremember\fP"
.br
.ti -1c
.RI "\fBQCheckBox\fP * \fBnocloseonexit\fP"
.br
.ti -1c
.RI "\fBQPushButton\fP * \fBUNUSED\fP"
.br
.ti -1c
.RI "\fBQPushButton\fP * \fBUNUSED2\fP"
.br
.ti -1c
.RI "\fBKService::Ptr\fP \fBm_pService\fP"
.br
.ti -1c
.RI "KOpenWithDlgPrivate * \fBd\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
'Open with' dialog box. 

Used automatically by \fBKRun\fP, and used by libkonq.
.PP
\fBAuthor:\fP
.RS 4
David Faure <faure@kde.org> 
.RE
.PP

.PP
Definition at line 46 of file kopenwith.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KOpenWithDlg::KOpenWithDlg (const \fBKURL::List\fP & urls, \fBQWidget\fP * parent = \fC0L\fP)"
.PP
Create a dialog that asks for a application to open a given URL(s) with. 
.PP
\fBParameters:\fP
.RS 4
\fIurls\fP 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. 
.br
\fIparent\fP parent widget 
.RE
.PP

.PP
Definition at line 340 of file kopenwith.cpp.
.PP
References QString::arg(), init(), and setServiceType().
.SS "KOpenWithDlg::KOpenWithDlg (const \fBKURL::List\fP & urls, const \fBQString\fP & text, const \fBQString\fP & value, \fBQWidget\fP * parent = \fC0L\fP)"
.PP
Create a dialog that asks for a application to open a given URL(s) with. 
.PP
\fBParameters:\fP
.RS 4
\fIurls\fP is the URL that should be opened 
.br
\fItext\fP appears as a label on top of the entry box. 
.br
\fIvalue\fP is the initial value of the line 
.br
\fIparent\fP parent widget 
.RE
.PP

.PP
Definition at line 358 of file kopenwith.cpp.
.PP
References KStringHandler::csqueeze(), QString::fromLatin1(), init(), and setServiceType().
.SS "KOpenWithDlg::KOpenWithDlg (const \fBQString\fP & serviceType, const \fBQString\fP & value, \fBQWidget\fP * parent = \fC0L\fP)"
.PP
Create a dialog to select a service for a given service type. 
.PP
Note that this dialog doesn't apply to URLs.
.PP
\fBParameters:\fP
.RS 4
\fIserviceType\fP the service type we want to choose an application for. 
.br
\fIvalue\fP is the initial value of the line 
.br
\fIparent\fP parent widget 
.RE
.PP

.PP
Definition at line 370 of file kopenwith.cpp.
.PP
References QString::arg(), and init().
.SS "KOpenWithDlg::KOpenWithDlg (\fBQWidget\fP * parent = \fC0L\fP)"
.PP
Create a dialog to select an application Note that this dialog doesn't apply to URLs. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP parent widget 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 384 of file kopenwith.cpp.
.PP
References init().
.SS "KOpenWithDlg::~\fBKOpenWithDlg\fP ()"
.PP
Destructor. 
.PP
Definition at line 550 of file kopenwith.cpp.
.SH "Member Function Documentation"
.PP 
.SS "\fBQString\fP KOpenWithDlg::text () const"
.PP
\fBReturns:\fP
.RS 4
the text the user entered 
.RE
.PP

.PP
Definition at line 807 of file kopenwith.cpp.
.PP
References QString::isEmpty(), and KURLRequester::url.
.PP
Referenced by KRun::displayOpenWithDialog(), and KFileOpenWithHandler::displayOpenWithDialog().
.SS "void KOpenWithDlg::hideNoCloseOnExit ()"
.PP
Hide the 'Do not &close when command exits' Checkbox. 
.PP
Definition at line 815 of file kopenwith.cpp.
.PP
References QCheckBox::setChecked().
.PP
Referenced by hideRunInTerminal().
.SS "void KOpenWithDlg::hideRunInTerminal ()"
.PP
Hide the 'Run in &terminal' Checkbox. 
.PP
Definition at line 822 of file kopenwith.cpp.
.PP
References hideNoCloseOnExit().
.SS "\fBKService::Ptr\fP KOpenWithDlg::service () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the chosen service in the application tree Can be null, if the user typed some text and didn't select a service. 
.RE
.PP

.PP
Definition at line 114 of file kopenwith.h.
.PP
Referenced by KRun::displayOpenWithDialog(), and KFileOpenWithHandler::displayOpenWithDialog().
.SS "void KOpenWithDlg::setSaveNewApplications (bool b)"
.PP
Set whether a new .desktop file should be created if the user selects an application for which no corresponding .desktop file can be found. 
.PP
Regardless of this setting a new .desktop file may still be created if the user has chosen to remember the file association.
.PP
The default is false: no .desktop files are created. 
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 620 of file kopenwith.cpp.
.SS "void KOpenWithDlg::slotClear ()\fC [slot]\fP"
.PP
The slot for clearing the edit widget. 
.PP
Definition at line 558 of file kopenwith.cpp.
.PP
References KURLRequester::setURL().
.PP
Referenced by init().
.SS "void KOpenWithDlg::accept ()\fC [protected, virtual, slot]\fP"
.PP
Reimplemented from \fBQDialog::accept()\fP to save history of the combobox. 
.PP
Reimplemented from \fBQDialog\fP.
.PP
Definition at line 828 of file kopenwith.cpp.
.PP
References QDialog::accept(), KHistoryCombo::addToHistory(), KURLRequester::comboBox(), KCompletionBase::completionMode(), KGlobal::config(), KHistoryCombo::historyItems, KConfigBase::sync(), KURLRequester::url, and KConfigBase::writeEntry().
.SS "void KOpenWithDlg::setServiceType (const \fBKURL::List\fP & _urls)\fC [protected]\fP"
.PP
Determine service type from URLs. 
.PP
Definition at line 395 of file kopenwith.cpp.
.PP
References KMimeType::findByURL().
.PP
Referenced by KOpenWithDlg().
.SS "void KOpenWithDlg::init (const \fBQString\fP & text, const \fBQString\fP & value)\fC [protected]\fP"
.PP
Create a dialog that asks for a application to open a given URL(s) with. 
.PP
\fBParameters:\fP
.RS 4
\fItext\fP appears as a label on top of the entry box. 
.br
\fIvalue\fP is the initial value of the line 
.RE
.PP

.PP
Definition at line 407 of file kopenwith.cpp.
.PP
References QWhatsThis::add(), QToolTip::add(), KButtonBox::addButton(), QBoxLayout::addItem(), QBoxLayout::addLayout(), KButtonBox::addStretch(), QBoxLayout::addWidget(), KURLRequester::button(), KURLRequester::comboBox(), KGlobal::config(), QString::isNull(), KButtonBox::layout(), KURLRequester::lineEdit(), KConfigBase::readListEntry(), KConfigBase::readNumEntry(), KConfigBase::readPathEntry(), QDialog::reject(), KCompletionBase::setAutoDeleteCompletionObject(), QCheckBox::setChecked(), KCompletionBase::setCompletionMode(), KCompletionBase::setCompletionObject(), QPushButton::setDefault(), QComboBox::setDuplicatesEnabled(), KHistoryCombo::setHistoryItems(), QToolButton::setIconSet(), QComboBox::setMaxCount(), KLineEdit::setReadOnly(), KURLRequester::setURL(), and slotClear().
.PP
Referenced by KOpenWithDlg().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
