Cxbx-Reloaded/Include/Win32/Cxbx/WndMain.h

100 lines
3.1 KiB
C
Raw Normal View History

2003-01-26 06:18:56 +00:00
// ******************************************************************
// *
// * .,-::::: .,:: .::::::::. .,:: .:
// * ,;;;'````' `;;;, .,;; ;;;'';;' `;;;, .,;;
// * [[[ '[[,,[[' [[[__[[\. '[[,,[['
// * $$$ Y$$$P $$""""Y$$ Y$$$P
// * `88bo,__,o, oP"``"Yo, _88o,,od8P oP"``"Yo,
// * "YUMMMMMP",m" "Mm,""YUMMMP" ,m" "Mm,
// *
// * Cxbx->Win32->Cxbx->WndMain.h
// *
// * This file is part of the Cxbx project.
// *
// * Cxbx and Cxbe are free software; you can redistribute them
// * and/or modify them 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 recieved a copy of the GNU General Public License
// * along with this program; see the file COPYING.
// * If not, write to the Free Software Foundation, Inc.,
// * 59 Temple Place - Suite 330, Bostom, MA 02111-1307, USA.
// *
// * (c) 2002-2003 Aaron Robinson <caustik@caustik.com>
// *
// * All rights reserved
// *
// ******************************************************************
#ifndef WNDMAIN_H
#define WNDMAIN_H
#include "Wnd.h"
// ******************************************************************
// * class : WndMain
// ******************************************************************
class WndMain : public Wnd
{
public:
WndMain(HINSTANCE x_hInstance);
~WndMain();
LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void SaveXbe(const char *x_filename);
void SaveXbeAs();
2003-01-26 06:18:56 +00:00
void OpenXbe(const char *x_filename);
void CloseXbe();
2003-01-26 06:18:56 +00:00
bool ConvertToExe(const char *x_filename, bool x_bVerifyIfExists);
2003-01-27 05:46:12 +00:00
void StartEmulation(bool x_bAutoConvert);
2003-01-27 05:46:12 +00:00
bool isCreated() { return m_bCreated; }
2003-01-26 06:18:56 +00:00
static void SuggestFilename(const char *x_orig_filename, char *x_filename, char x_extension[4]);
2003-01-26 06:18:56 +00:00
private:
2003-01-26 06:18:56 +00:00
void XbeLoaded(); // after an xbe is loaded, some stuff needs to update
void LoadLogo(); // refresh the logo in the main window
2003-03-07 18:22:13 +00:00
void UpdateDebugConsoles(); // allocate / deallocate debug consoles as per configuration
2003-01-26 06:18:56 +00:00
HDC m_back_dc;
HDC m_logo_dc;
HBITMAP m_orig_bmp;
HBITMAP m_orig_logo;
HBITMAP m_back_bmp;
HBITMAP m_logo_bmp;
Xbe *m_xbe;
Exe *m_exe;
2003-01-29 23:59:07 +00:00
char *m_XbeFilename;
char *m_ExeFilename;
2003-01-26 06:18:56 +00:00
bool m_xbe_changed;
bool m_exe_changed;
bool m_bCreated;
2003-01-29 23:59:07 +00:00
enum DebugMode m_CxbxDebug;
enum DebugMode m_KrnlDebug;
char *m_CxbxDebugFilename;
char *m_KrnlDebugFilename;
2003-01-26 06:18:56 +00:00
};
#endif