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

kdeui

Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Properties | Friends
KFontCombo Class Reference

#include <kfontcombo.h>

Inheritance diagram for KFontCombo:
KComboBox KCompletionBase

List of all members.

Public Member Functions

 KFontCombo (TQWidget *parent, const char *name=0)
 KFontCombo (const TQStringList &fonts, TQWidget *parent, const char *name=0)
virtual ~KFontCombo ()
void setFonts (const TQStringList &fonts)
void setCurrentFont (const TQString &family)
TQString currentFont () const
void setBold (bool bold)
bool bold () const
void setItalic (bool italic)
bool italic () const
void setUnderline (bool underline)
bool underline () const
void setStrikeOut (bool strikeOut)
bool strikeOut () const
void setSize (int size)
int size () const
virtual void setCurrentItem (int i)

Static Public Member Functions

static bool displayFonts ()

Protected Slots

void slotModified (int i)

Protected Member Functions

void updateFonts ()
virtual void virtual_hook (int id, void *data)

Properties

TQString family
bool bold
bool italic
bool underline
bool strikeOut
int fontSize

Friends

class KFontListItem

Detailed Description

A combobox that lists the available fonts.

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>

Definition at line 35 of file kfontcombo.h.


Constructor & Destructor Documentation

KFontCombo::KFontCombo ( TQWidget *  parent,
const char *  name = 0 
)

Constructor.

Parameters:
parentThe parent widget
nameThe object name for the widget

Definition at line 175 of file kfontcombo.cpp.

KFontCombo::KFontCombo ( const TQStringList &  fonts,
TQWidget *  parent,
const char *  name = 0 
)

Constructor that takes an already initialzed font list.

Parameters:
fontsA list of fonts to show
parentThe parent widget
nameThe object name for the widget

Definition at line 184 of file kfontcombo.cpp.

KFontCombo::~KFontCombo ( ) [virtual]

Destructor.

Definition at line 289 of file kfontcombo.cpp.


Member Function Documentation

bool KFontCombo::bold ( ) const

Returns the current bold status.

Returns:
true if fonts are bold
TQString KFontCombo::currentFont ( ) const
Returns:
the currently selected font.

Definition at line 266 of file kfontcombo.cpp.

bool KFontCombo::displayFonts ( ) [static]

Returns the user's setting of whether the items should be painted in the respective fonts or not.

Returns:
True if the respective fonts are used for painting

Definition at line 375 of file kfontcombo.cpp.

bool KFontCombo::italic ( ) const

Returns the current italic status.

Returns:
True if fonts are italic
void KFontCombo::setBold ( bool  bold)

Sets the listed fonts to bold or normal.

Parameters:
boldSet to true to display fonts in bold

Definition at line 294 of file kfontcombo.cpp.

void KFontCombo::setCurrentFont ( const TQString &  family)

Sets the currently selected font.

Parameters:
familyFont to select.

Definition at line 201 of file kfontcombo.cpp.

void KFontCombo::setCurrentItem ( int  index) [virtual]

Simply calls QComboBox' implementation.

Only here to not become shadowed.

Reimplemented from KComboBox.

Definition at line 273 of file kfontcombo.cpp.

void KFontCombo::setFonts ( const TQStringList &  fonts)

Sets the font list.

Parameters:
fontsFont list to show

Definition at line 191 of file kfontcombo.cpp.

void KFontCombo::setItalic ( bool  italic)

Sets the listed fonts to italic or regular.

Parameters:
italicSet to true to display fonts italic

Definition at line 307 of file kfontcombo.cpp.

void KFontCombo::setSize ( int  size)

Sets the listed fonts' size.

Parameters:
sizeSet to the point size to display the fonts in

Definition at line 346 of file kfontcombo.cpp.

void KFontCombo::setStrikeOut ( bool  strikeOut)

Sets the listed fonts to striked out or not.

Parameters:
strikeOutSet to true to display fonts striked out

Definition at line 333 of file kfontcombo.cpp.

void KFontCombo::setUnderline ( bool  underline)

Sets the listed fonts to underlined or not underlined.

Parameters:
underlineSet to true to display fonts underlined

Definition at line 320 of file kfontcombo.cpp.

int KFontCombo::size ( ) const

Returns the current font size.

Returns:
The point size of the fonts

Definition at line 358 of file kfontcombo.cpp.

void KFontCombo::slotModified ( int  i) [protected, slot]

Listens to highlighted(int)

Definition at line 261 of file kfontcombo.cpp.

bool KFontCombo::strikeOut ( ) const

Returns the current strike out status.

Returns:
True if fonts are striked out
bool KFontCombo::underline ( ) const

Returns the current underline status.

Returns:
True if fonts are underlined
void KFontCombo::updateFonts ( ) [protected]

Updated the combo's listBox() to reflect changes made to the fonts' attributed.

Definition at line 363 of file kfontcombo.cpp.


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

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |