summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KFontCombo.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KFontCombo.java')
-rw-r--r--kdejava/koala/org/kde/koala/KFontCombo.java165
1 files changed, 165 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KFontCombo.java b/kdejava/koala/org/kde/koala/KFontCombo.java
new file mode 100644
index 00000000..d25f2093
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KFontCombo.java
@@ -0,0 +1,165 @@
+//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 org.kde.qt.QWidget;
+
+/**
+
+ 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 QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor
+ @param parent The parent widget
+ @param name The object name for the widget
+ @short Constructor
+ */
+ public KFontCombo(QWidget parent, String name) {
+ super((Class) null);
+ newKFontCombo(parent,name);
+ }
+ private native void newKFontCombo(QWidget parent, String name);
+ public KFontCombo(QWidget parent) {
+ super((Class) null);
+ newKFontCombo(parent);
+ }
+ private native void newKFontCombo(QWidget 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, QWidget parent, String name) {
+ super((Class) null);
+ newKFontCombo(fonts,parent,name);
+ }
+ private native void newKFontCombo(String[] fonts, QWidget parent, String name);
+ public KFontCombo(String[] fonts, QWidget parent) {
+ super((Class) null);
+ newKFontCombo(fonts,parent);
+ }
+ private native void newKFontCombo(String[] fonts, QWidget 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();
+}