ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

tkeymap.cpp
Go to the documentation of this file.
00001 
00002 //Telnet Win32 : an ANSI telnet client.
00003 //Copyright (C) 1998-2000 Paul Brannan
00004 //Copyright (C) 1998 I.Ioannou
00005 //Copyright (C) 1997 Brad Johnson
00006 //
00007 //This program is free software; you can redistribute it and/or
00008 //modify it under the terms of the GNU General Public License
00009 //as published by the Free Software Foundation; either version 2
00010 //of the License, or (at your option) any later version.
00011 //
00012 //This program is distributed in the hope that it will be useful,
00013 //but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 //GNU General Public License for more details.
00016 //
00017 //You should have received a copy of the GNU General Public License
00018 //along with this program; if not, write to the Free Software
00019 //Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 //
00021 //I.Ioannou
00022 //roryt@hol.gr
00023 //
00025 
00027 //     Class TkeyMap - Key Mappings                    //
00028 //                   - kept in an array container      //
00029 //     originally part of KeyTrans.cpp                 //
00031 
00032 #include "precomp.h"
00033 
00034 KeyMap::KeyMap(DWORD state, DWORD code): map(0,0,sizeof(TKeyDef)),
00035                                          key(NULL,state,code) {};
00036 
00037 KeyMap::KeyMap(TKeyDef&tk):map(0,0,sizeof(TKeyDef)){
00038   key = tk;
00039 };
00040 KeyMap::KeyMap(TKeyDef&tk, string& t):map(0,0,sizeof(TKeyDef)), orig(t){
00041   key = tk;
00042 };
00043 
00044 int KeyMap::operator==(const KeyMap & t) const{
00045     return key == t.key;
00046 };
00047 
00048 KeyMap& KeyMap::operator = (const KeyMap& t){
00049      key = t.key;
00050      map = t.map;
00051      orig = t.orig;
00052      return (*this);
00053 };
00054 
00055 #ifndef __BORLANDC__
00056 bool operator<(const KeyMap &t1, const KeyMap &t2) {
00057     return t1.key < t2.key;
00058 }
00059 #endif
00060 
00061 KeyMap::~KeyMap() {
00062 };

Generated on Sun May 27 2012 04:17:16 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.