• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kfontdialog.h

Go to the documentation of this file.
00001 /*
00002     Requires the Qt widget libraries, available at no cost at
00003     http://www.troll.no
00004 
00005     Copyright (C) 1997 Bernd Johannes Wuebben <wuebben@kde.org>
00006     Copyright (c) 1999 Preston Brown <pbrown@kde.org>
00007     Copyright (c) 1999 Mario Weilguni <mweilguni@kde.org>
00008 
00009     This library is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU Library General Public
00011     License as published by the Free Software Foundation; either
00012     version 2 of the License, or (at your option) any later version.
00013 
00014     This library is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017     Library General Public License for more details.
00018 
00019     You should have received a copy of the GNU Library General Public License
00020     along with this library; see the file COPYING.LIB.  If not, write to
00021     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00022     Boston, MA 02110-1301, USA.
00023 */
00024 #ifndef K_FONT_DIALOG_H
00025 #define K_FONT_DIALOG_H
00026 
00027 #include <kdialog.h>
00028 #include <kfontchooser.h>
00029 
00030 class QFont;
00031 class QStringList;
00032 
00056 class KDEUI_EXPORT KFontDialog : public KDialog  {
00057     Q_OBJECT
00058 
00059 public:
00082   explicit KFontDialog( QWidget *parent = 0,
00083                         const KFontChooser::DisplayFlags& flags =
00084                             KFontChooser::NoDisplayFlags,
00085                         const QStringList &fontlist = QStringList(),
00086                         Qt::CheckState *sizeIsRelativeState = 0 );
00087 
00088   ~KFontDialog();
00096   void setFont( const QFont &font, bool onlyFixed = false );
00097 
00101   QFont font() const;
00102 
00109   void setSizeIsRelative( Qt::CheckState relative );
00110 
00115   Qt::CheckState sizeIsRelative() const;
00116 
00137   static int getFont( QFont &theFont,
00138                       const KFontChooser::DisplayFlags& flags =
00139                         KFontChooser::NoDisplayFlags,
00140                       QWidget *parent = 0L,
00141                       Qt::CheckState *sizeIsRelativeState = 0L );
00142 
00175   static int getFontDiff( QFont &theFont,
00176                           KFontChooser::FontDiffFlags& diffFlags,
00177                           const KFontChooser::DisplayFlags& flags =
00178                                 KFontChooser::NoDisplayFlags,
00179                           QWidget *parent = 0L,
00180                           Qt::CheckState *sizeIsRelativeState = 0L );
00181 
00201   static int getFontAndText( QFont &theFont, QString &theString,
00202                              const KFontChooser::DisplayFlags& flags =
00203                                 KFontChooser::NoDisplayFlags,
00204                              QWidget *parent = 0L,
00205                              Qt::CheckState *sizeIsRelativeState = 0L );
00206 
00207 Q_SIGNALS:
00213   void fontSelected( const QFont &font );
00214 
00215 private:
00216   class Private;
00217   Private * const d;
00218 
00219   Q_DISABLE_COPY(KFontDialog)
00220 };
00221 
00222 #endif

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal