![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
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,2002 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.8 2002/01/18 22:42:53 jeroen Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXFONTDIALOG_H 00025 #define FXFONTDIALOG_H 00026 00027 #ifndef FXDIALOGBOX_H 00028 #include "FXDialogBox.h" 00029 #endif 00030 00031 00032 00033 class FXFontSelector; 00034 00035 00036 /// Font selection dialog 00037 class FXAPI FXFontDialog : public FXDialogBox { 00038 FXDECLARE(FXFontDialog) 00039 protected: 00040 FXFontSelector *fontbox; 00041 protected: 00042 FXFontDialog(){} 00043 private: 00044 FXFontDialog(const FXFontDialog&); 00045 FXFontDialog &operator=(const FXFontDialog&); 00046 public: 00047 /// Constructor 00048 FXFontDialog(FXWindow* owner,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=600,FXint h=380); 00049 00050 /// Save dialog to a stream 00051 virtual void save(FXStream& store) const; 00052 00053 /// Load dialog from a stream 00054 virtual void load(FXStream& store); 00055 00056 /// Set the current font selection 00057 void setFontSelection(const FXFontDesc& fontdesc); 00058 00059 /// Get the current font selection 00060 void getFontSelection(FXFontDesc& fontdesc) const; 00061 00062 /// Destructor 00063 virtual ~FXFontDialog(); 00064 }; 00065 00066 00067 #endif