[Cuis-dev] WindowManager package
Luciano Notarfrancesco
luchiano at gmail.com
Tue Mar 11 05:46:45 PDT 2025
On Tue, Mar 11, 2025 at 18:10 Mariano Montone <marianomontone at gmail.com>
wrote:
> Hi Luciano,
>
> El 11/3/25 a las 07:25, Luciano Notarfrancesco escribió:
> > perhaps ApplicationMorph could be called ApplicationWindow?
> That's an option. But I liked Morph instead of Windows because the tools
> (Browser, Inspector) are not "windows" anymore :) But preserving the
> "Window" in the class name also makes sense.
Yes, I see your point too, makes sense.
> Also, why not make it subclass of PluggableMorph as other morphs with
> > model? And do we really need this class, or we could just make them
> > subclass of PluggableMorph?
> I'll try it. The reason of to make it subclass of LayoutMorph and not
> PluggableMorph is because SystemWindow interface are all built on a
> layoutMorph (instance variable and class). And so I subclassed from
> LayoutMorph and added some extra methods in ApplicationMorph. But I'll
> consider doing it as you suggest .
Oh, I missed that, sorry… maybe just ignore my suggestion.
> > Also, the WindowManager class seems unnecessary to me, I think all
> > that it does could be implemented on the class side of the decorated
> > windows (open:, open:label:), or on the instance side of the
> > application windows (open, openWithLabel:), and the class of system
> > window to use can be set in a class variable.
>
> Ok. That's another option. Note that although it is a very simple at the
> moment, my thought is that the WindowManager not only handles the type
> of WindowDecoration to open, but also position (let's say you want a
> tiling window manager), size, etc. And so I thought it would be nice to
> have a WindowManager to delegate everything window managing related.
>
Hm, yes, in fact I did what you are saying in my tiling window manager, and
it also receives messages when windows are closed and handles global
keyboard shortcuts (open a browser, open a workspace, etc). That was before
pluggable windows, and now with this new idea it feels I might make my
window manager package cleaner if it just implementing a new type of system
window like DynamicTilingWindow that knows about tiling and other window
modes, etc (because it has controls for tiling, it is not really
independent of the window manager). But it might be better to decouple the
window from the window manager as you say, I’m not sure..
> Let me try another version. I'll upload image when I have it.
>
> Mariano
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250311/f717e965/attachment.htm>
More information about the Cuis-dev
mailing list