19 #ifndef KURLCOMBOBOX_H
20 #define KURLCOMBOBOX_H
23 #include <tqptrlist.h>
26 #include <tqstringlist.h>
28 #include <kcombobox.h>
44 TQ_PROPERTY(TQStringList urls READ urls WRITE setURLs DESIGNABLE
true)
45 TQ_PROPERTY(
int maxItems READ maxItems WRITE setMaxItems DESIGNABLE
true)
51 enum Mode { Files = -1, Directories = 1, Both = 0 };
76 KURLComboBox( Mode mode, TQWidget *parent=0,
const char *name=0 );
77 KURLComboBox( Mode mode,
bool rw, TQWidget *parent=0,
const char *name=0 );
95 void setURL(
const KURL& url );
104 void setURLs( TQStringList urls );
113 void setURLs( TQStringList urls, OverLoadResolving
remove );
125 TQStringList urls()
const;
131 void setMaxItems(
int );
147 void addDefaultURL(
const KURL& url,
const TQString& text = TQString::null );
157 void addDefaultURL(
const KURL& url,
const TQPixmap& pix,
158 const TQString& text = TQString::null );
171 void removeURL(
const KURL& url,
bool checkDefaultURLs =
true );
179 void urlActivated(
const KURL& url );
183 void slotActivated(
int );
187 struct _KURLComboItem {
192 typedef _KURLComboItem KURLComboItem;
193 TQPtrList<KURLComboItem> itemList;
194 TQPtrList<KURLComboItem> defaultList;
195 TQMap<int,const KURLComboItem*> itemMapper;
197 void init( Mode mode );
198 void insertURLItem(
const KURLComboItem * );
204 TQPixmap getPixmap(
const KURL& url )
const;
211 void updateItem(
const KURLComboItem *item,
int index,
const TQPixmap& pix);
224 class KURLComboBoxPrivate;
225 KURLComboBoxPrivate *d;
229 #endif // KURLCOMBOBOX_H
This combobox shows a number of recent URLs/directories, as well as some default directories.
OverLoadResolving
This Enumeration is used in setURL() to determine which items will be removed when the given list is ...
Mode
This enum describes which kind of items is shown in the combo box.