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

tdeui

  • tdeui
tdefontrequester.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 TDEFONTREQUESTER_H
21#define TDEFONTREQUESTER_H
22
23#include <tqwidget.h>
24#include <tqfont.h>
25#include <tqstring.h>
26
27#include <tdelibs_export.h>
28
29class TQLabel;
30class TQPushButton;
31
44class TDEUI_EXPORT TDEFontRequester : public TQWidget
45{
46 TQ_OBJECT
47
48 TQ_PROPERTY( TQString title READ title WRITE setTitle )
49 TQ_PROPERTY( TQString sampleText READ sampleText WRITE setSampleText )
50 TQ_PROPERTY( TQFont font READ font WRITE setFont )
51
52 public:
53
62 TDEFontRequester( 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 TDEFontRequesterPrivate;
151 TDEFontRequesterPrivate *d;
152};
153
154#endif // TDEFONTREQUESTER_H
TDEFontRequester
This class provides a widget with a lineedit and a button, which invokes a font dialog (TDEFontDialog...
Definition: tdefontrequester.h:45
TDEFontRequester::isFixedOnly
bool isFixedOnly() const
Definition: tdefontrequester.h:73
TDEFontRequester::fontSelected
void fontSelected(const TQFont &font)
Emitted when a new font has been selected in the underlying dialog.
TDEFontRequester::title
TQString title() const
Definition: tdefontrequester.h:83
TDEFontRequester::sampleText
TQString sampleText() const
Definition: tdefontrequester.h:78
TDEFontRequester::button
TQPushButton * button() const
Definition: tdefontrequester.h:93
TDEFontRequester::font
TQFont font() const
Definition: tdefontrequester.h:68
TDEFontRequester::label
TQLabel * label() const
Definition: tdefontrequester.h:88

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.9.4
This website is maintained by Timothy Pearson.