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 );
224 void textChanged(
const TQString& );
229 void returnPressed();
235 void returnPressed(
const TQString& );
255 void urlSelected(
const TQString& );
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;
301 #endif // KURLREQUESTER_H
bool showLocalProtocol() const
Provides a user (and developer) friendly way to select files and directories.
KURLCompletion * completionObject() const
This class is a widget showing a lineedit and a button, which invokes a filedialog.
URL requester with a combo box, for use in Designer.