Files
TeslaRel410/BORLAND/BC45/EXPERT/OWL/HSDI.OWL
T
CydandClaude Fable 5 63312e07f9 source410: literal 4.10 source reconstruction + BC++ 4.52 fleet toolchain archived
- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
  is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
  Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
  (extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
  BT game source (never mixed into CODE/). Round 1-3 state:
  * 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
    (BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
    since 1996.
  * BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
    its binary-recorded line 400 exactly.
  * BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
    (Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
    TeamScore=12 flagged [T4]).
  * MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
    (VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
    the period compiler is the drift detector).
  * Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
    (per-TU verification sweep under authentic OPT.MAK flags).
  * README: corrected roadmap - MECH.HPP is the capstone grown with the mech
    TU reconstructions; BTREG.CPP green = the header-family milestone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 07:33:26 -05:00

127 lines
4.3 KiB
Plaintext

##{hheader.snp}
#include <owl\owlpch.h>
#pragma hdrstop
##@QUERY_APPL_OLE_AUTO 2
#include <ocf\automacr.h>
##@OPT_APPL_DRAGDROP 2
#include <classlib\bags.h>
##--BEGIN-- @OPT_APPL_PRINTING
#include "apxprint.h"
#include "apxprev.h"
##--END-- @OPT_APPL_PRINTING
##QUERY_FILENAME_CPP [[FileName]]
#include "[[FileName]].rh" // Definition of all resources.
##{dragdrop.owl}
##--BEGIN-- @QUERY_APPL_COMMENT == VALUE_VERBOSE
//
// FrameWindow must be derived to override Paint for Preview and Print.
//
##--END-- @QUERY_APPL_COMMENT == VALUE_VERBOSE
//{{TDecoratedFrame = SDIDecFrame}}
class SDIDecFrame : public TDecoratedFrame {
public:
SDIDecFrame (TWindow *parent, const char far *title, TWindow *clientWnd, bool trackMenuSelection = false, TModule *module = 0);
~SDIDecFrame ();
##--BEGIN-- ((@QUERY_APPL_MODEL == VALUE_DIALOG) && (@OPT_APPL_TOOLBAR || @OPT_APPL_STATUSBAR))
//{{[[TApplication]]VIRTUAL_BEGIN}}
public:
virtual void SetupWindow ();
##:DBVirtual("SDIDecFrame", "SetupWindow")
//{{[[TApplication]]VIRTUAL_END}}
##--END-- ((@QUERY_APPL_MODEL == VALUE_DIALOG) && (@OPT_APPL_TOOLBAR || @OPT_APPL_STATUSBAR))
}; //{{SDIDecFrame}}
//{{TApplication = [[TApplication]]}}
class [[TApplication]] : public TApplication {
private:
##--BEGIN-- @QUERY_APPL_MODEL != VALUE_DIALOG
##QUERY_WIND_CLIENT [[ClientClass]]
##<<*ClientClass QUERY_BASE_NAME [[BaseClient]]
##BaseClient == "TListBox" 2
void LoadTextFile (); // Read a file for ListBox client.
##--END-- @QUERY_APPL_MODEL != VALUE_DIALOG
##@OPT_APPL_HELP 3
bool HelpState; // Has the help engine been used.
bool ContextHelp; // SHIFT-F1 state (context sensitive HELP)
HCURSOR HelpCursor; // Context sensitive help cursor
##(((@QUERY_APPL_MODEL == VALUE_DIALOG) && @QUERY_APPL_DLGCLIENT_MENU) || (@QUERY_APPL_MODEL != VALUE_DIALOG))
##--BEGIN-- @OPT_APPL_TOOLBAR || @OPT_APPL_DRAGDROP
##@OPT_APPL_TOOLBAR
void SetupSpeedBar (TDecoratedFrame *frame);
##@OPT_APPL_DRAGDROP
void AddFile (const char *fileName);
##--END-- @OPT_APPL_TOOLBAR || @OPT_APPL_DRAGDROP
public:
[[TApplication]] ();
virtual ~[[TApplication]] ();
##@QUERY_APPL_MODEL != VALUE_DIALOG
TOpenSaveDialog::TData FileData; // Data to control open/saveas standard dialog.
##@QUERY_APPL_OLE_AUTO 2
TAppDescriptor *Factory; // Automation descriptor.
##@QUERY_APPL_MODEL != VALUE_DIALOG
void OpenFile (const char *fileName = 0);
##@OPT_APPL_PRINTING 4
// Public data members used by the print menu commands and Paint routine in MDIChild.
TPrinter *Printer; // Printer support.
int Printing; // Printing in progress.
//{{[[TApplication]]VIRTUAL_BEGIN}}
public:
virtual void InitMainWindow();
##:DBVirtual(\\"[[TApplication]]", "InitMainWindow")
##--BEGIN-- @OPT_APPL_DRAGDROP
virtual void InitInstance();
##:DBVirtual(\\"[[TApplication]]", "InitInstance")
##--END-- @OPT_APPL_DRAGDROP
##@OPT_APPL_HELP 2
##:DBVirtual(\\"[[TApplication]]", "CanClose")
virtual bool CanClose ();
##:DBVirtual(\\"[[TApplication]]", "ProcessAppMsg")
virtual bool ProcessAppMsg (MSG& msg);
//{{[[TApplication]]VIRTUAL_END}}
//{{[[TApplication]]RSP_TBL_BEGIN}}
protected:
##--BEGIN-- @QUERY_APPL_MODEL != VALUE_DIALOG
void CmFileNew ();
void CmFileOpen ();
##@OPT_APPL_PRINTING 4
void CmFilePrint ();
void CmFilePrintSetup ();
void CmFilePrintPreview ();
void CmPrintEnable (TCommandEnabler &tce);
##--END-- @QUERY_APPL_MODEL != VALUE_DIALOG
##@OPT_APPL_HELP 2
void CmHelpContents ();
void CmHelpUsing ();
void CmHelpAbout ();
##@OPT_APPL_DRAGDROP
void EvDropFiles (TDropInfo drop);
##@OPT_APPL_PRINTING
void EvWinIniChange (char far* section);
//{{[[TApplication]]RSP_TBL_END}}
##--BEGIN-- @QUERY_APPL_OLE_AUTO
DECLARE_AUTOCLASS([[TApplication]])
AUTODETACH
//{{[[TApplication]]AUTO_TBL_BEGIN}}
//{{[[TApplication]]AUTO_TBL_END}}
##--END-- @QUERY_APPL_OLE_AUTO
DECLARE_RESPONSE_TABLE([[TApplication]]);
}; //{{[[TApplication]]}}
##{hfooter.snp}