From 832c0b1088d4a3b35601aea518ff06dbc5733bb3 Mon Sep 17 00:00:00 2001 From: mpohoreski Date: Sat, 18 Dec 2010 15:13:28 +0000 Subject: [PATCH] 2.7.x.x Started work on cleanup of proper sub-panel display --- AppleWin/source/Debugger/Debugger_Types.h | 51 ++++++++++++++++++++--- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/AppleWin/source/Debugger/Debugger_Types.h b/AppleWin/source/Debugger/Debugger_Types.h index ae8eca59..840d93f7 100644 --- a/AppleWin/source/Debugger/Debugger_Types.h +++ b/AppleWin/source/Debugger/Debugger_Types.h @@ -1429,26 +1429,65 @@ enum Window_e { - WINDOW_CODE , - WINDOW_DATA , + WINDOW_NULL , // no window data! WINDOW_CONSOLE , + WINDOW_CODE , + WINDOW_DATA , // memory view + + WINDOW_INFO , // WINDOW_REGS, WINDOW_STACK, WINDOW_BREAKPOINTS, WINDOW_WATCHES, WINDOW, + NUM_WINDOWS , // Not implemented yet - WINDOW_IO , // soft switches $addr name state + WINDOW_REGS , + WINDOW_STACK , WINDOW_SYMBOLS , + WINDOW_TARGETS , + + WINDOW_IO , // soft switches $addr name state WINDOW_ZEROPAGE, WINDOW_SOURCE , + WINDOW_OUTPUT , + + + }; + + enum WindowSplit_e + { + WIN_SPLIT_HORZ = (1 << 0), + WIN_SPLIT_VERT = (1 << 1), + WIN_SPLIT_PARENT_TOP = (1 << 2), }; struct WindowSplit_t { - bool bSplit; + RECT tBoundingBox; // + + int nWidth ; // Width & Height are always valid + int nHeight; // If window is split/join, then auto-updated (right,bottom) + + int nCursorY; // Address + int nCursorX; // or line,col of text file ... + + int bSplit ; + + int iParent;// index into g_aWindowConfig + int iChild ; // index into g_aWindowConfig + Window_e eTop; Window_e eBot; - // TODO: nTopHeight - // TODO: nBotHeight }; +// Debuger_PanelInit(); +// WindowsRemoveAll() +// int iNext = 0; +// iNext = Panel_Add( iNext, WINDOW_CONSOLE ); +// iNext = Panel_AutoSplit( iNext, WINDOW_CODE ); +// iNext = Panel_AutoSplit( iNext, WINDOW_REGS ); + + + // g_bWindowDisplayShowChild = false; + // g_bWindowDisplayShowRoot = WINDOW_CODE; + // Zero Page ______________________________________________________________________________________