• 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
35class 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)
44public:
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
153protected slots:
158 void slotModified( int i );
159
160protected:
165 void updateFonts();
166
167private:
168 void init();
169
170private:
171 friend class TDEFontListItem;
172protected:
173 virtual void virtual_hook( int id, void* data );
174private:
175 struct TDEFontComboPrivate *d;
176};
177
178#endif
179
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::KComboBox
KComboBox(TQWidget *parent=0, const char *name=0)
Constructs a read-only or rather select-only combo box with a parent object and a name.
Definition kcombobox.cpp:60
TDEFontCombo::setStrikeOut
void setStrikeOut(bool strikeOut)
Sets the listed fonts to striked out or not.
Definition tdefontcombo.cpp:333
TDEFontCombo::setFonts
void setFonts(const TQStringList &fonts)
Sets the font list.
Definition tdefontcombo.cpp:191
TDEFontCombo::updateFonts
void updateFonts()
Updated the combo's listBox() to reflect changes made to the fonts' attributed.
Definition tdefontcombo.cpp:363
TDEFontCombo::bold
bool bold() const
Returns the current bold status.
Definition tdefontcombo.cpp:302
TDEFontCombo::displayFonts
static bool displayFonts()
Returns the user's setting of whether the items should be painted in the respective fonts or not.
Definition tdefontcombo.cpp:375
TDEFontCombo::TDEFontCombo
TDEFontCombo(TQWidget *parent, const char *name=0)
Constructor.
Definition tdefontcombo.cpp:175
TDEFontCombo::underline
bool underline() const
Returns the current underline status.
Definition tdefontcombo.cpp:328
TDEFontCombo::size
int size() const
Returns the current font size.
Definition tdefontcombo.cpp:358
TDEFontCombo::setBold
void setBold(bool bold)
Sets the listed fonts to bold or normal.
Definition tdefontcombo.cpp:294
TDEFontCombo::setCurrentFont
void setCurrentFont(const TQString &family)
Sets the currently selected font.
Definition tdefontcombo.cpp:201
TDEFontCombo::setSize
void setSize(int size)
Sets the listed fonts' size.
Definition tdefontcombo.cpp:346
TDEFontCombo::currentFont
TQString currentFont() const
Definition tdefontcombo.cpp:266
TDEFontCombo::setUnderline
void setUnderline(bool underline)
Sets the listed fonts to underlined or not underlined.
Definition tdefontcombo.cpp:320
TDEFontCombo::italic
bool italic() const
Returns the current italic status.
Definition tdefontcombo.cpp:315
TDEFontCombo::setItalic
void setItalic(bool italic)
Sets the listed fonts to italic or regular.
Definition tdefontcombo.cpp:307
TDEFontCombo::strikeOut
bool strikeOut() const
Returns the current strike out status.
Definition tdefontcombo.cpp:341
TDEFontCombo::slotModified
void slotModified(int i)
Definition tdefontcombo.cpp:261

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