/////////////////////////////////////////////////////////// // TConfirmThingDialog // ------------------- // TConfirmThingDialog::TConfirmThingDialog (TWindow* parent, TConfirmThingDialogXfer &XFer, TResId resId, TModule* module): TDialog(parent, resId, module) { //{{TConfirmThingDialogXFER_USE}} pAngleCheck = newTCheckBox(this, IDC_ANGLE_CHECK, 0); pTypeCheck = newTCheckBox(this, IDC_TYPE_CHECK, 0); pXPosCheck = newTCheckBox(this, IDC_XPOS_CHECK, 0); pYPosCheck = newTCheckBox(this, IDC_YPOS_CHECK, 0); pDeafCheck = newTCheckBox(this, IDC_CONF_DEAF_CHECK, 0); pLevel12Check = newTCheckBox(this, IDC_CONF_LEVEL12_CHECK, 0); pLevel3Check = newTCheckBox(this, IDC_CONF_LEVEL3_CHECK, 0); pLevel45Check = newTCheckBox(this, IDC_CONF_LEVEL45_CHECK, 0); pMultiCheck = newTCheckBox(this, IDC_CONF_MULTI_CHECK, 0); SetTransferBuffer((void *) &XFer); //{{TConfirmThingDialogXFER_USE_END}} }
///////////////////////////////////////////////////////////////////// // TPreferencesDialog // ------------------ // TPreferencesDialog::TPreferencesDialog (TWindow* parent, TResId resId, TModule* module): TDialog(parent, resId, module) { memset (WTextureName, 0, MAX_BITMAPNAME + 1); memset (FTextureName, 0, MAX_BITMAPNAME + 1); pWTextureDialog = NULL; pFTextureDialog = NULL; pWTextureList = newTListBox(this, IDC_WTEXTURE_LIST); pFTextureList = newTListBox(this, IDC_FTEXTURE_LIST); pFloorHeight = newTEdit(this, IDC_FLOOR_HEIGHT, 6); pNormalText = newTStatic(this, IDC_NORMAL_TEXT, MAX_BITMAPNAME + 1); pFloorText = newTStatic(this, IDC_FLOOR_TEXT, MAX_BITMAPNAME + 1); pCeilingText = newTStatic(this, IDC_CEILING_TEXT, MAX_BITMAPNAME + 1); pCeilingHeight = newTEdit(this, IDC_CEILING_HEIGHT, 6); pBelowText = newTStatic(this, IDC_BELOW_TEXT, MAX_BITMAPNAME + 1); pAboveText = newTStatic(this, IDC_ABOVE_TEXT, MAX_BITMAPNAME + 1); pAddSelBoxCheck = newTCheckBox(this, IDC_PREF_ADDSELBOX, 0); pDebugCheck = newTCheckBox(this, IDC_PREF_DEBUG, 0); pDrawLengthCheck = newTCheckBox(this, IDC_PREF_DRAWLENGTH, 0); pExpertCheck = newTCheckBox(this, IDC_PREF_EXPERT, 0); pInfoBarCheck = newTCheckBox(this, IDC_PREF_INFOBAR, 0); pQuietCheck = newTCheckBox(this, IDC_PREF_QUIET, 0); pQuiterCheck = newTCheckBox(this, IDC_PREF_QUIETER, 0); pSelect0Check = newTCheckBox(this, IDC_PREF_SELECT0, 0); pAutoScrollCheck = newTCheckBox(this, IDC_PREF_AUTOSCROLL, 0); pMaxUndoEdit = newTEdit(this, IDC_PREF_MAXUNDO, 6); pCeilingHeight->SetValidator (new TRangeValidator (-16384, 16383)); pFloorHeight->SetValidator (new TRangeValidator (-16384, 16383)); pMaxUndoEdit->SetValidator(new TRangeValidator(1, 100)); }
////////////////////////////////////////////////////////////////////// // TThingEditDialog // ---------- // TThingEditDialog::TThingEditDialog (TWindow* parent, SelPtr SelectedThings, TResId resId, TModule* module): TDialog(parent, resId, module) { SelThings = SelectedThings; CurThing = Things[SelectedThings->objnum]; memset (&ConfirmData, 0, sizeof(ConfirmData)); pXPosEdit = newTEdit (this, IDC_THING_XPOS, 7); //pXPosEdit->SetValidator(new TRangeValidator(MapMinX, MapMaxX)); pYPosEdit = newTEdit (this, IDC_THING_YPOS, 7); //pYPosEdit->SetValidator(new TRangeValidator(MapMinY, MapMaxY)); pXExit = newTEdit (this, IDC_XEXIT, 7); pYExit = newTEdit (this, IDC_YEXIT, 7); pEntrancesButton = newTButton (this, IDC_SELECT_FROM_ENTRANCES); pPlayerRadio = newTRadioButton (this, IDC_PLAYER); pExitRadio = newTRadioButton (this, IDC_EXIT); pObjectsRadio = newTRadioButton (this, IDC_OBJECTS); pMonsterGenRadio = newTRadioButton (this, IDC_MONSTERGEN); pEntranceRadio = newTRadioButton (this, IDC_ENTRANCE); pAngleERadio = newTRadioButton(this, IDC_ANGLE_E, 0); pAngleNRadio = newTRadioButton(this, IDC_ANGLE_N, 0); pAngleNERadio = newTRadioButton(this, IDC_ANGLE_NE, 0); pAngleNWRadio = newTRadioButton(this, IDC_ANGLE_NW, 0); pAngleSRadio = newTRadioButton(this, IDC_ANGLE_S, 0); pAngleSERadio = newTRadioButton(this, IDC_ANGLE_SE, 0); pAngleSWRadio = newTRadioButton(this, IDC_ANGLE_SW, 0); pAngleWRadio = newTRadioButton(this, IDC_ANGLE_W, 0); pThingList = newTListBox (this, IDC_THING_LIST); pExitRoomID = newTComboBox(this, IDC_EXIT_ROOM_ID); pSubType = newTComboBox(this, IDC_SUBTYPE); pDontGenerate = newTCheckBox(this, IDC_DONT_GENERATE); pComment = newTEdit(this, IDC_COMMENT); }