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

kdeui

  • kdeui
kfontcombo.h
1 /* This file is part of the KDE libraries
2  Copyright (c) 2001 Malte Starostik <malte@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 // $Id$
20 
21 #ifndef _KFONTCOMBO_H_
22 #define _KFONTCOMBO_H_
23 
24 #include <kcombobox.h>
25 
35 class KDEUI_EXPORT KFontCombo : public KComboBox
36 {
37  Q_OBJECT
38  Q_PROPERTY(TQString family READ currentFont WRITE setCurrentFont)
39  Q_PROPERTY(bool bold READ bold WRITE setBold DESIGNABLE true)
40  Q_PROPERTY(bool italic READ italic WRITE setItalic DESIGNABLE true)
41  Q_PROPERTY(bool underline READ underline WRITE setUnderline DESIGNABLE true)
42  Q_PROPERTY(bool strikeOut READ strikeOut WRITE setStrikeOut DESIGNABLE true)
43  Q_PROPERTY(int fontSize READ size WRITE setSize DESIGNABLE true)
44 public:
51  KFontCombo(TQWidget *parent, const char *name = 0);
59  KFontCombo(const TQStringList &fonts, TQWidget *parent, const char *name = 0);
63  virtual ~KFontCombo();
64 
70  void setFonts(const TQStringList &fonts);
76  void setCurrentFont(const TQString &family);
80  TQString currentFont() const;
81 
87  void setBold(bool bold);
93  bool bold() const;
99  void setItalic(bool italic);
105  bool italic() const;
111  void setUnderline(bool underline);
117  bool underline() const;
123  void setStrikeOut(bool strikeOut);
129  bool strikeOut() const;
135  void setSize(int size);
141  int size() const;
142 
149  static bool displayFonts();
150 
151  virtual void setCurrentItem(int i);
152 
153 protected slots:
158  void slotModified( int i );
159 
160 protected:
165  void updateFonts();
166 
167 private:
168  void init();
169 
170 private:
171  friend class KFontListItem;
172 protected:
173  virtual void virtual_hook( int id, void* data );
174 private:
175  struct KFontComboPrivate *d;
176 };
177 
178 #endif
179 
KFontCombo
A combobox that lists the available fonts.
Definition: kfontcombo.h:35
KComboBox::setCurrentItem
void setCurrentItem(const TQString &item, bool insert=false, int index=-1)
Selects the first item that matches item.
Definition: kcombobox.cpp:306
KComboBox
An enhanced combo box.
Definition: kcombobox.h:151

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.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |