Bo Peng wrote: > > But what happens if a short toolbar (not in its own line) becomes longer > > because a user has added some actions? Or vice versa, if he removes some > > actions and makes it shorter? > > Then we still try to follow suggestions from session and put > shortened/longered toolbars to their oiginal lines.
But this really looks like a hack to me. > > Can't we determine the lines and add a proper flag "ownline" or somesuch > > to session? > > I could not find anyway to access 'line' information directly but the > information is already there. If two horizontal toolbars share the > same posy, they are in the same line. If there are more posy, there > are more than one lines. If posx or one toolbar < posx of another one, > this toolbar need to be added first. Width and height information is > actually not needed. That's exactly what I thought. > The problem here is that we add toolbars one by one, following the > order in the ui file. Ideally, we should get info for all toolbars and > add them in order. That's what we should do anyway. Else the whole session thing is wrong as soon as a user swaps the order. Jürgen