20 #ifndef __open_with_h__
21 #define __open_with_h__
29 class TDEApplicationTree;
37 class KOpenWithDlgPrivate;
59 KOpenWithDlg(
const KURL::List& urls, TQWidget *parent = 0L );
70 KOpenWithDlg(
const KURL::List& urls,
const TQString& text,
const TQString& value,
71 TQWidget *parent = 0L );
81 KOpenWithDlg(
const TQString& serviceType,
const TQString& value,
82 TQWidget *parent = 0L );
101 TQString text()
const;
105 void hideNoCloseOnExit();
109 void hideRunInTerminal();
114 KService::Ptr
service()
const {
return m_pService; }
125 void setSaveNewApplications(
bool b);
132 void slotSelected(
const TQString&_name,
const TQString& _exec,
const TQString& _desktopPath );
133 void slotHighlighted(
const TQString& _name,
const TQString& _exec,
const TQString& _desktopPath );
134 void slotTextChanged();
135 void slotTerminalToggled(
bool);
143 virtual void accept();
150 void setServiceType(
const KURL::List& _urls );
159 void init(
const TQString& text,
const TQString& value );
164 TDEApplicationTree* m_pTree;
167 TQString qName, qServiceType;
168 bool m_terminaldirty;
169 TQCheckBox *terminal, *remember, *nocloseonexit;
170 TQPushButton *UNUSED;
171 TQPushButton *UNUSED2;
173 KService::Ptr m_pService;
175 KOpenWithDlgPrivate *d;
180 #ifndef KDE_NO_COMPAT
202 virtual bool displayOpenWithDialog(
const KURL::List& urls );
This class handles the displayOpenWithDialog call, made by KRun when it has no idea what to do with a...
KService::Ptr service() const
This class is a widget showing a lineedit and a button, which invokes a filedialog.