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

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import java.util.ArrayList;
import org.kde.qt.QWidget;
import org.kde.qt.QWidget;

/**

 Abstract baseclass for all preview widgets which shall be used via
 KFileDialog.setPreviewWidget(const KPreviewWidgetBase ).
 Ownership will be transferred to KFileDialog, so you have to create
 the preview with "new" and let KFileDialog delete it.
 Just derive your custom preview widget from KPreviewWidgetBase and implement
 all the pure methods. The slot showPreview(KURL) is called
 every time the file selection changes.
		@author Frerich Raabe <raabe@kde.org>
 
		@short Abstract baseclass for all preview widgets.

*/
public class KPreviewWidgetBase extends QWidget  {
	protected KPreviewWidgetBase(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Constructor. Construct the user interface of your preview widget here
		 and pass the KFileDialog this preview widget is going to be used in as
		 the parent.
			@param parent The KFileDialog this preview widget is going to be used in
			@param name The internal name of this object
		     		@short    Constructor.
	*/
	/**	
		 This slot is called every time the user selects another file in the
		 file dialog. Implement the stuff necessary to reflect the change here.
			@param url The URL of the currently selected file.
		     		@short    This slot is called every time the user selects another file in the  file dialog.
	*/
	public native void showPreview(KURL url);
	/**	
		 Reimplement this to clear the preview. This is called when e.g. the
		 selection is cleared or when multiple selections exist, or the directory
		 is changed.
		     		@short    Reimplement this to clear the preview.
	*/
	public native void clearPreview();
	public native ArrayList supportedMimeTypes();
}