summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/TDEListViewSignals.java
blob: 3952296ae6153ea1eda96bb2a8e30440ba5995e2 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

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

public interface TDEListViewSignals {
	/**	
		 This signal is emitted whenever the user executes an listview item.
		 That means depending on the KDE wide Single Click/Double Click
		 setting the user clicked or double clicked on that item.
			@param item is the pointer to the executed listview item.
			 Note that you may not delete any TQListViewItem objects in slots
		 connected to this signal.
		   		@short    This signal is emitted whenever the user executes an listview item.
	*/
	void executed(TQListViewItem item);
	/**	
		 This signal is emitted whenever the user executes an listview item.
		 That means depending on the KDE wide Single Click/Double Click
		 setting the user clicked or double clicked on that item.
			@param item is the pointer to the executed listview item.
			@param pos is the position where the user has clicked
			@param c is the column into which the user clicked.
			 Note that you may not delete any TQListViewItem objects in slots
		 connected to this signal.
		   		@short    This signal is emitted whenever the user executes an listview item.
	*/
	void executed(TQListViewItem item, TQPoint pos, int c);
	/**	
		 This signal gets emitted whenever something acceptable is
		 dropped onto the listview.
			@param e is the drop event itself (it has already been accepted)
			@param after is the item after which the drop occurred (or null, if
		 the drop was above all items)
				@short    This signal gets emitted whenever something acceptable is  dropped onto the listview.
		@see #acceptDrop
	*/
	void dropped(TQDropEvent e, TQListViewItem after);
	/**	
		 This signal gets emitted whenever something acceptable is
		 dropped onto the listview.
			 This is an overloaded version of the above (provided to simplify
		 processing drops outside of the class).
			@param list is the listview
			@param e is the drop event itself (it has already been accepted)
			@param after is the item after which the drop occurred (or null, if
		 the drop was above all items
		   		@short    This signal gets emitted whenever something acceptable is  dropped onto the listview.
	*/
	void dropped(TDEListView list, TQDropEvent e, TQListViewItem after);
	/**	
		 This signal gets emitted whenever something acceptable is
		 dropped onto the listview.
			 This function also provides a parent, in the event that your listview
		 is a tree
			@param list is the listview
			@param e is the drop event itself (it has already been accepted)
			@param parent the item that is to be the parent of the new item
			@param after is the item after which the drop occurred (or null, if
		 the drop was above all items
		   		@short    This signal gets emitted whenever something acceptable is  dropped onto the listview.
	*/
	void dropped(TDEListView list, TQDropEvent e, TQListViewItem parent, TQListViewItem after);
	/**	
		 This signal gets emitted whenever something acceptable is
		 dropped onto the listview.
			 This function also provides a parent, in the event that your listview
		 is a tree
			@param e is the drop event itself (it has already been accepted)
			@param parent the item that is to be the parent of the new item
			@param after is the item after which the drop occurred (or null, if
		 the drop was above all items
		   		@short    This signal gets emitted whenever something acceptable is  dropped onto the listview.
	*/
	void dropped(TQDropEvent e, TQListViewItem parent, TQListViewItem after);
	/**	
		 This signal is emitted when ever the user moves an item in the list via
		 DnD.
		 If more than one item is moved at the same time, this signal is only emitted
		 once.
		   		@short    This signal is emitted when ever the user moves an item in the list via  DnD.
	*/
	void moved();
	/**	
		 Connect to this signal if you want to do some preprocessing before
		 a move is made, for example, to disable sorting
			 This is sent only once per each groups of moves.  That is, for each
		 drop that is a move this will be emitted once, before TDEListView calls
				@short    Connect to this signal if you want to do some preprocessing before  a move is made, for example, to disable sorting 
		@see #moveItem
	*/
	void aboutToMove();
	/**	
		 This signal is emitted when ever the user moves an item in the list via
		 DnD.
		 If more than one item is moved at the same time, <code>afterFirst</code> and
		 <code>afterNow</code> will reflect what was true before the move.
		 This differs from moved(), so be careful. All the items will have been
		 moved before moved() is emitted, which is not true in this method. // FIXME
			@param item the item that was moved
			@param afterFirst the item that parameter item was in before the move, in the list
			@param afterNow the item it's currently after.
		   		@short    This signal is emitted when ever the user moves an item in the list via  DnD.
	*/
	void moved(TQListViewItem item, TQListViewItem afterFirst, TQListViewItem afterNow);
	// void moved(TQPtrList<TQListViewItem>& arg1,TQPtrList<TQListViewItem>& arg2,TQPtrList<TQListViewItem>& arg3); >>>> NOT CONVERTED
	/**	
		 This signal gets emitted when an item is renamed via in-place renaming.
			@param item is the renamed item.
			@param str is the new value of column <code>col.</code>
			@param col is the renamed column.
		   		@short    This signal gets emitted when an item is renamed via in-place renaming.
	*/
	void itemRenamed(TQListViewItem item, String str, int col);
	/**	
		 Same as above, but without the extra information.
		   		@short    Same as above, but without the extra information.
	*/
	void itemRenamed(TQListViewItem item);
	/**	
		 This signal is emitted when the shortcut key for popup-menus is pressed.
			 Normally you should not use this, just connect a slot to signal
		 contextMenu (TDEListView, TQListViewItem, TQPoint) to correctly
		 handle showing context menus regardless of settings.
			@param list is this listview.
			@param item is the currentItem() at the time the key was pressed. May be null.
		   		@short    This signal is emitted when the shortcut key for popup-menus is pressed.
	*/
	void menuShortCutPressed(TDEListView list, TQListViewItem item);
	/**	
		 This signal is emitted whenever a context-menu should be shown for item <code>i.</code>
		 It automatically adjusts for all settings involved (Menu key, showMenuOnPress/Click).
			@param l is this listview.
			@param i is the item for which the menu should be shown. May be null.
			@param p is the point at which the menu should be shown.
		   		@short    This signal is emitted whenever a context-menu should be shown for item <code>i.</code>
	*/
	void contextMenu(TDEListView l, TQListViewItem i, TQPoint p);
	void itemAdded(TQListViewItem item);
	void itemRemoved(TQListViewItem item);
}