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

tdeui

tdefontrequester.h

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 TDEFONTREQUESTER_H
00021 #define TDEFONTREQUESTER_H
00022 
00023 #include <tqwidget.h>
00024 #include <tqfont.h>
00025 #include <tqstring.h>
00026 
00027 #include <tdelibs_export.h>
00028 
00029 class TQLabel;
00030 class TQPushButton;
00031 
00044 class TDEUI_EXPORT TDEFontRequester : public TQWidget
00045 {
00046   Q_OBJECT
00047 
00048   TQ_PROPERTY( TQString title READ title WRITE setTitle )
00049   TQ_PROPERTY( TQString sampleText READ sampleText WRITE setSampleText )
00050   TQ_PROPERTY( TQFont font READ font WRITE setFont )
00051 
00052   public:
00053 
00062     TDEFontRequester( TQWidget *parent=0L, const char *name=0L,
00063         bool onlyFixed=false );
00064 
00068     TQFont font() const { return m_selFont; }
00069 
00073     bool isFixedOnly() const { return m_onlyFixed; }
00074 
00078     TQString sampleText() const { return m_sampleText; }
00079 
00083     TQString title() const { return m_title; }
00084 
00088     TQLabel *label() const { return m_sampleLabel; }
00089 
00093     TQPushButton *button() const { return m_button; }
00094 
00102     virtual void setFont( const TQFont &font, bool onlyFixed=false );
00103 
00115     virtual void setSampleText( const TQString &text );
00116 
00123     virtual void setTitle( const TQString & title );
00124 
00125   signals:
00129     void fontSelected( const TQFont &font );
00130 
00131   protected:
00132 
00133     void displaySampleText();
00134     void setToolTip();
00135 
00136   protected slots:
00137 
00138     virtual void buttonClicked();
00139 
00140   protected:
00141 
00142     bool m_onlyFixed;
00143     TQString m_sampleText, m_title;
00144     TQLabel *m_sampleLabel;
00145     TQPushButton *m_button;
00146     TQFont m_selFont;
00147 
00148   private:
00149 
00150     class TDEFontRequesterPrivate;
00151     TDEFontRequesterPrivate *d;
00152 };
00153 
00154 #endif // TDEFONTREQUESTER_H
00155 
00156 /* vim: et sw=2 ts=2
00157 */

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.6.3
This website is maintained by Timothy Pearson.