25#include <tqstringlist.h>
26#include <tdefontdialog.h>
27#include "colourlist.h"
34class FontColourChooser : public TQWidget
39 explicit FontColourChooser(TQWidget* parent = 0, const char* name = 0,
40 bool onlyFixed = false,
41 const TQStringList& fontList = TQStringList(),
42 const TQString& frameLabel = i18n( "Requested font"),
43 bool editColours = false, bool fg = true, bool defaultFont = false,
44 int visibleListSize = 8);
46 void setDefaultFont();
47 void setFont( const TQFont&, bool onlyFixed = false);
48 bool defaultFont() const;
50 TQColor fgColour() const;
51 TQColor bgColour() const;
52 const ColourList& colours() const { return mColourList; }
53 void setFgColour( const TQColor&);
54 void setBgColour( const TQColor&);
55 void setColours( const ColourList&);
56 TQString sampleText() const;
57 void setSampleText( const TQString& text);
58 bool isReadOnly() const { return mReadOnly; }
59 void setReadOnly( bool);
60 virtual bool eventFilter(TQObject*, TQEvent*);
63 void setSampleColour();
64 void slotDefaultFontToggled( bool);
66 void slotRemoveColour();
69 ColourCombo* mFgColourButton;
70 ColourCombo* mBgColourButton;
71 TQPushButton* mRemoveColourButton;
72 TDEFontChooser* mFontChooser;
73 CheckBox* mDefaultFont;
74 ColourList mColourList;
|