Pop up Windows
Vaguely put, a superclass should exist specifically designed around facilitating an easy way to render a pop-up window.
It would be nice if all it took to invoke a pop up was as follows:
Creating your own MyPopUp
class:
class MyPopUp extends PopUp ...
Then, making available a close
method in PopUp
that could be bound to a button within the subclass that allows the pop up to remove itself from its parent.
And then on the calling side, something light like this would be nice to create the actual pop up (for instance, this action could be bound to a button):
MyPopUp* popup = new MyPopUp();
elements->append(popup);
Which would automatically allow the pop up to dim the content behind it, and display itself and its controls. It would also seize control from the parent element.
It's not clear how much subscreen
already serves this purpose (This was originally used for pop up dialogues), but it's possible that it can be repurposed for this use-case as well.