43 std::vector<std::string> sAtts,
44 std::vector<std::string> nsAtts,
47 -1, wxDefaultPosition,
64 wxStaticText * aa =
new wxStaticText(
this,-1,_T(
" Currently shown attributes for level: "), wxPoint(5,10));
66 std::stringstream out;
67 for(
int i=1;i<=numLev;i++)
70 as.Add(crea::std2wx(out.str()));
73 levels=
new wxComboBox(
this,
ID_COMBO,_T(
"1"),wxPoint(190, 5),wxDefaultSize,as);
75 wxStaticText * na=
new wxStaticText(
this,-1,_T(
" Currently hidden attributes: "), wxPoint(255,10));
77 shownAtts=
new wxListCtrl(
this, wxID_ANY, wxPoint(5,30), wxSize(160,90), wxLC_REPORT | wxLC_NO_HEADER );
85 wxButton *add =
new wxButton(
this,wxID_ANY,_T(
">>"), wxPoint(170,50) );
88 wxButton *
remove =
new wxButton(
this,wxID_ANY,_T(
"<<"), wxPoint(170,70) );
91 notShownAtts=
new wxListCtrl(
this, wxID_ANY, wxPoint(255,30), wxSize(160,90), wxLC_REPORT | wxLC_NO_HEADER );
100 wxButton *save =
new wxButton(
this,wxID_ANY,_T(
"Save Changes"), wxPoint(5,130) );
115 int n=
levels->GetSelection();
128 wxLIST_STATE_SELECTED);
132 std::string change = crea::wx2std(
shownAtts->GetItemText(item));
133 std::vector<std::string>::iterator it;
137 if((*it).compare(change)==0)
157 wxLIST_STATE_SELECTED);
161 std::string change = crea::wx2std(
notShownAtts->GetItemText(item));
162 std::vector<std::string>::iterator it;
166 if((*it).compare(change)==0)
184 item.SetMask(wxLIST_MASK_STATE |
191 std::vector<std::string>::iterator it;
196 item.SetText(crea::std2wx(*it));
203 item.SetText(crea::std2wx(*it));
210 int n=
levels->GetSelection()+1;