void QueueListBox::KeyPress(GG::Key key, boost::uint32_t key_code_point, GG::Flags<GG::ModKey> mod_keys) { if (Disabled()) { CUIListBox::KeyPress(key, key_code_point, mod_keys); return; } if (key == GG::GGK_DELETE) { QueueListBox::iterator it = Caret(); if (it == end()) return; QueueItemDeletedSignal(it); } else { CUIListBox::KeyPress(key, key_code_point, mod_keys); } }
TextDisplay::TextDisplay (boolean a) { painter = nil; canvas = nil; autosized = a; xmin = 0; xmax = 0; ymax = 0; ymin = 0; x0 = 0; y0 = 0; width = -1; lineheight = 1; tabwidth = 0; firstline = 0; lastline = 0; topline = 0; bottomline = -1; widestline = 0; lines = nil; maxlines = 0; Size(firstline, lastline); CaretStyle(DefaultCaret); Caret(0, 0); }