casa
$Rev:20696$
|
00001 //# DParameterColorChoice.h: class to store and retrieve color selection 00002 //# Copyright (C) 2000 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_DPARAMETERCOLORCHOICE_H 00029 #define TRIALDISPLAY_DPARAMETERCOLORCHOICE_H 00030 00031 #include <display/Display/DParameterChoice.h> 00032 00033 namespace casa { //# NAMESPACE CASA - BEGIN 00034 00035 // <summary> 00036 // Implementation of DParameterChoice to store color 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 // DParameterColorChoice is an implementation of a DisplayParameter 00050 // providing a choice parameter type tuned to selecting colors. 00051 // </etymology> 00052 00053 // <motivation> 00054 // It is common to have the user select a color for a particular 00055 // element of the display, hence this class. 00056 // </motivation> 00057 00058 // <thrown> 00059 // <li> None. 00060 // </thrown> 00061 00062 // <todo asof="2000/01/31"> 00063 // <li> Nothing known. 00064 // </todo> 00065 00066 class DParameterColorChoice : public DParameterChoice { 00067 00068 public: 00069 00070 // Constructor takes the name of the parameter, a short 00071 // description and some help text. The context of the 00072 // parameter, and whether it is editable, can also be 00073 // given. The default and initial color is always the 00074 // foreground color. 00075 DParameterColorChoice(const String name, const String description, 00076 const String help, const String context = "", 00077 const Bool editable = True); 00078 00079 // Copy constructor using copy semantics. 00080 DParameterColorChoice(const DParameterColorChoice &other); 00081 00082 // Destructor. 00083 virtual ~DParameterColorChoice(); 00084 00085 // Copy assignment. 00086 DParameterColorChoice &operator=(const DParameterColorChoice &other); 00087 00088 protected: 00089 00090 // (Required) default constructor. 00091 DParameterColorChoice(); 00092 00093 }; 00094 00095 00096 } //# NAMESPACE CASA - END 00097 00098 #endif 00099