• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
TDEFontRequester Class Reference

#include <tdefontrequester.h>

Inherits TQWidget.

Signals

void fontSelected (const TQFont &font)
 

Public Member Functions

 TDEFontRequester (TQWidget *parent=0L, const char *name=0L, bool onlyFixed=false)
 
TQFont font () const
 
bool isFixedOnly () const
 
TQString sampleText () const
 
TQString title () const
 
TQLabel * label () const
 
TQPushButton * button () const
 
virtual void setFont (const TQFont &font, bool onlyFixed=false)
 
virtual void setSampleText (const TQString &text)
 
virtual void setTitle (const TQString &title)
 

Protected Slots

virtual void buttonClicked ()
 

Protected Member Functions

void displaySampleText ()
 
void setToolTip ()
 

Protected Attributes

bool m_onlyFixed
 
TQString m_sampleText
 
TQString m_title
 
TQLabel * m_sampleLabel
 
TQPushButton * m_button
 
TQFont m_selFont
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TDEFontRequester()

TDEFontRequester::TDEFontRequester ( TQWidget *  parent = 0L,
const char *  name = 0L,
bool  onlyFixed = false 
)

Constructs a font requester widget.

Parameters
parentThe parent widget.
nameThe widget name.
onlyFixedOnly display fonts which have fixed-width character sizes.

Definition at line 31 of file tdefontrequester.cpp.

Member Function Documentation

◆ button()

TQPushButton * TDEFontRequester::button ( ) const
inline
Returns
Pointer to the pushbutton in the widget.

Definition at line 93 of file tdefontrequester.h.

◆ buttonClicked

void TDEFontRequester::buttonClicked ( )
protectedvirtualslot

Definition at line 73 of file tdefontrequester.cpp.

◆ displaySampleText()

void TDEFontRequester::displaySampleText ( )
protected

Definition at line 84 of file tdefontrequester.cpp.

◆ 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
Returns
Pointer to the label used for preview.

Definition at line 88 of file tdefontrequester.h.

◆ 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
fontThe font to select.
onlyFixedDisplay 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
textThe 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
titleThe title to be set.

Definition at line 67 of file tdefontrequester.cpp.

◆ setToolTip()

void TDEFontRequester::setToolTip ( )
protected

Definition at line 99 of file tdefontrequester.cpp.

◆ title()

TQString TDEFontRequester::title ( ) const
inline
Returns
The current title of the widget.

Definition at line 83 of file tdefontrequester.h.

Member Data Documentation

◆ m_button

TQPushButton* TDEFontRequester::m_button
protected

Definition at line 145 of file tdefontrequester.h.

◆ m_onlyFixed

bool TDEFontRequester::m_onlyFixed
protected

Definition at line 142 of file tdefontrequester.h.

◆ m_sampleLabel

TQLabel* TDEFontRequester::m_sampleLabel
protected

Definition at line 144 of file tdefontrequester.h.

◆ m_sampleText

TQString TDEFontRequester::m_sampleText
protected

Definition at line 143 of file tdefontrequester.h.

◆ m_selFont

TQFont TDEFontRequester::m_selFont
protected

Definition at line 146 of file tdefontrequester.h.

◆ m_title

TQString TDEFontRequester::m_title
protected

Definition at line 143 of file tdefontrequester.h.


The documentation for this class was generated from the following files:
  • tdefontrequester.h
  • tdefontrequester.cpp

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.