Diffstat (limited to 'microkde/kio/kfile/kurlrequester.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kio/kfile/kurlrequester.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/microkde/kio/kfile/kurlrequester.h b/microkde/kio/kfile/kurlrequester.h index 3253dd5..faa3326 100644 --- a/microkde/kio/kfile/kurlrequester.h +++ b/microkde/kio/kfile/kurlrequester.h | |||
@@ -84,48 +84,49 @@ public: | |||
84 | ~KURLRequester(); | 84 | ~KURLRequester(); |
85 | 85 | ||
86 | /** | 86 | /** |
87 | * @returns the current url in the lineedit. May be malformed, if the user | 87 | * @returns the current url in the lineedit. May be malformed, if the user |
88 | * entered something weird. ~user or environment variables are substituted | 88 | * entered something weird. ~user or environment variables are substituted |
89 | * for local files. | 89 | * for local files. |
90 | */ | 90 | */ |
91 | QString url() const; | 91 | QString url() const; |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * Enables/disables showing file:/ in the lineedit, when a local file has | 94 | * Enables/disables showing file:/ in the lineedit, when a local file has |
95 | * been selected in the filedialog or was set via @ref setURL(). | 95 | * been selected in the filedialog or was set via @ref setURL(). |
96 | * Default is false, not showing file:/ | 96 | * Default is false, not showing file:/ |
97 | * @see #showLocalProtocol | 97 | * @see #showLocalProtocol |
98 | */ | 98 | */ |
99 | void setShowLocalProtocol( bool b ); | 99 | void setShowLocalProtocol( bool b ); |
100 | 100 | ||
101 | /** | 101 | /** |
102 | * Sets the mode of the file dialog. | 102 | * Sets the mode of the file dialog. |
103 | * Note: you can only select one file with the filedialog, | 103 | * Note: you can only select one file with the filedialog, |
104 | * so KFile::Files doesn't make much sense. | 104 | * so KFile::Files doesn't make much sense. |
105 | * @see KFileDialog::setMode() | 105 | * @see KFileDialog::setMode() |
106 | */ | 106 | */ |
107 | void setMode( unsigned int m ); | 107 | void setMode( unsigned int m ); |
108 | void setPathIsDir( ) {mPathIsDir = true;} | ||
108 | 109 | ||
109 | /** | 110 | /** |
110 | * Sets the filter for the file dialog. | 111 | * Sets the filter for the file dialog. |
111 | * @see KFileDialog::setFilter() | 112 | * @see KFileDialog::setFilter() |
112 | */ | 113 | */ |
113 | void setFilter( const QString& filter ); | 114 | void setFilter( const QString& filter ); |
114 | 115 | ||
115 | /** | 116 | /** |
116 | * @returns whether local files will be prefixed with file:/ in the | 117 | * @returns whether local files will be prefixed with file:/ in the |
117 | * lineedit | 118 | * lineedit |
118 | * @see #setShowLocalProtocol | 119 | * @see #setShowLocalProtocol |
119 | */ | 120 | */ |
120 | bool showLocalProtocol() const { return myShowLocalProt; } | 121 | bool showLocalProtocol() const { return myShowLocalProt; } |
121 | 122 | ||
122 | /** | 123 | /** |
123 | * @returns a pointer to the filedialog | 124 | * @returns a pointer to the filedialog |
124 | * You can use this to customize the dialog, e.g. to specify a filter. | 125 | * You can use this to customize the dialog, e.g. to specify a filter. |
125 | * Never returns 0L. | 126 | * Never returns 0L. |
126 | */ | 127 | */ |
127 | virtual KFileDialog * fileDialog() const; | 128 | virtual KFileDialog * fileDialog() const; |
128 | 129 | ||
129 | /** | 130 | /** |
130 | * @returns a pointer to the lineedit, either the default one, or the | 131 | * @returns a pointer to the lineedit, either the default one, or the |
131 | * special one, if you used the special constructor. | 132 | * special one, if you used the special constructor. |
@@ -213,48 +214,49 @@ signals: | |||
213 | * get set properly from the editfield contents. | 214 | * get set properly from the editfield contents. |
214 | * | 215 | * |
215 | * If you use multiple KURLRequesters, you can connect all of them | 216 | * If you use multiple KURLRequesters, you can connect all of them |
216 | * to the same slot and use the given KURLRequester pointer to know | 217 | * to the same slot and use the given KURLRequester pointer to know |
217 | * which one is going to open. | 218 | * which one is going to open. |
218 | */ | 219 | */ |
219 | void openFileDialog( KURLRequester * ); | 220 | void openFileDialog( KURLRequester * ); |
220 | 221 | ||
221 | /** | 222 | /** |
222 | * Emitted when the user changed the URL via the file dialog. | 223 | * Emitted when the user changed the URL via the file dialog. |
223 | * The parameter contains the contents of the lineedit. | 224 | * The parameter contains the contents of the lineedit. |
224 | */ | 225 | */ |
225 | void urlSelected( const QString& ); | 226 | void urlSelected( const QString& ); |
226 | 227 | ||
227 | protected: | 228 | protected: |
228 | void init(); | 229 | void init(); |
229 | 230 | ||
230 | //US KURLCompletion * myCompletion; | 231 | //US KURLCompletion * myCompletion; |
231 | 232 | ||
232 | 233 | ||
233 | private: | 234 | private: |
234 | KURLDragPushButton * myButton; | 235 | KURLDragPushButton * myButton; |
235 | bool myShowLocalProt; | 236 | bool myShowLocalProt; |
236 | mutable KFileDialog * myFileDialog; | 237 | mutable KFileDialog * myFileDialog; |
238 | bool mPathIsDir; | ||
237 | 239 | ||
238 | 240 | ||
239 | protected slots: | 241 | protected slots: |
240 | /** | 242 | /** |
241 | * Called when the button is pressed to open the filedialog. | 243 | * Called when the button is pressed to open the filedialog. |
242 | * Also called when @ref KStdAccel::Open (default is Ctrl-O) is pressed. | 244 | * Also called when @ref KStdAccel::Open (default is Ctrl-O) is pressed. |
243 | */ | 245 | */ |
244 | void slotOpenDialog(); | 246 | void slotOpenDialog(); |
245 | 247 | ||
246 | private slots: | 248 | private slots: |
247 | void slotUpdateURL(); | 249 | void slotUpdateURL(); |
248 | 250 | ||
249 | protected: | 251 | protected: |
250 | virtual void virtual_hook( int id, void* data ); | 252 | virtual void virtual_hook( int id, void* data ); |
251 | private: | 253 | private: |
252 | class KURLRequesterPrivate; | 254 | class KURLRequesterPrivate; |
253 | KURLRequesterPrivate *d; | 255 | KURLRequesterPrivate *d; |
254 | }; | 256 | }; |
255 | /*US | 257 | /*US |
256 | class KURLComboRequester : public KURLRequester // For use in Qt Designer | 258 | class KURLComboRequester : public KURLRequester // For use in Qt Designer |
257 | { | 259 | { |
258 | Q_OBJECT | 260 | Q_OBJECT |
259 | public: | 261 | public: |
260 | */ | 262 | */ |