casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
DParameterFontChoice.h
Go to the documentation of this file.
00001 //# DParameterFontChoice.h: class to store and retrieve font selection
00002 //# Copyright (C) 2000,2002
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id:
00027 
00028 #ifndef TRIALDISPLAY_DPARAMETERFONTCHOICE_H
00029 #define TRIALDISPLAY_DPARAMETERFONTCHOICE_H
00030 
00031 #include <display/Display/DParameterChoice.h>
00032 #include <casa/Arrays/Vector.h>
00033 namespace casa { //# NAMESPACE CASA - BEGIN
00034 
00035 // <summary>
00036 // Implementation of DParameterChoice to store font selection parameters.
00037 // </summary>
00038 
00039 // <use visibility=export>
00040 
00041 // <reviewed reviewer="" date="" test="" demos="">
00042 // </reviewed>
00043 
00044 // <prerequisite>
00045 // <li> <linkto class=DParameterChoice>DParameterChoice</linkto>
00046 // </prerequisite>
00047 
00048 // <etymology>
00049 // DParameterFontChoice is an implementation of a DisplayParameter
00050 // providing a choice parameter type tuned to selecting fonts.
00051 // </etymology>
00052 
00053 // <motivation>
00054 // It is common to have the user select a font for a particular
00055 // element of the display, hence this class.
00056 // </motivation>
00057 
00058 // <synopsis>
00059 // This class is basically a placeholder for several different 
00060 // representations of fonts. Currently avaiable fonts are hard-coded
00061 // into this class. The class holds three representations - Their 'name',
00062 // X-windows font description and post script font name. This class can 
00063 // be used in conjustion with <linkto class=DLFont>DLFont</linkto>
00064 // to set the font on a number of different pixel canvases.
00065 // </synopsis>
00066 
00067 // <thrown>
00068 // <li> None.
00069 // </thrown>
00070 
00071 // <todo asof="2002/05/13">
00072 // <li> Nothing known.
00073 // </todo>
00074 
00075 class DParameterFontChoice : public DParameterChoice {
00076 
00077  public:
00078 
00079   // Constructor takes the name of the parameter, a short 
00080   // description and some help text.  The context of the
00081   // parameter, and whether it is editable, can also be
00082   // given. 
00083   DParameterFontChoice(const String name, const String description, 
00084                        const String help, const String context = "");
00085   
00086   // Copy constructor using copy semantics.
00087   DParameterFontChoice(const DParameterFontChoice &other);
00088 
00089   // Destructor.
00090   virtual ~DParameterFontChoice();
00091 
00092   // Copy assignment.
00093   DParameterFontChoice &operator=(const DParameterFontChoice &other);
00094 
00095 protected:
00096 
00097   // (Required) default constructor.
00098   DParameterFontChoice();
00099   
00100 private:
00101 
00102 };
00103 
00104 
00105 } //# NAMESPACE CASA - END
00106 
00107 #endif
00108 
00109 
00110