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

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import java.util.ArrayList;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQDialog;

/**

 "Open with" dialog box.
 Used automatically by KRun, and used by libkonq.
		@author David Faure <faure@kde.org>

		@short    "Open with" dialog box.

*/
public class KOpenWithDlg extends TQDialog  {
	protected KOpenWithDlg(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Create a dialog that asks for a application to open a given
		 URL(s) with.
			@param urls the URLs that should be opened. The list can be empty,
		 if the dialog is used to choose an application but not for some particular URLs.
			@param parent parent widget
		     		@short    Create a dialog that asks for a application to open a given  URL(s) with.
	*/
	public KOpenWithDlg(ArrayList urls, TQWidget parent) {
		super((Class) null);
		newKOpenWithDlg(urls,parent);
	}
	private native void newKOpenWithDlg(ArrayList urls, TQWidget parent);
	public KOpenWithDlg(ArrayList urls) {
		super((Class) null);
		newKOpenWithDlg(urls);
	}
	private native void newKOpenWithDlg(ArrayList urls);
	/**
		 Create a dialog that asks for a application to open a given
		 URL(s) with.
			@param urls is the URL that should be opened
			@param text appears as a label on top of the entry box.
			@param value is the initial value of the line
			@param parent parent widget
		     		@short    Create a dialog that asks for a application to open a given  URL(s) with.
	*/
	public KOpenWithDlg(ArrayList urls, String text, String value, TQWidget parent) {
		super((Class) null);
		newKOpenWithDlg(urls,text,value,parent);
	}
	private native void newKOpenWithDlg(ArrayList urls, String text, String value, TQWidget parent);
	public KOpenWithDlg(ArrayList urls, String text, String value) {
		super((Class) null);
		newKOpenWithDlg(urls,text,value);
	}
	private native void newKOpenWithDlg(ArrayList urls, String text, String value);
	/**
		 Create a dialog to select a service for a given service type.
		 Note that this dialog doesn't apply to URLs.
			@param serviceType the service type we want to choose an application for.
			@param value is the initial value of the line
			@param parent parent widget
		     		@short    Create a dialog to select a service for a given service type.
	*/
	public KOpenWithDlg(String serviceType, String value, TQWidget parent) {
		super((Class) null);
		newKOpenWithDlg(serviceType,value,parent);
	}
	private native void newKOpenWithDlg(String serviceType, String value, TQWidget parent);
	public KOpenWithDlg(String serviceType, String value) {
		super((Class) null);
		newKOpenWithDlg(serviceType,value);
	}
	private native void newKOpenWithDlg(String serviceType, String value);
	/**
		 Create a dialog to select an application
		 Note that this dialog doesn't apply to URLs.
			@param parent parent widget
				@short    Create a dialog to select an application  Note that this dialog doesn't apply to URLs.
	*/
	public KOpenWithDlg(TQWidget parent) {
		super((Class) null);
		newKOpenWithDlg(parent);
	}
	private native void newKOpenWithDlg(TQWidget parent);
	public KOpenWithDlg() {
		super((Class) null);
		newKOpenWithDlg();
	}
	private native void newKOpenWithDlg();
	/**
				@return the text the user entered

		@short
	*/
	public native String text();
	/**
		 Hide the "Do not &close when command exits" Checkbox
		     		@short    Hide the "Do not &close when command exits" Checkbox
	*/
	public native void hideNoCloseOnExit();
	/**
		 Hide the "Run in &terminal" Checkbox
		     		@short    Hide the "Run in &terminal" Checkbox
	*/
	public native void hideRunInTerminal();
	/**
				@return the chosen service in the application tree
 Can be null, if the user typed some text and didn't select a service.

		@short
	*/
	// KService::Ptr service(); >>>> NOT CONVERTED
	/**
		 Set whether a new .desktop file should be created if the user selects an
		 application for which no corresponding .desktop file can be found.
			 Regardless of this setting a new .desktop file may still be created if
		 the user has chosen to remember the file association.
			 The default is false: no .desktop files are created.
				@short    Set whether a new .
	*/
	public native void setSaveNewApplications(boolean b);
	/**
		 The slot for clearing the edit widget
		    		@short    The slot for clearing the edit widget
	*/
	public native void slotClear();
	public native void slotSelected(String _name, String _exec);
	public native void slotHighlighted(String _name, String _exec);
	public native void slotTextChanged();
	public native void slotTerminalToggled(boolean arg1);
	public native void slotDbClick();
	public native void slotOK();
	/**
		 Determine service type from URLs
		     		@short    Determine service type from URLs
	*/
	protected native void setServiceType(ArrayList _urls);
	/**
		 Create a dialog that asks for a application to open a given
		 URL(s) with.
			@param text appears as a label on top of the entry box.
			@param value is the initial value of the line
		     		@short    Create a dialog that asks for a application to open a given  URL(s) with.
	*/
	protected native void init(String text, String value);
	/**
		 Reimplemented from TQDialog.accept() to save history of the combobox
		     		@short    Reimplemented from TQDialog.accept() to save history of the combobox
	*/
	protected native void accept();
	/** 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();
}