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

tdeui

tdefontcombo.h
00001 /* This file is part of the KDE libraries
00002    Copyright (c) 2001 Malte Starostik <malte@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 // $Id$
00020 
00021 #ifndef _TDEFONTCOMBO_H_
00022 #define _TDEFONTCOMBO_H_
00023 
00024 #include <kcombobox.h>
00025 
00035 class TDEUI_EXPORT TDEFontCombo : public KComboBox
00036 {
00037     Q_OBJECT
00038     TQ_PROPERTY(TQString family READ currentFont WRITE setCurrentFont)
00039     TQ_PROPERTY(bool bold READ bold WRITE setBold DESIGNABLE true)
00040     TQ_PROPERTY(bool italic READ italic WRITE setItalic DESIGNABLE true)
00041     TQ_PROPERTY(bool underline READ underline WRITE setUnderline DESIGNABLE true)
00042     TQ_PROPERTY(bool strikeOut READ strikeOut WRITE setStrikeOut DESIGNABLE true)
00043     TQ_PROPERTY(int fontSize READ size WRITE setSize DESIGNABLE true)
00044 public:
00051     TDEFontCombo(TQWidget *parent, const char *name = 0);
00059     TDEFontCombo(const TQStringList &fonts, TQWidget *parent, const char *name = 0);
00063     virtual ~TDEFontCombo();
00064 
00070     void setFonts(const TQStringList &fonts);
00076     void setCurrentFont(const TQString &family);
00080     TQString currentFont() const;
00081 
00087     void setBold(bool bold);
00093     bool bold() const;
00099     void setItalic(bool italic);
00105     bool italic() const;
00111     void setUnderline(bool underline);
00117     bool underline() const;
00123     void setStrikeOut(bool strikeOut);
00129     bool strikeOut() const;
00135     void setSize(int size);
00141     int size() const;
00142 
00149     static bool displayFonts();
00150 
00151     virtual void setCurrentItem(int i);
00152 
00153 protected slots:
00158     void slotModified( int i );
00159 
00160 protected:
00165     void updateFonts();
00166 
00167 private:
00168     void init();
00169 
00170 private:
00171     friend class TDEFontListItem;
00172 protected:
00173     virtual void virtual_hook( int id, void* data );
00174 private:
00175     struct TDEFontComboPrivate *d;
00176 };
00177 
00178 #endif
00179 

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