PDA

View Full Version : Design a map editor



IZ
4th July 2007, 01:04
Hi,

I'm trying to do a map editor with Qt3 on NetBSD et I'm not sure to make the good widgets/classes choice. In fact, I havn't a lot of skills in Qt and I'd like to know your point of view on my ideas. My editor must be able to do maps for a 2D video game, seen from above, like old SuperNes Zelda. I already have a splashscreen and a right button menu. The top of my window is done with a menubar and two toolbars. The bottom is a statusbar. I have coded all my actions and know how to generate my XML. My map is composed of cells wich ONE background and ZERO or ONE objects.

I imagine my design like that:

- On the left:
The map with scrollbars on the sides to be able to scroll it.
- On the right:
A list of buttons for the backgrounds and the objects to put on the map. I will have 20 of them so if possible I'd like to have a tab system.

I thing using a QScrollView and a QTabBar but what's the best to do the map? I'd like to access the cells like a C++ array with two x and y params.

Thanks for all

NB: Sorry for my poor english but I'm French

wysota
4th July 2007, 08:36
I suggest you use QCanvas and family.