#include <tdefontrequester.h>
Inherits TQWidget.
|
virtual void | buttonClicked () |
|
|
void | displaySampleText () |
|
void | setToolTip () |
|
|
bool | m_onlyFixed |
|
TQString | m_sampleText |
|
TQString | m_title |
|
TQLabel * | m_sampleLabel |
|
TQPushButton * | m_button |
|
TQFont | m_selFont |
|
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.
KDE Font Requester
- Author
- Nadeem Hasan nhasa.nosp@m.n@kd.nosp@m.e.org
Definition at line 44 of file tdefontrequester.h.
◆ TDEFontRequester()
TDEFontRequester::TDEFontRequester |
( |
TQWidget * |
parent = 0L , |
|
|
const char * |
name = 0L , |
|
|
bool |
onlyFixed = false |
|
) |
| |
Constructs a font requester widget.
- Parameters
-
parent | The parent widget. |
name | The widget name. |
onlyFixed | Only display fonts which have fixed-width character sizes. |
Definition at line 31 of file tdefontrequester.cpp.
◆ button()
TQPushButton* TDEFontRequester::button |
( |
| ) |
const |
|
inline |
◆ font()
TQFont TDEFontRequester::font |
( |
| ) |
const |
|
inline |
- Returns
- The currently selected font in the requester.
Definition at line 68 of file tdefontrequester.h.
◆ fontSelected
void TDEFontRequester::fontSelected |
( |
const TQFont & |
font | ) |
|
|
signal |
Emitted when a new font
has been selected in the underlying dialog.
◆ isFixedOnly()
bool TDEFontRequester::isFixedOnly |
( |
| ) |
const |
|
inline |
- Returns
- Returns true if only fixed fonts are displayed.
Definition at line 73 of file tdefontrequester.h.
◆ label()
TQLabel* TDEFontRequester::label |
( |
| ) |
const |
|
inline |
◆ sampleText()
TQString TDEFontRequester::sampleText |
( |
| ) |
const |
|
inline |
- Returns
- The current text in the sample text input area.
Definition at line 78 of file tdefontrequester.h.
◆ setFont()
void TDEFontRequester::setFont |
( |
const TQFont & |
font, |
|
|
bool |
onlyFixed = false |
|
) |
| |
|
virtual |
Sets the currently selected font in the requester.
- Parameters
-
font | The font to select. |
onlyFixed | Display only fixed-width fonts in the font dialog if true , or vice-versa. |
Definition at line 52 of file tdefontrequester.cpp.
◆ setSampleText()
void TDEFontRequester::setSampleText |
( |
const TQString & |
text | ) |
|
|
virtual |
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 TQString::null will restore the default.
- Parameters
-
text | The new sample text. The current will be removed. |
Definition at line 61 of file tdefontrequester.cpp.
◆ setTitle()
void TDEFontRequester::setTitle |
( |
const TQString & |
title | ) |
|
|
virtual |
Set the title for the widget that will be used in the tooltip and what's this text.
- Parameters
-
title | The title to be set. |
Definition at line 67 of file tdefontrequester.cpp.
◆ title()
TQString TDEFontRequester::title |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: