summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/TDEListView.java
blob: 9eee41cbdac965f3de2cb152330d5af5d1f37859 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.TQColor;
import org.trinitydesktop.qt.TQRect;
import org.trinitydesktop.qt.TQListViewItem;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPaintEvent;
import org.trinitydesktop.qt.TQPoint;
import org.trinitydesktop.qt.TQDragEnterEvent;
import org.trinitydesktop.qt.TQDragMoveEvent;
import org.trinitydesktop.qt.TQPainter;
import org.trinitydesktop.qt.TQDragLeaveEvent;
import org.trinitydesktop.qt.TQFocusEvent;
import org.trinitydesktop.qt.TQKeyEvent;
import org.trinitydesktop.qt.TQMouseEvent;
import org.trinitydesktop.qt.TQDropEvent;
import org.trinitydesktop.qt.TQEvent;
import org.trinitydesktop.qt.TQIconSet;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQResizeEvent;
import org.trinitydesktop.qt.TQDragObject;
import org.trinitydesktop.qt.TQListView;

/**

 This Widget extends the functionality of TQListView to honor the system
 wide settings for Single Click/Double Click mode, AutoSelection and
 ChangeCursorOverLink (TM).
 There is a new signal executed(). It gets connected to either
 TQListView.clicked() or TQListView.doubleClicked() depending on the KDE
 wide Single Click/Double Click settings. It is strongly recommended that
 you use this signal instead of the above mentioned. This way you don't
 need to care about the current settings.
 If you want to get informed when the user selects something connect to the
 TQListView.selectionChanged() signal.
 Drag-and-Drop is supported with the signal dropped(), just setAcceptDrops(true)
 and connect it to a suitable slot.
 To see where you are dropping, setDropVisualizer(true).
 And also you'll need acceptDrag(TQDropEvent)
 TDEListView is drag-enabled, too: to benefit from that you have to derive from it.
 Reimplement dragObject() and (possibly) startDrag(),
 and setDragEnabled(true).
  See {@link TDEListViewSignals} for signals emitted by TDEListView
		@short    This Widget extends the functionality of TQListView to honor the system  wide settings for Single Click/Double Click mode, AutoSelection and  ChangeCursorOverLink (TM).

*/
public class TDEListView extends TQListView  {
	protected TDEListView(Class dummy){super((Class) null);}
	/**
		 Possible selection modes.
			 The first four correspond directly to TQListView.SelectionMode, while
		 the FileManager selection mode is defined as follows:

			<li>
			home: move to the first
			</li>

			<li>
			end: move to the last
			</li>

			<li>
			PgUp/PgDn: move one page up/down
			</li>

			<li>
			up/down: move one item up/down
			</li>

			<li>
			insert: toggle selection of current and move to the next
			</li>

			<li>
			space: toggle selection of the current
			</li>

			<li>
			CTRL+up: move to the previous item and toggle selection of this one
			</li>

			<li>
			CTRL+down: toggle selection of the current item and move to the next
			</li>

			<li>
			CTRL+end: toggle selection from (including) the current
			   item to (including) the last item
			</li>

			<li>
			CTRL+home: toggle selection from (including) the current
			   item to the (including) the first item
			</li>

			<li>
			CTRL+PgDn: toggle selection from (including) the current
			   item to (excluding) the item one page down
			</li>

			<li>
			CTRL+PgUp: toggle selection from (excluding) the current
			   item to (including) the item one page up
			</li>
				    The combinations work the same with SHIFT instead of CTRL, except
		    that if you start selecting something using SHIFT everything selected
		    before will be deselected first.
			    Additionally the current item is always selected automatically when
		    navigating using the keyboard, except other items were selected explicitly.
			   This way e.g. SHIFT+up/PgUp then SHIFT+down/PgDn leaves no item selected
		   		@short    Possible selection modes.
	*/
	public static final int Single = TQListView.Single;
	public static final int Multi = TQListView.Multi;
	public static final int Extended = TQListView.Extended;
	public static final int NoSelection = TQListView.NoSelection;
	public static final int FileManager = 0;

	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Constructor.
			 The parameters <code>parent</code> and <code>name</code> are handled by
		 TQListView, as usual.
		   		@short    Constructor.
	*/
	public TDEListView(TQWidget parent, String name) {
		super((Class) null);
		newTDEListView(parent,name);
	}
	private native void newTDEListView(TQWidget parent, String name);
	public TDEListView(TQWidget parent) {
		super((Class) null);
		newTDEListView(parent);
	}
	private native void newTDEListView(TQWidget parent);
	public TDEListView() {
		super((Class) null);
		newTDEListView();
	}
	private native void newTDEListView();
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	public native void setAcceptDrops(boolean arg1);
	/**
		 This function determines whether the given coordinates are within the
		 execute area. The execute area is the part of a TQListViewItem where mouse
		 clicks or double clicks respectively generate a executed() signal.
		 Depending on TQListView.allColumnsShowFocus() this is either the
		 whole item or only the first column.
				@return true if point is inside execute area of an item, false in all
 other cases including the case that it is over the viewport.

		@short    This function determines whether the given coordinates are within the  execute area.
	*/
	public native boolean isExecuteArea(TQPoint point);
	/**
		 Same thing, but from an x coordinate only. This only checks if x is in
		 the first column (if all columns don't show focus), without testing if
		 the y coordinate is over an item or not.
		   		@short    Same thing, but from an x coordinate only.
	*/
	public native boolean isExecuteArea(int x);
	/**
			@param includeHiddenItems Set to true to return all items regardless of
		 visibility. Set to false to only return items that are isVisible().
				@return a list of all selected listview items

		@short
	*/
	// TQPtrList<TQListViewItem> selectedItems(bool arg1); >>>> NOT CONVERTED
	/**
		 Arbitrarily move <code>item</code> to <code>parent</code>, positioned immediately after item <code>after.</code>
		 If after is 0, <code>item</code> is made the first child of <code>parent.</code>
			 (Un-deprecated in kde-3.4)
		   		@short    Arbitrarily move <code>item</code> to <code>parent</code>, positioned immediately after item <code>after.</code>
	*/
	public native void moveItem(TQListViewItem item, TQListViewItem parent, TQListViewItem after);
	/**
				@return the last item (not child!) of this listview.

		@short
		@see #lastChild
	*/
	public native TQListViewItem lastItem();
	/**
				@return the last child of this listview.

		@short
		@see #lastItem
	*/
	public native TQListViewItem lastChild();
	/**
				@return the lineedit used for inline renaming.
 Use that to setup a TDECompletion or TQValidator for the lineedit

		@short
	*/
	public native KLineEdit renameLineEdit();
	/**
				@return if it is legal to move items in the list view.  True by default.

		@short
		@see #setDragEnabled
		@see #setItemsMovable
	*/
	public native boolean itemsMovable();
	/**
				@return whether inplace-renaming has been enabled.  False by default.

		@short
		@see #setItemsRenameable
	*/
	public native boolean itemsRenameable();
	/**
				@return whether dragging is enabled.  False by default.

		@short
		@see #setDragEnabled
	*/
	public native boolean dragEnabled();
	/**
				@return true if AutoOpen is enabled (not implemented currently).

		@short
		@see #setAutoOpen
	*/
	public native boolean autoOpen();
	/**
				@return true if <code>column</code> is renamable.

		@short
		@see #setRenameable
	*/
	public native boolean isRenameable(int column);
	/**
				@return true if drawing of the drop-visualizer has been enabled.  True by default.

		@short
		@see #setDropVisualizer
	*/
	public native boolean dropVisualizer();
	/**
				@return the column for which tooltips are displayed (or -1 if none set).

		@short
		@see #setTooltipColumn
	*/
	public native int tooltipColumn();
	/**
				@return true if drawing of the drop-highlighter has been enabled.  False by default.

		@short
		@see #setDropHighlighter
	*/
	public native boolean dropHighlighter();
	/**
		 The dropVisualizerWidth defaults to 4.
				@return the current width of the drop-visualizer.

		@short    The dropVisualizerWidth defaults to 4.
		@see #setDropVisualizerWidth
	*/
	public native int dropVisualizerWidth();
	/**
				@return the "extended" selection mode of this listview.

		@short
		@see SelectionModeExt
		@see #setSelectionModeExt
	*/
	public native int selectionModeExt();
	/**
		 Returns the index of <code>item</code> within the item tree or -1 if
		 <code>item</code> doesn't exist in this list view. This function takes
		 all items into account not only the visible ones.
		   		@short    Returns the index of <code>item</code> within the item tree or -1 if  <code>item</code> doesn't exist in this list view.
	*/
	public native int itemIndex(TQListViewItem item);
	/**
		 Returns the item of <code>index</code> within the item tree or 0 if
		 <code>index</code> doesn't exist in this list view. This function takes
		 all items into account not only the visible ones.
		   		@short    Returns the item of <code>index</code> within the item tree or 0 if  <code>index</code> doesn't exist in this list view.
	*/
	public native TQListViewItem itemAtIndex(int index);
	/**
		 Let the last column fit exactly all the available width.
				@short    Let the last column fit exactly all the available width.
		@see #fullWidth
	*/
	public native void setFullWidth(boolean fullWidth);
	/**
		 Returns whether the last column is set to fit the available width.
				@short    Returns whether the last column is set to fit the available width.
		@see #setFullWidth
	*/
	public native boolean fullWidth();
	/**
		 Reimplemented for full width support
				@short    Reimplemented for full width support
		@see #removeColumn
	*/
	public native int addColumn(String label, int width);
	public native int addColumn(String label);
	/**
		 Reimplemented for full width support
		   		@short    Reimplemented for full width support
	*/
	public native int addColumn(TQIconSet iconset, String label, int width);
	public native int addColumn(TQIconSet iconset, String label);
	/**
		 Reimplemented for full width support
				@short    Reimplemented for full width support
		@see #addColumn
	*/
	public native void removeColumn(int index);
	/**
		 sets the alternate background background color.
		 This only has an effect if the items are TDEListViewItems
			@param c the color to use for every other item. Set to an invalid
		        color to disable alternate colors.
				@short    sets the alternate background background color.
		@see #alternateBackground
	*/
	public native void setAlternateBackground(TQColor c);
	/**
				@return the alternate background color

		@short
		@see #setAlternateBackground
	*/
	public native TQColor alternateBackground();
	/**
		 Saves the list view's layout (column widtsh, column order, sort column)
		 to a TDEConfig group
			@param config the TDEConfig object to write to
			@param group the config group to use
		   		@short    Saves the list view's layout (column widtsh, column order, sort column)  to a TDEConfig group
	*/
	public native void saveLayout(TDEConfig config, String group);
	/**
		 Reads the list view's layout from a TDEConfig group as stored with
		 saveLayout
			@param config the TDEConfig object to read from
			@param group the config group to use
		   		@short    Reads the list view's layout from a TDEConfig group as stored with  saveLayout
	*/
	public native void restoreLayout(TDEConfig config, String group);
	/**
		 Reimplemented to remember the current sort column and order.
			@param column is the column to be sorted, or -1 to sort in order of
		 insertion
			@param ascending whether to sort ascending (or descending)
		   		@short    Reimplemented to remember the current sort column and order.
	*/
	public native void setSorting(int column, boolean ascending);
	public native void setSorting(int column);
	/**
				@return the currently sorted column, or -1 if none is sorted

		@short
	*/
	public native int columnSorted();
	/**
				@return whether the current sort is ascending (or descending)

		@short
	*/
	public native boolean ascendingSort();
	/**
		 Reimplemented for internal reasons.
		   		@short    Reimplemented for internal reasons.
	*/
	public native void takeItem(TQListViewItem i);
	/**
		 Set to true if the currently sorted column should be drawn shaded. Defaults to true
			@param shadeSortColumn True if sort column should be shaded.
				@short    Set to true if the currently sorted column should be drawn shaded.
	*/
	public native void setShadeSortColumn(boolean shadeSortColumn);
	/**
		 See if the sort column should be drawn shaded
				@return true if the sort column should be shaded

		@short    See if the sort column should be drawn shaded
	*/
	public native boolean shadeSortColumn();
	/**
		 Rename column <code>c</code> of <code>item.</code>
		   		@short    Rename column <code>c</code> of <code>item.</code>
	*/
	public native void rename(TQListViewItem item, int c);
	/**
		 By default, if you called setItemsRenameable(true),
		 only the first column is renameable.
		 Use this function to enable the feature on other columns.
			 If you want more intelligent (dynamic) selection,
		 you'll have to derive from TDEListView,
		 and override rename() and call only call it
		 if you want the item to be renamed.
		   		@short    By default, if you called setItemsRenameable(true),  only the first column is renameable.
	*/
	public native void setRenameable(int column, boolean yesno);
	public native void setRenameable(int column);
	/**
		 Set whether items in the list view can be moved.
		 It is enabled by default.
				@short    Set whether items in the list view can be moved.
		@see #itemsMovable
	*/
	public native void setItemsMovable(boolean b);
	/**
		 Enables inplace-renaming of items.
		 It is disabled by default.
				@short    Enables inplace-renaming of items.
		@see #itemsRenameable
		@see #setRenameable
	*/
	public native void setItemsRenameable(boolean b);
	/**
		 Enable/Disable the dragging of items.
		 It is disabled by default.
		   		@short    Enable/Disable the dragging of items.
	*/
	public native void setDragEnabled(boolean b);
	/**
		 Enable/Disable AutoOpen (not implemented currently).
		   		@short    Enable/Disable AutoOpen (not implemented currently).
	*/
	public native void setAutoOpen(boolean b);
	/**
		 Enable/Disable the drawing of a drop-visualizer
		 (a bar that shows where a dropped item would be inserted).
		 It is enabled by default, if dragging is enabled
		   		@short    Enable/Disable the drawing of a drop-visualizer  (a bar that shows where a dropped item would be inserted).
	*/
	public native void setDropVisualizer(boolean b);
	/**
		 Set the width of the (default) drop-visualizer.
		 If you don't call this method, the width is set to 4.
		   		@short    Set the width of the (default) drop-visualizer.
	*/
	public native void setDropVisualizerWidth(int w);
	/**
		 Set which column should be used for automatic tooltips.
			@param column is the column for which tooltips will be shown.
		 Set -1 to disable this feature.
		   		@short    Set which column should be used for automatic tooltips.
	*/
	public native void setTooltipColumn(int column);
	/**
		 Enable/Disable the drawing of a drop-highlighter
		 (a rectangle around the item under the mouse cursor).
		 It is disabled by default.
		   		@short    Enable/Disable the drawing of a drop-highlighter  (a rectangle around the item under the mouse cursor).
	*/
	public native void setDropHighlighter(boolean b);
	/**
		 Set the selection mode.
			 A different name was chosen to avoid API-clashes with TQListView.setSelectionMode().
		   		@short    Set the selection mode.
	*/
	public native void setSelectionModeExt(int mode);
	/**
		 Enable/disable tabbing between editable cells
				@short    Enable/disable tabbing between editable cells
	*/
	public native void setTabOrderedRenaming(boolean b);
	/**
		 Returns whether tab ordered renaming is enabled
				@short    Returns whether tab ordered renaming is enabled
	*/
	public native boolean tabOrderedRenaming();
	/**
		 Determine whether a drop on position <code>p</code> would count as
		 being above or below the TQRect <code>rect.</code>
			@param rect is the rectangle we examine.
			@param p is the point located in the rectangle, p is assumed to be in
		 viewport coordinates.
		   		@short    Determine whether a drop on position <code>p</code> would count as  being above or below the TQRect <code>rect.</code>
	*/
	protected native boolean below(TQRect rect, TQPoint p);
	/**
		 An overloaded version of below(TQRect, TQPoint).
			 It differs from the above only in what arguments it takes.
			@param i the item whose rect() is passed to the above function.
			@param p is translated from contents coordinates to viewport coordinates
		 before being passed to the above function.
		   		@short    An overloaded version of below(TQRect, TQPoint).
	*/
	protected native boolean below(TQListViewItem i, TQPoint p);
	/**
		 Reimplemented to reload the alternate background in palette changes.
			   		@short    Reimplemented to reload the alternate background in palette changes.
	*/
	public native boolean event(TQEvent arg1);
	/**
		 Emit signal executed.
			   		@short    Emit signal executed.
	*/
	protected native void emitExecute(TQListViewItem item, TQPoint pos, int c);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void focusInEvent(TQFocusEvent fe);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void focusOutEvent(TQFocusEvent fe);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void leaveEvent(TQEvent e);
	/**
				@return the tooltip for <code>column</code> of <code>item.</code>

		@short
	*/
	protected native String tooltip(TQListViewItem item, int column);
	/**
				@return whether the tooltip for <code>column</code> of <code>item</code> shall be shown at point <code>pos.</code>

		@short
	*/
	protected native boolean showTooltip(TQListViewItem item, TQPoint pos, int column);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void contentsDragMoveEvent(TQDragMoveEvent event);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void contentsMousePressEvent(TQMouseEvent e);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void contentsMouseMoveEvent(TQMouseEvent e);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void contentsMouseDoubleClickEvent(TQMouseEvent e);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void contentsDragLeaveEvent(TQDragLeaveEvent event);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void contentsMouseReleaseEvent(TQMouseEvent arg1);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void contentsDropEvent(TQDropEvent arg1);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void contentsDragEnterEvent(TQDragEnterEvent arg1);
	/**
				@return a dragobject encoding the current selection.

		@short
		@see #setDragEnabled
	*/
	protected native TQDragObject dragObject();
	/**
				@return true if the <code>event</code> provides some acceptable
 format.
 A common mistake is to forget the "const" in your reimplementation

		@short
	*/
	protected native boolean acceptDrag(TQDropEvent event);
	/**
		 Paint the drag line. If painter is null, don't try to :)
			 If after == 0 then the marker should be drawn at the top.
				@return the rectangle that you painted to.

		@short    Paint the drag line.
	*/
	protected native TQRect drawDropVisualizer(TQPainter p, TQListViewItem parent, TQListViewItem after);
	/**
		 Paint the drag rectangle. If painter is null, don't try to :)
				@return the rectangle that you painted to.

		@short    Paint the drag rectangle.
	*/
	protected native TQRect drawItemHighlighter(TQPainter painter, TQListViewItem item);
	/**
		 This method calls dragObject() and starts the drag.
			 Reimplement it to do fancy stuff like setting a pixmap or
		 using a non-default DragMode
		   		@short    This method calls dragObject() and starts the drag.
	*/
	protected native void startDrag();
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void keyPressEvent(TQKeyEvent arg1);
	/**
		 Reimplemented for internal reasons.
		 Further reimplementations should call this function or else
		 some features may not work correctly.
			 The API is unaffected.
		   		@short    Reimplemented for internal reasons.
	*/
	protected native void viewportPaintEvent(TQPaintEvent arg1);
	/**
		 In FileManager selection mode: explicitly activate the mode
		 in which the current item is automatically selected.
		   		@short    In FileManager selection mode: explicitly activate the mode  in which the current item is automatically selected.
	*/
	protected native void activateAutomaticSelection();
	/**
		 In FileManager selection mode: explicitly deactivate the mode
		 in which the current item is automatically selected.
		   		@short    In FileManager selection mode: explicitly deactivate the mode  in which the current item is automatically selected.
	*/
	protected native void deactivateAutomaticSelection();
	/**
		 In FileManager selection mode: return whether it is currently in the mode
		 where the current item is selected automatically.
		 Returns false if items were selected explicitly, e.g. using the mouse.
		   		@short    In FileManager selection mode: return whether it is currently in the mode  where the current item is selected automatically.
	*/
	protected native boolean automaticSelection();
	/**
		 Reimplemented for setFullWidth()
		   		@short    Reimplemented for setFullWidth()
	*/
	protected native void viewportResizeEvent(TQResizeEvent e);
	/**
		 Disable AutoSelection. This overrides the system wide setting for
		 AutoSelection. Please don't call this unless you have good reasons to
		 override the system wide setting for AutoSelection.
				@short    Disable AutoSelection.
		@see #resetAutoSelection
	*/
	protected native void disableAutoSelection();
	/**
		 Reset AutoSelection to the system wide setting.
				@short    Reset AutoSelection to the system wide setting.
		@see #disableAutoSelection
	*/
	protected native void resetAutoSelection();
	/**
		 Handle dropEvent when itemsMovable() is set to true.
		   		@short    Handle dropEvent when itemsMovable() is set to true.
	*/
	protected native void movableDropEvent(TQListViewItem parent, TQListViewItem afterme);
	/**
		 Where is the nearest TQListViewItem that I'm going to drop?
			 FIXME KDE 4.0: Make this method const so it can be called from an
		 acceptDrag method without ugly casts
		   		@short    Where is the nearest TQListViewItem that I'm going to drop?
	*/
	protected native void findDrop(TQPoint pos, TQListViewItem parent, TQListViewItem after);
	/**
		 A special keyPressEvent (for FileManager selection mode).
		   		@short    A special keyPressEvent (for FileManager selection mode).
	*/
	protected native void fileManagerKeyPressEvent(TQKeyEvent arg1);
	/**
		 Convert the depth of an item into its indentation in pixels
		   		@short    Convert the depth of an item into its indentation in pixels
	*/
	protected native int depthToPixels(int depth);
	/**
		 Update internal settings whenever the global ones change.
			   		@short    Update internal settings whenever the global ones change.
	*/
	protected native void slotSettingsChanged(int arg1);
	protected native void slotMouseButtonClicked(int btn, TQListViewItem item, TQPoint pos, int c);
	protected native void doneEditing(TQListViewItem item, int row);
	/**
		 Repaint the rect where I was drawing the drop line.
		   		@short    Repaint the rect where I was drawing the drop line.
	*/
	protected native void cleanDropVisualizer();
	/**
		 Repaint the rect where I was drawing the drop rectangle.
		   		@short    Repaint the rect where I was drawing the drop rectangle.
	*/
	protected native void cleanItemHighlighter();
	/**
		 Emit the contextMenu signal. This slot is for mouse actions.
		   		@short    Emit the contextMenu signal.
	*/
	protected native void emitContextMenu(TQListViewItem arg1, TQPoint arg2, int arg3);
	/**
		 Emit the contextMenu signal. This slot is for key presses.
		   		@short    Emit the contextMenu signal.
	*/
	protected native void emitContextMenu(TDEListView arg1, TQListViewItem arg2);
	/**
		 Accessory slot for AutoSelect
			   		@short    Accessory slot for AutoSelect
	*/
	protected native void slotOnItem(TQListViewItem item);
	/**
		 Accessory slot for AutoSelect/ChangeCursorOverItem
			   		@short    Accessory slot for AutoSelect/ChangeCursorOverItem
	*/
	protected native void slotOnViewport();
	/**
		 Process AutoSelection.
			   		@short    Process AutoSelection.
	*/
	protected native void slotAutoSelect();
	protected native void slotDragExpand();
	/**
		 Reacts to header changes in full width mode
			   		@short    Reacts to header changes in full width mode
	*/
	protected native void slotHeaderChanged();
	/** 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();
}