I'm currently creating an application to edit parallel lists of events which happen on a timeframe. In the model/backend there is a list of lists where the sublist has all the items in order.
Each event should be represented by a string/glyph (from a ttf font) and each of the textlines should be edited like a normal line of text with a few exeptions how they are displayed. Look at this picture:
Basically each lines represents a line of text. Each event is a single char/glyph. So its a text editor?! Not quite
- There are no linebreaks
- Multiple lines in parallel
- Each glyph has an individual space after it (X-direction)
- Each glyph can be shifted "up" and "down" individually (Y-Direction) (Maybe the most important point)
- If you delete a glyph all items right of it go a step "left" to close the gap (just like in a normal texteditor).
- If you insert a glyph all items right of it go a step "right" to create a gap to insert.
Most of these points are covered by QGraphicsLinearLayout, but maybe its the wrong widget/layout for this approach. Do you have any advice?