![]() |
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,2009 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 * $Id: FXFontDialog.h,v 1.20 2009/01/06 13:07:24 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXFONTDIALOG_H 00024 #define FXFONTDIALOG_H 00025 00026 #ifndef FXDIALOGBOX_H 00027 #include "FXDialogBox.h" 00028 #endif 00029 00030 namespace FX { 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 setFontDesc(const FXFontDesc& fontdesc); 00058 00059 /// Get the current font selection 00060 const FXFontDesc& getFontDesc() const; 00061 00062 /// Destructor 00063 virtual ~FXFontDialog(); 00064 }; 00065 00066 } 00067 00068 #endif
![]() |