casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DParameterColorChoice.h
Go to the documentation of this file.
1 //# DParameterColorChoice.h: class to store and retrieve color selection
2 //# Copyright (C) 2000
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_DPARAMETERCOLORCHOICE_H
29 #define TRIALDISPLAY_DPARAMETERCOLORCHOICE_H
30 
32 
33 namespace casa { //# NAMESPACE CASA - BEGIN
34 
35 // <summary>
36 // Implementation of DParameterChoice to store color 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 // DParameterColorChoice is an implementation of a DisplayParameter
50 // providing a choice parameter type tuned to selecting colors.
51 // </etymology>
52 
53 // <motivation>
54 // It is common to have the user select a color for a particular
55 // element of the display, hence this class.
56 // </motivation>
57 
58 // <thrown>
59 // <li> None.
60 // </thrown>
61 
62 // <todo asof="2000/01/31">
63 // <li> Nothing known.
64 // </todo>
65 
67 
68  public:
69 
70  // Constructor takes the name of the parameter, a short
71  // description and some help text. The context of the
72  // parameter, and whether it is editable, can also be
73  // given. The default and initial color is always the
74  // foreground color.
77  const casacore::Bool editable = true);
78 
79  // Copy constructor using copy semantics.
81 
82  // Destructor.
83  virtual ~DParameterColorChoice();
84 
85  // Copy assignment.
87 
88  protected:
89 
90  // (Required) default constructor.
92 
93  };
94 
95 
96 } //# NAMESPACE CASA - END
97 
98 #endif
99 
DParameterColorChoice & operator=(const DParameterColorChoice &other)
Copy assignment.
Implementation of DParameterChoice to store color selection parameters.
casacore::String name() const
Return the name of this parameter.
DParameterColorChoice()
(Required) default constructor.
casacore::String help() const
Return the help for this parameter.
casacore::String description() const
Return the description of this parameter.
casacore::Bool editable() const
Return whether this parameter is editable.
casacore::String context() const
Return the context of this parameter.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
Implementation of DisplayParameter to store choice parameters.
virtual ~DParameterColorChoice()
Destructor.
String: the storage and methods of handling collections of characters.
Definition: String.h:223