You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
4.2 KiB
131 lines
4.2 KiB
15 years ago
|
//Auto-generated by kalyptus. DO NOT EDIT.
|
||
11 years ago
|
package org.trinitydesktop.koala;
|
||
15 years ago
|
|
||
11 years ago
|
import org.trinitydesktop.qt.Qt;
|
||
|
import org.trinitydesktop.qt.TQFont;
|
||
|
import org.trinitydesktop.qt.TQMetaObject;
|
||
|
import org.trinitydesktop.qt.QtSupport;
|
||
|
import org.trinitydesktop.qt.TQPushButton;
|
||
|
import org.trinitydesktop.qt.TQWidget;
|
||
|
import org.trinitydesktop.qt.TQLabel;
|
||
|
import org.trinitydesktop.qt.TQWidget;
|
||
15 years ago
|
|
||
|
/**
|
||
|
|
||
|
This class provides a widget with a lineedit and a button, which invokes
|
||
12 years ago
|
a font dialog (TDEFontDialog).
|
||
15 years ago
|
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.
|
||
12 years ago
|
\image html tdefontrequester.png "KDE Font Requester"
|
||
12 years ago
|
See {@link TDEFontRequesterSignals} for signals emitted by TDEFontRequester
|
||
15 years ago
|
@author Nadeem Hasan <nhasan@kde.org>
|
||
|
|
||
12 years ago
|
@short This class provides a widget with a lineedit and a button, which invokes a font dialog (TDEFontDialog).
|
||
15 years ago
|
|
||
|
*/
|
||
12 years ago
|
public class TDEFontRequester extends TQWidget {
|
||
|
protected TDEFontRequester(Class dummy){super((Class) null);}
|
||
13 years ago
|
public native TQMetaObject metaObject();
|
||
15 years ago
|
public native String className();
|
||
11 years ago
|
/**
|
||
15 years ago
|
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.
|
||
|
*/
|
||
12 years ago
|
public TDEFontRequester(TQWidget parent, String name, boolean onlyFixed) {
|
||
15 years ago
|
super((Class) null);
|
||
12 years ago
|
newTDEFontRequester(parent,name,onlyFixed);
|
||
15 years ago
|
}
|
||
12 years ago
|
private native void newTDEFontRequester(TQWidget parent, String name, boolean onlyFixed);
|
||
|
public TDEFontRequester(TQWidget parent, String name) {
|
||
15 years ago
|
super((Class) null);
|
||
12 years ago
|
newTDEFontRequester(parent,name);
|
||
15 years ago
|
}
|
||
12 years ago
|
private native void newTDEFontRequester(TQWidget parent, String name);
|
||
|
public TDEFontRequester(TQWidget parent) {
|
||
15 years ago
|
super((Class) null);
|
||
12 years ago
|
newTDEFontRequester(parent);
|
||
15 years ago
|
}
|
||
12 years ago
|
private native void newTDEFontRequester(TQWidget parent);
|
||
|
public TDEFontRequester() {
|
||
15 years ago
|
super((Class) null);
|
||
12 years ago
|
newTDEFontRequester();
|
||
15 years ago
|
}
|
||
12 years ago
|
private native void newTDEFontRequester();
|
||
11 years ago
|
/**
|
||
15 years ago
|
@return The currently selected font in the requester.
|
||
11 years ago
|
|
||
15 years ago
|
@short
|
||
|
*/
|
||
13 years ago
|
public native TQFont font();
|
||
11 years ago
|
/**
|
||
15 years ago
|
@return Returns true if only fixed fonts are displayed.
|
||
11 years ago
|
|
||
15 years ago
|
@short
|
||
|
*/
|
||
|
public native boolean isFixedOnly();
|
||
11 years ago
|
/**
|
||
15 years ago
|
@return The current text in the sample text input area.
|
||
11 years ago
|
|
||
15 years ago
|
@short
|
||
|
*/
|
||
|
public native String sampleText();
|
||
11 years ago
|
/**
|
||
15 years ago
|
@return The current title of the widget.
|
||
11 years ago
|
|
||
15 years ago
|
@short
|
||
|
*/
|
||
|
public native String title();
|
||
11 years ago
|
/**
|
||
15 years ago
|
@return Pointer to the label used for preview.
|
||
11 years ago
|
|
||
15 years ago
|
@short
|
||
|
*/
|
||
13 years ago
|
public native TQLabel label();
|
||
11 years ago
|
/**
|
||
15 years ago
|
@return Pointer to the pushbutton in the widget.
|
||
11 years ago
|
|
||
15 years ago
|
@short
|
||
|
*/
|
||
13 years ago
|
public native TQPushButton button();
|
||
11 years ago
|
/**
|
||
15 years ago
|
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.
|
||
|
*/
|
||
13 years ago
|
public native void setFont(TQFont font, boolean onlyFixed);
|
||
|
public native void setFont(TQFont font);
|
||
11 years ago
|
/**
|
||
15 years ago
|
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);
|
||
11 years ago
|
/**
|
||
15 years ago
|
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();
|
||
|
}
|