Isle
Loading...
Searching...
No Matches
CMainDialog Class Reference

The main dialog window for the LEGO Island configuration program (config.exe). More...

#include <MainDlg.h>

Inheritance diagram for CMainDialog:
Collaboration diagram for CMainDialog:

Public Types

enum  { IDD = IDD_MAIN }
 

Public Member Functions

 CMainDialog (CWnd *pParent)
 Construct a new CMainDialog object. More...
 

Protected Member Functions

void DoDataExchange (CDataExchange *pDX) override
 DDX (Dialog Data Exchange) for MFC controls. More...
 
void UpdateInterface ()
 Refreshes the dialog interface according to current configuration settings. More...
 
void SwitchToAdvanced (BOOL p_advanced)
 Switches UI layout between basic and advanced configuration. More...
 
BOOL OnInitDialog () override
 Initialize dialog upon creation. More...
 
void OnSysCommand (UINT nID, LPARAM lParam)
 MFC handler for system commands (such as About box invocation). More...
 
void OnPaint ()
 Handles dialog paint (redraw). More...
 
HCURSOR OnQueryDragIcon ()
 Returns handle to drag icon when dragging minimized window. More...
 
void OnList3DevicesSelectionChanged ()
 Handles selection changes in the list of 3D devices. More...
 
void OnCancel ()
 Handles dialog cancellation and executes clean-up (if needed). More...
 
void OnDestroy ()
 Handles destruction/closing of the dialog window (WM_DESTROY handler). More...
 
void OnButtonCancel ()
 Processes 'Cancel' button press (IDABORT), optionally writes settings before exit. More...
 
void OnCheckbox3DSound ()
 Handler for '3D sound' checkbox toggle. More...
 
void OnCheckbox3DVideoMemory ()
 Handler for '3D video memory' checkbox toggle. More...
 
void OnRadiobuttonPalette16bit ()
 Handler for '16-bit palette' radio button. More...
 
void OnRadiobuttonPalette256 ()
 Handler for '256-color palette' radio button. More...
 
void OnCheckboxFlipVideoMemPages ()
 Handler for 'Flip video memory pages' checkbox. More...
 
void OnRadiobuttonModelLowQuality ()
 Handler for 'Low quality model' radio button. More...
 
void OnRadiobuttonModelHighQuality ()
 Handler for 'High quality model' radio button. More...
 
void OnRadiobuttonTextureLowQuality ()
 Handler for 'Low quality texture' radio button. More...
 
void OnRadiobuttonTextureHighQuality ()
 Handler for 'High quality texture' radio button. More...
 
void OnCheckboxJoystick ()
 Handler for 'Joystick' checkbox toggle. More...
 
void OnButtonAdvanced ()
 Handler for 'Advanced' button. More...
 
void OnCheckboxDrawCursor ()
 Handler for 'Draw cursor' checkbox toggle. More...
 
void OnCheckboxMusic ()
 Handler for 'Music' checkbox toggle. More...
 

Protected Attributes

undefined m_unk0x60 [4]
 Internal/unknown member. Purpose unclear, contains 4 bytes of undefined data. [AI] [AI_SUGGESTED_NAME: m_paddingOrUnknown]. More...
 
HCURSOR m_icon
 Handle to the dialog's icon (used for window/taskbar and drag). [AI]. More...
 
BOOL m_modified
 Whether any configuration setting has been modified and needs to be saved. [AI]. More...
 
BOOL m_advanced
 Whether the dialog is in advanced mode. [AI]. More...
 

Detailed Description

The main dialog window for the LEGO Island configuration program (config.exe).

[AI]

CMainDialog is the primary UI dialog for configuring graphics, sound, input and other options, representing the main property sheet of the configuration tool. Inherits from MFC's CDialog. [AI]

Definition at line 18 of file MainDlg.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Dialog ID/resource identifier for the main dialog. [AI].

Definition at line 27 of file MainDlg.h.

Constructor & Destructor Documentation

◆ CMainDialog()

CMainDialog::CMainDialog ( CWnd *  pParent)

Construct a new CMainDialog object.

[AI]

Parameters
pParentParent window pointer for dialog initialization. [AI]

Definition at line 13 of file MainDlg.cpp.

Member Function Documentation

◆ DoDataExchange()

void CMainDialog::DoDataExchange ( CDataExchange *  pDX)
overrideprotected

DDX (Dialog Data Exchange) for MFC controls.

[AI]

Called by MFC to transfer data between UI controls and member variables. [AI]

Parameters
pDXData exchange context for controls. [AI]

Definition at line 20 of file MainDlg.cpp.

◆ OnButtonAdvanced()

void CMainDialog::OnButtonAdvanced ( )
protected

Handler for 'Advanced' button.

Toggles the dialog between basic and advanced settings views. [AI]

Definition at line 304 of file MainDlg.cpp.

◆ OnButtonCancel()

void CMainDialog::OnButtonCancel ( )
protected

Processes 'Cancel' button press (IDABORT), optionally writes settings before exit.

[AI]

Definition at line 163 of file MainDlg.cpp.

◆ OnCancel()

void CMainDialog::OnCancel ( )
protected

Handles dialog cancellation and executes clean-up (if needed).

[AI]

Definition at line 151 of file MainDlg.cpp.

◆ OnCheckbox3DSound()

void CMainDialog::OnCheckbox3DSound ( )
protected

Handler for '3D sound' checkbox toggle.

Enables/disables 3D sound. [AI]

Definition at line 224 of file MainDlg.cpp.

◆ OnCheckbox3DVideoMemory()

void CMainDialog::OnCheckbox3DVideoMemory ( )
protected

Handler for '3D video memory' checkbox toggle.

Enables/disables 3D acceleration in VRAM. [AI]

Definition at line 232 of file MainDlg.cpp.

◆ OnCheckboxDrawCursor()

void CMainDialog::OnCheckboxDrawCursor ( )
protected

Handler for 'Draw cursor' checkbox toggle.

Enables/disables drawing hardware cursor. [AI]

Definition at line 333 of file MainDlg.cpp.

◆ OnCheckboxFlipVideoMemPages()

void CMainDialog::OnCheckboxFlipVideoMemPages ( )
protected

Handler for 'Flip video memory pages' checkbox.

Enables page flipping in VRAM. [AI]

Definition at line 256 of file MainDlg.cpp.

◆ OnCheckboxJoystick()

void CMainDialog::OnCheckboxJoystick ( )
protected

Handler for 'Joystick' checkbox toggle.

Enables or disables joystick as input device. [AI]

Definition at line 296 of file MainDlg.cpp.

◆ OnCheckboxMusic()

void CMainDialog::OnCheckboxMusic ( )
protected

Handler for 'Music' checkbox toggle.

Enables/disables in-game music. [AI]

Definition at line 341 of file MainDlg.cpp.

◆ OnDestroy()

void CMainDialog::OnDestroy ( )
protected

Handles destruction/closing of the dialog window (WM_DESTROY handler).

[AI]

Definition at line 157 of file MainDlg.cpp.

◆ OnInitDialog()

BOOL CMainDialog::OnInitDialog ( )
overrideprotected

Initialize dialog upon creation.

[AI]

Returns
TRUE if initialization successful. [AI]

Definition at line 47 of file MainDlg.cpp.

◆ OnList3DevicesSelectionChanged()

void CMainDialog::OnList3DevicesSelectionChanged ( )
protected

Handles selection changes in the list of 3D devices.

[AI]

Updates currently selected 3D device and enables/disables relevant controls. [AI]

Definition at line 132 of file MainDlg.cpp.

◆ OnPaint()

void CMainDialog::OnPaint ( )
protected

Handles dialog paint (redraw).

Shows icon if minimized. [AI]

Definition at line 106 of file MainDlg.cpp.

◆ OnQueryDragIcon()

HCURSOR CMainDialog::OnQueryDragIcon ( )
protected

Returns handle to drag icon when dragging minimized window.

[AI]

Returns
HCURSOR Icon handle for drag. [AI]

Definition at line 126 of file MainDlg.cpp.

◆ OnRadiobuttonModelHighQuality()

void CMainDialog::OnRadiobuttonModelHighQuality ( )
protected

Handler for 'High quality model' radio button.

Selects high polygon/LOD model mode. [AI]

Definition at line 272 of file MainDlg.cpp.

◆ OnRadiobuttonModelLowQuality()

void CMainDialog::OnRadiobuttonModelLowQuality ( )
protected

Handler for 'Low quality model' radio button.

Selects low polygon/LOD model mode. [AI]

Definition at line 264 of file MainDlg.cpp.

◆ OnRadiobuttonPalette16bit()

void CMainDialog::OnRadiobuttonPalette16bit ( )
protected

Handler for '16-bit palette' radio button.

Selects 16-bit display mode. [AI]

Definition at line 240 of file MainDlg.cpp.

◆ OnRadiobuttonPalette256()

void CMainDialog::OnRadiobuttonPalette256 ( )
protected

Handler for '256-color palette' radio button.

Selects 256-color (8-bit) display mode. [AI]

Definition at line 248 of file MainDlg.cpp.

◆ OnRadiobuttonTextureHighQuality()

void CMainDialog::OnRadiobuttonTextureHighQuality ( )
protected

Handler for 'High quality texture' radio button.

Selects highest quality textures. [AI]

Definition at line 288 of file MainDlg.cpp.

◆ OnRadiobuttonTextureLowQuality()

void CMainDialog::OnRadiobuttonTextureLowQuality ( )
protected

Handler for 'Low quality texture' radio button.

Selects reduced quality textures. [AI]

Definition at line 280 of file MainDlg.cpp.

◆ OnSysCommand()

void CMainDialog::OnSysCommand ( UINT  nID,
LPARAM  lParam 
)
protected

MFC handler for system commands (such as About box invocation).

[AI]

Parameters
nIDCommand identifier. [AI]
lParamCommand parameter. [AI]

Definition at line 94 of file MainDlg.cpp.

◆ SwitchToAdvanced()

void CMainDialog::SwitchToAdvanced ( BOOL  p_advanced)
protected

Switches UI layout between basic and advanced configuration.

[AI]

Parameters
p_advancedIf TRUE, shows advanced options; otherwise shows basic view. [AI]

Definition at line 310 of file MainDlg.cpp.

◆ UpdateInterface()

void CMainDialog::UpdateInterface ( )
protected

Refreshes the dialog interface according to current configuration settings.

[AI]

Updates checkboxes, radio buttons and enables/disables controls depending on current state. [AI]

Definition at line 172 of file MainDlg.cpp.

Member Data Documentation

◆ m_advanced

BOOL CMainDialog::m_advanced
protected

Whether the dialog is in advanced mode. [AI].

Definition at line 61 of file MainDlg.h.

◆ m_icon

HCURSOR CMainDialog::m_icon
protected

Handle to the dialog's icon (used for window/taskbar and drag). [AI].

Definition at line 55 of file MainDlg.h.

◆ m_modified

BOOL CMainDialog::m_modified
protected

Whether any configuration setting has been modified and needs to be saved. [AI].

Definition at line 58 of file MainDlg.h.

◆ m_unk0x60

undefined CMainDialog::m_unk0x60[4]
protected

Internal/unknown member. Purpose unclear, contains 4 bytes of undefined data. [AI] [AI_SUGGESTED_NAME: m_paddingOrUnknown].

Definition at line 52 of file MainDlg.h.


The documentation for this class was generated from the following files: