summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KFontCombo.java
blob: 6ce80e5dab1b57f90035ea4a5a98c50496e684fe (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
163
164
165
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQWidget;

/**

 The items are painted using the respective font itself, so the user
 can easily choose a font based on its look. This can be turned off
 globally if the user wishes so.
		@author Malte Starostik <malte@kde.org>
 
		@short A combobox that lists the available fonts.

*/
public class KFontCombo extends KComboBox  {
	protected KFontCombo(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructor
			@param parent The parent widget
			@param name The object name for the widget
		     		@short    Constructor
	*/
	public KFontCombo(TQWidget parent, String name) {
		super((Class) null);
		newKFontCombo(parent,name);
	}
	private native void newKFontCombo(TQWidget parent, String name);
	public KFontCombo(TQWidget parent) {
		super((Class) null);
		newKFontCombo(parent);
	}
	private native void newKFontCombo(TQWidget parent);
	/**	
		 Constructor that takes an already initialzed font list
			@param fonts A list of fonts to show
			@param parent The parent widget
			@param name The object name for the widget
		     		@short    Constructor that takes an already initialzed font list
	*/
	public KFontCombo(String[] fonts, TQWidget parent, String name) {
		super((Class) null);
		newKFontCombo(fonts,parent,name);
	}
	private native void newKFontCombo(String[] fonts, TQWidget parent, String name);
	public KFontCombo(String[] fonts, TQWidget parent) {
		super((Class) null);
		newKFontCombo(fonts,parent);
	}
	private native void newKFontCombo(String[] fonts, TQWidget parent);
	/**	
		 Sets the font list.
			@param fonts Font list to show
		     		@short    Sets the font list.
	*/
	public native void setFonts(String[] fonts);
	/**	
		 Sets the currently selected font.
			@param family Font to select.
		     		@short    Sets the currently selected font.
	*/
	public native void setCurrentFont(String family);
	/**	
				@return the currently selected font.
     
		@short
	*/
	public native String currentFont();
	/**	
		 Sets the listed fonts to bold or normal.
			@param bold Set to true to display fonts in bold
		     		@short    Sets the listed fonts to bold or normal.
	*/
	public native void setBold(boolean bold);
	/**	
		 Returns the current bold status.
				@return true if fonts are bold
     
		@short    Returns the current bold status.
	*/
	public native boolean bold();
	/**	
		 Sets the listed fonts to italic or regular.
			@param italic Set to true to display fonts italic
		     		@short    Sets the listed fonts to italic or regular.
	*/
	public native void setItalic(boolean italic);
	/**	
		 Returns the current italic status
				@return True if fonts are italic
     
		@short    Returns the current italic status
	*/
	public native boolean italic();
	/**	
		 Sets the listed fonts to underlined or not underlined
			@param underline Set to true to display fonts underlined
		     		@short    Sets the listed fonts to underlined or not underlined
	*/
	public native void setUnderline(boolean underline);
	/**	
		 Returns the current underline status
				@return True if fonts are underlined
     
		@short    Returns the current underline status
	*/
	public native boolean underline();
	/**	
		 Sets the listed fonts to striked out or not
			@param strikeOut Set to true to display fonts striked out
		     		@short    Sets the listed fonts to striked out or not
	*/
	public native void setStrikeOut(boolean strikeOut);
	/**	
		 Returns the current strike out status
				@return True if fonts are striked out
     
		@short    Returns the current strike out status
	*/
	public native boolean strikeOut();
	/**	
		 Sets the listed fonts' size
			@param size Set to the point size to display the fonts in
		     		@short    Sets the listed fonts' size
	*/
	public native void setSize(int size);
	/**	
		 Returns the current font size
				@return The point size of the fonts
     
		@short    Returns the current font size
	*/
	public native int pointSize();
	public native void setCurrentItem(int i);
	/**	
		 Returns the user's setting of whether the items should be painted
		 in the respective fonts or not
				@return True if the respective fonts are used for painting
     
		@short    Returns the user's setting of whether the items should be painted  in the respective fonts or not
	*/
	public static native boolean displayFonts();
	/**	
		 Updated the combo's listBox() to reflect changes made to the
		 fonts' attributed
		     		@short    Updated the combo's listBox() to reflect changes made to the  fonts' attributed
	*/
	protected native void updateFonts();
	/**	
			 Listens to highlighted(int)
		     		@short
	*/
	protected native void slotModified(int i);
	/** 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();
}