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

FXFontDialog.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * F o n t S e l e c t i o n D i a l o g *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1999,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXFontDialog.h,v 1.14 2006/01/22 17:58:02 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXFONTDIALOG_H
25 #define FXFONTDIALOG_H
26 
27 #ifndef FXDIALOGBOX_H
28 #include "FXDialogBox.h"
29 #endif
30 
31 namespace FX {
32 
33 
34 class FXFontSelector;
35 
36 
37 /// Font selection dialog
38 class FXAPI FXFontDialog : public FXDialogBox {
40 protected:
41  FXFontSelector *fontbox;
42 protected:
43  FXFontDialog(){}
44 private:
45  FXFontDialog(const FXFontDialog&);
46  FXFontDialog &operator=(const FXFontDialog&);
47 public:
48  /// Constructor
49  FXFontDialog(FXWindow* owner,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=600,FXint h=380);
50 
51  /// Save dialog to a stream
52  virtual void save(FXStream& store) const;
53 
54  /// Load dialog from a stream
55  virtual void load(FXStream& store);
56 
57  /// Set the current font selection
58  void setFontSelection(const FXFontDesc& fontdesc);
59 
60  /// Get the current font selection
61  void getFontSelection(FXFontDesc& fontdesc) const;
62 
63  /// Destructor
64  virtual ~FXFontDialog();
65  };
66 
67 }
68 
69 #endif
DialogBox window.
Definition: FXDialogBox.h:40
Base class for all windows.
Definition: FXWindow.h:115
unsigned int FXuint
Definition: fxdefs.h:396
#define FXAPI
Definition: fxdefs.h:122
FXString name(const FXString &file)
Return name and extension part of the path name.
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:99
Font style.
Definition: FXFont.h:122
Font selection dialog.
Definition: FXFontDialog.h:38
int FXint
Definition: fxdefs.h:397
Font selection widget.
Definition: FXFontSelector.h:44
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33

Copyright © 1997-2005 Jeroen van der Zijp