Codechange: make WindowClass a scoped enum

This commit is contained in:
Rubidium
2026-05-20 21:39:04 +02:00
committed by rubidium42
parent a9a2965131
commit bcda4a72ee
134 changed files with 1361 additions and 1249 deletions
+2 -2
View File
@@ -475,7 +475,7 @@ struct MainWindow : Window
{
if (!gui_scope) return;
/* Forward the message to the appropriate toolbar (ingame or scenario editor) */
InvalidateWindowData(WC_MAIN_TOOLBAR, 0, data, true);
InvalidateWindowData(WindowClass::MainToolbar, 0, data, true);
}
static inline HotkeyList hotkeys{"global", {
@@ -528,7 +528,7 @@ struct MainWindow : Window
/** Window definition for the main window. */
static WindowDesc _main_window_desc(
WindowPosition::Manual, {}, 0, 0,
WC_MAIN_WINDOW, WC_NONE,
WindowClass::MainWindow, WindowClass::None,
WindowDefaultFlag::NoClose,
_nested_main_window_widgets,
&MainWindow::hotkeys