Dear Jani,
You wrote:
> To simplify, I think there is 3 options.
>
> 1. Stay with the current behavior. It's very easy to
> get used to it.
>
> 2. Unselect buttons when leaving insert mode, but just the
> buttons. Store the state, so when an insert event is
> called,
For the second point. Note / Rest Insert already stores its state, it does not
rely on it for recall purposes. So that is already the case. The button both
"changes" its memory and indicates its current state. So se-selecting and then
have it reselect when leaving / reentering the mode is not an issue. The code
to do that is trivial.
For you first point, I agree. That is why I'm so hesitant to give all of the
feedback having the button pressed provides. But, if there was an elegant way
to retrigger a pressed button that is part of a group via mouse click on the
button, I would like to know how.
You wrote:
> 3. Make custom buttons with three states: unpressed,
> pressed, and half pressed, maybe looking unpressed with red
> led on.
> When leaving insert mode, make previously pressed button
> half-pressed.
There is an idea. But it is not more elegant -- code wise than similar
solution I have thought of.
But the real trick is that every tool, would have to be mindful of Note / Rest
Inserter. That could make the code ugly if every tool had to see if the last
tool was a Note / Rest Inserter before in switch to the new tool.
Again, unless someone with more QT experience know the trick to tracking when
states are left. If they did, I could use hovered() signal to "temporary"
deselect the button on the duration toolbar if is was pressed. Then if I could
track when the mouse was no longer hovering on the button in question, I could
restore its state if needed.
I swap stuff about getting / loosing focus in the Qt reference, but I couldn't
wrap my mind around it. Maybe that is the key to this.
Anyhow, I certainly appreciate your interest in the topic. Thank you for your
input so far.
I'm about to wrap things up for the day here. I'm heading out for the evening.
Get to do a little music tonight. Yay!
Sincerely,
Julie S.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel