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

tdeui

  • tdeui
tdefontcombo.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 _TDEFONTCOMBO_H_
22 #define _TDEFONTCOMBO_H_
23 
24 #include <kcombobox.h>
25 
35 class TDEUI_EXPORT TDEFontCombo : public KComboBox
36 {
37  TQ_OBJECT
38  TQ_PROPERTY(TQString family READ currentFont WRITE setCurrentFont)
39  TQ_PROPERTY(bool bold READ bold WRITE setBold DESIGNABLE true)
40  TQ_PROPERTY(bool italic READ italic WRITE setItalic DESIGNABLE true)
41  TQ_PROPERTY(bool underline READ underline WRITE setUnderline DESIGNABLE true)
42  TQ_PROPERTY(bool strikeOut READ strikeOut WRITE setStrikeOut DESIGNABLE true)
43  TQ_PROPERTY(int fontSize READ size WRITE setSize DESIGNABLE true)
44 public:
51  TDEFontCombo(TQWidget *parent, const char *name = 0);
59  TDEFontCombo(const TQStringList &fonts, TQWidget *parent, const char *name = 0);
63  virtual ~TDEFontCombo();
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 TDEFontListItem;
172 protected:
173  virtual void virtual_hook( int id, void* data );
174 private:
175  struct TDEFontComboPrivate *d;
176 };
177 
178 #endif
179 
KComboBox
An enhanced combo box.
Definition: kcombobox.h:152
KComboBox::setCurrentItem
void setCurrentItem(const TQString &item, bool insert=false, int index=-1)
Selects the first item that matches item.
Definition: kcombobox.cpp:306
TDEFontCombo
A combobox that lists the available fonts.
Definition: tdefontcombo.h:36

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.1
This website is maintained by Timothy Pearson.