+ wxClientDC dc (_panel);
+ wxSize size = dc.GetTextExtent (wxT ("GGGGGGGG..."));
+ size.SetHeight (-1);
+
+ {
+ add_label_to_sizer (grid, _panel, _("Key"), true, wxGBPosition (r, 0));
+ wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
+ _key = new wxStaticText (_panel, wxID_ANY, "", wxDefaultPosition, size);
+ s->Add (_key, 1, wxALIGN_CENTER_VERTICAL);
+ _edit_key = new wxButton (_panel, wxID_ANY, _("Edit..."));
+ s->Add (_edit_key);
+ grid->Add (s, wxGBPosition (r, 1));
+ ++r;
+ }
+
+ add_label_to_sizer (grid, _panel, _("Reels"), true, wxGBPosition (r, 0));
+ _reel_type = new wxChoice (_panel, wxID_ANY);
+ grid->Add (_reel_type, wxGBPosition (r, 1), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
+ ++r;
+
+ add_label_to_sizer (grid, _panel, _("Reel length"), true, wxGBPosition (r, 0));
+
+ {
+ wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
+ _reel_length = new wxSpinCtrl (_panel, wxID_ANY);
+ s->Add (_reel_length);
+ add_label_to_sizer (s, _panel, _("GB"), false);
+ grid->Add (s, wxGBPosition (r, 1));
+ ++r;
+ }
+
+ add_label_to_sizer (grid, _panel, _("Standard"), true, wxGBPosition (r, 0));