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

KDEUI

  • kdeui
  • widgets
kcharselect.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2
3 Copyright (C) 1999 Reginald Stadlbauer <reggie@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef kcharselect_h
22#define kcharselect_h
23
24#include <QtCore/QString>
25#include <QtCore/QStringList>
26#include <QtGui/QWidget>
27#include <kglobal.h>
28#include <kdeui_export.h>
29
30class KActionCollection;
31
32class QFont;
33class QUrl;
34
61class KDEUI_EXPORT KCharSelect : public QWidget
62{
63 Q_OBJECT
64 Q_PROPERTY(QFont currentFont READ currentFont WRITE setCurrentFont)
65 Q_PROPERTY(QChar currentChar READ currentChar WRITE setCurrentChar)
66 Q_PROPERTY(QList<QChar> displayedChars READ displayedChars)
67
68public:
72 enum Control {
76 SearchLine = 0x01,
80 FontCombo = 0x02,
84 FontSize = 0x04,
88 BlockCombos = 0x08,
92 CharacterTable = 0x10,
96 DetailBrowser = 0x20,
100 HistoryButtons = 0x40,
104 AllGuiElements = 65535
105 };
106 Q_DECLARE_FLAGS(Controls,
107 Control)
108
109
110#ifndef KDE_NO_DEPRECATED
111 KDE_CONSTRUCTOR_DEPRECATED explicit KCharSelect(
112 QWidget *parent,
113 const Controls controls = AllGuiElements);
114#endif
115
134 explicit KCharSelect(
135 QWidget *parent,
136 KActionCollection *collection,
137 const Controls controls = AllGuiElements);
138
139 ~KCharSelect();
140
144 virtual QSize sizeHint() const;
145
149 QChar currentChar() const;
150
154 QFont currentFont() const;
155
159 QList<QChar> displayedChars() const;
160
161public Q_SLOTS:
167 void setCurrentChar(const QChar &c);
168
174 void setCurrentFont(const QFont &font);
175
176Q_SIGNALS:
182 void currentFontChanged(const QFont &font);
188 void currentCharChanged(const QChar &c);
192 void displayedCharsChanged();
198 void charSelected(const QChar &c);
199
200private:
201 Q_PRIVATE_SLOT(d, void _k_activateSearchLine())
202 Q_PRIVATE_SLOT(d, void _k_back())
203 Q_PRIVATE_SLOT(d, void _k_forward())
204 Q_PRIVATE_SLOT(d, void _k_fontSelected())
205 Q_PRIVATE_SLOT(d, void _k_updateCurrentChar(const QChar &c))
206 Q_PRIVATE_SLOT(d, void _k_slotUpdateUnicode(const QChar &c))
207 Q_PRIVATE_SLOT(d, void _k_sectionSelected(int index))
208 Q_PRIVATE_SLOT(d, void _k_blockSelected(int index))
209 Q_PRIVATE_SLOT(d, void _k_searchEditChanged())
210 Q_PRIVATE_SLOT(d, void _k_search())
211 Q_PRIVATE_SLOT(d, void _k_linkClicked(QUrl))
212
213 class KCharSelectPrivate;
214 KCharSelectPrivate* const d;
215
216 void init(const Controls, KActionCollection *);
217};
218
219Q_DECLARE_OPERATORS_FOR_FLAGS(KCharSelect::Controls)
220
221#endif
KActionCollection
A container for a set of QAction objects.
Definition: kactioncollection.h:57
KCharSelect
Character selection widget.
Definition: kcharselect.h:62
KCharSelect::displayedCharsChanged
void displayedCharsChanged()
The currently displayed characters are changed (search results or block).
KCharSelect::Q_DECLARE_FLAGS
Q_DECLARE_FLAGS(Controls, Control) KDE_CONSTRUCTOR_DEPRECATED explicit KCharSelect(QWidget *parent
KCharSelect::currentCharChanged
void currentCharChanged(const QChar &c)
The current character is changed.
KCharSelect::currentFontChanged
void currentFontChanged(const QFont &font)
A new font is selected or the font size changed.
KCharSelect::Control
Control
Flags to set the shown widgets.
Definition: kcharselect.h:72
KCharSelect::charSelected
void charSelected(const QChar &c)
A character is selected to be inserted somewhere.
QList
QUrl
QWidget
kdeui_export.h
kglobal.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