mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-19 04:08:45 +00:00
717c5cba84
. Format now extensible for supporting new hardware types in the future . Include missing items like Apple2Type, CyclesThisVideoFrame (#255) Continue to support loading of old v1 format. Added card save/load for: . Mouse (#260) . HDD (#260) . Printer Extended card support for: . SSC Other: . Added save-state v1 struct size checks . Create SaveState_Structs_v2.h and split out common into SaveState_Structs_common.h . Refactor HardDisk.cpp to use imagehandle; and consolidate with Disk.cpp . Fix Disk/HD_GetFullPathName() which wasn't always returning full pathname . Consolidate common GetImageTitle() and move into DiskImage.cpp
55 lines
2.3 KiB
C++
55 lines
2.3 KiB
C++
#pragma once
|
|
|
|
#include "IPropertySheet.h"
|
|
#include "PropertySheetHelper.h"
|
|
#include "PageConfig.h"
|
|
#include "PageInput.h"
|
|
#include "PageSound.h"
|
|
#include "PageDisk.h"
|
|
#include "PageAdvanced.h"
|
|
|
|
class CPropertySheet : public IPropertySheet
|
|
{
|
|
public:
|
|
CPropertySheet() :
|
|
m_PageConfig(m_PropertySheetHelper),
|
|
m_PageInput(m_PropertySheetHelper),
|
|
m_PageSound(m_PropertySheetHelper),
|
|
m_PageDisk(m_PropertySheetHelper),
|
|
m_PageAdvanced(m_PropertySheetHelper)
|
|
{
|
|
}
|
|
virtual ~CPropertySheet(){}
|
|
|
|
virtual void Init(void);
|
|
virtual DWORD GetVolumeMax(void); // TODO:TC: Move out of here
|
|
virtual bool SaveStateSelectImage(HWND hWindow, bool bSave); // TODO:TC: Move out of here
|
|
void ApplyNewConfig(const CConfigNeedingRestart& ConfigNew, const CConfigNeedingRestart& ConfigOld)
|
|
{
|
|
m_PropertySheetHelper.ApplyNewConfig(ConfigNew, ConfigOld);
|
|
}
|
|
|
|
virtual UINT GetScrollLockToggle(void){ return m_PageInput.GetScrollLockToggle(); }
|
|
virtual void SetScrollLockToggle(UINT uValue){ m_PageInput.SetScrollLockToggle(uValue); }
|
|
virtual UINT GetJoystickCursorControl(void){ return m_PageInput.GetJoystickCursorControl(); }
|
|
virtual void SetJoystickCursorControl(UINT uValue){ m_PageInput.SetJoystickCursorControl(uValue); }
|
|
virtual UINT GetJoystickCenteringControl(void){ return m_PageInput.GetJoystickCenteringControl(); }
|
|
virtual void SetJoystickCenteringControl(UINT uValue){ m_PageInput.SetJoystickCenteringControl(uValue); }
|
|
virtual UINT GetAutofire(UINT uButton) { return m_PageInput.GetAutofire(uButton); }
|
|
virtual void SetAutofire(UINT uValue) { m_PageInput.SetAutofire(uValue); }
|
|
virtual UINT GetMouseShowCrosshair(void){ return m_PageInput.GetMouseShowCrosshair(); }
|
|
virtual void SetMouseShowCrosshair(UINT uValue){ m_PageInput.SetMouseShowCrosshair(uValue); }
|
|
virtual UINT GetMouseRestrictToWindow(void){ return m_PageInput.GetMouseRestrictToWindow(); }
|
|
virtual void SetMouseRestrictToWindow(UINT uValue){ m_PageInput.SetMouseRestrictToWindow(uValue); }
|
|
virtual UINT GetTheFreezesF8Rom(void){ return m_PageAdvanced.GetTheFreezesF8Rom(); }
|
|
virtual void SetTheFreezesF8Rom(UINT uValue){ m_PageAdvanced.SetTheFreezesF8Rom(uValue); }
|
|
|
|
private:
|
|
CPropertySheetHelper m_PropertySheetHelper;
|
|
CPageConfig m_PageConfig;
|
|
CPageInput m_PageInput;
|
|
CPageSound m_PageSound;
|
|
CPageDisk m_PageDisk;
|
|
CPageAdvanced m_PageAdvanced;
|
|
};
|