summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KDirOperator.java
blob: 51adf41126cf6c60086200a4638cb6b921b7be8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPoint;
import java.util.ArrayList;
import org.kde.qt.TQDropEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQResizeEvent;
import org.kde.qt.TQWidget;

/**

 This widget works as a network transparent filebrowser. You specify a URL
 to display and this url will be loaded via KDirLister. The user can
 browse through directories, highlight and select files, delete or rename
 files.
 It supports different views, e.g. a detailed view (see KFileDetailView),
 a simple icon view (see KFileIconView), a combination of two views,
 separating directories and files ( KCombiView).
 Additionally, a preview view is available (see KFilePreview), which can
 show either a simple or detailed view and additionally a preview widget
 (see setPreviewWidget()). KImageFilePreview is one implementation
 of a preview widget, that displays previews for all supported filetypes
 utilizing KIO.PreviewJob.
 Currently, those classes don't support Drag&Drop out of the box -- there
 you have to use your own view-classes. You can use some DnD-aware views
 from Bj�n Sahlstr� <bjorn@kbear.org> until they will be integrated
 into this library. See http://devel-home.kde.org/~pfeiffer/DnD-classes.tar.gz
 This widget is the one used in the KFileDialog.
 Basic usage is like this:
 <pre>
   KDirOperator op = new KDirOperator( KURL( "file:/home/gis" ), this );
   // some signals you might be interested in
   connect(op, SIGNAL("urlEntered(KURL)"),
           SLOT("urlEntered(KURL)"));
   connect(op, SIGNAL("fileHighlighted(const KFileItem )"),
           SLOT("fileHighlighted(const KFileItem )"));
   connect(op, SIGNAL("fileSelected(const KFileItem )"),
           SLOT("fileSelected(const KFileItem )"));
   connect(op, SIGNAL("finishedLoading()"),
           SLOT("slotLoadingFinished()"));
   op.readConfig( KGlobal.config(), "Your KDiroperator ConfigGroup" );
   op.setView(KFile.Default);
 </pre>
 This will create a childwidget of 'this' showing the directory contents
 of /home/gis in the default-view. The view is determined by the readConfig()
 call, which will read the KDirOperator settings, the user left your program
 with (and which you saved with op.writeConfig()).
 See {@link KDirOperatorSignals} for signals emitted by KDirOperator
		@author Stephan Kulow <coolo@kde.org>, Carsten Pfeiffer <pfeiffer@kde.org>
 
		@short A widget for displaying files and browsing directories.

*/
public class KDirOperator extends TQWidget  {
	protected KDirOperator(Class dummy){super((Class) null);}
	/**	
		 The various action types. These values can be or'd together
				@short    The various action types.
	*/
	public static final int SortActions = 1;
	public static final int ViewActions = 2;
	public static final int NavActions = 4;
	public static final int FileActions = 8;
	public static final int AllActions = 15;

	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs the KDirOperator with no initial view. As the views are
		 configurable, call readConfig() to load the user's configuration
		 and then setView to explicitly set a view.
			 This constructor doesn't start loading the url, setView will do it.
		     		@short    Constructs the KDirOperator with no initial view.
	*/
	public KDirOperator(KURL urlName, TQWidget parent, String name) {
		super((Class) null);
		newKDirOperator(urlName,parent,name);
	}
	private native void newKDirOperator(KURL urlName, TQWidget parent, String name);
	public KDirOperator(KURL urlName, TQWidget parent) {
		super((Class) null);
		newKDirOperator(urlName,parent);
	}
	private native void newKDirOperator(KURL urlName, TQWidget parent);
	public KDirOperator(KURL urlName) {
		super((Class) null);
		newKDirOperator(urlName);
	}
	private native void newKDirOperator(KURL urlName);
	public KDirOperator() {
		super((Class) null);
		newKDirOperator();
	}
	private native void newKDirOperator();
	/**	
		 Enables/disables showing hidden files.
		     		@short    Enables/disables showing hidden files.
	*/
	public native void setShowHiddenFiles(boolean s);
	/**	
				@return true when hidden files are shown or false otherwise.
     
		@short
	*/
	public native boolean showHiddenFiles();
	/**	
		 Stops loading immediately. You don't need to call this, usually.
		     		@short    Stops loading immediately.
	*/
	public native void closeLoading();
	public native boolean close(boolean alsoDelete);
	/**	
		 Sets a filter like "*.cpp .h .o". Only files matching that filter
		 will be shown. Call updateDir() to apply it.
				@short    Sets a filter like " .
		@see KDirLister#setNameFilter
		@see #nameFilter
	*/
	public native void setNameFilter(String filter);
	/**	
				@return the current namefilter.

		@short   
		@see #setNameFilter
	*/
	public native String nameFilter();
	/**	
		 Sets a list of mimetypes as filter. Only files of those mimetypes
		 will be shown.
			 Example:
		 <pre>
		 ArrayList filter;
		 filter << "text/html" << "image/png" << "inode/directory";
		 dirOperator.setMimefilter( filter );
		 </pre>
			 Node: Without the mimetype inode/directory, only files would be shown.
		 Call updateDir() to apply it.
				@short    Sets a list of mimetypes as filter.
		@see KDirLister#setMimeFilter
		@see #mimeFilter
	*/
	public native void setMimeFilter(String[] mimetypes);
	/**	
				@return the current mime filter.
     
		@short
	*/
	public native ArrayList mimeFilter();
	/**	
		 Clears both the namefilter and mimetype filter, so that all files and
		 directories will be shown. Call updateDir() to apply it.
				@short    Clears both the namefilter and mimetype filter, so that all files and  directories will be shown.
		@see #setMimeFilter
		@see #setNameFilter
	*/
	public native void clearFilter();
	/**	
				@return the current url
     
		@short
	*/
	public native KURL url();
	/**	
		 Sets a new url to list.
			@param clearforward specifies whether the "forward" history should be cleared.
			@param url the URL to set
		     		@short    Sets a new url to list.
	*/
	public native void setURL(KURL url, boolean clearforward);
	/**	
		 Clears the current selection and attempts to set <code>filename</code>
		 the current file. filename is just the name, no path or url.
		     		@short    Clears the current selection and attempts to set <code>filename</code>  the current file.
	*/
	public native void setCurrentItem(String filename);
	/**	
		 Sets a new KFileView to be used for showing and browsing files.
		 Note: this will read the current url() to fill the view.
				@short    Sets a new KFileView to be used for showing and browsing files.
		@see KFileView
		@see KFileIconView
		@see KFileDetailView
		@see KCombiView
		@see #view
	*/
	public native void setView(KFileViewInterface view);
	/**	
				@return the currently used view.

		@short   
		@see #setView
	*/
	public native KFileViewInterface view();
	/**	
		 Returns the widget of the current view. null if there is no view/widget.
		 (KFileView itself is not a widget.)
		     		@short    Returns the widget of the current view.
	*/
	public native TQWidget viewWidget();
	/**	
		 Sets one of the predefined fileviews
				@short    Sets one of the predefined fileviews 
		@see KFile#FileView
	*/
	public native void setView(int view);
	/**	
		 Sets the way to sort files and directories.
		     		@short    Sets the way to sort files and directories.
	*/
	public native void setSorting(int arg1);
	/**	
				@return the current way of sorting files and directories
     
		@short
	*/
	public native int sorting();
	/**	
				@return true if we are displaying the root directory of the current url
     
		@short
	*/
	public native boolean isRoot();
	/**	
				@return the object listing the directory
     
		@short
	*/
	public native KDirLister dirLister();
	/**	
				@return the progress widget, that is shown during directory listing.
 You can for example reparent() it to put it into a statusbar.
     
		@short
	*/
	public native KProgress progressBar();
	/**	
		 Sets the listing/selection mode for the views, an OR'ed combination of
		
			<li>
			File
			</li>
			
			<li>
			Directory
			</li>
			
			<li>
			Files
			</li>
			
			<li>
			ExistingOnly
			</li>
			
			<li>
			LocalOnly
			</li>
				 You cannot mix File and Files of course, as the former means
		 single-selection mode, the latter multi-selection.
		     		@short    Sets the listing/selection mode for the views, an OR'ed combination of
	*/
	public native void setMode(int m);
	/**	
				@return the listing/selection mode.
     
		@short
	*/
	public native int mode();
	/**	
		 Sets a preview-widget to be shown next to the file-view.
		 The ownership of <code>w</code> is transferred to KDirOperator, so don't
		 delete it yourself!
		     		@short    Sets a preview-widget to be shown next to the file-view.
	*/
	public native void setPreviewWidget(TQWidget w);
	/**	
				@return a list of all currently selected items. If there is no view,
 then 0L is returned.
     
		@short
	*/
	public native ArrayList selectedItems();
	/**	
				@return true if <code>item</code> is currently selected, or false otherwise.
     
		@short
	*/
	public native boolean isSelected(KFileItem item);
	/**	
				@return the number of directories in the currently listed url.
 Returns 0 if there is no view.
     
		@short
	*/
	public native int numDirs();
	/**	
				@return the number of files in the currently listed url.
 Returns 0 if there is no view.
     
		@short
	*/
	public native int numFiles();
	/**	
				@return a KCompletion object, containing all filenames and
 directories of the current directory/URL.
 You can use it to insert it into a KLineEdit or KComboBox
 Note: it will only contain files, after prepareCompletionObjects()
 has been called. It will be implicitly called from makeCompletion()
 or makeDirCompletion()
     
		@short
	*/
	public native KCompletion completionObject();
	/**	
				@return a KCompletion object, containing only all directories of the
 current directory/URL.
 You can use it to insert it into a KLineEdit or KComboBox
 Note: it will only contain directories, after
 prepareCompletionObjects() has been called. It will be implicitly
 called from makeCompletion() or makeDirCompletion()
     
		@short
	*/
	public native KCompletion dirCompletionObject();
	/**	
		 an accessor to a collection of all available Actions. The actions
		 are static, they will be there all the time (no need to connect to
		 the signals KActionCollection.inserted() or removed().
			 There are the following actions:
		
			<li>
			popupMenu : an ActionMenu presenting a popupmenu with all actions
			</li>
			
			<li>
			up : changes to the parent directory
			</li>
			
			<li>
			back : goes back to the previous directory
			</li>
			
			<li>
			forward : goes forward in the history
			</li>
			
			<li>
			home : changes to the user's home directory
			</li>
			
			<li>
			reload : reloads the current directory
			</li>
			
			<li>
			separator : a separator
			</li>
			
			<li>
			mkdir : opens a dialog box to create a directory
			</li>
			
			<li>
			delete : deletes the selected files/directories
			</li>
			
			<li>
			sorting menu : an ActionMenu containing all sort-options
			</li>
			
			<li>
			by name : sorts by name
			</li>
			
			<li>
			by date : sorts by date
			</li>
			
			<li>
			by size : sorts by size
			</li>
			
			<li>
			reversed : reverses the sort order
			</li>
			
			<li>
			dirs first : sorts directories before files
			</li>
			
			<li>
			case insensitive : sorts case insensitively
			</li>
			
			<li>
			view menu : an ActionMenu containing all actions concerning the view
			</li>
			
			<li>
			short view : shows a simple fileview
			</li>
			
			<li>
			detailed view : shows a detailed fileview (dates, permissions ,...)
			</li>
			
			<li>
			show hidden : shows hidden files
			</li>
			
			<li>
			separate dirs : shows directories in a separate pane
			</li>
			
			<li>
			preview  : shows a preview next to the fileview
			</li>
			
			<li>
			single : hides the separate view for directories or the preview
			</li>
			
			<li>
			properties : shows a KPropertiesDialog for the selected files
			</li>
				 The short and detailed view are in an exclusive group. The sort-by
		 actions are in an exclusive group as well. Also the "separate dirs",
		 "preview" and "single" actions are in an exclusive group.
			 You can e.g. use
		 <pre>
		 actionCollection().action( "up" ).plug( someToolBar );
		 </pre>
		 to add a button into a toolbar, which makes the dirOperator change to
		 its parent directory.
				@return all available Actions
     
		@short    an accessor to a collection of all available Actions.
	*/
	public native KActionCollection actionCollection();
	/**	
		 Sets the config object and the to be used group in KDirOperator. This
		 will be used to store the view's configuration via
		 KFileView.writeConfig() (and for KFileView.readConfig()).
		 If you don't set this, the views cannot save and restore their
		 configuration.
			 Usually you call this right after KDirOperator creation so that the view
		 instantiation can make use of it already.
			 Note that KDirOperator does NOT take ownership of that object (typically
		 it's KGlobal.config() anyway.
				@short    Sets the config object and the to be used group in KDirOperator.
		@see #viewConfig
		@see #viewConfigGroup
	*/
	public native void setViewConfig(KConfig config, String group);
	/**	
		 Returns the KConfig object used for saving and restoring view's
		 configuration.
				@return the KConfig object used for saving and restoring view's
 configuration.

		@short    Returns the KConfig object used for saving and restoring view's  configuration.
	*/
	public native KConfig viewConfig();
	/**	
		 Returns the group name used for saving and restoring view's
		 configuration.
				@return the group name used for saving and restoring view's
 configuration.

		@short    Returns the group name used for saving and restoring view's  configuration.
	*/
	public native String viewConfigGroup();
	/**	
		 Reads the default settings for a view, i.e. the default KFile.FileView.
		 Also reads the sorting and whether hidden files should be shown.
		 Note: the default view will not be set - you have to call
		 <pre>
		 setView( KFile.Default )
		 </pre>
		 to apply it.
				@short    Reads the default settings for a view, i.
		@see #setView
		@see #setViewConfig
		@see #writeConfig
	*/
	public native void readConfig(KConfig arg1, String group);
	public native void readConfig(KConfig arg1);
	/**	
		 Saves the current settings like sorting, simple or detailed view.
				@short    Saves the current settings like sorting, simple or detailed view.
		@see #readConfig
		@see #setViewConfig
	*/
	public native void writeConfig(KConfig arg1, String group);
	public native void writeConfig(KConfig arg1);
	/**	
		 This is a KFileDialog specific hack: we want to select directories with
		 single click, but not files. But as a generic class, we have to be able
		 to select files on single click as well.
			 This gives us the opportunity to do both.
			 The default is false, set it to true if you don't want files selected
		 with single click.
		     		@short    This is a KFileDialog specific hack: we want to select directories with  single click, but not files.
	*/
	public native void setOnlyDoubleClickSelectsFiles(boolean enable);
	/**	
				@return whether files (not directories) should only be select()ed by
 double-clicks.

		@short   
		@see #setOnlyDoubleClickSelectsFiles
	*/
	public native boolean onlyDoubleClickSelectsFiles();
	/**	
		 Creates the given directory/url. If it is a relative path,
		 it will be completed with the current directory.
		 If enterDirectory is true, the directory will be entered after a
		 successful operation. If unsuccessful, a messagebox will be presented
		 to the user.
				@return true if the directory could be created.
     
		@short    Creates the given directory/url.
	*/
	public native boolean mkdir(String directory, boolean enterDirectory);
	public native boolean mkdir(String directory);
	/**	
		 Starts and returns a KIO.DeleteJob to delete the given <code>items.</code>
			@param items the list of items to be deleted
			@param ask specifies whether a confirmation dialog should be shown
			@param showProgress passed to the DeleteJob to show a progress dialog
		     		@short    Starts and returns a KIO.DeleteJob to delete the given <code>items.</code>
	*/
	public native DeleteJob del(ArrayList items, boolean ask, boolean showProgress);
	public native DeleteJob del(ArrayList items, boolean ask);
	public native DeleteJob del(ArrayList items);
	/**	
		 Starts and returns a KIO.DeleteJob to delete the given <code>items.</code>
			@param items the list of items to be deleted
			@param parent the parent widget used for the confirmation dialog
			@param ask specifies whether a confirmation dialog should be shown
			@param showProgress passed to the DeleteJob to show a progress dialog
				@short    Starts and returns a KIO.DeleteJob to delete the given <code>items.</code>
	*/
	public native DeleteJob del(ArrayList items, TQWidget parent, boolean ask, boolean showProgress);
	public native DeleteJob del(ArrayList items, TQWidget parent, boolean ask);
	public native DeleteJob del(ArrayList items, TQWidget parent);
	/**	
		 Clears the forward and backward history.
		     		@short    Clears the forward and backward history.
	*/
	public native void clearHistory();
	/**	
		 When going up in the directory hierarchy, KDirOperator can highlight
		 the directory that was just left.
			 I.e. when you go from /home/gis/src to /home/gis, the item "src" will
		 be made the current item.
			 Default is off.
		     		@short    When going up in the directory hierarchy, KDirOperator can highlight  the directory that was just left.
	*/
	public native void setEnableDirHighlighting(boolean enable);
	/**	
			 Default is false.
		     		@return whether the last directory will be made the current item
 when going up in the directory hierarchy.

		@short
	*/
	public native boolean dirHighlighting();
	/**	
				@return true if we are in directory-only mode, that is, no files are
 shown.
     
		@short
	*/
	public native boolean dirOnlyMode();
	/**	
		 Sets up the action menu.
			@param whichActions is an value of OR'd ActionTypes that controls which actions to show in the action menu
		     		@short    Sets up the action menu.
	*/
	public native void setupMenu(int whichActions);
	/**	
		 Reimplemented - allow dropping of files if <code>b</code> is true
			@param b true if the widget should allow dropping of files
		     		@short    Reimplemented - allow dropping of files if <code>b</code> is true
	*/
	public native void setAcceptDrops(boolean b);
	/**	
		 Sets the options for dropping files.
				@short    Sets the options for dropping files.
		@see KFileView#DropOptions
	*/
	public native void setDropOptions(int options);
	/**	
		 Starts and returns a KIO.CopyJob to trash the given <code>items.</code>
			@param items the list of items to be trashed
			@param parent the parent widget used for the confirmation dialog
			@param ask specifies whether a confirmation dialog should be shown
			@param showProgress passed to the CopyJob to show a progress dialog
				@short    Starts and returns a KIO.CopyJob to trash the given <code>items.</code>
	*/
	public native CopyJob trash(ArrayList items, TQWidget parent, boolean ask, boolean showProgress);
	public native CopyJob trash(ArrayList items, TQWidget parent, boolean ask);
	public native CopyJob trash(ArrayList items, TQWidget parent);
	/**	
		 Goes one step back in the history and opens that url.
		     		@short    Goes one step back in the history and opens that url.
	*/
	public native void back();
	/**	
		 Goes one step forward in the history and opens that url.
		     		@short    Goes one step forward in the history and opens that url.
	*/
	public native void forward();
	/**	
		 Enters the home directory.
		     		@short    Enters the home directory.
	*/
	public native void home();
	/**	
		 Goes one directory up from the current url.
		     		@short    Goes one directory up from the current url.
	*/
	public native void cdUp();
	/**	
		 to update the view after changing the settings
		     		@short    to update the view after changing the settings
	*/
	public native void updateDir();
	/**	
		 Re-reads the current url.
		     		@short    Re-reads the current url.
	*/
	public native void rereadDir();
	/**	
		 Opens a dialog to create a new directory.
		     		@short    Opens a dialog to create a new directory.
	*/
	public native void mkdir();
	/**	
		 Deletes the currently selected files/directories.
		     		@short    Deletes the currently selected files/directories.
	*/
	public native void deleteSelected();
	/**	
		 Enables/disables actions that are selection dependent. Call this e.g.
		 when you are about to show a popup menu using some of KDirOperators
		 actions.
		     		@short    Enables/disables actions that are selection dependent.
	*/
	public native void updateSelectionDependentActions();
	/**	
		 Tries to complete the given string (only completes files).
		     		@short    Tries to complete the given string (only completes files).
	*/
	public native String makeCompletion(String arg1);
	/**	
		 Tries to complete the given string (only completes directores).
		     		@short    Tries to complete the given string (only completes directores).
	*/
	public native String makeDirCompletion(String arg1);
	/**	
		 Trashes the currently selected files/directories.
				@short    Trashes the currently selected files/directories.
	*/
	public native void trashSelected(int arg1, int arg2);
	public static native boolean dirOnlyMode(int mode);
	/**	
		 A view factory for creating predefined fileviews. Called internally by setView
		 , but you can also call it directly. Reimplement this if you depend on self defined fileviews.
			@param parent is the TQWidget to be set as parent
			@param view is the predefined view to be set, note: this can be several ones OR:ed together.
				@return the created KFileView

		@short    A view factory for creating predefined fileviews.
		@see KFileView
		@see KCombiView
		@see KFileDetailView
		@see KFileIconView
		@see KFilePreview
		@see KFile#FileView
		@see #setView
	*/
	protected native KFileViewInterface createView(TQWidget parent, int view);
	/**	
		 Sets a custom KDirLister to list directories.
		     		@short    Sets a custom KDirLister to list directories.
	*/
	protected native void setDirLister(KDirLister lister);
	protected native void resizeEvent(TQResizeEvent arg1);
	/**	
		 Sets up all the actions. Called from the constructor, you usually
		 better not call this.
		     		@short    Sets up all the actions.
	*/
	protected native void setupActions();
	/**	
		 Updates the sorting-related actions to comply with the current sorting
				@short    Updates the sorting-related actions to comply with the current sorting 
		@see #sorting
	*/
	protected native void updateSortActions();
	/**	
		 Updates the view-related actions to comply with the current
		 KFile.FileView
		     		@short    Updates the view-related actions to comply with the current  KFile.FileView
	*/
	protected native void updateViewActions();
	/**	
		 Sets up the context-menu with all the necessary actions. Called from the
		 constructor, you usually don't need to call this.
				@short    Sets up the context-menu with all the necessary actions.
	*/
	protected native void setupMenu();
	/**	
		 Synchronizes the completion objects with the entries of the
		 currently listed url.
			 Automatically called from makeCompletion() and
		 makeDirCompletion()
		     		@short    Synchronizes the completion objects with the entries of the  currently listed url.
	*/
	protected native void prepareCompletionObjects();
	/**	
		 Checks if there support from KIO.PreviewJob for the currently
		 shown files, taking mimeFilter() and nameFilter() into account
		 Enables/disables the preview-action accordingly.
		     		@short    Checks if there support from KIO.PreviewJob for the currently  shown files, taking mimeFilter() and nameFilter() into account  Enables/disables the preview-action accordingly.
	*/
	protected native boolean checkPreviewSupport();
	/**	
		 Restores the normal cursor after showing the busy-cursor. Also hides
		 the progressbar.
		     		@short    Restores the normal cursor after showing the busy-cursor.
	*/
	protected native void resetCursor();
	/**	
		 Called after setURL() to load the directory, update the history,
		 etc.
		     		@short    Called after setURL() to load the directory, update the history,  etc.
	*/
	protected native void pathChanged();
	/**	
		 Adds a new list of KFileItems to the view
		 (coming from KDirLister)
		     		@short    Adds a new list of KFileItems to the view  (coming from KDirLister)
	*/
	protected native void insertNewFiles(ArrayList newone);
	/**	
		 Removes the given KFileItem item from the view (usually called from
		 KDirLister).
		     		@short    Removes the given KFileItem item from the view (usually called from  KDirLister).
	*/
	protected native void itemDeleted(KFileItem arg1);
	/**	
		 Enters the directory specified by the given <code>item.</code>
		     		@short    Enters the directory specified by the given <code>item.</code>
	*/
	protected native void selectDir(KFileItem item);
	/**	
		 Emits fileSelected( item )
		     		@short    Emits fileSelected( item )
	*/
	protected native void selectFile(KFileItem item);
	/**	
		 Emits fileHighlighted( i )
		     		@short    Emits fileHighlighted( i )
	*/
	protected native void highlightFile(KFileItem i);
	/**	
		 Called upon right-click to activate the popupmenu.
		     		@short    Called upon right-click to activate the popupmenu.
	*/
	protected native void activatedMenu(KFileItem arg1, TQPoint pos);
	/**	
		 Changes sorting to sort by name
		     		@short    Changes sorting to sort by name
	*/
	protected native void sortByName();
	/**	
		 Changes sorting to sort by size
		     		@short    Changes sorting to sort by size
	*/
	protected native void sortBySize();
	/**	
		 Changes sorting to sort by date
		     		@short    Changes sorting to sort by date
	*/
	protected native void sortByDate();
	/**	
		 Changes sorting to reverse sorting
		     		@short    Changes sorting to reverse sorting
	*/
	protected native void sortReversed();
	/**	
		 Toggles showing directories first / having them sorted like files.
		     		@short    Toggles showing directories first / having them sorted like files.
	*/
	protected native void toggleDirsFirst();
	/**	
		 Toggles case sensitive / case insensitive sorting
		     		@short    Toggles case sensitive / case insensitive sorting
	*/
	protected native void toggleIgnoreCase();
	/**	
		 Tries to make the given <code>match</code> as current item in the view and emits
		 completion( match )
		     		@short    Tries to make the given <code>match</code> as current item in the view and emits  completion( match )
	*/
	protected native void slotCompletionMatch(String match);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}