KOpenWithDlg Class Reference
"Open with" dialog box. More...
#include <kopenwith.h>
Inheritance diagram for KOpenWithDlg:


Public Slots | |
void | slotClear () |
void | slotSelected (const QString &_name, const QString &_exec) |
void | slotHighlighted (const QString &_name, const QString &_exec) |
void | slotTextChanged () |
void | slotTerminalToggled (bool) |
void | slotDbClick () |
void | slotOK () |
Public Member Functions | |
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 |
void | hideNoCloseOnExit () |
void | hideRunInTerminal () |
KService::Ptr | service () const |
void | setSaveNewApplications (bool b) |
void | saveInMDKMenuStructure (const QString &filename, const QString &menuElement) |
Protected Slots | |
virtual void | accept () |
Protected Member Functions | |
void | setServiceType (const KURL::List &_urls) |
void | init (const QString &text, const QString &value) |
QString | pathToCopyEntry (QString path, QString menuId) |
Protected Attributes | |
KURLRequester * | edit |
QString | m_command |
KApplicationTree * | m_pTree |
QLabel * | label |
QString | qName |
QString | qServiceType |
bool | m_terminaldirty |
QCheckBox * | terminal |
QCheckBox * | remember |
QCheckBox * | nocloseonexit |
QPushButton * | UNUSED |
QPushButton * | UNUSED2 |
KService::Ptr | m_pService |
KOpenWithDlgPrivate * | d |
Detailed Description
"Open with" dialog box.Used automatically by KRun, and used by libkonq.
- Author:
- David Faure <faure@kde.org>
Definition at line 46 of file kopenwith.h.
Constructor & Destructor Documentation
|
Create a dialog that asks for a application to open a given URL(s) with.
Definition at line 340 of file kopenwith.cpp. References QString::arg(), QValueList< KURL >::count(), QValueList< KURL >::first(), init(), KOpenWithDlg(), setServiceType(), and text(). Referenced by KOpenWithDlg(). |
|
Create a dialog that asks for a application to open a given URL(s) with.
Definition at line 358 of file kopenwith.cpp. References QValueList< KURL >::count(), QValueList< KURL >::first(), init(), KOpenWithDlg(), and setServiceType(). |
|
Create a dialog to select a service for a given service type. Note that this dialog doesn't apply to URLs.
Definition at line 370 of file kopenwith.cpp. References QString::arg(), init(), KOpenWithDlg(), and text(). |
|
Create a dialog to select an application Note that this dialog doesn't apply to URLs.
Definition at line 384 of file kopenwith.cpp. References init(), KOpenWithDlg(), and text(). |
|
Destructor.
Definition at line 550 of file kopenwith.cpp. |
Member Function Documentation
|
Definition at line 879 of file kopenwith.cpp. References QString::isEmpty(), and KURLRequester::url. Referenced by KRun::displayOpenWithDialog(), KFileOpenWithHandler::displayOpenWithDialog(), and KOpenWithDlg(). |
|
Hide the "Do not &close when command exits" Checkbox.
Definition at line 887 of file kopenwith.cpp. References QCheckBox::setChecked(). Referenced by hideRunInTerminal(). |
|
Hide the "Run in &terminal" Checkbox.
Definition at line 894 of file kopenwith.cpp. References hideNoCloseOnExit(). |
|
Definition at line 114 of file kopenwith.h. Referenced by KRun::displayOpenWithDialog(), and KFileOpenWithHandler::displayOpenWithDialog(). |
|
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.
Definition at line 620 of file kopenwith.cpp. References setSaveNewApplications(). Referenced by setSaveNewApplications(). |
|
The slot for clearing the edit widget.
Definition at line 558 of file kopenwith.cpp. References KURLRequester::setURL(). Referenced by init(). |
|
Reimplemented from QDialog::accept() to save history of the combobox.
Reimplemented from QDialog. Definition at line 900 of file kopenwith.cpp. References QDialog::accept(), KHistoryCombo::addToHistory(), KURLRequester::comboBox(), KCompletionBase::completionMode(), KGlobal::config(), KHistoryCombo::historyItems, KConfigBase::sync(), KURLRequester::url, and KConfigBase::writeEntry(). |
|
Determine service type from URLs.
Definition at line 395 of file kopenwith.cpp. References QValueList< KURL >::count(), QValueList< KURL >::first(), and setServiceType(). Referenced by KOpenWithDlg(), and setServiceType(). |
|
Create a dialog that asks for a application to open a given URL(s) with.
Definition at line 407 of file kopenwith.cpp. References KButtonBox::addButton(), QBoxLayout::addItem(), QBoxLayout::addLayout(), KButtonBox::addStretch(), QBoxLayout::addWidget(), KURLRequester::button(), KURLRequester::comboBox(), KGlobal::config(), init(), QString::isNull(), KButtonBox::layout(), KURLRequester::lineEdit(), KConfigBase::readListEntry(), KConfigBase::readNumEntry(), KConfigBase::readPathEntry(), QDialog::reject(), KCompletionBase::setAutoDeleteCompletionObject(), QCheckBox::setChecked(), KCompletionBase::setCompletionMode(), KCompletionBase::setCompletionObject(), QComboBox::setDuplicatesEnabled(), KHistoryCombo::setHistoryItems(), QToolButton::setIconSet(), QComboBox::setMaxCount(), KLineEdit::setReadOnly(), KURLRequester::setURL(), and slotClear(). Referenced by init(), and KOpenWithDlg(). |
The documentation for this class was generated from the following files: