using System; using System.Collections.Generic; using Annulus; using Azimuth; using Glass; namespace Clave.Glass { /// /// One action's part of a bindings screen: its name, then its chords in two columns of cells that wrap onto more /// lines, with one empty cell after the last that adds a chord. A chord too wide for a cell takes a whole line. A /// chord that clashes with another binding has a note on the line under it. /// public class KeyBindingRow : Control { /// /// How many cells a line holds. /// public const int Columns = 2; private readonly KeyBindingsEditor editor; private readonly KeyBindingsMaterial material; // A slot per chord and one more after them, which adds a chord. private readonly List slots = new List(); // A clash note per slot, in the same order, hidden when its chord clashes with nothing. private readonly List