[Cuis-dev] WindowManager package
Mariano Montone
marianomontone at gmail.com
Mon Feb 10 08:09:58 PST 2025
I would like Cuis to have a configurable WindowManager that takes care
of window positioning, etc, but also let you choose the class of window
to use by making SystemWindow wrap their contents, and not have
subclasses of it for the different applications. So, it would be
composition over inheritance. Like, instead of a SystemBrowserWindow,
have MySystemWindow open: Browser, and the window system class
(MySystemWindow) is configured by the WindowManager.
It can be done, and I have prototyped it, but I didn't take it to the end.
Mariano
El 10/2/25 a las 07:20, Luciano Notarfrancesco via Cuis-dev escribió:
> It seems several of us have already implemented different versions of
> the “window manager” thing to replace some of the default behavior of
> windows, do tiling, create or change global keyboard shortcuts,
> implement virtual pages or screens, etc. I made my own tiling window
> manager just as I like it, and I disable the taskbar and use something
> else instead (a small widget to show in which page you are, and which
> pages have opened windows).
>
> I think, perhaps, at some point we could have some object grouping
> together these things, with a default in the base image (like Themes),
> and packages could implement different ways of managing windows. I
> have a WindowManagerMorph class
> https://github.com/len/Cuis-Smalltalk-DWM/blob/9b0f0b95aca31f8a8b3c8dee95fabedfcfc9c55d/Morphic-DWM.pck.st#L586 that
> receives messages when windows are opened or closed (and could do
> window positioning ), and receives keystroke events (possibly handling
> them before any other morph, in order to implement global shortcuts).
> I think these three messages are the main “hooks” I needed to add,
> perhaps other people need others. Opinions?
>
> Cheers,
> Luciano
>
> On Mon, Feb 10, 2025 at 02:41 Mark Volkmann via Cuis-dev
> <cuis-dev at lists.cuis.st> wrote:
>
> Checkout my WindowManager package at
> https://github.com/mvolkmann/Cuis-Smalltalk-WindowManager. This
> addresses two issues. The first is where windows are opened. The
> second is the ability to save and restore window locations and
> sizes. The README explains all of this and there is a link to a
> video at the bottom of the README that demonstrates all the features.
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250210/a6b69c74/attachment.htm>
More information about the Cuis-dev
mailing list