summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/TDEFontRequester.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/TDEFontRequester.java')
-rw-r--r--kdejava/koala/org/kde/koala/TDEFontRequester.java130
1 files changed, 130 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/TDEFontRequester.java b/kdejava/koala/org/kde/koala/TDEFontRequester.java
new file mode 100644
index 00000000..83a2c64c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/TDEFontRequester.java
@@ -0,0 +1,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();
+}