21 #ifndef FONTCOLOURBUTTON_H
22 #define FONTCOLOURBUTTON_H
27 #include <kdialogbase.h>
30 class FontColourChooser;
34 class FontColourButton : public TQFrame
39 FontColourButton(TQWidget* parent = 0, const char* name = 0);
40 void setDefaultFont();
41 void setFont( const TQFont&);
42 void setBgColour( const TQColor&);
43 void setFgColour( const TQColor&);
44 bool defaultFont() const { return mDefaultFont; }
45 TQFont font() const { return mFont; }
46 TQColor bgColour() const { return mBgColour; }
47 TQColor fgColour() const { return mFgColour; }
48 virtual void setReadOnly( bool ro) { mReadOnly = ro; }
49 virtual bool isReadOnly() const { return mReadOnly; }
55 void slotButtonPressed();
59 TQColor mBgColour, mFgColour;
68 class FontColourDlg : public KDialogBase
73 FontColourDlg( const TQColor& bg, const TQColor& fg, const TQFont&, bool defaultFont,
74 const TQString& caption, TQWidget* parent = 0, const char* name = 0);
75 bool defaultFont() const { return mDefaultFont; }
76 TQFont font() const { return mFont; }
77 TQColor bgColour() const { return mBgColour; }
78 TQColor fgColour() const { return mFgColour; }
79 void setReadOnly( bool);
80 bool isReadOnly() const { return mReadOnly; }
83 virtual void slotOk();
86 FontColourChooser* mChooser;
87 TQColor mBgColour, mFgColour;
|