00001 // $Id$ 00002 00003 //********************************************************************** 00004 // * 00005 // Description: TurboVision check boxes class. * 00006 // * 00007 // Author: Chris White (whitecf@bcs.org.uk) * 00008 // * 00009 // Copyright (C) 2003 Monitor Computing Services Ltd. * 00010 // * 00011 // This program is free software; you can redistribute it and/or * 00012 // modify it under the terms of the GNU General Public License * 00013 // as published by the Free Software Foundation; either version 2 * 00014 // of the License, or any later version. * 00015 // * 00016 // This program is distributed in the hope that it will be useful, * 00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00019 // GNU General Public License for more details. * 00020 // * 00021 // You should have received a copy of the GNU General Public * 00022 // License (http://www.gnu.org/copyleft/gpl.html) along with this * 00023 // program; if not, write to: * 00024 // The Free Software Foundation Inc., * 00025 // 59 Temple Place - Suite 330, * 00026 // Boston, MA 02111-1307, * 00027 // USA. * 00028 // * 00029 //********************************************************************** 00030 // * 00031 // Notes: * 00032 // * 00033 //********************************************************************** 00034 00035 00036 #include <mytrace.h> 00037 00038 #include "chkbox.h" 00039 00040 00041 using namespace Monitor::Utility; 00042 00043 00044 00045 CheckBoxes::CheckBoxes(const TRect& newBounds, 00046 TSItem *aStrings) 00047 : 00048 Watchable(), 00049 TCheckBoxes(newBounds, aStrings) 00050 { 00051 _USEMYTRACE_("CheckBoxes::CheckBoxes(newBounds, aStrings)") 00052 } 00053 00054 00055 00056 CheckBoxes::~CheckBoxes() 00057 { 00058 _USEMYTRACE_("CheckBoxes::~CheckBoxes()") 00059 } 00060 00061 00062 00063 void 00064 CheckBoxes::press(int item) 00065 { 00066 _USEMYTRACE_("CheckBoxes::press(item)") 00067 00068 TCheckBoxes::press(item); 00069 00070 updated(); 00071 }