• 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
  • 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 
30 class KActionCollection;
31 
32 class QFont;
33 class QUrl;
34 
61 class 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 
68 public:
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 
161 public Q_SLOTS:
167  void setCurrentChar(const QChar &c);
168 
174  void setCurrentFont(const QFont &font);
175 
176 Q_SIGNALS:
182  void currentFontChanged(const QFont &font);
188  void currentCharChanged(const QChar &c);
192  void displayedCharsChanged();
198  void charSelected(const QChar &c);
199 
200 private:
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 
219 Q_DECLARE_OPERATORS_FOR_FLAGS(KCharSelect::Controls)
220 
221 #endif
KActionCollection
A container for a set of QAction objects.
Definition: kactioncollection.h:56
QWidget
QUrl
KDE_CONSTRUCTOR_DEPRECATED
#define KDE_CONSTRUCTOR_DEPRECATED
kglobal.h
KCharSelect::Control
Control
Flags to set the shown widgets.
Definition: kcharselect.h:72
KCharSelect
Character selection widget.
Definition: kcharselect.h:61
QFont
kdeui_export.h
QSize
QList
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