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

KDEUI

kfontrequester.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2003 Nadeem Hasan <nhasan@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KFONTREQUESTER_H
00021 #define KFONTREQUESTER_H
00022 
00023 #include <QtGui/QWidget>
00024 #include <QtGui/QFont>
00025 #include <QtCore/QString>
00026 
00027 #include <kdeui_export.h>
00028 
00029 class QLabel;
00030 class QPushButton;
00031 
00044 class KDEUI_EXPORT KFontRequester : public QWidget
00045 {
00046   Q_OBJECT
00047 
00048   Q_PROPERTY( QString title READ title WRITE setTitle )
00049   Q_PROPERTY( QString sampleText READ sampleText WRITE setSampleText )
00050   Q_PROPERTY( QFont font READ font WRITE setFont USER true)
00051 
00052   public:
00053 
00061     explicit KFontRequester( QWidget *parent=0L, bool onlyFixed=false );
00062 
00063     ~KFontRequester();
00064 
00068     QFont font() const;
00069 
00073     bool isFixedOnly() const;
00074 
00078     QString sampleText() const;
00079 
00083     QString title() const;
00084 
00088     QLabel *label() const;
00089 
00093     QPushButton *button() const;
00094 
00102     virtual void setFont( const QFont &font, bool onlyFixed=false );
00103 
00115     virtual void setSampleText( const QString &text );
00116 
00123     virtual void setTitle( const QString & title );
00124 
00125   Q_SIGNALS:
00129     void fontSelected( const QFont &font );
00130 
00131   private:
00132     class KFontRequesterPrivate;
00133     friend class KFontRequesterPrivate;
00134     KFontRequesterPrivate *const d;
00135 
00136     Q_PRIVATE_SLOT( d, void _k_buttonClicked() )
00137 
00138     Q_DISABLE_COPY(KFontRequester)
00139 };
00140 
00141 #endif // KFONTREQUESTER_H
00142 
00143 /* vim: et sw=2 ts=2
00144 */

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal