Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

/home/jeroen/FOX/fox/fox-1.7.33/include/FXFontDialog.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                    F o n t   S e l e c t i o n   D i a l o g                  *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1999,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (at your option) any later version.                                           *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
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

Copyright © 1997-2011 Jeroen van der Zijp