2012-03-27 21:20:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
#include "IPropertySheet.h"
|
2012-03-27 21:20:36 +00:00
|
|
|
#include "PropertySheetHelper.h"
|
|
|
|
#include "PageConfig.h"
|
|
|
|
#include "PageInput.h"
|
|
|
|
#include "PageSound.h"
|
|
|
|
#include "PageDisk.h"
|
|
|
|
#include "PageAdvanced.h"
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
class CPropertySheet : public IPropertySheet
|
2012-03-27 21:20:36 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CPropertySheet() :
|
2012-05-06 22:14:03 +00:00
|
|
|
m_PageConfig(m_PropertySheetHelper),
|
|
|
|
m_PageInput(m_PropertySheetHelper),
|
|
|
|
m_PageSound(m_PropertySheetHelper),
|
|
|
|
m_PageDisk(m_PropertySheetHelper),
|
|
|
|
m_PageAdvanced(m_PropertySheetHelper)
|
|
|
|
{
|
|
|
|
}
|
2012-03-27 21:20:36 +00:00
|
|
|
virtual ~CPropertySheet(){}
|
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
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
|
2015-02-13 22:40:53 +00:00
|
|
|
void ApplyNewConfig(const CConfigNeedingRestart& ConfigNew, const CConfigNeedingRestart& ConfigOld)
|
|
|
|
{
|
|
|
|
m_PropertySheetHelper.ApplyNewConfig(ConfigNew, ConfigOld);
|
|
|
|
}
|
2021-09-17 19:43:10 +00:00
|
|
|
void ApplyNewConfigFromSnapshot(const CConfigNeedingRestart& ConfigNew)
|
|
|
|
{
|
|
|
|
m_PropertySheetHelper.ApplyNewConfigFromSnapshot(ConfigNew);
|
|
|
|
}
|
2018-01-26 11:03:44 +00:00
|
|
|
void ConfigSaveApple2Type(eApple2Type apple2Type)
|
|
|
|
{
|
|
|
|
m_PropertySheetHelper.ConfigSaveApple2Type(apple2Type);
|
|
|
|
}
|
2012-03-27 21:20:36 +00:00
|
|
|
|
2012-05-06 22:14:03 +00:00
|
|
|
virtual UINT GetScrollLockToggle(void){ return m_PageInput.GetScrollLockToggle(); }
|
|
|
|
virtual void SetScrollLockToggle(UINT uValue){ m_PageInput.SetScrollLockToggle(uValue); }
|
2013-12-31 22:40:10 +00:00
|
|
|
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); }
|
2013-12-06 21:10:41 +00:00
|
|
|
virtual UINT GetAutofire(UINT uButton) { return m_PageInput.GetAutofire(uButton); }
|
|
|
|
virtual void SetAutofire(UINT uValue) { m_PageInput.SetAutofire(uValue); }
|
2020-01-18 19:06:06 +00:00
|
|
|
virtual bool GetButtonsSwapState(void) { return m_PageInput.GetButtonsSwapState(); }
|
|
|
|
virtual void SetButtonsSwapState(bool value) { m_PageInput.SetButtonsSwapState(value); }
|
2012-05-06 22:14:03 +00:00
|
|
|
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); }
|
2012-03-27 21:20:36 +00:00
|
|
|
|
|
|
|
private:
|
2012-05-06 22:14:03 +00:00
|
|
|
CPropertySheetHelper m_PropertySheetHelper;
|
|
|
|
CPageConfig m_PageConfig;
|
|
|
|
CPageInput m_PageInput;
|
|
|
|
CPageSound m_PageSound;
|
|
|
|
CPageDisk m_PageDisk;
|
|
|
|
CPageAdvanced m_PageAdvanced;
|
2012-03-27 21:20:36 +00:00
|
|
|
};
|