kio
KOpenWithDlg Class Reference
"Open with" dialog box. More...
#include <kopenwith.h>
Public Slots | |
void | slotClear () |
void | slotDbClick () |
void | slotHighlighted (const QString &_name, const QString &_exec) |
void | slotOK () |
void | slotSelected (const QString &_name, const QString &_exec) |
void | slotTerminalToggled (bool) |
void | slotTextChanged () |
Public Member Functions | |
void | hideNoCloseOnExit () |
void | hideRunInTerminal () |
KOpenWithDlg (QWidget *parent=0L) | |
KOpenWithDlg (const QString &serviceType, const QString &value, QWidget *parent=0L) | |
KOpenWithDlg (const KURL::List &urls, const QString &text, const QString &value, QWidget *parent=0L) | |
KOpenWithDlg (const KURL::List &urls, QWidget *parent=0L) | |
KService::Ptr | service () const |
void | setSaveNewApplications (bool b) |
QString | text () const |
~KOpenWithDlg () | |
Protected Slots | |
virtual void | accept () |
Protected Member Functions | |
void | init (const QString &text, const QString &value) |
void | setServiceType (const KURL::List &_urls) |
Protected Attributes | |
KOpenWithDlgPrivate * | d |
KURLRequester * | edit |
QLabel * | label |
QString | m_command |
KService::Ptr | m_pService |
KApplicationTree * | m_pTree |
bool | m_terminaldirty |
QCheckBox * | nocloseonexit |
QString | qName |
QString | qServiceType |
QCheckBox * | remember |
QCheckBox * | terminal |
QPushButton * | UNUSED |
QPushButton * | UNUSED2 |
Detailed Description
"Open with" dialog box.Used automatically by KRun, and used by libkonq.
Definition at line 46 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
Definition at line 319 of file kopenwith.cpp.
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
Definition at line 337 of file kopenwith.cpp.
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
Definition at line 349 of file kopenwith.cpp.
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
Definition at line 363 of file kopenwith.cpp.
KOpenWithDlg::~KOpenWithDlg | ( | ) |
Member Function Documentation
void KOpenWithDlg::accept | ( | ) | [protected, virtual, slot] |
Reimplemented from QDialog::accept() to save history of the combobox.
Reimplemented from QDialog.
Definition at line 810 of file kopenwith.cpp.
void KOpenWithDlg::hideNoCloseOnExit | ( | ) |
void KOpenWithDlg::hideRunInTerminal | ( | ) |
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
Definition at line 386 of file kopenwith.cpp.
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 114 of file kopenwith.h.
void KOpenWithDlg::setSaveNewApplications | ( | bool | b | ) |
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.
- Since:
- 3.2
Definition at line 599 of file kopenwith.cpp.
void KOpenWithDlg::setServiceType | ( | const KURL::List & | _urls | ) | [protected] |
void KOpenWithDlg::slotClear | ( | ) | [slot] |
void KOpenWithDlg::slotDbClick | ( | ) | [slot] |
Definition at line 593 of file kopenwith.cpp.
Definition at line 557 of file kopenwith.cpp.
void KOpenWithDlg::slotOK | ( | ) | [slot] |
Definition at line 604 of file kopenwith.cpp.
Definition at line 546 of file kopenwith.cpp.
void KOpenWithDlg::slotTerminalToggled | ( | bool | ) | [slot] |
Definition at line 584 of file kopenwith.cpp.
void KOpenWithDlg::slotTextChanged | ( | ) | [slot] |
Definition at line 574 of file kopenwith.cpp.
QString KOpenWithDlg::text | ( | ) | const |
Member Data Documentation
KOpenWithDlgPrivate* KOpenWithDlg::d [protected] |
Definition at line 175 of file kopenwith.h.
KURLRequester* KOpenWithDlg::edit [protected] |
Definition at line 161 of file kopenwith.h.
QLabel* KOpenWithDlg::label [protected] |
Definition at line 165 of file kopenwith.h.
QString KOpenWithDlg::m_command [protected] |
Definition at line 162 of file kopenwith.h.
KService::Ptr KOpenWithDlg::m_pService [protected] |
Definition at line 173 of file kopenwith.h.
KApplicationTree* KOpenWithDlg::m_pTree [protected] |
Definition at line 164 of file kopenwith.h.
bool KOpenWithDlg::m_terminaldirty [protected] |
Definition at line 168 of file kopenwith.h.
QCheckBox * KOpenWithDlg::nocloseonexit [protected] |
Definition at line 169 of file kopenwith.h.
QString KOpenWithDlg::qName [protected] |
Definition at line 167 of file kopenwith.h.
QString KOpenWithDlg::qServiceType [protected] |
Definition at line 167 of file kopenwith.h.
QCheckBox * KOpenWithDlg::remember [protected] |
Definition at line 169 of file kopenwith.h.
QCheckBox* KOpenWithDlg::terminal [protected] |
Definition at line 169 of file kopenwith.h.
QPushButton* KOpenWithDlg::UNUSED [protected] |
Definition at line 170 of file kopenwith.h.
QPushButton* KOpenWithDlg::UNUSED2 [protected] |
Definition at line 171 of file kopenwith.h.
The documentation for this class was generated from the following files: