Lines Matching refs:mpProject

124     mpProject = GetOpenProject();  in IMPLEMENT_DYNAMIC()
182 if (mpProject) in OnInitDialog()
187 m_spin_current_screen.SetRange(1, mpProject->mHeader.num_displays); in OnInitDialog()
201 … GuixVersionNumberToVersionFields(mpProject->mHeader.guix_version, major, minor, service_pack); in OnInitDialog()
220 if (!mpProject) in DoDataExchange()
226 DDX_Text(pDX, IDC_NUM_DISPLAYS, mpProject->mHeader.num_displays); in DoDataExchange()
227 DDV_MinMaxInt(pDX, mpProject->mHeader.num_displays, 1, 4); in DoDataExchange()
228 DDX_Text(pDX, IDC_SOURCE_PATH, mpProject->mHeader.source_path); in DoDataExchange()
229 DDX_Text(pDX, IDC_HEADER_PATH, mpProject->mHeader.header_path); in DoDataExchange()
230 DDX_Text(pDX, IDC_RESOURCE_PATH, mpProject->mHeader.resource_path); in DoDataExchange()
231 DDX_Text(pDX, IDC_ADDITIONAL_HEADERS, mpProject->mHeader.additional_headers); in DoDataExchange()
242 DDX_Check(pDX, IDC_BIG_ENDIAN, mpProject->mHeader.big_endian); in DoDataExchange()
243 DDX_Check(pDX, IDC_INSERT_BEFORE, mpProject->mHeader.insert_headers_before); in DoDataExchange()
245 EnableDisableAdvancedSettings(mpProject->mHeader.target_cpu); in DoDataExchange()
261 mOldHeader = mpProject->mHeader; in DoDataExchange()
265 … GuixVersionNumberToVersionFields(mpProject->mHeader.guix_version, major, minor, service_pack); in DoDataExchange()
288 SelectDropListItem(&mCpuCombo, mpProject->mHeader.target_cpu); in DoDataExchange()
289 SelectDropListItem(&mToolsCombo, mpProject->mHeader.target_tools); in DoDataExchange()
305 DDX_Text(&nx, IDC_SCREEN_NAME, mpProject->mDisplays[display_index].name); in InitDisplayConfig()
306 DDX_Text(&nx, IDC_X_RESOLUTION, mpProject->mDisplays[display_index].xres); in InitDisplayConfig()
307 DDX_Text(&nx, IDC_Y_RESOLUTION, mpProject->mDisplays[display_index].yres); in InitDisplayConfig()
309 DDX_Check(&nx, IDC_CHECK_GRAYSCALE, mpProject->mDisplays[display_index].grayscale); in InitDisplayConfig()
310 DDX_Check(&nx, IDC_CHECK_555FORMAT, mpProject->mDisplays[display_index].format_555); in InitDisplayConfig()
311 DDX_Check(&nx, IDC_CHECK_4444FORMAT, mpProject->mDisplays[display_index].format_4444); in InitDisplayConfig()
312 DDX_Check(&nx, IDC_CHECK_332FORMAT, mpProject->mDisplays[display_index].format_332); in InitDisplayConfig()
313 DDX_Check(&nx, IDC_CHECK_REVERSE_ORDER, mpProject->mDisplays[display_index].reverse_order); in InitDisplayConfig()
314 DDX_Check(&nx, IDC_CHECK_PACKED, mpProject->mDisplays[display_index].packed_format); in InitDisplayConfig()
315 DDX_Check(&nx, IDC_ALLOCATE_CANVAS, mpProject->mDisplays[display_index].allocate_canvas); in InitDisplayConfig()
317 switch(mpProject->mDisplays[display_index].bits_per_pix) in InitDisplayConfig()
350 EnableDisable(mpProject->mDisplays[display_index].bits_per_pix, mpProject); in InitDisplayConfig()
364 DDX_Text(&nx, IDC_SCREEN_NAME, mpProject->mDisplays[display_index].name); in SaveDisplayConfig()
365 DDX_Text(&nx, IDC_X_RESOLUTION, mpProject->mDisplays[display_index].xres); in SaveDisplayConfig()
366 DDX_Text(&nx, IDC_Y_RESOLUTION, mpProject->mDisplays[display_index].yres); in SaveDisplayConfig()
368 DDX_Check(&nx, IDC_CHECK_GRAYSCALE, mpProject->mDisplays[display_index].grayscale); in SaveDisplayConfig()
369 DDX_Check(&nx, IDC_CHECK_555FORMAT, mpProject->mDisplays[display_index].format_555); in SaveDisplayConfig()
370 DDX_Check(&nx, IDC_CHECK_4444FORMAT, mpProject->mDisplays[display_index].format_4444); in SaveDisplayConfig()
371 DDX_Check(&nx, IDC_CHECK_332FORMAT, mpProject->mDisplays[display_index].format_332); in SaveDisplayConfig()
372 DDX_Check(&nx, IDC_CHECK_REVERSE_ORDER, mpProject->mDisplays[display_index].reverse_order); in SaveDisplayConfig()
375 DDX_Check(&nx, IDC_CHECK_PACKED, mpProject->mDisplays[display_index].packed_format); in SaveDisplayConfig()
377 mpProject->mDisplays[display_index].packed_format = FALSE; in SaveDisplayConfig()
380 DDX_Check(&nx, IDC_ALLOCATE_CANVAS, mpProject->mDisplays[display_index].allocate_canvas); in SaveDisplayConfig()
383 int old_cpu_type = mpProject->mHeader.target_cpu; in SaveDisplayConfig()
384 int old_color_format = mpProject->mDisplays[display_index].colorformat; in SaveDisplayConfig()
386 mpProject->mHeader.target_cpu = mCpuCombo.GetItemData(mCpuCombo.GetCurSel()); in SaveDisplayConfig()
387 mpProject->mHeader.target_tools = mToolsCombo.GetItemData(mToolsCombo.GetCurSel()); in SaveDisplayConfig()
399 mpProject->mDisplays[display_index].bits_per_pix = 1; in SaveDisplayConfig()
400 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_MONOCHROME; in SaveDisplayConfig()
404 mpProject->mDisplays[display_index].bits_per_pix = 2; in SaveDisplayConfig()
405 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_2BIT_GRAY; in SaveDisplayConfig()
409 mpProject->mDisplays[display_index].bits_per_pix = 4; in SaveDisplayConfig()
410 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_4BIT_GRAY; in SaveDisplayConfig()
414 mpProject->mDisplays[display_index].bits_per_pix = 8; in SaveDisplayConfig()
415 if (mpProject->mDisplays[display_index].format_332) in SaveDisplayConfig()
417 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_8BIT_PACKED_PIXEL; in SaveDisplayConfig()
421 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_8BIT_PALETTE; in SaveDisplayConfig()
425 mpProject->mHeader.palette_mode_aa_text_colors = box->GetItemData(sel); in SaveDisplayConfig()
430 mpProject->mDisplays[display_index].bits_per_pix = 16; in SaveDisplayConfig()
431 if (mpProject->mDisplays[display_index].format_4444 == TRUE) in SaveDisplayConfig()
433 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
435 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_4444BGRA; in SaveDisplayConfig()
439 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_4444ARGB; in SaveDisplayConfig()
442 else if (mpProject->mDisplays[display_index].format_555 == TRUE) in SaveDisplayConfig()
444 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
446 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_5551BGRX; in SaveDisplayConfig()
450 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_1555XRGB; in SaveDisplayConfig()
455 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
457 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_565BGR; in SaveDisplayConfig()
461 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_565RGB; in SaveDisplayConfig()
467 mpProject->mDisplays[display_index].bits_per_pix = 24; in SaveDisplayConfig()
470 if (mpProject->mDisplays[display_index].packed_format) in SaveDisplayConfig()
472 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
474 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_24BGR; in SaveDisplayConfig()
478 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_24RGB; in SaveDisplayConfig()
486 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
488 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_24BGRX; in SaveDisplayConfig()
492 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_24XRGB; in SaveDisplayConfig()
498 mpProject->mDisplays[display_index].bits_per_pix = 32; in SaveDisplayConfig()
499 if (mpProject->mDisplays[display_index].reverse_order) in SaveDisplayConfig()
501 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_32BGRA; in SaveDisplayConfig()
505 mpProject->mDisplays[display_index].colorformat = GX_COLOR_FORMAT_32ARGB; in SaveDisplayConfig()
512 if (old_color_format != mpProject->mDisplays[display_index].colorformat) in SaveDisplayConfig()
522 if (!mpProject->mHeader.b_new_project) in SaveDisplayConfig()
532 if(mpProject->mDisplays[display_index].themes[theme].palette) in SaveDisplayConfig()
535 old_pal = mpProject->mDisplays[display_index].themes[theme].palette; in SaveDisplayConfig()
536 old_palsize = mpProject->mDisplays[display_index].themes[theme].palette_predefined; in SaveDisplayConfig()
538 mpProject->mDisplays[display_index].themes[theme].palette = NULL; in SaveDisplayConfig()
539 mpProject->mDisplays[display_index].themes[theme].palette_total_size = 0; in SaveDisplayConfig()
542 … res_info *info = mpProject->mDisplays[display_index].themes[theme].GetFirstResourceInfo(); in SaveDisplayConfig()
548 if (mpProject->mDisplays[display_index].colorformat == GX_COLOR_FORMAT_8BIT_PALETTE) in SaveDisplayConfig()
550 ProjectConfigDlg::CreateDefaultPalette(mpProject, display_index, theme); in SaveDisplayConfig()
558 mpProject->mDisplays[display_index].themes[theme].palette, in SaveDisplayConfig()
559mpProject->mDisplays[display_index].themes[theme].palette_predefined, in SaveDisplayConfig()
560 mpProject->mDisplays[display_index].colorformat); in SaveDisplayConfig()
573 if (old_cpu_type != mpProject->mHeader.target_cpu) in SaveDisplayConfig()
579 if ((IsCpuWithDave2D(mpProject->mHeader.target_cpu)) && in SaveDisplayConfig()
581 (mpProject->mHeader.dave2d_graph_accelerator == FALSE)) in SaveDisplayConfig()
591 mpProject->mDisplays[display_index].rotation_angle = box->GetItemData(sel); in SaveDisplayConfig()
596 if (!IsCpuWithDave2D(mpProject)) in SaveDisplayConfig()
598 if (mpProject->mDisplays[display_index].rotation_angle == GX_SCREEN_ROTATION_FLIP) in SaveDisplayConfig()
600 mpProject->mDisplays[display_index].rotation_angle = GX_SCREEN_ROTATION_NONE; in SaveDisplayConfig()
607 if (!mpProject->mDisplays[display_index].default_map_format) in SaveDisplayConfig()
625 …ProjectConfigDlg::ResetPixelmapFormat(mpProject->mDisplays[display_index].themes[theme].GetFirstRe… in SaveDisplayConfig()
631 (color_format_changed && (mpProject->mDisplays[display_index].bits_per_pix <= 8))) in SaveDisplayConfig()
636 …ProjectConfigDlg::CheckFontFormat(mpProject->mDisplays[display_index].themes[theme].GetFirstResour… in SaveDisplayConfig()
640 …if (color_format_changed && (mpProject->mDisplays[display_index].colorformat <= GX_COLOR_FORMAT_8B… in SaveDisplayConfig()
644 folder_info *folder = mpProject->mDisplays[display_index].GetFirstChildFolder(); in SaveDisplayConfig()
700 EnableDisable(GetBitsSelected(), mpProject); in Format4444Clicked()
714 EnableDisable(GetBitsSelected(), mpProject); in Format1555Clicked()
728 EnableDisable(GetBitsSelected(), mpProject); in BitDepthChanged()
763 mpProject->mHeader.target_tools = TOOLS_GENERIC; in EnableDisableCCRX()
764 SelectDropListItem(&mToolsCombo, mpProject->mHeader.target_tools); in EnableDisableCCRX()
947 SetDlgItemInt(IDC_NUM_DISPLAYS, mpProject->mHeader.num_displays); in OnEnEditNumScreens()
955 …if (!TestInputName((CEdit*)GetDlgItem(IDC_SCREEN_NAME), "Name", mpProject->mDisplays[m_current_dis… in OnEnEditSelectedDisplay()
988 …GuixVersionNumberToVersionFields(mpProject->mHeader.guix_version, major_version, minor_version, se… in OnEnEditMajorVersion()
1003 …GuixVersionNumberToVersionFields(mpProject->mHeader.guix_version, major_version, minor_version, se… in OnEnEditMinorVersion()
1019 …GuixVersionNumberToVersionFields(mpProject->mHeader.guix_version, major_version, minor_version, se… in OnEnEditServicePack()
1113 …if (!TestInputName((CEdit *)GetDlgItem(IDC_SCREEN_NAME), "Name", mpProject->mDisplays[iVal - 1].na… in OnDeltaposSpinScreenSelect()
1203 mpProject->SetModified(); in OnAdvancedSettings()
1235 mpProject->mHeader.dave2d_graph_accelerator = TRUE; in OnChangeSelectedCPU()
1236 mpProject->mHeader.renesas_jpeg_decoder = DECODER_TYPE_HW; in OnChangeSelectedCPU()
1237 mpProject->mHeader.renesas_png_decoder = DECODER_TYPE_NONE; in OnChangeSelectedCPU()
1242 mpProject->mHeader.dave2d_graph_accelerator = FALSE; in OnChangeSelectedCPU()
1243 mpProject->mHeader.renesas_jpeg_decoder = DECODER_TYPE_NONE; in OnChangeSelectedCPU()
1244 mpProject->mHeader.renesas_png_decoder = DECODER_TYPE_NONE; in OnChangeSelectedCPU()
1261 SetDlgItemInt(IDC_X_RESOLUTION, mpProject->mDisplays[m_current_display].xres); in OnEditXRes()
1275 SetDlgItemInt(IDC_Y_RESOLUTION, mpProject->mDisplays[m_current_display].yres); in OnEditYRes()
1302 if ((!IsDave2dFontFormat(mpProject, m_current_display)) || in EnableDisableAATextColorsSetting()
1303 (!mpProject->mHeader.dave2d_graph_accelerator)) in EnableDisableAATextColorsSetting()
1328 text.Format(_T("%d"), mpProject->mHeader.palette_mode_aa_text_colors); in InitAATextColorsCombobox()
1393 if (mpProject->mDisplays[display].rotation_angle == GX_SCREEN_ROTATION_FLIP) in InitRotationAnglesCombobox()
1395 mpProject->mDisplays[display].rotation_angle = GX_SCREEN_ROTATION_NONE; in InitRotationAnglesCombobox()
1400 switch (mpProject->mDisplays[display].rotation_angle) in InitRotationAnglesCombobox()
1448 if (TestInputName(edit, "Name", mpProject->mDisplays[display_index].name, mpParent)) in Save()
1460 mpProject->mHeader = mOldHeader; in Cancel()