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