20 #ifndef KURLREQUESTER_H
21 #define KURLREQUESTER_H
25 #include <keditlistbox.h>
27 #include <kpushbutton.h>
34 class KURLDragPushButton;
59 TQ_PROPERTY( TQString url READ url WRITE setURL )
60 TQ_PROPERTY(
bool showLocalProtocol READ showLocalProtocol WRITE setShowLocalProtocol )
61 TQ_PROPERTY( TQString filter READ filter WRITE setFilter )
62 TQ_PROPERTY( uint mode READ mode WRITE setMode )
74 KURLRequester(
const TQString& url, TQWidget *parent=0,
const char *name=0 );
82 KURLRequester( TQWidget *editWidget, TQWidget *parent,
const char *name=0 );
102 void setShowLocalProtocol(
bool b );
110 void setMode( uint m );
124 void setFilter(
const TQString& filter );
131 TQString filter()
const;
158 KLineEdit * lineEdit()
const;
164 KComboBox * comboBox()
const;
170 KPushButton * button()
const;
188 KEditListBox::CustomEditor customEditor();
197 void setURL(
const TQString& url );
204 void setKURL(
const KURL& url );
210 virtual void setCaption(
const TQString& caption );
260 KURLCompletion * myCompletion;
264 KURLDragPushButton * myButton;
265 bool myShowLocalProt;
274 void slotOpenDialog();
277 void slotUpdateURL();
280 virtual void virtual_hook(
int id,
void* data );
281 bool eventFilter( TQObject *obj, TQEvent *ev );
283 class KURLRequesterPrivate;
284 KURLRequesterPrivate *d;
Provides a user (and developer) friendly way to select files and directories.
URL requester with a combo box, for use in Designer.
This class is a widget showing a lineedit and a button, which invokes a filedialog.
void textChanged(const TQString &)
Emitted when the text in the lineedit changes.
void urlSelected(const TQString &)
Emitted when the user changed the URL via the file dialog.
void returnPressed(const TQString &)
Emitted when return or enter was pressed in the lineedit.
void returnPressed()
Emitted when return or enter was pressed in the lineedit.
void openFileDialog(KURLRequester *)
Emitted before the filedialog is going to open.
KURLCompletion * completionObject() const
bool showLocalProtocol() const