summaryrefslogtreecommitdiff
path: root/src/256CheckDialog.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-09 20:59:16 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-09 20:59:16 +0100
commitc920fe38a19013b99f3f74e48da9724fb053c212 (patch)
tree6bb036fd3f61b85daceb26f74378eadcdd977db1 /src/256CheckDialog.cpp
parent96a63139221587c6be9659c1e07eacd3a8e7f048 (diff)
downloadt2win-c920fe38a19013b99f3f74e48da9724fb053c212.tar.gz
t2win-c920fe38a19013b99f3f74e48da9724fb053c212.zip
support building from VC++ IDE, add resources
Diffstat (limited to '')
-rw-r--r--src/256CheckDialog.cpp322
1 files changed, 164 insertions, 158 deletions
diff --git a/src/256CheckDialog.cpp b/src/256CheckDialog.cpp
index 8aea8d7..2692219 100644
--- a/src/256CheckDialog.cpp
+++ b/src/256CheckDialog.cpp
@@ -1,160 +1,161 @@
+#include "StdAfx.h"
#define ATOI_KLUDGE
#include "common.h"
// Since this is the first TU in T2.exe, we pull the same trick as
// in CDefRsrcPlugin.cpp for T2DLL and include all the headers that
// will force inline functions to be emitted in the right order
-#include "UT2Utils.h"
-#include "T2PaletteAnimeDef.h"
-#include "LAttachment.h"
-#include "LAttachable.h"
-#include "CLink.h"
-#include "LArray.h"
-#include "LBroadcaster.h"
-#include "LListener.h"
-#include "T2Archive.h"
-#include "T2BitImage.h"
-#include "T2ImageObj.h"
-#include "T2SpriteObj.h"
-#include "Wave.h"
-#include "T2SoundPlayer.h"
-#include "T2Balloon.h"
-#include "T2DlgItemButtonBase.h"
-#include "T2DlgItemIButton.h"
-#include "T2DlgItemOK.h"
-#include "T2DlgItemCANCEL.h"
-#include "T2DlgItemTButton.h"
-#include "T2DlgItemICheck.h"
-#include "T2DlgItemCheck.h"
-#include "T2DlgItemScr.h"
-#include "T2DlgItemHScr.h"
-#include "T2DlgItemVScr.h"
-#include "T2DlgItemBox.h"
-#include "T2DlgItemText.h"
-#include "T2DlgItemGageBase.h"
-#include "T2DlgItemStressGage.h"
-#include "T2DlgItemPPLEvalGage.h"
-#include "T2DlgItemBelongGage.h"
-#include "T2DlgItemCustomerGage.h"
-#include "T2DlgItemProfitsGage.h"
-#include "T2DlgItemImageTable.h"
-#include "T2DlgItemImage.h"
-#include "CToggleButtonDisabled.h"
-#include "T2VerticalTable.h"
-#include "T2MovieTable.h"
-#include "T2GuestroomTable.h"
-#include "T2HallEventTable.h"
-#include "CTokenizer.h"
-#include "T2Dialog.h"
-#include "T2PluginSpecifier.h"
-#include "CResFile.h"
-#include "CPlugin.h"
-#include "CFilePlugin.h"
-#include "CFilePluginList.h"
-#include "CFilePluginDB.h"
-#include "T2EquipInfoDialog.h"
-#include "T2TenantInfoDialog.h"
-#include "T2Object.h"
-#include "T2ObjectArray.h"
-#include "T2DrawableObject.h"
-#include "CDefRsrcPlugin.h"
-#include "T2TemplatePlugin.h"
-#include "T2HaveOutViewObject.h"
-#include "CProgramPlugin.h"
-#include "T2TemplatePluginList.h"
-#include "T2TemplatePluginDB.h"
-#include "T2ToolPlugin.h"
-#include "UT2Coordinate.h"
-#include "T2DateTime.h"
-#include "T2PeoplePtrList.h"
-#include "T2TowerMessage.h"
-#include "CResourcePlugin.h"
-#include "T2SubPlugin.h"
-#include "T2HallEventPlugin.h"
-#include "T2MoviePlugin.h"
-#include "T2ToolDef.h"
-#include "T2EquipDef.h"
-#include "T2TenantDef.h"
-#include "T2MoverDef.h"
-#include "T2OuterObjDef.h"
-#include "T2SilhouetteDef.h"
-#include "T2MatterDef.h"
-#include "T2PeopleDef.h"
-#include "T2Pool.h"
-#include "T2Equip.h"
-#include "T2Tenant.h"
-#include "T2OutObj.h"
-#include "T2Request.h"
-#include "T2Mover.h"
-#include "T2PlaceParamDef.h"
-#include "T2TenantMemberTableDef.h"
-#include "T2TenantMemberDef.h"
-#include "T2PeopleTypeArray.h"
-#include "T2PeopleTimeZoneList.h"
-#include "T2PeopleDemandList.h"
-#include "T2PeopleType.h"
-#include "T2Matter.h"
-#include "T2OuterObjList.h"
-#include "T2OutObjArrayList.h"
-#include "T2People.h"
-#include "T2PeopleArray.h"
-#include "T2PeopleArrayList.h"
-#include "T2RequestArray.h"
-#include "T2RequestArrayList.h"
-#include "T2TenantArray.h"
-#include "T2TenantArrayList.h"
-#include "T2MoverArray.h"
-#include "T2MoverArrayList.h"
-#include "T2RegistedTenantDB.h"
-#include "T2EquipPlugin.h"
-#include "T2TenantPlugin.h"
-#include "T2MoverPlugin.h"
-#include "T2OuterObjPlugin.h"
-#include "T2PeopleLoader.h"
-#include "T2CrossEquipArray.h"
-#include "T2TenantCEArray.h"
-#include "T2RouteCEArray.h"
-#include "T2FloorCEArray.h"
-#include "T2MoverCEArray.h"
-#include "T2UnitInfo.h"
-#include "T2FloorInfo.h"
-#include "T2FInfoAreaIterator.h"
-#include "T2FInfoPtIterator.h"
-#include "UT2BkgndInfo.h"
-#include "T2WorldDef.h"
-#include "T2WorldPlugin.h"
-#include "T2AdvertisePlugin.h"
-#include "T2GlobalData.h"
-#include "T2EquipPtrList.h"
-#include "T2FloorPtrList.h"
-#include "T2RoutingTableElem.h"
-#include "T2MoverRoutingTable.h"
-#include "T2RoutingTable.h"
-#include "T2RouteNavigator.h"
-#include "T2Name.h"
-#include "T2NameList.h"
-#include "T2TrafficInfo.h"
-#include "T2Settlement.h"
-#include "T2PaletteAnime.h"
-#include "T2OptionPlugin.h"
-#include "T2OptionPluginList.h"
-#include "T2TowerEvent.h"
-#include "T2EventItem.h"
-#include "T2BlackOut.h"
-#include "T2FireBurning.h"
-#include "T2MetroRailway.h"
-#include "T2SantaClaus.h"
-#include "T2Terrorist.h"
-#include "T2VisitVIP.h"
-#include "T2MsgWindowCallback.h"
-#include "T2ToolWindow.h"
-#include "T2ToolCallback.h"
-#include "T2StewardDialog.h"
-#include "T2ClassFactory.h"
+#include "T2DLL/UT2Utils.h"
+#include "T2DLL/T2PaletteAnimeDef.h"
+#include "T2DLL/LAttachment.h"
+#include "T2DLL/LAttachable.h"
+#include "T2DLL/CLink.h"
+#include "T2DLL/LArray.h"
+#include "T2DLL/LBroadcaster.h"
+#include "T2DLL/LListener.h"
+#include "T2DLL/T2Archive.h"
+#include "T2DLL/T2BitImage.h"
+#include "T2DLL/T2ImageObj.h"
+#include "T2DLL/T2SpriteObj.h"
+#include "T2DLL/Wave.h"
+#include "T2DLL/T2SoundPlayer.h"
+#include "T2DLL/T2Balloon.h"
+#include "T2DLL/T2DlgItemButtonBase.h"
+#include "T2DLL/T2DlgItemIButton.h"
+#include "T2DLL/T2DlgItemOK.h"
+#include "T2DLL/T2DlgItemCANCEL.h"
+#include "T2DLL/T2DlgItemTButton.h"
+#include "T2DLL/T2DlgItemICheck.h"
+#include "T2DLL/T2DlgItemCheck.h"
+#include "T2DLL/T2DlgItemScr.h"
+#include "T2DLL/T2DlgItemHScr.h"
+#include "T2DLL/T2DlgItemVScr.h"
+#include "T2DLL/T2DlgItemBox.h"
+#include "T2DLL/T2DlgItemText.h"
+#include "T2DLL/T2DlgItemGageBase.h"
+#include "T2DLL/T2DlgItemStressGage.h"
+#include "T2DLL/T2DlgItemPPLEvalGage.h"
+#include "T2DLL/T2DlgItemBelongGage.h"
+#include "T2DLL/T2DlgItemCustomerGage.h"
+#include "T2DLL/T2DlgItemProfitsGage.h"
+#include "T2DLL/T2DlgItemImageTable.h"
+#include "T2DLL/T2DlgItemImage.h"
+#include "T2DLL/CToggleButtonDisabled.h"
+#include "T2DLL/T2VerticalTable.h"
+#include "T2DLL/T2MovieTable.h"
+#include "T2DLL/T2GuestroomTable.h"
+#include "T2DLL/T2HallEventTable.h"
+#include "T2DLL/CTokenizer.h"
+#include "T2DLL/T2Dialog.h"
+#include "T2DLL/T2PluginSpecifier.h"
+#include "T2DLL/CResFile.h"
+#include "T2DLL/CPlugin.h"
+#include "T2DLL/CFilePlugin.h"
+#include "T2DLL/CFilePluginList.h"
+#include "T2DLL/CFilePluginDB.h"
+#include "T2DLL/T2EquipInfoDialog.h"
+#include "T2DLL/T2TenantInfoDialog.h"
+#include "T2DLL/T2Object.h"
+#include "T2DLL/T2ObjectArray.h"
+#include "T2DLL/T2DrawableObject.h"
+#include "T2DLL/CDefRsrcPlugin.h"
+#include "T2DLL/T2TemplatePlugin.h"
+#include "T2DLL/T2HaveOutViewObject.h"
+#include "T2DLL/CProgramPlugin.h"
+#include "T2DLL/T2TemplatePluginList.h"
+#include "T2DLL/T2TemplatePluginDB.h"
+#include "T2DLL/T2ToolPlugin.h"
+#include "T2DLL/UT2Coordinate.h"
+#include "T2DLL/T2DateTime.h"
+#include "T2DLL/T2PeoplePtrList.h"
+#include "T2DLL/T2TowerMessage.h"
+#include "T2DLL/CResourcePlugin.h"
+#include "T2DLL/T2SubPlugin.h"
+#include "T2DLL/T2HallEventPlugin.h"
+#include "T2DLL/T2MoviePlugin.h"
+#include "T2DLL/T2ToolDef.h"
+#include "T2DLL/T2EquipDef.h"
+#include "T2DLL/T2TenantDef.h"
+#include "T2DLL/T2MoverDef.h"
+#include "T2DLL/T2OuterObjDef.h"
+#include "T2DLL/T2SilhouetteDef.h"
+#include "T2DLL/T2MatterDef.h"
+#include "T2DLL/T2PeopleDef.h"
+#include "T2DLL/T2Pool.h"
+#include "T2DLL/T2Equip.h"
+#include "T2DLL/T2Tenant.h"
+#include "T2DLL/T2OutObj.h"
+#include "T2DLL/T2Request.h"
+#include "T2DLL/T2Mover.h"
+#include "T2DLL/T2PlaceParamDef.h"
+#include "T2DLL/T2TenantMemberTableDef.h"
+#include "T2DLL/T2TenantMemberDef.h"
+#include "T2DLL/T2PeopleTypeArray.h"
+#include "T2DLL/T2PeopleTimeZoneList.h"
+#include "T2DLL/T2PeopleDemandList.h"
+#include "T2DLL/T2PeopleType.h"
+#include "T2DLL/T2Matter.h"
+#include "T2DLL/T2OuterObjList.h"
+#include "T2DLL/T2OutObjArrayList.h"
+#include "T2DLL/T2People.h"
+#include "T2DLL/T2PeopleArray.h"
+#include "T2DLL/T2PeopleArrayList.h"
+#include "T2DLL/T2RequestArray.h"
+#include "T2DLL/T2RequestArrayList.h"
+#include "T2DLL/T2TenantArray.h"
+#include "T2DLL/T2TenantArrayList.h"
+#include "T2DLL/T2MoverArray.h"
+#include "T2DLL/T2MoverArrayList.h"
+#include "T2DLL/T2RegistedTenantDB.h"
+#include "T2DLL/T2EquipPlugin.h"
+#include "T2DLL/T2TenantPlugin.h"
+#include "T2DLL/T2MoverPlugin.h"
+#include "T2DLL/T2OuterObjPlugin.h"
+#include "T2DLL/T2PeopleLoader.h"
+#include "T2DLL/T2CrossEquipArray.h"
+#include "T2DLL/T2TenantCEArray.h"
+#include "T2DLL/T2RouteCEArray.h"
+#include "T2DLL/T2FloorCEArray.h"
+#include "T2DLL/T2MoverCEArray.h"
+#include "T2DLL/T2UnitInfo.h"
+#include "T2DLL/T2FloorInfo.h"
+#include "T2DLL/T2FInfoAreaIterator.h"
+#include "T2DLL/T2FInfoPtIterator.h"
+#include "T2DLL/UT2BkgndInfo.h"
+#include "T2DLL/T2WorldDef.h"
+#include "T2DLL/T2WorldPlugin.h"
+#include "T2DLL/T2AdvertisePlugin.h"
+#include "T2DLL/T2GlobalData.h"
+#include "T2DLL/T2EquipPtrList.h"
+#include "T2DLL/T2FloorPtrList.h"
+#include "T2DLL/T2RoutingTableElem.h"
+#include "T2DLL/T2MoverRoutingTable.h"
+#include "T2DLL/T2RoutingTable.h"
+#include "T2DLL/T2RouteNavigator.h"
+#include "T2DLL/T2Name.h"
+#include "T2DLL/T2NameList.h"
+#include "T2DLL/T2TrafficInfo.h"
+#include "T2DLL/T2Settlement.h"
+#include "T2DLL/T2PaletteAnime.h"
+#include "T2DLL/T2OptionPlugin.h"
+#include "T2DLL/T2OptionPluginList.h"
+#include "T2DLL/T2TowerEvent.h"
+#include "T2DLL/T2EventItem.h"
+#include "T2DLL/T2BlackOut.h"
+#include "T2DLL/T2FireBurning.h"
+#include "T2DLL/T2MetroRailway.h"
+#include "T2DLL/T2SantaClaus.h"
+#include "T2DLL/T2Terrorist.h"
+#include "T2DLL/T2VisitVIP.h"
+#include "T2DLL/T2MsgWindowCallback.h"
+#include "T2DLL/T2ToolWindow.h"
+#include "T2DLL/T2ToolCallback.h"
+#include "T2DLL/T2StewardDialog.h"
+#include "T2DLL/T2ClassFactory.h"
#include "256CheckDialog.h"
#include "T2.h"
-#include "T2DLL.h"
+#include "T2DLL/T2DLL.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -162,38 +163,43 @@
static char THIS_FILE[] = __FILE__;
#endif
-C256ColorDialog::C256ColorDialog(CWnd *pParentWnd)
- : CDialog(227, pParentWnd)
+C256CheckDialog::C256CheckDialog(CWnd *pParent)
+ : CDialog(IDD, pParent)
{
-
+ //{{AFX_DATA_INIT(C256CheckDialog)
+ //}}AFX_DATA_INIT
}
-/*virtual*/ void C256ColorDialog::DoDataExchange(CDataExchange *pDX) {
+/*virtual*/ void C256CheckDialog::DoDataExchange(CDataExchange *pDX) {
CWnd::DoDataExchange(pDX);
- DDX_Control(pDX, 1028, mButton);
+ //{{AFX_DATA_MAP(C256CheckDialog)
+ DDX_Control(pDX, IDC_DEFAULT_CHECK, mButton);
+ //}}AFX_DATA_MAP
}
-BEGIN_MESSAGE_MAP(C256ColorDialog, CDialog)
+BEGIN_MESSAGE_MAP(C256CheckDialog, CDialog)
+ //{{AFX_MSG_MAP(C256CheckDialog)
+ //}}AFX_MSG_MAP
END_MESSAGE_MAP()
-/*virtual*/ void C256ColorDialog::OnOK() {
+/*virtual*/ void C256CheckDialog::OnOK() {
Save();
CDialog::OnOK();
}
-/*virtual*/ void C256ColorDialog::OnCancel() {
+/*virtual*/ void C256CheckDialog::OnCancel() {
Save();
CDialog::OnCancel();
}
-void C256ColorDialog::Save() {
+void C256CheckDialog::Save() {
if (mButton.GetCheck())
gT2App->WriteProfileInt("Settings", "CheckDisplay", 0);
else
gT2App->WriteProfileInt("Settings", "CheckDisplay", 1);
}
-/*virtual*/ int C256ColorDialog::DoModal() {
+/*virtual*/ int C256CheckDialog::DoModal() {
int value = gT2App->GetProfileInt("Settings", "CheckDisplay", 1);
if (value == 0)