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

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • kdeui
  • fonts
kfontdialog.h
Go to the documentation of this file.
1 /*
2  Requires the Qt widget libraries, available at no cost at
3  http://www.troll.no
4 
5  Copyright (C) 1997 Bernd Johannes Wuebben <wuebben@kde.org>
6  Copyright (c) 1999 Preston Brown <pbrown@kde.org>
7  Copyright (c) 1999 Mario Weilguni <mweilguni@kde.org>
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Library General Public
11  License as published by the Free Software Foundation; either
12  version 2 of the License, or (at your option) any later version.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Library General Public License for more details.
18 
19  You should have received a copy of the GNU Library General Public License
20  along with this library; see the file COPYING.LIB. If not, write to
21  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  Boston, MA 02110-1301, USA.
23 */
24 #ifndef K_FONT_DIALOG_H
25 #define K_FONT_DIALOG_H
26 
27 #include <kdialog.h>
28 #include <kfontchooser.h>
29 
30 class QFont;
31 class QStringList;
32 
56 class KDEUI_EXPORT KFontDialog : public KDialog {
57  Q_OBJECT
58 
59 public:
78  explicit KFontDialog( QWidget *parent = 0,
79  const KFontChooser::DisplayFlags& flags =
80  KFontChooser::NoDisplayFlags,
81  const QStringList &fontlist = QStringList(),
82  Qt::CheckState *sizeIsRelativeState = 0 );
83 
84  ~KFontDialog();
92  void setFont( const QFont &font, bool onlyFixed = false );
93 
97  QFont font() const;
98 
105  void setSizeIsRelative( Qt::CheckState relative );
106 
111  Qt::CheckState sizeIsRelative() const;
112 
133  static int getFont( QFont &theFont,
134  const KFontChooser::DisplayFlags& flags =
135  KFontChooser::NoDisplayFlags,
136  QWidget *parent = 0L,
137  Qt::CheckState *sizeIsRelativeState = 0L );
138 
171  static int getFontDiff( QFont &theFont,
172  KFontChooser::FontDiffFlags& diffFlags,
173  const KFontChooser::DisplayFlags& flags =
174  KFontChooser::NoDisplayFlags,
175  QWidget *parent = 0L,
176  Qt::CheckState *sizeIsRelativeState = 0L );
177 
197  static int getFontAndText( QFont &theFont, QString &theString,
198  const KFontChooser::DisplayFlags& flags =
199  KFontChooser::NoDisplayFlags,
200  QWidget *parent = 0L,
201  Qt::CheckState *sizeIsRelativeState = 0L );
202 
203 Q_SIGNALS:
209  void fontSelected( const QFont &font );
210 
211 private:
212  class Private;
213  Private * const d;
214 
215  Q_DISABLE_COPY(KFontDialog)
216 };
217 
218 #endif
kdialog.h
QWidget
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:128
QString
QStringList
KFontDialog
A font selection dialog.
Definition: kfontdialog.h:56
kfontchooser.h
KFontChooser::NoDisplayFlags
Definition: kfontchooser.h:81
QFont
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal