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

import org.kde.qt.Qt;
import org.kde.qt.TQFont;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPushButton;
import org.kde.qt.TQWidget;
import org.kde.qt.TQLabel;
import org.kde.qt.TQWidget;

/**

 This class provides a widget with a lineedit and a button, which invokes
 a font dialog (TDEFontDialog).
 The lineedit provides a preview of the selected font. The preview text can
 be customized. You can also have the font dialog show only the fixed fonts.
 \image html kfontrequester.png "KDE Font Requester"
  See {@link TDEFontRequesterSignals} for signals emitted by TDEFontRequester
		@author Nadeem Hasan <nhasan@kde.org>

		@short    This class provides a widget with a lineedit and a button, which invokes  a font dialog (TDEFontDialog).

*/
public class TDEFontRequester extends TQWidget  {
	protected TDEFontRequester(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a font requester widget.
			@param parent The parent widget.
			@param name The widget name.
			@param onlyFixed Only display fonts which have fixed-width character
		        sizes.
		     		@short    Constructs a font requester widget.
	*/
	public TDEFontRequester(TQWidget parent, String name, boolean onlyFixed) {
		super((Class) null);
		newTDEFontRequester(parent,name,onlyFixed);
	}
	private native void newTDEFontRequester(TQWidget parent, String name, boolean onlyFixed);
	public TDEFontRequester(TQWidget parent, String name) {
		super((Class) null);
		newTDEFontRequester(parent,name);
	}
	private native void newTDEFontRequester(TQWidget parent, String name);
	public TDEFontRequester(TQWidget parent) {
		super((Class) null);
		newTDEFontRequester(parent);
	}
	private native void newTDEFontRequester(TQWidget parent);
	public TDEFontRequester() {
		super((Class) null);
		newTDEFontRequester();
	}
	private native void newTDEFontRequester();
	/**	
				@return The currently selected font in the requester.
     
		@short
	*/
	public native TQFont font();
	/**	
				@return Returns true if only fixed fonts are displayed.
     
		@short
	*/
	public native boolean isFixedOnly();
	/**	
				@return The current text in the sample text input area.
     
		@short
	*/
	public native String sampleText();
	/**	
				@return The current title of the widget.
     
		@short
	*/
	public native String title();
	/**	
				@return Pointer to the label used for preview.
     
		@short
	*/
	public native TQLabel label();
	/**	
				@return Pointer to the pushbutton in the widget.
     
		@short
	*/
	public native TQPushButton button();
	/**	
		 Sets the currently selected font in the requester.
			@param font The font to select.
			@param onlyFixed Display only fixed-width fonts in the font dialog
		 if <code>true</code>, or vice-versa.
		     		@short    Sets the currently selected font in the requester.
	*/
	public native void setFont(TQFont font, boolean onlyFixed);
	public native void setFont(TQFont font);
	/**	
		 Sets the sample text.
			 Normally you should not change this
		 text, but it can be better to do this if the default text is
		 too large for the edit area when using the default font of your
		 application. Default text is current font name and size. Setting
		 the text to null will restore the default.
			@param text The new sample text. The current will be removed.
		     		@short    Sets the sample text.
	*/
	public native void setSampleText(String text);
	/**	
		 Set the title for the widget that will be used in the tooltip and
		 what's this text.
			@param title The title to be set.
		     		@short    Set the title for the widget that will be used in the tooltip and  what's this text.
	*/
	public native void setTitle(String title);
	protected native void displaySampleText();
	protected native void setToolTip();
	protected native void buttonClicked();
	/** 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();
}