#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) { shortcutDropDownStackPanel = StackPanel(); typeShortcut = Button(); shortcutControlLayout = StackPanel(); bool isHybridControl = colIndex == 1 ? true : false; shortcutDropDownStackPanel.as().Spacing(EditorConstants::ShortcutTableDropDownSpacing); shortcutDropDownStackPanel.as().Orientation(Windows::UI::Xaml::Controls::Orientation::Horizontal); typeShortcut.as