List Info

Thread: FloatCanvas Question...




FloatCanvas Question...
user name
2006-10-07 09:06:33
On 10/6/06, Niki Spahiev < nikivintech.bg">nikivintech.bg> wrote:
Christopher Barker wrote:
>; Niki Spahiev wrote:
>;> Bill Baxter wrote:
>;>> That suggests you might want something like a stack of edit modes.
>;
>> Stack is great for transparent zoom/pan for example. We use it heavily
&gt;> in our app.
>

In our app [1] we have shortcuts for zoom/pan always active as part of
the widget. E.g. user is editing something (TaskEdit external to widget)
using Alt+B1 she can start zoom mode (TaskZoom), zoom part of screen and
continue editing.

Latest incarnation of this design uses permanent Task0 at bottom of the
stack with sole responsibility to spawn tasks.

So it sounds like you really only have a stack of 1-3 items.&nbsp; Have you found a need for more than that? ; Or is it just a case of "only 3 cases matter in software: 0,1, and infinity&quot;.   Just curious.&nbsp;  Because I could imagine maybe having more modes stack up if you treat a modifier as triggering an overlay mode. ; For instance the base draw tool is one GUIMode, but holding down SHIFT creates another mini-overlay mode that does only straight-line drawing.&nbsp; Seems like that may be overkill, though.

--bb
FloatCanvas Question...
user name
2006-10-09 09:44:39
Bill Baxter wrote:
> 
> So it sounds like you really only have a stack of 1-3
items.  Have you 
> found a need for more than that?  Or is it just a case
of "only 3 cases 
> matter in software: 0,1, and infinity".   Just
curious.   Because I 
> could imagine maybe having more modes stack up if you
treat a modifier 
> as triggering an overlay mode.  For instance the base
draw tool is one 
> GUIMode, but holding down SHIFT creates another
mini-overlay mode that 
> does only straight-line drawing.  Seems like that may
be overkill, though.

As per taskmaster pattern we code our tasks as automats. One
can have 
single BIG automat or use stack to split it to small ones.
For complex 
tasks we use dialogs in addition to canvas. Dialog is used
by users to 
manage subtasks.

Niki Spahiev


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )