summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KIconView.java
blob: 7554b2703d85efedd33b2e2d5437fea791414ac5 (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.QIconViewItem;
import org.kde.qt.QFont;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPoint;
import org.kde.qt.QDragMoveEvent;
import org.kde.qt.QDragEnterEvent;
import org.kde.qt.QDragLeaveEvent;
import org.kde.qt.QFocusEvent;
import org.kde.qt.QMouseEvent;
import org.kde.qt.QDropEvent;
import org.kde.qt.QEvent;
import org.kde.qt.QWidget;
import org.kde.qt.QWheelEvent;
import org.kde.qt.QIconView;

/**

 This Widget extends the functionality of QIconView 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
 QIconView.clicked() or QIconView.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
 QIconView.selectionChanged() signal.
 See {@link KIconViewSignals} for signals emitted by KIconView
		@short A variant of QIconView that honors KDE's system-wide settings.

*/
public class KIconView extends QIconView  {
	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 QMetaObject metaObject();
	public native String className();
	public KIconView(QWidget parent, String name, int f) {
		super((Class) null);
		newKIconView(parent,name,f);
	}
	private native void newKIconView(QWidget parent, String name, int f);
	public KIconView(QWidget parent, String name) {
		super((Class) null);
		newKIconView(parent,name);
	}
	private native void newKIconView(QWidget parent, String name);
	public KIconView(QWidget parent) {
		super((Class) null);
		newKIconView(parent);
	}
	private native void newKIconView(QWidget 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 QIconView 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(QFont 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(QIconViewItem item);
	protected native void emitExecute(QIconViewItem item, QPoint pos);
	protected native void updateDragHoldItem(QDropEvent e);
	protected native void focusOutEvent(QFocusEvent fe);
	protected native void leaveEvent(QEvent e);
	protected native void contentsMousePressEvent(QMouseEvent e);
	protected native void contentsMouseDoubleClickEvent(QMouseEvent e);
	protected native void contentsMouseReleaseEvent(QMouseEvent e);
	protected native void contentsDragEnterEvent(QDragEnterEvent e);
	protected native void contentsDragLeaveEvent(QDragLeaveEvent e);
	protected native void contentsDragMoveEvent(QDragMoveEvent e);
	protected native void contentsDropEvent(QDropEvent e);
	protected native void wheelEvent(QWheelEvent 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 QIconView).
		   		@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 QIconView).
	*/
	protected native void cancelPendingHeldSignal();
	protected native void slotOnItem(QIconViewItem 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();
}