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

KDEUI

  • 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
30class QFont;
31class QStringList;
32
56class KDEUI_EXPORT KFontDialog : public KDialog {
57 Q_OBJECT
58
59public:
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
203Q_SIGNALS:
209 void fontSelected( const QFont &font );
210
211private:
212 class Private;
213 Private * const d;
214
215 Q_DISABLE_COPY(KFontDialog)
216};
217
218#endif
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:129
KFontChooser::NoDisplayFlags
@ NoDisplayFlags
Definition: kfontchooser.h:81
KFontDialog
A font selection dialog.
Definition: kfontdialog.h:56
KFontDialog::fontSelected
void fontSelected(const QFont &font)
Emitted whenever the currently selected font changes.
QWidget
kdialog.h
kfontchooser.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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