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

import org.kde.qt.Qt;
import org.kde.qt.TQIconViewItem;
import org.kde.qt.TQFont;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPoint;
import org.kde.qt.TQDragMoveEvent;
import org.kde.qt.TQDragEnterEvent;
import org.kde.qt.TQDragLeaveEvent;
import org.kde.qt.TQFocusEvent;
import org.kde.qt.TQMouseEvent;
import org.kde.qt.TQDropEvent;
import org.kde.qt.TQEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQWheelEvent;
import org.kde.qt.TQIconView;

/**

 This Widget extends the functionality of TQIconView to honor the system
 wide settings for Single Click/Double Click mode, Auto Selection and
 Change Cursor over Link.
 There is a new signal executed(). It gets connected to either
 TQIconView.clicked() or TQIconView.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
 TQIconView.selectionChanged() signal.
 See {@link KIconViewSignals} for signals emitted by KIconView
		@short A variant of TQIconView that honors KDE's system-wide settings.

*/
public class KIconView extends TQIconView  {
	protected KIconView(Class dummy){super((Class) null);}
	/**	
		 KIconView has two different operating modes. Execute mode is depending
		 on the configuration of single-click or double-click where the signal
		 executed() will be emitted upon click/double-click.
		 In Select mode, this signal will not be emitted.
			 Default is Execute mode.
		   		@short    KIconView has two different operating modes.
	*/
	public static final int Execute = 0;
	public static final int Select = 1;

	public native TQMetaObject metaObject();
	public native String className();
	public KIconView(TQWidget parent, String name, int f) {
		super((Class) null);
		newKIconView(parent,name,f);
	}
	private native void newKIconView(TQWidget parent, String name, int f);
	public KIconView(TQWidget parent, String name) {
		super((Class) null);
		newKIconView(parent,name);
	}
	private native void newKIconView(TQWidget parent, String name);
	public KIconView(TQWidget parent) {
		super((Class) null);
		newKIconView(parent);
	}
	private native void newKIconView(TQWidget parent);
	public KIconView() {
		super((Class) null);
		newKIconView();
	}
	private native void newKIconView();
	/**	
		 Sets the mode to Execute or Select.
		
			<li>
			In Execute mode, the signal executed()
			 will be emitted when the user clicks/double-clicks an item.
			</li>
			
			<li>
			Select mode is
			 the normal TQIconView mode.
			</li>
				 Default is Execute.
		   		@short    Sets the mode to Execute or Select.
	*/
	public native void setMode(int m);
	/**	
				@return the current Mode, either Execute or Select.
   
		@short
	*/
	public native int mode();
	/**	
		 Reimplemented for internal purposes
		   		@short    Reimplemented for internal purposes
	*/
	public native void setFont(TQFont arg1);
	/**	
		 Set the maximum number of lines that will be used to display icon text.
		 Setting this value will enable word-wrap, too.
			@param n Number of lines
		    		@short    Set the maximum number of lines that will be used to display icon text.
	*/
	public native void setIconTextHeight(int n);
	/**	
				@return The height of icon text in lines

		@short
	*/
	public native int iconTextHeight();
	/**	
		 Reimplemented for held() signal behavior internal purposes
		   		@short    Reimplemented for held() signal behavior internal purposes
	*/
	public native void takeItem(TQIconViewItem item);
	protected native void emitExecute(TQIconViewItem item, TQPoint pos);
	protected native void updateDragHoldItem(TQDropEvent e);
	protected native void focusOutEvent(TQFocusEvent fe);
	protected native void leaveEvent(TQEvent e);
	protected native void contentsMousePressEvent(TQMouseEvent e);
	protected native void contentsMouseDoubleClickEvent(TQMouseEvent e);
	protected native void contentsMouseReleaseEvent(TQMouseEvent e);
	protected native void contentsDragEnterEvent(TQDragEnterEvent e);
	protected native void contentsDragLeaveEvent(TQDragLeaveEvent e);
	protected native void contentsDragMoveEvent(TQDragMoveEvent e);
	protected native void contentsDropEvent(TQDropEvent e);
	protected native void wheelEvent(TQWheelEvent e);
	/**	
		 This method allows to handle correctly cases where a subclass
		 needs the held() signal to not be triggered without calling
		 a KIconView.contentsDragEvent() method (which have side effects
		 because they forward to TQIconView).
		   		@short    This method allows to handle correctly cases where a subclass  needs the held() signal to not be triggered without calling  a KIconView.contentsDrag Event() method (which have side effects  because they forward to TQIconView).
	*/
	protected native void cancelPendingHeldSignal();
	protected native void slotOnItem(TQIconViewItem item);
	protected native void slotOnViewport();
	protected native void slotSettingsChanged(int arg1);
	/**	
		 Auto selection happend.
		   		@short    Auto selection happend.
	*/
	protected native void slotAutoSelect();
	/** 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();
}