casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DParameterFontChoice.h
Go to the documentation of this file.
1 //# DParameterFontChoice.h: class to store and retrieve font selection
2 //# Copyright (C) 2000,2002
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id:
27 
28 #ifndef TRIALDISPLAY_DPARAMETERFONTCHOICE_H
29 #define TRIALDISPLAY_DPARAMETERFONTCHOICE_H
30 
32 #include <casa/Arrays/Vector.h>
33 namespace casa { //# NAMESPACE CASA - BEGIN
34 
35 // <summary>
36 // Implementation of DParameterChoice to store font selection parameters.
37 // </summary>
38 
39 // <use visibility=export>
40 
41 // <reviewed reviewer="" date="" test="" demos="">
42 // </reviewed>
43 
44 // <prerequisite>
45 // <li> <linkto class=DParameterChoice>DParameterChoice</linkto>
46 // </prerequisite>
47 
48 // <etymology>
49 // DParameterFontChoice is an implementation of a DisplayParameter
50 // providing a choice parameter type tuned to selecting fonts.
51 // </etymology>
52 
53 // <motivation>
54 // It is common to have the user select a font for a particular
55 // element of the display, hence this class.
56 // </motivation>
57 
58 // <synopsis>
59 // This class is basically a placeholder for several different
60 // representations of fonts. Currently avaiable fonts are hard-coded
61 // into this class. The class holds three representations - Their 'name',
62 // X-windows font description and post script font name. This class can
63 // be used in conjustion with <linkto class=DLFont>DLFont</linkto>
64 // to set the font on a number of different pixel canvases.
65 // </synopsis>
66 
67 // <thrown>
68 // <li> None.
69 // </thrown>
70 
71 // <todo asof="2002/05/13">
72 // <li> Nothing known.
73 // </todo>
74 
76 
77  public:
78 
79  // Constructor takes the name of the parameter, a short
80  // description and some help text. The context of the
81  // parameter, and whether it is editable, can also be
82  // given.
84  const casacore::String help, const casacore::String context = "");
85 
86  // Copy constructor using copy semantics.
88 
89  // Destructor.
90  virtual ~DParameterFontChoice();
91 
92  // Copy assignment.
94 
95  protected:
96 
97  // (Required) default constructor.
99 
100  private:
101 
102  };
103 
104 
105 } //# NAMESPACE CASA - END
106 
107 #endif
108 
109 
110 
casacore::String name() const
Return the name of this parameter.
Implementation of DParameterChoice to store font selection parameters.
casacore::String help() const
Return the help for this parameter.
casacore::String description() const
Return the description of this parameter.
virtual ~DParameterFontChoice()
Destructor.
DParameterFontChoice()
(Required) default constructor.
casacore::String context() const
Return the context of this parameter.
Implementation of DisplayParameter to store choice parameters.
String: the storage and methods of handling collections of characters.
Definition: String.h:223
DParameterFontChoice & operator=(const DParameterFontChoice &other)
Copy assignment.