Feature #5659 2013-06-30 08:33
ollydbg
wxSmith can generate pointer arrays
Currently, wxsmith can only a single pointer of UI element, e.g.
In header file: wxStaticText* PointerA; wxStaticText* PointerB; wxStaticText* PointerC; In the constructor: PointerA = new wxStaticText(...) PointerB = new wxStaticText(...) PointerC = new wxStaticText(...) ... PointerZ = new wxStaticText(...)
I think it is better wxSmith can generate such code: In header file: wxStaticText* Pointers[3]; In the constructor: Pointers[0]= new wxStaticText(...) Pointers[1]= new wxStaticText(...) Pointers[2]= new wxStaticText(...) ... Pointers[25]= new wxStaticText(...)
This is much better if there are many same kind of elements, then user can have a simple Loop to operation on them, like:
for (int i=0;i<26;i++) { Pointers[i]->...... }
- Category
- RAD
- Status
- Open
- Close date
- Assigned to
History
this seems to be a good idea, but instead of using a array, i would suggest to use a map, with the id, or the name of the object as index.