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

FXFontDialog.h

Go to the documentation of this file.
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,2006 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or                 *
00009 * modify it under the terms of the GNU Lesser General Public                    *
00010 * License as published by the Free Software Foundation; either                  *
00011 * version 2.1 of the License, or (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 GNU             *
00016 * Lesser General Public License for more details.                               *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public              *
00019 * License along with this library; if not, write to the Free Software           *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00021 *********************************************************************************
00022 * $Id: FXFontDialog.h,v 1.14 2006/01/22 17:58:02 fox Exp $                      *
00023 ********************************************************************************/
00024 #ifndef FXFONTDIALOG_H
00025 #define FXFONTDIALOG_H
00026 
00027 #ifndef FXDIALOGBOX_H
00028 #include "FXDialogBox.h"
00029 #endif
00030 
00031 namespace FX {
00032 
00033 
00034 class FXFontSelector;
00035 
00036 
00037 /// Font selection dialog
00038 class FXAPI FXFontDialog : public FXDialogBox {
00039   FXDECLARE(FXFontDialog)
00040 protected:
00041   FXFontSelector *fontbox;
00042 protected:
00043   FXFontDialog(){}
00044 private:
00045   FXFontDialog(const FXFontDialog&);
00046   FXFontDialog &operator=(const FXFontDialog&);
00047 public:
00048   /// Constructor
00049   FXFontDialog(FXWindow* owner,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=600,FXint h=380);
00050 
00051   /// Save dialog to a stream
00052   virtual void save(FXStream& store) const;
00053 
00054   /// Load dialog from a stream
00055   virtual void load(FXStream& store);
00056 
00057   /// Set the current font selection
00058   void setFontSelection(const FXFontDesc& fontdesc);
00059 
00060   /// Get the current font selection
00061   void getFontSelection(FXFontDesc& fontdesc) const;
00062 
00063   /// Destructor
00064   virtual ~FXFontDialog();
00065   };
00066 
00067 }
00068 
00069 #endif

Copyright © 1997-2005 Jeroen van der Zijp