#include <kopenwith.h>
Inherits TQDialog.
"Open with" dialog box.
Used automatically by KRun, and used by libkonq.
- Author
- David Faure faure.nosp@m.@kde.nosp@m..org
Definition at line 46 of file kopenwith.h.
◆ KOpenWithDlg() [1/4]
KOpenWithDlg::KOpenWithDlg |
( |
const KURL::List & |
urls, |
|
|
TQWidget * |
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 321 of file kopenwith.cpp.
◆ KOpenWithDlg() [2/4]
KOpenWithDlg::KOpenWithDlg |
( |
const KURL::List & |
urls, |
|
|
const TQString & |
text, |
|
|
const TQString & |
value, |
|
|
TQWidget * |
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 339 of file kopenwith.cpp.
◆ KOpenWithDlg() [3/4]
KOpenWithDlg::KOpenWithDlg |
( |
const TQString & |
serviceType, |
|
|
const TQString & |
value, |
|
|
TQWidget * |
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 351 of file kopenwith.cpp.
◆ KOpenWithDlg() [4/4]
KOpenWithDlg::KOpenWithDlg |
( |
TQWidget * |
parent = 0L | ) |
|
Create a dialog to select an application Note that this dialog doesn't apply to URLs.
- Parameters
-
- Since
- 3.1
Definition at line 365 of file kopenwith.cpp.
◆ ~KOpenWithDlg()
KOpenWithDlg::~KOpenWithDlg |
( |
| ) |
|
◆ accept
void KOpenWithDlg::accept |
( |
| ) |
|
|
protectedvirtualslot |
Reimplemented from TQDialog::accept() to save history of the combobox.
Definition at line 819 of file kopenwith.cpp.
◆ hideNoCloseOnExit()
void KOpenWithDlg::hideNoCloseOnExit |
( |
| ) |
|
Hide the "Do not &close when command exits" Checkbox.
Definition at line 806 of file kopenwith.cpp.
◆ hideRunInTerminal()
void KOpenWithDlg::hideRunInTerminal |
( |
| ) |
|
Hide the "Run in &terminal" Checkbox.
Definition at line 813 of file kopenwith.cpp.
◆ init()
void KOpenWithDlg::init |
( |
const TQString & |
text, |
|
|
const TQString & |
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 |
Definition at line 388 of file kopenwith.cpp.
◆ service()
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.
◆ setSaveNewApplications()
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 608 of file kopenwith.cpp.
◆ setServiceType()
void KOpenWithDlg::setServiceType |
( |
const KURL::List & |
_urls | ) |
|
|
protected |
◆ slotClear
void KOpenWithDlg::slotClear |
( |
| ) |
|
|
slot |
The slot for clearing the edit widget.
Definition at line 539 of file kopenwith.cpp.
◆ slotDbClick
void KOpenWithDlg::slotDbClick |
( |
| ) |
|
|
slot |
◆ slotHighlighted
void KOpenWithDlg::slotHighlighted |
( |
const TQString & |
_name, |
|
|
const TQString & |
_exec, |
|
|
const TQString & |
_desktopPath |
|
) |
| |
|
slot |
◆ slotOK
void KOpenWithDlg::slotOK |
( |
| ) |
|
|
slot |
◆ slotSelected
void KOpenWithDlg::slotSelected |
( |
const TQString & |
_name, |
|
|
const TQString & |
_exec, |
|
|
const TQString & |
_desktopPath |
|
) |
| |
|
slot |
◆ slotTerminalToggled
void KOpenWithDlg::slotTerminalToggled |
( |
bool |
| ) |
|
|
slot |
◆ slotTextChanged
void KOpenWithDlg::slotTextChanged |
( |
| ) |
|
|
slot |
◆ text()
TQString KOpenWithDlg::text |
( |
| ) |
const |
KOpenWithDlgPrivate* KOpenWithDlg::d |
|
protected |
◆ edit
◆ label
TQLabel* KOpenWithDlg::label |
|
protected |
◆ m_command
TQString KOpenWithDlg::m_command |
|
protected |
◆ m_pService
KService::Ptr KOpenWithDlg::m_pService |
|
protected |
◆ m_pTree
TDEApplicationTree* KOpenWithDlg::m_pTree |
|
protected |
◆ m_terminaldirty
bool KOpenWithDlg::m_terminaldirty |
|
protected |
◆ nocloseonexit
TQCheckBox * KOpenWithDlg::nocloseonexit |
|
protected |
◆ qName
TQString KOpenWithDlg::qName |
|
protected |
◆ qServiceType
TQString KOpenWithDlg::qServiceType |
|
protected |
◆ remember
TQCheckBox * KOpenWithDlg::remember |
|
protected |
◆ terminal
TQCheckBox* KOpenWithDlg::terminal |
|
protected |
◆ UNUSED
TQPushButton* KOpenWithDlg::UNUSED |
|
protected |
◆ UNUSED2
TQPushButton* KOpenWithDlg::UNUSED2 |
|
protected |
The documentation for this class was generated from the following files: