📄 iowindow.h
字号:
/*-----------------------------------------------------------------------------
6502 Macroassembler and Simulator
Copyright (C) 1995-2003 Michal Kowalski
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-----------------------------------------------------------------------------*/
// IOWindow.h : header file
//
#ifndef _io_window_
#define _io_window_
#include "Asm.h"
#include "Broadcast.h"
/////////////////////////////////////////////////////////////////////////////
// CIOWindow frame
class CInputBuffer
{
public:
CInputBuffer() : m_pHead(m_vchBuffer), m_pTail(m_vchBuffer)
{}
char GetChar(); // get next available character (returns 0 if there are no chars)
void PutChar(char c); // places char in the buffer (char is ignored if there is no space)
void Paste(const char* pcText); // paste clipboard text into buffer
private:
enum { BUF_SIZE= 32 * 1024 };
char m_vchBuffer[BUF_SIZE];
char* m_pHead;
char* m_pTail;
};
class CIOWindow : public CMiniFrameWnd
{
UINT8 *m_pData; // pami赕 okna
int m_nWidth, m_nHeight; // rozmiar okna (kolumn x wierszy)
int m_nCharH, m_nCharW; // rozmiar znak體
static CString m_strClass;
static bool m_bRegistered;
void RegisterWndClass();
int m_nPosX, m_nPosY; // po硂縠nie znaku do wypisania (i kursora)
int m_nCursorCount; // licznik ukry
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -