#include "pch.h" #include "ShortcutControl.h" #include #include "KeyboardManagerState.h" #include "KeyboardManagerEditorStrings.h" #include "KeyDropDownControl.h" #include "UIHelpers.h" #include "EditorHelpers.h" #include "EditorConstants.h" //Both static members are initialized to null HWND ShortcutControl::editShortcutsWindowHandle = nullptr; KBMEditor::KeyboardManagerState* ShortcutControl::keyboardManagerState = nullptr; // Initialized as new vector RemapBuffer ShortcutControl::shortcutRemapBuffer; ShortcutControl::ShortcutControl(StackPanel table, StackPanel row, const int colIndex, TextBox targetApp) { shortcutDropDownVariableSizedWrapGrid = VariableSizedWrapGrid(); typeShortcut = Button(); shortcutControlLayout = StackPanel(); bool isHybridControl = colIndex == 1 ? true : false; // TODO: Check if there is a VariableSizedWrapGrid equivalent. // shortcutDropDownVariableSizedWrapGrid.as().Spacing(EditorConstants::ShortcutTableDropDownSpacing); shortcutDropDownVariableSizedWrapGrid.as().Orientation(Windows::UI::Xaml::Controls::Orientation::Horizontal); shortcutDropDownVariableSizedWrapGrid.as().MaximumRowsOrColumns(3); typeShortcut.as