EditorConstants.h
 1  #pragma once
 2  
 3  namespace EditorConstants
 4  {
 5      // Default window sizes
 6      inline const int DefaultEditKeyboardWindowWidth = 960;
 7      inline const int DefaultEditKeyboardWindowHeight = 600;
 8      inline const int MinimumEditKeyboardWindowWidth = 500;
 9      inline const int MinimumEditKeyboardWindowHeight = 450;
10      inline const int EditKeyboardTableMinWidth = 700;
11      inline const int DefaultEditShortcutsWindowWidth = 1410;
12      inline const int DefaultEditShortcutsWindowHeight = 600;
13      inline const int DefaultEditSingleShortcutsWindowWidth = 1080;
14      inline const int DefaultEditSingleShortcutsWindowHeight = 400;
15      inline const int MinimumEditShortcutsWindowWidth = 500;
16      inline const int MinimumEditShortcutsWindowHeight = 500;
17      inline const int MinimumEditSingleShortcutsWindowWidth = 500;
18      inline const int MinimumEditSingleShortcutsWindowHeight = 600;
19  
20      inline const int EditShortcutsTableMinWidth = 1000;
21  
22      // Key Remap table constants
23      inline const long RemapTableColCount = 4;
24      inline const long RemapTableHeaderCount = 2;
25      inline const long RemapTableOriginalColIndex = 0;
26      inline const long RemapTableArrowColIndex = 1;
27      inline const long RemapTableNewColIndex = 2;
28      inline const long RemapTableRemoveColIndex = 3;
29      inline const DWORD64 RemapTableDropDownWidth = 160;
30      inline const DWORD64 RemapTableDropDownSpacing = 10;
31      inline const long RemapTargetColumnWidth = 3 * RemapTableDropDownWidth + 3 * RemapTableDropDownSpacing + 65;
32  
33      // Shortcut table constants
34      inline const long ShortcutTableColCount = 5;
35      inline const long ShortcutTableHeaderCount = 3;
36      inline const long ShortcutTableOriginalColIndex = 0;
37      inline const long ShortcutTableArrowColIndex = 1;
38      inline const long ShortcutTableNewColIndex = 2;
39      inline const long ShortcutTableTargetAppColIndex = 3;
40      inline const long ShortcutTableRemoveColIndex = 4;
41      inline const long ShortcutArrowColumnWidth = 90;
42      inline const DWORD64 ShortcutTableDropDownWidth = 160;
43      inline const long ShortcutTableDropDownSpacing = 10;
44      inline const long ShortcutOriginColumnWidth = 3 * ShortcutTableDropDownWidth + 3 * ShortcutTableDropDownSpacing;
45      inline const long ShortcutTargetColumnWidth = 3 * ShortcutTableDropDownWidth + 3 * ShortcutTableDropDownSpacing + 15;
46  
47      // Drop down height used for both Edit Keyboard and Edit Shortcuts
48      inline const DWORD64 TableDropDownHeight = 200;
49      inline const DWORD64 TableArrowColWidth = 130;
50      inline const DWORD64 TableRemoveColWidth = 20;
51      inline const DWORD64 TableWarningColWidth = 20;
52      inline const DWORD64 TableTargetAppColWidth = ShortcutTableDropDownWidth + TableRemoveColWidth * 2;
53  
54      // Shared style constants for both Remap Table and Shortcut Table
55      inline const DWORD64 HeaderButtonWidth = 100;
56  
57      // Minimum and maximum size of a shortcut
58      inline const long MinShortcutSize = 2; // 1 modifier key
59      inline const long MaxShortcutSize = 5; // 4 modifier keys
60  }