371 wxPanel *panel =
new wxPanel(parent, wxID_ANY);
372 panel->SetBackgroundColour(wxColour(50, 50, 50));
373 wxBoxSizer *panelSizer =
new wxBoxSizer(wxVERTICAL);
376 wxStaticBoxSizer *appearanceGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Appearance");
379 wxBoxSizer *themeSizer =
new wxBoxSizer(wxHORIZONTAL);
380 wxStaticText *themeLabel =
new wxStaticText(panel, wxID_ANY,
"Theme:");
381 themeLabel->SetForegroundColour(wxColour(200, 200, 200));
382 themeSizer->Add(themeLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
384 wxArrayString themes;
386 themes.Add(
"Light (Not Implemented)");
389 appearanceGroup->Add(themeSizer, 0, wxEXPAND | wxALL, 5);
392 wxBoxSizer *accentSizer =
new wxBoxSizer(wxHORIZONTAL);
393 wxStaticText *accentLabel =
new wxStaticText(panel, wxID_ANY,
"Accent Color:");
394 accentLabel->SetForegroundColour(wxColour(200, 200, 200));
395 accentSizer->Add(accentLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
399 appearanceGroup->Add(accentSizer, 0, wxEXPAND | wxALL, 5);
401 panelSizer->Add(appearanceGroup, 0, wxEXPAND | wxALL, 5);
404 wxStaticBoxSizer *startupGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Startup");
406 wxBoxSizer *startupModeSizer =
new wxBoxSizer(wxHORIZONTAL);
407 wxStaticText *startupModeLabel =
new wxStaticText(panel, wxID_ANY,
"Window mode on startup:");
408 startupModeLabel->SetForegroundColour(wxColour(200, 200, 200));
409 startupModeSizer->Add(startupModeLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
411 wxArrayString startupModes;
412 startupModes.Add(
"Normal");
413 startupModes.Add(
"Maximized");
416 startupGroup->Add(startupModeSizer, 0, wxEXPAND | wxALL, 5);
418 panelSizer->Add(startupGroup, 0, wxEXPAND | wxALL, 5);
421 wxStaticBoxSizer *fileHotkeysGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"File Menu Hotkeys");
424 auto createHotkeyRow = [&](
const wxString &labelText, wxTextCtrl *&textCtrl, wxButton *&captureBtn) {
425 wxBoxSizer *sizer =
new wxBoxSizer(wxHORIZONTAL);
426 wxStaticText *label =
new wxStaticText(panel, wxID_ANY, labelText, wxDefaultPosition, wxSize(120, -1));
427 label->SetForegroundColour(wxColour(200, 200, 200));
428 sizer->Add(label, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
430 textCtrl =
new wxTextCtrl(panel, wxID_ANY,
"", wxDefaultPosition, wxSize(150, -1), wxTE_READONLY);
431 textCtrl->SetBackgroundColour(wxColour(60, 60, 60));
432 textCtrl->SetForegroundColour(wxColour(200, 200, 200));
434 textCtrl->Bind(wxEVT_LEFT_DOWN, [](wxMouseEvent &e) { });
435 sizer->Add(textCtrl, 1, wxEXPAND);
437 captureBtn =
new wxButton(panel, wxID_ANY,
"Capture", wxDefaultPosition, wxSize(80, -1));
439 sizer->Add(captureBtn, 0, wxLEFT, 5);
445 0, wxEXPAND | wxALL, 3);
446 fileHotkeysGroup->Add(
448 wxEXPAND | wxALL, 3);
450 wxEXPAND | wxALL, 3);
452 wxEXPAND | wxALL, 3);
454 wxEXPAND | wxALL, 3);
456 panelSizer->Add(fileHotkeysGroup, 0, wxEXPAND | wxALL, 5);
459 wxStaticBoxSizer *viewHotkeysGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"View Menu Hotkeys");
461 wxEXPAND | wxALL, 3);
463 wxEXPAND | wxALL, 3);
465 panelSizer->Add(viewHotkeysGroup, 0, wxEXPAND | wxALL, 5);
468 wxStaticBoxSizer *settingsHotkeysGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Settings Menu Hotkeys");
469 settingsHotkeysGroup->Add(
471 wxEXPAND | wxALL, 3);
472 settingsHotkeysGroup->Add(
474 wxEXPAND | wxALL, 3);
476 panelSizer->Add(settingsHotkeysGroup, 0, wxEXPAND | wxALL, 5);
479 wxStaticBoxSizer *windowAppearanceGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Window Appearance");
484 m_showStatusBar->SetToolTip(
"Display the status bar at the bottom of the window");
490 m_showPanelCaptions->SetToolTip(
"Display caption headers above panels (Left Panel, Right Panel, etc.)");
496 m_alwaysOnTop->SetToolTip(
"Keep window above all other windows");
499 panelSizer->Add(windowAppearanceGroup, 0, wxEXPAND | wxALL, 5);
502 wxStaticBoxSizer *constraintsGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Window Constraints");
505 wxStaticText *minSizeLabel =
new wxStaticText(panel, wxID_ANY,
"Minimum Window Size:");
506 minSizeLabel->SetForegroundColour(wxColour(200, 200, 200));
507 constraintsGroup->Add(minSizeLabel, 0, wxALL, 5);
509 wxBoxSizer *minSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
510 wxStaticText *minWidthLabel =
new wxStaticText(panel, wxID_ANY,
"Width:");
511 minWidthLabel->SetForegroundColour(wxColour(200, 200, 200));
512 minSizeSizer->Add(minWidthLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
515 wxSP_ARROW_KEYS, 400, 4000, 800);
516 minSizeSizer->Add(
m_minWindowWidth, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
518 wxStaticText *minHeightLabel =
new wxStaticText(panel, wxID_ANY,
"Height:");
519 minHeightLabel->SetForegroundColour(wxColour(200, 200, 200));
520 minSizeSizer->Add(minHeightLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
523 wxSP_ARROW_KEYS, 300, 3000, 600);
526 constraintsGroup->Add(minSizeSizer, 0, wxEXPAND | wxALL, 5);
529 wxStaticText *maxSizeLabel =
new wxStaticText(panel, wxID_ANY,
"Maximum Window Size:");
530 maxSizeLabel->SetForegroundColour(wxColour(200, 200, 200));
531 constraintsGroup->Add(maxSizeLabel, 0, wxALL, 5);
537 wxBoxSizer *maxSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
538 wxStaticText *maxWidthLabel =
new wxStaticText(panel, wxID_ANY,
"Width:");
539 maxWidthLabel->SetForegroundColour(wxColour(200, 200, 200));
540 maxSizeSizer->Add(maxWidthLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
543 wxSP_ARROW_KEYS, -1, 8000, -1);
544 maxSizeSizer->Add(
m_maxWindowWidth, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
546 wxStaticText *maxHeightLabel =
new wxStaticText(panel, wxID_ANY,
"Height:");
547 maxHeightLabel->SetForegroundColour(wxColour(200, 200, 200));
548 maxSizeSizer->Add(maxHeightLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
551 wxSP_ARROW_KEYS, -1, 6000, -1);
554 constraintsGroup->Add(maxSizeSizer, 0, wxEXPAND | wxALL, 5);
562 wxBoxSizer *aspectRatioSizer =
new wxBoxSizer(wxHORIZONTAL);
563 wxStaticText *aspectLabel =
new wxStaticText(panel, wxID_ANY,
"Aspect Ratio:");
564 aspectLabel->SetForegroundColour(wxColour(200, 200, 200));
565 aspectRatioSizer->Add(aspectLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
570 wxStaticText *aspectColon =
new wxStaticText(panel, wxID_ANY,
":");
571 aspectColon->SetForegroundColour(wxColour(200, 200, 200));
572 aspectRatioSizer->Add(aspectColon, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
577 wxStaticText *aspectNote =
new wxStaticText(panel, wxID_ANY,
"(e.g., 16:9, 4:3, 21:9)");
578 aspectNote->SetForegroundColour(wxColour(150, 150, 150));
579 aspectRatioSizer->Add(aspectNote, 0, wxALIGN_CENTER_VERTICAL | wxLEFT, 10);
581 constraintsGroup->Add(aspectRatioSizer, 0, wxEXPAND | wxALL, 5);
583 panelSizer->Add(constraintsGroup, 0, wxEXPAND | wxALL, 5);
584 panelSizer->AddStretchSpacer();
586 panel->SetSizer(panelSizer);
701 wxPanel *panel =
new wxPanel(parent, wxID_ANY);
702 panel->SetBackgroundColour(wxColour(50, 50, 50));
703 wxBoxSizer *panelSizer =
new wxBoxSizer(wxVERTICAL);
706 wxStaticBoxSizer *zoomGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Zoom & View");
709 wxBoxSizer *zoomSizer =
new wxBoxSizer(wxHORIZONTAL);
710 wxStaticText *zoomLabelText =
new wxStaticText(panel, wxID_ANY,
"Default Zoom:");
711 zoomLabelText->SetForegroundColour(wxColour(200, 200, 200));
712 zoomSizer->Add(zoomLabelText, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
715 new wxSlider(panel,
ID_DEFAULT_ZOOM, 100, 10, 200, wxDefaultPosition, wxSize(200, -1), wxSL_HORIZONTAL);
719 m_zoomLabel =
new wxStaticText(panel, wxID_ANY,
"100%");
720 m_zoomLabel->SetForegroundColour(wxColour(200, 200, 200));
722 zoomSizer->Add(
m_zoomLabel, 0, wxALIGN_CENTER_VERTICAL);
724 zoomGroup->Add(zoomSizer, 0, wxEXPAND | wxALL, 5);
727 wxBoxSizer *zoomStepSizer =
new wxBoxSizer(wxHORIZONTAL);
728 wxStaticText *zoomStepLabel =
new wxStaticText(panel, wxID_ANY,
"Zoom step size:");
729 zoomStepLabel->SetForegroundColour(wxColour(200, 200, 200));
730 zoomStepSizer->Add(zoomStepLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
733 new wxSlider(panel,
ID_ZOOM_STEP_SIZE, 10, 1, 50, wxDefaultPosition, wxSize(200, -1), wxSL_HORIZONTAL);
742 zoomGroup->Add(zoomStepSizer, 0, wxEXPAND | wxALL, 5);
745 wxBoxSizer *wheelSensitivitySizer =
new wxBoxSizer(wxHORIZONTAL);
746 wxStaticText *wheelSensitivityText =
new wxStaticText(panel, wxID_ANY,
"Mouse wheel sensitivity:");
747 wheelSensitivityText->SetForegroundColour(wxColour(200, 200, 200));
748 wheelSensitivitySizer->Add(wheelSensitivityText, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
751 wxSize(200, -1), wxSL_HORIZONTAL);
759 zoomGroup->Add(wheelSensitivitySizer, 0, wxEXPAND | wxALL, 5);
767 wxBoxSizer *resetViewHotkeySizer =
new wxBoxSizer(wxHORIZONTAL);
768 wxStaticText *resetViewHotkeyLabel =
new wxStaticText(panel, wxID_ANY,
"Reset view hotkey:");
769 resetViewHotkeyLabel->SetForegroundColour(wxColour(200, 200, 200));
770 resetViewHotkeySizer->Add(resetViewHotkeyLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
773 wxSize(150, -1), wxTE_READONLY | wxTE_CENTRE);
783 zoomGroup->Add(resetViewHotkeySizer, 0, wxEXPAND | wxALL, 5);
785 panelSizer->Add(zoomGroup, 0, wxEXPAND | wxALL, 5);
788 wxStaticBoxSizer *panGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Panning");
791 wxBoxSizer *panSensitivitySizer =
new wxBoxSizer(wxHORIZONTAL);
792 wxStaticText *panSensitivityText =
new wxStaticText(panel, wxID_ANY,
"Pan sensitivity:");
793 panSensitivityText->SetForegroundColour(wxColour(200, 200, 200));
794 panSensitivitySizer->Add(panSensitivityText, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
797 new wxSlider(panel,
ID_PAN_SENSITIVITY, 151, 10, 200, wxDefaultPosition, wxSize(200, -1), wxSL_HORIZONTAL);
805 panGroup->Add(panSensitivitySizer, 0, wxEXPAND | wxALL, 5);
808 wxBoxSizer *panSmoothnessSizer =
new wxBoxSizer(wxHORIZONTAL);
809 wxStaticText *panSmoothnessText =
new wxStaticText(panel, wxID_ANY,
"Pan smoothness:");
810 panSmoothnessText->SetForegroundColour(wxColour(200, 200, 200));
811 panSmoothnessSizer->Add(panSmoothnessText, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
814 new wxSlider(panel,
ID_PAN_SMOOTHNESS, 30, 0, 100, wxDefaultPosition, wxSize(200, -1), wxSL_HORIZONTAL);
823 panGroup->Add(panSmoothnessSizer, 0, wxEXPAND | wxALL, 5);
826 wxBoxSizer *panStepSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
827 wxStaticText *panStepSizeText =
new wxStaticText(panel, wxID_ANY,
"Pan step size:");
828 panStepSizeText->SetForegroundColour(wxColour(200, 200, 200));
829 panStepSizeSizer->Add(panStepSizeText, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
832 new wxSlider(panel,
ID_PAN_STEP_SIZE, 40, 10, 500, wxDefaultPosition, wxSize(200, -1), wxSL_HORIZONTAL);
835 panStepSizeSizer->Add(
m_panStepSize, 1, wxEXPAND | wxRIGHT, 10);
841 panGroup->Add(panStepSizeSizer, 0, wxEXPAND | wxALL, 5);
849 wxBoxSizer *panKeyHotkeySizer =
new wxBoxSizer(wxHORIZONTAL);
850 wxStaticText *panKeyHotkeyLabel =
new wxStaticText(panel, wxID_ANY,
"Pan key (hold + drag):");
851 panKeyHotkeyLabel->SetForegroundColour(wxColour(200, 200, 200));
852 panKeyHotkeySizer->Add(panKeyHotkeyLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
855 wxTE_READONLY | wxTE_CENTRE);
861 panKeyHotkeySizer->Add(
m_panKeyTextCtrl, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
866 panGroup->Add(panKeyHotkeySizer, 0, wxEXPAND | wxALL, 5);
869 wxBoxSizer *panUpHotkeySizer =
new wxBoxSizer(wxHORIZONTAL);
870 wxStaticText *panUpLabel =
new wxStaticText(panel, wxID_ANY,
"Pan up:");
871 panUpLabel->SetForegroundColour(wxColour(200, 200, 200));
872 panUpHotkeySizer->Add(panUpLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
875 wxTE_READONLY | wxTE_CENTRE);
885 panGroup->Add(panUpHotkeySizer, 0, wxEXPAND | wxALL, 5);
888 wxBoxSizer *panDownHotkeySizer =
new wxBoxSizer(wxHORIZONTAL);
889 wxStaticText *panDownLabel =
new wxStaticText(panel, wxID_ANY,
"Pan down:");
890 panDownLabel->SetForegroundColour(wxColour(200, 200, 200));
891 panDownHotkeySizer->Add(panDownLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
894 wxTE_READONLY | wxTE_CENTRE);
904 panGroup->Add(panDownHotkeySizer, 0, wxEXPAND | wxALL, 5);
907 wxBoxSizer *panLeftHotkeySizer =
new wxBoxSizer(wxHORIZONTAL);
908 wxStaticText *panLeftLabel =
new wxStaticText(panel, wxID_ANY,
"Pan left:");
909 panLeftLabel->SetForegroundColour(wxColour(200, 200, 200));
910 panLeftHotkeySizer->Add(panLeftLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
913 wxTE_READONLY | wxTE_CENTRE);
923 panGroup->Add(panLeftHotkeySizer, 0, wxEXPAND | wxALL, 5);
926 wxBoxSizer *panRightHotkeySizer =
new wxBoxSizer(wxHORIZONTAL);
927 wxStaticText *panRightLabel =
new wxStaticText(panel, wxID_ANY,
"Pan right:");
928 panRightLabel->SetForegroundColour(wxColour(200, 200, 200));
929 panRightHotkeySizer->Add(panRightLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
932 wxSize(150, -1), wxTE_READONLY | wxTE_CENTRE);
942 panGroup->Add(panRightHotkeySizer, 0, wxEXPAND | wxALL, 5);
944 panelSizer->Add(panGroup, 0, wxEXPAND | wxALL, 5);
947 wxStaticBoxSizer *navGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Action Hotkeys");
950 wxBoxSizer *centerHotkeySizer =
new wxBoxSizer(wxHORIZONTAL);
951 wxStaticText *centerHotkeyLabel =
new wxStaticText(panel, wxID_ANY,
"Expand/Collapse:");
952 centerHotkeyLabel->SetForegroundColour(wxColour(200, 200, 200));
953 centerHotkeySizer->Add(centerHotkeyLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
956 wxSize(150, -1), wxTE_READONLY | wxTE_CENTRE);
966 navGroup->Add(centerHotkeySizer, 0, wxEXPAND | wxALL, 5);
969 wxBoxSizer *deleteHotkeySizer =
new wxBoxSizer(wxHORIZONTAL);
970 wxStaticText *deleteHotkeyLabel =
new wxStaticText(panel, wxID_ANY,
"Delete node:");
971 deleteHotkeyLabel->SetForegroundColour(wxColour(200, 200, 200));
972 deleteHotkeySizer->Add(deleteHotkeyLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
975 wxSize(150, -1), wxTE_READONLY | wxTE_CENTRE);
985 navGroup->Add(deleteHotkeySizer, 0, wxEXPAND | wxALL, 5);
987 panelSizer->Add(navGroup, 0, wxEXPAND | wxALL, 5);
990 wxStaticBoxSizer *gridGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Grid");
993 m_showGrid->SetForegroundColour(wxColour(200, 200, 200));
996 wxBoxSizer *gridSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
997 wxStaticText *gridSizeLabel =
new wxStaticText(panel, wxID_ANY,
"Grid size (pixels):");
998 gridSizeLabel->SetForegroundColour(wxColour(200, 200, 200));
999 gridSizeSizer->Add(gridSizeLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1002 new wxSpinCtrl(panel,
ID_GRID_SIZE,
"20", wxDefaultPosition, wxSize(120, -1), wxSP_ARROW_KEYS, 10, 100, 20);
1003 gridSizeSizer->Add(
m_gridSize, 0, wxALIGN_CENTER_VERTICAL);
1004 gridGroup->Add(gridSizeSizer, 0, wxEXPAND | wxALL, 5);
1007 wxBoxSizer *gridBgColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1008 wxStaticText *gridBgColorLabel =
new wxStaticText(panel, wxID_ANY,
"Grid background color:");
1009 gridBgColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1010 gridBgColorSizer->Add(gridBgColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1014 gridGroup->Add(gridBgColorSizer, 0, wxEXPAND | wxALL, 5);
1017 wxBoxSizer *gridLineColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1018 wxStaticText *gridLineColorLabel =
new wxStaticText(panel, wxID_ANY,
"Grid line color:");
1019 gridLineColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1020 gridLineColorSizer->Add(gridLineColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1024 gridGroup->Add(gridLineColorSizer, 0, wxEXPAND | wxALL, 5);
1027 wxBoxSizer *connectionColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1028 wxStaticText *connectionColorLabel =
new wxStaticText(panel, wxID_ANY,
"Connection line color:");
1029 connectionColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1030 connectionColorSizer->Add(connectionColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1034 gridGroup->Add(connectionColorSizer, 0, wxEXPAND | wxALL, 5);
1042 wxBoxSizer *pathHighlightColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1043 wxStaticText *pathHighlightColorLabel =
new wxStaticText(panel, wxID_ANY,
"Path highlight color:");
1044 pathHighlightColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1045 pathHighlightColorSizer->Add(pathHighlightColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1049 gridGroup->Add(pathHighlightColorSizer, 0, wxEXPAND | wxALL, 5);
1051 panelSizer->Add(gridGroup, 0, wxEXPAND | wxALL, 5);
1054 wxStaticBoxSizer *nodeAppearanceGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Node Appearance");
1057 wxStaticBoxSizer *idleNodeGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Idle Node");
1060 wxBoxSizer *idleNodeBgColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1061 wxStaticText *idleNodeBgColorLabel =
new wxStaticText(panel, wxID_ANY,
"Background color:");
1062 idleNodeBgColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1063 idleNodeBgColorSizer->Add(idleNodeBgColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1066 idleNodeGroup->Add(idleNodeBgColorSizer, 0, wxEXPAND | wxALL, 3);
1069 wxBoxSizer *idleNodeBorderColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1070 wxStaticText *idleNodeBorderColorLabel =
new wxStaticText(panel, wxID_ANY,
"Border color:");
1071 idleNodeBorderColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1072 idleNodeBorderColorSizer->Add(idleNodeBorderColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1075 idleNodeGroup->Add(idleNodeBorderColorSizer, 0, wxEXPAND | wxALL, 3);
1078 wxBoxSizer *idleNodeTextColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1079 wxStaticText *idleNodeTextColorLabel =
new wxStaticText(panel, wxID_ANY,
"Text color:");
1080 idleNodeTextColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1081 idleNodeTextColorSizer->Add(idleNodeTextColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1084 idleNodeGroup->Add(idleNodeTextColorSizer, 0, wxEXPAND | wxALL, 3);
1086 nodeAppearanceGroup->Add(idleNodeGroup, 0, wxEXPAND | wxALL, 3);
1089 wxStaticBoxSizer *hoveredNodeGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Hovered Node");
1092 wxBoxSizer *hoveredNodeBgTintSizer =
new wxBoxSizer(wxHORIZONTAL);
1093 wxStaticText *hoveredNodeBgTintText =
new wxStaticText(panel, wxID_ANY,
"Background tint:");
1094 hoveredNodeBgTintText->SetForegroundColour(wxColour(200, 200, 200));
1095 hoveredNodeBgTintSizer->Add(hoveredNodeBgTintText, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1097 wxSize(200, -1), wxSL_HORIZONTAL);
1104 hoveredNodeGroup->Add(hoveredNodeBgTintSizer, 0, wxEXPAND | wxALL, 3);
1107 wxBoxSizer *hoveredNodeColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1108 wxStaticText *hoveredNodeColorLabel =
new wxStaticText(panel, wxID_ANY,
"Border color:");
1109 hoveredNodeColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1110 hoveredNodeColorSizer->Add(hoveredNodeColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1113 hoveredNodeGroup->Add(hoveredNodeColorSizer, 0, wxEXPAND | wxALL, 3);
1116 wxBoxSizer *hoveredNodeTextColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1117 wxStaticText *hoveredNodeTextColorLabel =
new wxStaticText(panel, wxID_ANY,
"Text color:");
1118 hoveredNodeTextColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1119 hoveredNodeTextColorSizer->Add(hoveredNodeTextColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1122 hoveredNodeGroup->Add(hoveredNodeTextColorSizer, 0, wxEXPAND | wxALL, 3);
1125 wxBoxSizer *hoveredNodeInfoColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1126 wxStaticText *hoveredNodeInfoColorLabel =
new wxStaticText(panel, wxID_ANY,
"Info text color:");
1127 hoveredNodeInfoColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1128 hoveredNodeInfoColorSizer->Add(hoveredNodeInfoColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1131 hoveredNodeGroup->Add(hoveredNodeInfoColorSizer, 0, wxEXPAND | wxALL, 3);
1133 nodeAppearanceGroup->Add(hoveredNodeGroup, 0, wxEXPAND | wxALL, 3);
1136 wxStaticBoxSizer *selectedNodeGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Selected Node");
1139 wxBoxSizer *selectedNodeBgTintSizer =
new wxBoxSizer(wxHORIZONTAL);
1140 wxStaticText *selectedNodeBgTintText =
new wxStaticText(panel, wxID_ANY,
"Background tint:");
1141 selectedNodeBgTintText->SetForegroundColour(wxColour(200, 200, 200));
1142 selectedNodeBgTintSizer->Add(selectedNodeBgTintText, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1144 wxSize(200, -1), wxSL_HORIZONTAL);
1151 selectedNodeGroup->Add(selectedNodeBgTintSizer, 0, wxEXPAND | wxALL, 3);
1154 wxBoxSizer *selectedNodeColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1155 wxStaticText *selectedNodeColorLabel =
new wxStaticText(panel, wxID_ANY,
"Border color:");
1156 selectedNodeColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1157 selectedNodeColorSizer->Add(selectedNodeColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1160 selectedNodeGroup->Add(selectedNodeColorSizer, 0, wxEXPAND | wxALL, 3);
1163 wxBoxSizer *selectedNodeTextColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1164 wxStaticText *selectedNodeTextColorLabel =
new wxStaticText(panel, wxID_ANY,
"Text color:");
1165 selectedNodeTextColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1166 selectedNodeTextColorSizer->Add(selectedNodeTextColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1169 selectedNodeGroup->Add(selectedNodeTextColorSizer, 0, wxEXPAND | wxALL, 3);
1172 wxBoxSizer *selectedNodeInfoColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1173 wxStaticText *selectedNodeInfoColorLabel =
new wxStaticText(panel, wxID_ANY,
"Info text color:");
1174 selectedNodeInfoColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1175 selectedNodeInfoColorSizer->Add(selectedNodeInfoColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1178 selectedNodeGroup->Add(selectedNodeInfoColorSizer, 0, wxEXPAND | wxALL, 3);
1180 nodeAppearanceGroup->Add(selectedNodeGroup, 0, wxEXPAND | wxALL, 3);
1182 panelSizer->Add(nodeAppearanceGroup, 0, wxEXPAND | wxALL, 5);
1187 wxStaticBoxSizer *coordInfoGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Coordinate System Info (Zoom & Pan)");
1196 wxBoxSizer *coordFontSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
1197 wxStaticText *coordFontSizeLabel =
new wxStaticText(panel, wxID_ANY,
"Font size:");
1198 if (coordFontSizeLabel) {
1199 coordFontSizeLabel->SetForegroundColour(wxColour(200, 200, 200));
1200 coordFontSizeSizer->Add(coordFontSizeLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1203 wxSize(120, -1), wxSP_ARROW_KEYS, 6, 20, 9);
1207 if (coordFontSizeSizer->GetItemCount() > 0) {
1208 coordInfoGroup->Add(coordFontSizeSizer, 0, wxEXPAND | wxALL, 5);
1212 wxBoxSizer *coordColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1213 wxStaticText *coordColorLabel =
new wxStaticText(panel, wxID_ANY,
"Text color:");
1214 coordColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1215 coordColorSizer->Add(coordColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1218 coordInfoGroup->Add(coordColorSizer, 0, wxEXPAND | wxALL, 5);
1221 wxBoxSizer *coordAnchorSizer =
new wxBoxSizer(wxHORIZONTAL);
1222 wxStaticText *coordAnchorLabel =
new wxStaticText(panel, wxID_ANY,
"Anchor:");
1223 coordAnchorLabel->SetForegroundColour(wxColour(200, 200, 200));
1224 coordAnchorSizer->Add(coordAnchorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1225 wxArrayString anchorChoices;
1226 anchorChoices.Add(
"Top-Left");
1227 anchorChoices.Add(
"Top-Right");
1228 anchorChoices.Add(
"Bottom-Left");
1229 anchorChoices.Add(
"Bottom-Right");
1230 m_coordinateInfoAnchor =
new wxChoice(panel, wxID_ANY, wxDefaultPosition, wxSize(150, -1), anchorChoices);
1233 coordInfoGroup->Add(coordAnchorSizer, 0, wxEXPAND | wxALL, 5);
1236 wxBoxSizer *coordPosSizer =
new wxBoxSizer(wxHORIZONTAL);
1237 wxStaticText *coordPosLabel =
new wxStaticText(panel, wxID_ANY,
"Offset:");
1238 coordPosLabel->SetForegroundColour(wxColour(200, 200, 200));
1239 coordPosSizer->Add(coordPosLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1240 wxStaticText *coordXLabel =
new wxStaticText(panel, wxID_ANY,
"X:");
1241 coordXLabel->SetForegroundColour(wxColour(200, 200, 200));
1242 coordPosSizer->Add(coordXLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1244 wxSP_ARROW_KEYS, 0, 9999, 10);
1245 coordPosSizer->Add(
m_coordinateInfoX, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1246 wxStaticText *coordYLabel =
new wxStaticText(panel, wxID_ANY,
"Y:");
1247 coordYLabel->SetForegroundColour(wxColour(200, 200, 200));
1248 coordPosSizer->Add(coordYLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1250 wxSP_ARROW_KEYS, 0, 9999, 10);
1252 coordInfoGroup->Add(coordPosSizer, 0, wxEXPAND | wxALL, 5);
1254 panelSizer->Add(coordInfoGroup, 0, wxEXPAND | wxALL, 5);
1257 wxStaticBoxSizer *selectedInfoGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Selected Node Info");
1264 wxBoxSizer *selFontSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
1265 wxStaticText *selFontSizeLabel =
new wxStaticText(panel, wxID_ANY,
"Font size:");
1266 selFontSizeLabel->SetForegroundColour(wxColour(200, 200, 200));
1267 selFontSizeSizer->Add(selFontSizeLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1269 wxSize(120, -1), wxSP_ARROW_KEYS, 6, 20, 9);
1271 selectedInfoGroup->Add(selFontSizeSizer, 0, wxEXPAND | wxALL, 5);
1274 wxBoxSizer *selColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1275 wxStaticText *selColorLabel =
new wxStaticText(panel, wxID_ANY,
"Text color:");
1276 selColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1277 selColorSizer->Add(selColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1280 selectedInfoGroup->Add(selColorSizer, 0, wxEXPAND | wxALL, 5);
1283 wxBoxSizer *selAnchorSizer =
new wxBoxSizer(wxHORIZONTAL);
1284 wxStaticText *selAnchorLabel =
new wxStaticText(panel, wxID_ANY,
"Anchor:");
1285 selAnchorLabel->SetForegroundColour(wxColour(200, 200, 200));
1286 selAnchorSizer->Add(selAnchorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1290 selectedInfoGroup->Add(selAnchorSizer, 0, wxEXPAND | wxALL, 5);
1293 wxBoxSizer *selPosSizer =
new wxBoxSizer(wxHORIZONTAL);
1294 wxStaticText *selPosLabel =
new wxStaticText(panel, wxID_ANY,
"Offset:");
1295 selPosLabel->SetForegroundColour(wxColour(200, 200, 200));
1296 selPosSizer->Add(selPosLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1297 wxStaticText *selXLabel =
new wxStaticText(panel, wxID_ANY,
"X:");
1298 selXLabel->SetForegroundColour(wxColour(200, 200, 200));
1299 selPosSizer->Add(selXLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1301 wxSP_ARROW_KEYS, 0, 9999, 10);
1303 wxStaticText *selYLabel =
new wxStaticText(panel, wxID_ANY,
"Y:");
1304 selYLabel->SetForegroundColour(wxColour(200, 200, 200));
1305 selPosSizer->Add(selYLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1307 wxSP_ARROW_KEYS, 0, 9999, 30);
1309 selectedInfoGroup->Add(selPosSizer, 0, wxEXPAND | wxALL, 5);
1311 panelSizer->Add(selectedInfoGroup, 0, wxEXPAND | wxALL, 5);
1314 wxStaticBoxSizer *treeStatsGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Tree Statistics Info");
1321 wxBoxSizer *treeFontSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
1322 wxStaticText *treeFontSizeLabel =
new wxStaticText(panel, wxID_ANY,
"Font size:");
1323 treeFontSizeLabel->SetForegroundColour(wxColour(200, 200, 200));
1324 treeFontSizeSizer->Add(treeFontSizeLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1326 wxSP_ARROW_KEYS, 6, 20, 9);
1328 treeStatsGroup->Add(treeFontSizeSizer, 0, wxEXPAND | wxALL, 5);
1331 wxBoxSizer *treeColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1332 wxStaticText *treeColorLabel =
new wxStaticText(panel, wxID_ANY,
"Text color:");
1333 treeColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1334 treeColorSizer->Add(treeColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1337 treeStatsGroup->Add(treeColorSizer, 0, wxEXPAND | wxALL, 5);
1340 wxBoxSizer *treeAnchorSizer =
new wxBoxSizer(wxHORIZONTAL);
1341 wxStaticText *treeAnchorLabel =
new wxStaticText(panel, wxID_ANY,
"Anchor:");
1342 treeAnchorLabel->SetForegroundColour(wxColour(200, 200, 200));
1343 treeAnchorSizer->Add(treeAnchorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1344 m_treeInfoAnchor =
new wxChoice(panel, wxID_ANY, wxDefaultPosition, wxSize(150, -1), anchorChoices);
1347 treeStatsGroup->Add(treeAnchorSizer, 0, wxEXPAND | wxALL, 5);
1350 wxBoxSizer *treePosSizer =
new wxBoxSizer(wxHORIZONTAL);
1351 wxStaticText *treePosLabel =
new wxStaticText(panel, wxID_ANY,
"Offset:");
1352 treePosLabel->SetForegroundColour(wxColour(200, 200, 200));
1353 treePosSizer->Add(treePosLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1354 wxStaticText *treeXLabel =
new wxStaticText(panel, wxID_ANY,
"X:");
1355 treeXLabel->SetForegroundColour(wxColour(200, 200, 200));
1356 treePosSizer->Add(treeXLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1358 new wxSpinCtrl(panel,
ID_TREE_INFO_X,
"10", wxDefaultPosition, wxSize(120, -1), wxSP_ARROW_KEYS, 0, 9999, 10);
1359 treePosSizer->Add(
m_treeInfoX, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1360 wxStaticText *treeYLabel =
new wxStaticText(panel, wxID_ANY,
"Y:");
1361 treeYLabel->SetForegroundColour(wxColour(200, 200, 200));
1362 treePosSizer->Add(treeYLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1364 new wxSpinCtrl(panel,
ID_TREE_INFO_Y,
"50", wxDefaultPosition, wxSize(120, -1), wxSP_ARROW_KEYS, 0, 9999, 50);
1365 treePosSizer->Add(
m_treeInfoY, 0, wxALIGN_CENTER_VERTICAL);
1366 treeStatsGroup->Add(treePosSizer, 0, wxEXPAND | wxALL, 5);
1368 panelSizer->Add(treeStatsGroup, 0, wxEXPAND | wxALL, 5);
1371 wxStaticBoxSizer *fpsGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"FPS Display");
1373 m_showFPS =
new wxCheckBox(panel, wxID_ANY,
"Show FPS counter");
1374 m_showFPS->SetForegroundColour(wxColour(200, 200, 200));
1378 wxBoxSizer *fpsFontSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
1379 wxStaticText *fpsFontSizeLabel =
new wxStaticText(panel, wxID_ANY,
"Font size:");
1380 fpsFontSizeLabel->SetForegroundColour(wxColour(200, 200, 200));
1381 fpsFontSizeSizer->Add(fpsFontSizeLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1382 m_fpsFontSize =
new wxSpinCtrl(panel, wxID_ANY,
"9", wxDefaultPosition, wxSize(120, -1), wxSP_ARROW_KEYS, 6, 20, 9);
1383 fpsFontSizeSizer->Add(
m_fpsFontSize, 0, wxALIGN_CENTER_VERTICAL);
1384 fpsGroup->Add(fpsFontSizeSizer, 0, wxEXPAND | wxALL, 5);
1387 wxBoxSizer *fpsColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1388 wxStaticText *fpsColorLabel =
new wxStaticText(panel, wxID_ANY,
"Text color:");
1389 fpsColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1390 fpsColorSizer->Add(fpsColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1393 fpsGroup->Add(fpsColorSizer, 0, wxEXPAND | wxALL, 5);
1396 wxBoxSizer *fpsAnchorSizer =
new wxBoxSizer(wxHORIZONTAL);
1397 wxStaticText *fpsAnchorLabel =
new wxStaticText(panel, wxID_ANY,
"Anchor:");
1398 fpsAnchorLabel->SetForegroundColour(wxColour(200, 200, 200));
1399 fpsAnchorSizer->Add(fpsAnchorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1400 m_fpsAnchor =
new wxChoice(panel, wxID_ANY, wxDefaultPosition, wxSize(150, -1), anchorChoices);
1402 fpsAnchorSizer->Add(
m_fpsAnchor, 0, wxALIGN_CENTER_VERTICAL);
1403 fpsGroup->Add(fpsAnchorSizer, 0, wxEXPAND | wxALL, 5);
1406 wxBoxSizer *fpsPosSizer =
new wxBoxSizer(wxHORIZONTAL);
1407 wxStaticText *fpsPosLabel =
new wxStaticText(panel, wxID_ANY,
"Offset:");
1408 fpsPosLabel->SetForegroundColour(wxColour(200, 200, 200));
1409 fpsPosSizer->Add(fpsPosLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1410 wxStaticText *fpsXLabel =
new wxStaticText(panel, wxID_ANY,
"X:");
1411 fpsXLabel->SetForegroundColour(wxColour(200, 200, 200));
1412 fpsPosSizer->Add(fpsXLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1413 m_fpsX =
new wxSpinCtrl(panel, wxID_ANY,
"10", wxDefaultPosition, wxSize(120, -1), wxSP_ARROW_KEYS, 0, 9999, 10);
1414 fpsPosSizer->Add(
m_fpsX, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1415 wxStaticText *fpsYLabel =
new wxStaticText(panel, wxID_ANY,
"Y:");
1416 fpsYLabel->SetForegroundColour(wxColour(200, 200, 200));
1417 fpsPosSizer->Add(fpsYLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1418 m_fpsY =
new wxSpinCtrl(panel, wxID_ANY,
"70", wxDefaultPosition, wxSize(120, -1), wxSP_ARROW_KEYS, 0, 9999, 70);
1419 fpsPosSizer->Add(
m_fpsY, 0, wxALIGN_CENTER_VERTICAL);
1420 fpsGroup->Add(fpsPosSizer, 0, wxEXPAND | wxALL, 5);
1422 panelSizer->Add(fpsGroup, 0, wxEXPAND | wxALL, 5);
1425 wxStaticBoxSizer *controlsHelpGroup =
new wxStaticBoxSizer(wxVERTICAL, panel,
"Controls Help Text");
1432 wxBoxSizer *ctrlFontSizeSizer =
new wxBoxSizer(wxHORIZONTAL);
1433 wxStaticText *ctrlFontSizeLabel =
new wxStaticText(panel, wxID_ANY,
"Font size:");
1434 ctrlFontSizeLabel->SetForegroundColour(wxColour(200, 200, 200));
1435 ctrlFontSizeSizer->Add(ctrlFontSizeLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1437 wxSP_ARROW_KEYS, 6, 20, 11);
1439 controlsHelpGroup->Add(ctrlFontSizeSizer, 0, wxEXPAND | wxALL, 5);
1442 wxBoxSizer *ctrlColorSizer =
new wxBoxSizer(wxHORIZONTAL);
1443 wxStaticText *ctrlColorLabel =
new wxStaticText(panel, wxID_ANY,
"Text color:");
1444 ctrlColorLabel->SetForegroundColour(wxColour(200, 200, 200));
1445 ctrlColorSizer->Add(ctrlColorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1448 controlsHelpGroup->Add(ctrlColorSizer, 0, wxEXPAND | wxALL, 5);
1451 wxBoxSizer *ctrlAnchorSizer =
new wxBoxSizer(wxHORIZONTAL);
1452 wxStaticText *ctrlAnchorLabel =
new wxStaticText(panel, wxID_ANY,
"Anchor:");
1453 ctrlAnchorLabel->SetForegroundColour(wxColour(200, 200, 200));
1454 ctrlAnchorSizer->Add(ctrlAnchorLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1455 m_controlsHelpAnchor =
new wxChoice(panel, wxID_ANY, wxDefaultPosition, wxSize(150, -1), anchorChoices);
1458 controlsHelpGroup->Add(ctrlAnchorSizer, 0, wxEXPAND | wxALL, 5);
1461 wxBoxSizer *ctrlPosSizer =
new wxBoxSizer(wxHORIZONTAL);
1462 wxStaticText *ctrlPosLabel =
new wxStaticText(panel, wxID_ANY,
"Offset:");
1463 ctrlPosLabel->SetForegroundColour(wxColour(200, 200, 200));
1464 ctrlPosSizer->Add(ctrlPosLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1465 wxStaticText *ctrlXLabel =
new wxStaticText(panel, wxID_ANY,
"X:");
1466 ctrlXLabel->SetForegroundColour(wxColour(200, 200, 200));
1467 ctrlPosSizer->Add(ctrlXLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1469 wxSP_ARROW_KEYS, 0, 9999, 10);
1470 ctrlPosSizer->Add(
m_controlsHelpX, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
1471 wxStaticText *ctrlYLabel =
new wxStaticText(panel, wxID_ANY,
"Y:");
1472 ctrlYLabel->SetForegroundColour(wxColour(200, 200, 200));
1473 ctrlPosSizer->Add(ctrlYLabel, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
1475 wxSP_ARROW_KEYS, 0, 9999, 25);
1477 controlsHelpGroup->Add(ctrlPosSizer, 0, wxEXPAND | wxALL, 5);
1479 panelSizer->Add(controlsHelpGroup, 0, wxEXPAND | wxALL, 5);
1481 panelSizer->AddStretchSpacer();
1483 panel->SetSizer(panelSizer);
2427 m_themeChoice->SetSelection(
static_cast<int>(prefs.GetWindowSettings().theme));
2428 wxColour accentColor(prefs.GetWindowSettings().accentColor.r, prefs.GetWindowSettings().accentColor.g,
2429 prefs.GetWindowSettings().accentColor.b);
2431 m_startupModeChoice->SetSelection(
static_cast<int>(prefs.GetWindowSettings().startupMode));
2451 m_alwaysOnTop->SetValue(prefs.GetWindowSettings().alwaysOnTop);
2457 (prefs.GetWindowSettings().maxWindowWidth == -1 || prefs.GetWindowSettings().maxWindowHeight == -1);
2466 float ratio = prefs.GetWindowSettings().aspectRatio;
2468 int width = 16, height = 9;
2469 if (std::abs(ratio - 16.0f / 9.0f) < 0.01f) {
2472 }
else if (std::abs(ratio - 4.0f / 3.0f) < 0.01f) {
2475 }
else if (std::abs(ratio - 21.0f / 9.0f) < 0.01f) {
2483 int zoomPercent =
static_cast<int>(prefs.GetMainPanelSettings().defaultZoomLevel * 100);
2485 m_zoomLabel->SetLabel(wxString::Format(
"%d%%", zoomPercent));
2486 m_showGrid->SetValue(prefs.GetMainPanelSettings().showGrid);
2487 m_gridSize->SetValue(prefs.GetMainPanelSettings().gridSize);
2488 wxColour gridBg(prefs.GetMainPanelSettings().gridBackgroundColor.r,
2489 prefs.GetMainPanelSettings().gridBackgroundColor.g,
2490 prefs.GetMainPanelSettings().gridBackgroundColor.b);
2492 wxColour gridLineColor(prefs.GetMainPanelSettings().gridLineColor.r, prefs.GetMainPanelSettings().gridLineColor.g,
2493 prefs.GetMainPanelSettings().gridLineColor.b);
2495 wxColour canvasBg(prefs.GetMainPanelSettings().canvasBackgroundColor.r,
2496 prefs.GetMainPanelSettings().canvasBackgroundColor.g,
2497 prefs.GetMainPanelSettings().canvasBackgroundColor.b);
2499 wxColour connectionLineColor(prefs.GetMainPanelSettings().connectionLineColor.r,
2500 prefs.GetMainPanelSettings().connectionLineColor.g,
2501 prefs.GetMainPanelSettings().connectionLineColor.b);
2504 wxColour pathHighlightColor(prefs.GetMainPanelSettings().pathHighlightColor.r,
2505 prefs.GetMainPanelSettings().pathHighlightColor.g,
2506 prefs.GetMainPanelSettings().pathHighlightColor.b);
2508 wxColour idleNodeBg(prefs.GetMainPanelSettings().idleNodeBgColor.r, prefs.GetMainPanelSettings().idleNodeBgColor.g,
2509 prefs.GetMainPanelSettings().idleNodeBgColor.b);
2511 wxColour idleNodeBorder(prefs.GetMainPanelSettings().idleNodeBorderColor.r,
2512 prefs.GetMainPanelSettings().idleNodeBorderColor.g,
2513 prefs.GetMainPanelSettings().idleNodeBorderColor.b);
2515 wxColour idleNodeText(prefs.GetMainPanelSettings().idleNodeTextColor.r,
2516 prefs.GetMainPanelSettings().idleNodeTextColor.g,
2517 prefs.GetMainPanelSettings().idleNodeTextColor.b);
2519 int selectedTint =
static_cast<int>(prefs.GetMainPanelSettings().selectedNodeBgTint * 100);
2522 int hoveredTint =
static_cast<int>(prefs.GetMainPanelSettings().hoveredNodeBgTint * 100);
2525 wxColour selectedNode(prefs.GetMainPanelSettings().selectedNodeColor.r,
2526 prefs.GetMainPanelSettings().selectedNodeColor.g,
2527 prefs.GetMainPanelSettings().selectedNodeColor.b);
2529 wxColour hoveredNode(prefs.GetMainPanelSettings().hoveredNodeColor.r,
2530 prefs.GetMainPanelSettings().hoveredNodeColor.g,
2531 prefs.GetMainPanelSettings().hoveredNodeColor.b);
2533 wxColour selectedNodeText(prefs.GetMainPanelSettings().selectedNodeTextColor.r,
2534 prefs.GetMainPanelSettings().selectedNodeTextColor.g,
2535 prefs.GetMainPanelSettings().selectedNodeTextColor.b);
2537 wxColour hoveredNodeText(prefs.GetMainPanelSettings().hoveredNodeTextColor.r,
2538 prefs.GetMainPanelSettings().hoveredNodeTextColor.g,
2539 prefs.GetMainPanelSettings().hoveredNodeTextColor.b);
2541 wxColour selectedNodeInfo(prefs.GetMainPanelSettings().selectedNodeInfoColor.r,
2542 prefs.GetMainPanelSettings().selectedNodeInfoColor.g,
2543 prefs.GetMainPanelSettings().selectedNodeInfoColor.b);
2545 wxColour hoveredNodeInfo(prefs.GetMainPanelSettings().hoveredNodeInfoColor.r,
2546 prefs.GetMainPanelSettings().hoveredNodeInfoColor.g,
2547 prefs.GetMainPanelSettings().hoveredNodeInfoColor.b);
2551 bool scenesUnlimited = (prefs.GetMainPanelSettings().maxScenes == -1);
2553 m_maxScenes->SetValue(prefs.GetMainPanelSettings().maxScenes > 0 ? prefs.GetMainPanelSettings().maxScenes : 10);
2556 m_closeConfirmation->SetSelection(
static_cast<int>(prefs.GetMainPanelSettings().closeConfirmation));
2562 const auto &btViewSettings = prefs.GetBehaviorTreeViewSettings();
2565 int zoomStepPercent =
static_cast<int>(btViewSettings.zoomStepSize * 100);
2569 int wheelSensitivity =
static_cast<int>(btViewSettings.mouseWheelSensitivity * 100);
2576 int panSensitivity =
static_cast<int>(btViewSettings.panSensitivity * 100);
2582 m_panSmoothness->SetValue(
static_cast<int>(btViewSettings.panSmoothness));
2583 m_panSmoothnessLabel->SetLabel(wxString::Format(
"%d%%",
static_cast<int>(btViewSettings.panSmoothness)));
2584 m_panStepSize->SetValue(
static_cast<int>(btViewSettings.panStepSize));
2585 m_panStepSizeLabel->SetLabel(wxString::Format(
"%dpx",
static_cast<int>(btViewSettings.panStepSize)));
2600 btViewSettings.coordinateInfoColor.g,
2601 btViewSettings.coordinateInfoColor.b));
2616 btViewSettings.selectedNodeInfoColor.g,
2617 btViewSettings.selectedNodeInfoColor.b));
2632 wxColour(btViewSettings.treeInfoColor.r, btViewSettings.treeInfoColor.g, btViewSettings.treeInfoColor.b));
2634 m_treeInfoAnchor->SetSelection(
static_cast<int>(btViewSettings.treeInfoAnchor));
2642 m_showFPS->SetValue(btViewSettings.showFPS);
2647 wxColour(btViewSettings.fpsColor.r, btViewSettings.fpsColor.g, btViewSettings.fpsColor.b));
2649 m_fpsAnchor->SetSelection(
static_cast<int>(btViewSettings.fpsAnchor));
2651 m_fpsX->SetValue(btViewSettings.fpsX);
2653 m_fpsY->SetValue(btViewSettings.fpsY);
2662 btViewSettings.controlsHelpColor.g,
2663 btViewSettings.controlsHelpColor.b));
2672 const auto &bottomSettings = prefs.GetBottomPanelSettings();
2689 int startPathModeIndex =
static_cast<int>(bottomSettings.startPathMode);
2692 bool enableCustomPath = (startPathModeIndex == 1);
2699 m_treeSortFilesBy->SetSelection(
static_cast<int>(bottomSettings.treeView.sortFilesBy));
2702 int treeItemSizeIndex = 1;
2703 switch (bottomSettings.treeView.itemSize) {
2705 treeItemSizeIndex = 0;
2708 treeItemSizeIndex = 1;
2711 treeItemSizeIndex = 2;
2719 m_gridSortFilesBy->SetSelection(
static_cast<int>(bottomSettings.gridView.sortFilesBy));
2722 int iconSizeIndex = 1;
2723 switch (bottomSettings.gridView.iconSize) {
2743 int logFontSizeIndex = 1;
2744 switch (bottomSettings.logTab.fontSize) {
2746 logFontSizeIndex = 0;
2749 logFontSizeIndex = 1;
2752 logFontSizeIndex = 2;
2758 m_logTraceColor->SetColour(wxColour(bottomSettings.logTab.traceColor.r, bottomSettings.logTab.traceColor.g,
2759 bottomSettings.logTab.traceColor.b));
2760 m_logInfoColor->SetColour(wxColour(bottomSettings.logTab.infoColor.r, bottomSettings.logTab.infoColor.g,
2761 bottomSettings.logTab.infoColor.b));
2762 m_logWarningColor->SetColour(wxColour(bottomSettings.logTab.warningColor.r, bottomSettings.logTab.warningColor.g,
2763 bottomSettings.logTab.warningColor.b));
2764 m_logErrorColor->SetColour(wxColour(bottomSettings.logTab.errorColor.r, bottomSettings.logTab.errorColor.g,
2765 bottomSettings.logTab.errorColor.b));
2766 m_logCriticalColor->SetColour(wxColour(bottomSettings.logTab.criticalColor.r, bottomSettings.logTab.criticalColor.g,
2767 bottomSettings.logTab.criticalColor.b));
2770 const auto &leftSettings = prefs.GetLeftPanelSettings();
2778 int leftPanelStartupIndex = 0;
2779 switch (leftSettings.panelStartupState) {
2781 leftPanelStartupIndex = 0;
2784 leftPanelStartupIndex = 1;
2787 leftPanelStartupIndex = 2;
2797 const auto &rightSettings = prefs.GetRightPanelSettings();
2805 int rightPanelStartupIndex = 0;
2806 switch (rightSettings.panelStartupState) {
2808 rightPanelStartupIndex = 0;
2811 rightPanelStartupIndex = 1;
2814 rightPanelStartupIndex = 2;
2824 const auto &sceneHierarchy = leftSettings.sceneHierarchy;
2831 int hierarchyIconSizeIdx = 0;
2832 if (sceneHierarchy.iconSize == 20)
2833 hierarchyIconSizeIdx = 1;
2834 else if (sceneHierarchy.iconSize == 24)
2835 hierarchyIconSizeIdx = 2;
2858 wxString encoding = prefs.GetParserSettings().defaultFileEncoding;
2860 if (encodingIdx != wxNOT_FOUND) {
2867 m_enableVSync->SetValue(prefs.GetPerformanceSettings().enableVSync);
2876 m_fpsLimit->SetSelection(
static_cast<int>(prefs.GetPerformanceSettings().fpsLimit));
3318 m_themeChoice->SetSelection(
static_cast<int>(winSettings.theme));
3319 wxColour accentColor(winSettings.accentColor.r, winSettings.accentColor.g, winSettings.accentColor.b);
3346 bool maxUnlimited = (winSettings.maxWindowWidth == -1);
3354 int width = 16, height = 9;
3355 float ratio = winSettings.aspectRatio;
3356 if (std::abs(ratio - 16.0f / 9.0f) < 0.01f) {
3359 }
else if (std::abs(ratio - 4.0f / 3.0f) < 0.01f) {
3362 }
else if (std::abs(ratio - 21.0f / 9.0f) < 0.01f) {
3370 int zoomPercent =
static_cast<int>(mainSettings.defaultZoomLevel * 100);
3372 m_zoomLabel->SetLabel(wxString::Format(
"%d%%", zoomPercent));
3375 wxColour gridBg(mainSettings.gridBackgroundColor.r, mainSettings.gridBackgroundColor.g,
3376 mainSettings.gridBackgroundColor.b);
3378 wxColour gridLineColor(mainSettings.gridLineColor.r, mainSettings.gridLineColor.g, mainSettings.gridLineColor.b);
3380 wxColour canvasBg(mainSettings.canvasBackgroundColor.r, mainSettings.canvasBackgroundColor.g,
3381 mainSettings.canvasBackgroundColor.b);
3383 wxColour connectionLineColor(mainSettings.connectionLineColor.r, mainSettings.connectionLineColor.g,
3384 mainSettings.connectionLineColor.b);
3387 wxColour pathHighlightColor(mainSettings.pathHighlightColor.r, mainSettings.pathHighlightColor.g,
3388 mainSettings.pathHighlightColor.b);
3390 wxColour idleNodeBg(mainSettings.idleNodeBgColor.r, mainSettings.idleNodeBgColor.g, mainSettings.idleNodeBgColor.b);
3392 wxColour idleNodeBorder(mainSettings.idleNodeBorderColor.r, mainSettings.idleNodeBorderColor.g,
3393 mainSettings.idleNodeBorderColor.b);
3395 wxColour idleNodeText(mainSettings.idleNodeTextColor.r, mainSettings.idleNodeTextColor.g,
3396 mainSettings.idleNodeTextColor.b);
3398 int selectedTint =
static_cast<int>(mainSettings.selectedNodeBgTint * 100);
3401 int hoveredTint =
static_cast<int>(mainSettings.hoveredNodeBgTint * 100);
3404 wxColour selectedNode(mainSettings.selectedNodeColor.r, mainSettings.selectedNodeColor.g,
3405 mainSettings.selectedNodeColor.b);
3407 wxColour hoveredNode(mainSettings.hoveredNodeColor.r, mainSettings.hoveredNodeColor.g,
3408 mainSettings.hoveredNodeColor.b);
3410 wxColour selectedNodeText(mainSettings.selectedNodeTextColor.r, mainSettings.selectedNodeTextColor.g,
3411 mainSettings.selectedNodeTextColor.b);
3413 wxColour hoveredNodeText(mainSettings.hoveredNodeTextColor.r, mainSettings.hoveredNodeTextColor.g,
3414 mainSettings.hoveredNodeTextColor.b);
3416 wxColour selectedNodeInfo(mainSettings.selectedNodeInfoColor.r, mainSettings.selectedNodeInfoColor.g,
3417 mainSettings.selectedNodeInfoColor.b);
3419 wxColour hoveredNodeInfo(mainSettings.hoveredNodeInfoColor.r, mainSettings.hoveredNodeInfoColor.g,
3420 mainSettings.hoveredNodeInfoColor.b);
3424 bool scenesUnlimited = (mainSettings.maxScenes == -1);
3426 m_maxScenes->SetValue(mainSettings.maxScenes > 0 ? mainSettings.maxScenes : 10);
3436 int zoomStepPercent =
static_cast<int>(btViewSettings.zoomStepSize * 100);
3439 int wheelSensitivity =
static_cast<int>(btViewSettings.mouseWheelSensitivity * 100);
3444 int panSensitivity =
static_cast<int>(btViewSettings.panSensitivity * 100);
3449 m_panSmoothness->SetValue(
static_cast<int>(btViewSettings.panSmoothness));
3450 m_panSmoothnessLabel->SetLabel(wxString::Format(
"%d%%",
static_cast<int>(btViewSettings.panSmoothness)));
3476 int defStartPathModeIndex =
static_cast<int>(bottomSettings.startPathMode);
3479 bool defEnableCustomPath = (defStartPathModeIndex == 1);
3486 m_treeSortFilesBy->SetSelection(
static_cast<int>(bottomSettings.treeView.sortFilesBy));
3489 int defTreeItemSizeIndex = 1;
3490 switch (bottomSettings.treeView.itemSize) {
3492 defTreeItemSizeIndex = 0;
3495 defTreeItemSizeIndex = 1;
3498 defTreeItemSizeIndex = 2;
3506 m_gridSortFilesBy->SetSelection(
static_cast<int>(bottomSettings.gridView.sortFilesBy));
3509 int defIconSizeIndex = 1;
3510 switch (bottomSettings.gridView.iconSize) {
3512 defIconSizeIndex = 0;
3515 defIconSizeIndex = 1;
3518 defIconSizeIndex = 2;
3530 int defLogFontSizeIndex = 1;
3531 switch (bottomSettings.logTab.fontSize) {
3533 defLogFontSizeIndex = 0;
3536 defLogFontSizeIndex = 1;
3539 defLogFontSizeIndex = 2;
3545 m_logTraceColor->SetColour(wxColour(bottomSettings.logTab.traceColor.r, bottomSettings.logTab.traceColor.g,
3546 bottomSettings.logTab.traceColor.b));
3547 m_logInfoColor->SetColour(wxColour(bottomSettings.logTab.infoColor.r, bottomSettings.logTab.infoColor.g,
3548 bottomSettings.logTab.infoColor.b));
3549 m_logWarningColor->SetColour(wxColour(bottomSettings.logTab.warningColor.r, bottomSettings.logTab.warningColor.g,
3550 bottomSettings.logTab.warningColor.b));
3551 m_logErrorColor->SetColour(wxColour(bottomSettings.logTab.errorColor.r, bottomSettings.logTab.errorColor.g,
3552 bottomSettings.logTab.errorColor.b));
3553 m_logCriticalColor->SetColour(wxColour(bottomSettings.logTab.criticalColor.r, bottomSettings.logTab.criticalColor.g,
3554 bottomSettings.logTab.criticalColor.b));
3565 int defLeftPanelStartupIndex = 0;
3566 switch (defLeftSettings.panelStartupState) {
3568 defLeftPanelStartupIndex = 0;
3571 defLeftPanelStartupIndex = 1;
3574 defLeftPanelStartupIndex = 2;
3592 int defRightPanelStartupIndex = 0;
3593 switch (defRightSettings.panelStartupState) {
3595 defRightPanelStartupIndex = 0;
3598 defRightPanelStartupIndex = 1;
3601 defRightPanelStartupIndex = 2;
3611 const auto &defSceneHierarchy = defLeftSettings.sceneHierarchy;
3618 int defHierarchyIconSizeIdx = 0;
3619 if (defSceneHierarchy.iconSize == 20)
3620 defHierarchyIconSizeIdx = 1;
3621 else if (defSceneHierarchy.iconSize == 24)
3622 defHierarchyIconSizeIdx = 2;
3655 m_fpsLimit->SetSelection(
static_cast<int>(perfSettings.fpsLimit));
3658 LOG_INFO(
"Preferences",
"Settings restored to defaults (not saved yet)");