SymbolPartList::SymbolPartList(Window* parent, int id, SymbolPartsSelection& selection, SymbolP symbol) : wxScrolledWindow(parent, id, wxDefaultPosition, wxDefaultSize, wxBORDER_THEME_FIX(wxBORDER_THEME) | wxVSCROLL) , selection(selection) , state_icons(9,8) { SetScrollRate(0, ITEM_HEIGHT+1); // NOTE: this is based on the order of the SymbolShapeCombine and SymbolSymmetryType enums! state_icons.Add(load_resource_image(_("icon_combine_merge"))); state_icons.Add(load_resource_image(_("icon_combine_subtract"))); state_icons.Add(load_resource_image(_("icon_combine_intersection"))); state_icons.Add(load_resource_image(_("icon_combine_difference"))); state_icons.Add(load_resource_image(_("icon_combine_overlap"))); state_icons.Add(load_resource_image(_("icon_combine_border"))); state_icons.Add(load_resource_image(_("icon_symmetry_rotation"))); state_icons.Add(load_resource_image(_("icon_symmetry_reflection"))); state_icons.Add(load_resource_image(_("icon_symbol_group"))); // view symbol setSymbol(symbol); }
MessageCtrl(wxWindow* parent, int id) : wxScrolledWindow(parent, id, wxDefaultPosition, wxDefaultSize, wxBORDER_THEME_FIX(wxBORDER_THEME)) { SetBackgroundStyle(wxBG_STYLE_CUSTOM); SetScrollRate(0, 1); EnableScrolling(false,true); // icons BOOST_STATIC_ASSERT(MESSAGE_TYPE_MAX == 6); icons[MESSAGE_INPUT] = wxBitmap(load_resource_image(_("message_input"))); icons[MESSAGE_OUTPUT] = wxBitmap(); icons[MESSAGE_INFO] = wxBitmap(load_resource_image(_("message_information"))); icons[MESSAGE_WARNING] = wxBitmap(load_resource_image(_("message_warning"))); icons[MESSAGE_ERROR] = wxBitmap(load_resource_image(_("message_error"))); icons[MESSAGE_FATAL_ERROR] = icons[MESSAGE_ERROR]; // color colors[MESSAGE_INPUT] = wxColour(0,80,0); colors[MESSAGE_OUTPUT] = wxColour(255,255,255); colors[MESSAGE_INFO] = wxColour(0,0,255); colors[MESSAGE_WARNING] = wxColour(255,255,0); colors[MESSAGE_ERROR] = colors[MESSAGE_FATAL_ERROR] = wxColour(255,0,0); }
CardViewer::CardViewer(Window* parent, int id, long style) : wxControl(parent, id, wxDefaultPosition, wxDefaultSize, wxBORDER_THEME_FIX(style)) , up_to_date(false) {}