void FormEdit::LoadGUILayouts(bool first) { LoadFromFile(*this, ConfigFile("Layouts.bin")); const ArrayMap<String, String>& p = GetLayouts(); _GUILayouts.Clear(); for (int i = 0; i < p.GetCount(); i++) _GUILayouts.Add(p.GetKey(i)); if (first) _GUILayouts <<= t_(" Default"); }
COSXKeyboardLayouts::COSXKeyboardLayouts() { c_key.Shift = c_key.Apple = c_key.Ctrl = c_key.Alt = false; c_key.SVKey = '\0'; h_layout = c_layout = -1; layouts = NULL; GetLayouts(); if(c_layout > -1) { // may be this SetASCIILayout(); // GetKeyboardShortCut(); } }