00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef FXFONTDIALOG_H
00022 #define FXFONTDIALOG_H
00023
00024 #ifndef FXDIALOGBOX_H
00025 #include "FXDialogBox.h"
00026 #endif
00027
00028 namespace FX {
00029
00030
00031 class FXFontSelector;
00032
00033
00035 class FXAPI FXFontDialog : public FXDialogBox {
00036 FXDECLARE(FXFontDialog)
00037 protected:
00038 FXFontSelector *fontbox;
00039 protected:
00040 FXFontDialog(){}
00041 void initdialog();
00042 private:
00043 FXFontDialog(const FXFontDialog&);
00044 FXFontDialog &operator=(const FXFontDialog&);
00045 public:
00046
00048 FXFontDialog(FXWindow* owner,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=600,FXint h=380);
00049
00051 FXFontDialog(FXApp* a,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=600,FXint h=380);
00052
00054 virtual void hide();
00055
00057 void setFont(const FXString& string);
00058
00060 FXString getFont() const;
00061
00063 void setFontDesc(const FXFontDesc& fontdesc);
00064
00066 const FXFontDesc& getFontDesc() const;
00067
00069 virtual void save(FXStream& store) const;
00070
00072 virtual void load(FXStream& store);
00073
00075 virtual ~FXFontDialog();
00076 };
00077
00078 }
00079
00080 #endif