forked from Mudlet/Mudlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Window Layout features and control functions to Mudlet (Mudlet…
…#996) * Adds Window Layout features and control functions. This commit adds two new lua functions `loadWindowLayout()` and `saveWindowLayout()` as well as modifies `openUserWindow( name )` with an optional second boolean argument to allow scripters manual control over the layout features if they need it. When a window is opened the layout information will automatically be reloaded and applied if available, unless called like so: `openUserWindow( 'my window', false )` This code also changes/completes code in `Host.cpp` which is used to mark a Host as closing or check its closing state. The code is used in the `TConsole::closeEvent` and in `TDockWidget::closeEvent` to aid in closing and removing the consoles from Mudlet when a Host profile tab is closed. * BugFix: correctly destroy dockable map widgets on profile close It has been a long-standing fatal issue: Mudlet#550 that dock-able mapper widgets were left orphaned with dangerously dangling pointers that will crash Mudlet when a profile using them was closed whilst multi-playing. This commit makes the Host class now maintain a QPointer that tracks the QDockWidget that this type of map has, and, as part of the Host destructor ensures that the widget is given suicide instructions when the Host itself is killed. A QPointer was done so that should the map widget somehow get deleted by other future code changes the pointer will automagically null itself so that a test for it being non-null in the Host destructor is sufficient to ensure that there is a widget that needs to be killed off at that time. Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
- Loading branch information
Showing
12 changed files
with
290 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.