• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
kfontrequester.h
1 /*
2  Copyright (C) 2003 Nadeem Hasan <nhasan@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KFONTREQUESTER_H
21 #define KFONTREQUESTER_H
22 
23 #include <tqwidget.h>
24 #include <tqfont.h>
25 #include <tqstring.h>
26 
27 #include <kdelibs_export.h>
28 
29 class TQLabel;
30 class TQPushButton;
31 
44 class KDEUI_EXPORT KFontRequester : public TQWidget
45 {
46  Q_OBJECT
47 
48  Q_PROPERTY( TQString title READ title WRITE setTitle )
49  Q_PROPERTY( TQString sampleText READ sampleText WRITE setSampleText )
50  Q_PROPERTY( TQFont font READ font WRITE setFont )
51 
52  public:
53 
62  KFontRequester( TQWidget *parent=0L, const char *name=0L,
63  bool onlyFixed=false );
64 
68  TQFont font() const { return m_selFont; }
69 
73  bool isFixedOnly() const { return m_onlyFixed; }
74 
78  TQString sampleText() const { return m_sampleText; }
79 
83  TQString title() const { return m_title; }
84 
88  TQLabel *label() const { return m_sampleLabel; }
89 
93  TQPushButton *button() const { return m_button; }
94 
102  virtual void setFont( const TQFont &font, bool onlyFixed=false );
103 
115  virtual void setSampleText( const TQString &text );
116 
123  virtual void setTitle( const TQString & title );
124 
125  signals:
129  void fontSelected( const TQFont &font );
130 
131  protected:
132 
133  void displaySampleText();
134  void setToolTip();
135 
136  protected slots:
137 
138  virtual void buttonClicked();
139 
140  protected:
141 
142  bool m_onlyFixed;
143  TQString m_sampleText, m_title;
144  TQLabel *m_sampleLabel;
145  TQPushButton *m_button;
146  TQFont m_selFont;
147 
148  private:
149 
150  class KFontRequesterPrivate;
151  KFontRequesterPrivate *d;
152 };
153 
154 #endif // KFONTREQUESTER_H
155 
156 /* vim: et sw=2 ts=2
157 */

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |