0
votes

I'm working on a level editor for my game engine, and I've run into a small problem. Game objects can have values associated with them, each value having a name and a value (yes, I know this is redundant, it came up repeatedly when getting everything set up). I need a widget that will allow me to represent a map of values (key being the name, obviously), but I can't seem to find any. Any suggestions? Note: The values will ONLY be strings, due to the fact that this makes it easier to store and how simple it is to convert strings to booleans, integers, and floating points.

1

1 Answers

4
votes

If you want a widget to view a std::map then I think wxPropertyGrid should be what you want. It has a pretty extensive example under samples/propgrid in your wxWidgets install.