00001 #ifndef __BMCDLVW_H_INCLUDED__ 00002 #define __BMCDLVW_H_INCLUDED__ 00003 // $Id$ 00004 00005 //********************************************************************** 00006 // * 00007 // Description: 'Bell Master' TurboVision view to display a bell * 00008 // code list. * 00009 // * 00010 // Author: Chris White (whitecf@bcs.org.uk) * 00011 // * 00012 // Copyright (C) 2003 Monitor Computing Services Ltd. * 00013 // * 00014 // This program is free software; you can redistribute it and/or * 00015 // modify it under the terms of the GNU General Public License * 00016 // as published by the Free Software Foundation; either version 2 * 00017 // of the License, or any later version. * 00018 // * 00019 // This program is distributed in the hope that it will be useful, * 00020 // but WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00022 // GNU General Public License for more details. * 00023 // * 00024 // You should have received a copy of the GNU General Public * 00025 // License (http://www.gnu.org/copyleft/gpl.html) along with this * 00026 // program; if not, write to: * 00027 // The Free Software Foundation Inc., * 00028 // 59 Temple Place - Suite 330, * 00029 // Boston, MA 02111-1307, * 00030 // USA. * 00031 // * 00032 //********************************************************************** 00033 // * 00034 // Notes: * 00035 // * 00036 //********************************************************************** 00037 00038 00039 // Forward declerations 00040 class TRect; 00041 class TScrollBar; 00042 00043 #define Uses_TListViewer 00044 00045 #include <tvision\tv.h> 00046 00047 00048 namespace Monitor { 00049 namespace BellMaster { 00050 00051 00052 // Forward declerations within namespace 00053 class BellCode; 00054 class BellCodeList; 00055 00056 00057 00058 class CodeListView : public TListViewer 00059 { 00060 public: 00066 CodeListView(const BellCodeList& newBellCodes, 00067 const TRect& bounds, 00068 TScrollBar *aVScrollBar); 00069 00078 virtual void 00079 getText(char *dest, short item, short maxLen); 00080 00084 BellCode* 00085 getSelectedBellCode(); 00086 00087 00088 private: 00089 const BellCodeList& bellCodes; 00090 }; // class CodeListView 00091 00092 }; // namespace BellMaster 00093 }; // namespace Monitor 00094 00095 00096 #endif // __BMCDLVW_H_INCLUDED__