3 class ActiveCompilerDialog : Window
5 text = $"Active Compiler";
6 background = formColor;
8 minClientSize = { 568, 40 };
13 IDESettings ideSettings;
14 String workspaceActiveCompiler;
18 this, size = { 80 }, position = { 392, 8 };
19 text = $"OK", isDefault = true, id = DialogResult::ok;
20 NotifyClicked = ButtonCloseDialog;
22 /*bool NotifyClicked(Button button, int x, int y, Modifiers mods)
24 Destroy(DialogResult::ok);
31 this, size = { 80 }, position = { 480, 8 };
32 text = $"Cancel", hotKey = escape, id = DialogResult::cancel;
33 NotifyClicked = ButtonCloseDialog;
36 DropBox compilerDropBox
38 this, position = { 160, 8 }, size = { 220 };
39 text = $"Active Compiler", hotKey = altA;
41 bool NotifySelect(DropBox dropBox, DataRow row, Modifiers mods)
44 workspaceActiveCompiler = row.string;
48 Label { this, position = { 20, 14 }, labeledWindow = compilerDropBox };
52 for(compiler : ideSettings.compilerConfigs)
54 DataRow row = compilerDropBox.AddString(compiler.name);
55 if(workspaceActiveCompiler && !strcmp(compiler.name, workspaceActiveCompiler))
56 compilerDropBox.currentRow = row;