-
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.
* Disable existing main window * Refactored main_window2 * Catch errors from the toolbar * Exposed some attributes * Updated home page Modified home page to work with the new window system * Moved the toolbar class This is specific to the main window so it should be here * Reformatted * Refactored the SVG icons to take full paths The svg icons were limited to only tablericons. They now need the full path to the file * Added a name to the home page This should probably return a translation key * Refactored the toolbar and main window classes Refactored the toolbar to allow changing the name, icon and other attributes after creation. Added support for sticky buttons. Added support to click the button in code. * Added the 3D view to the tab engine * Improved stderr output * Added another exception logging class * Improved error handling in the renderer * Modified home plugin slightly * Added a thread_manager plugin If a thread is not stopped before the application exits it will crash the program. Calling quit and then wait for each thread is the general suggestion but this means the program needs to wait for each thread to finish before quitting the next thread. This plugin automatically quits all threads and then waits for all threads which means that all the threads can finish in parallel. * level_geometry now uses thread plugin * Fixed circular reference bug * Fixed camera signals If the camera position or rotation were set to all zeros the signals were not emitted. The internal storage is now None to start so that any initial value will emit the signals. The properties default to zeros if they have not been set yet. * Removed context resetting The create and destroy vbo methods used to revert the context but this caused problems if the context had been destroyed. * Added missing context reset * Fixed context issues Set the camera location after the opengl context has been initialised so that chunks are only created after the context exists. * Reformatted * Removed frame from main window * Fixed circular reference * Simplified widget removal All that is required here is deleteLater * Delete the sub window when it is closed The window is kept alive somewhere so we need to explicitly kill it. * Fixed some OpenGL issues with the window system The OpenGL destruction was not being run which caused Qt to do a very slow teardown. OpenGL destruction is now run when the widget is hidden because this is the only way I have found to do it when the widget may be destroyed before the containing window. This also means that we must do OpenGL initialisation in the showEvent to set it back up after it gets hidden. Fixed a number of crashes in a number of different situations. * Added a QOpenGLContext C++ extension The QOpenGLContext implementation does not allow access to the context after the destructor has started. This means that the context cannot be made current from within aboutToBeDestroyed rendering it worthless. This adds a Cython wrapper for the C++ context instance so that it can be made current after destruction has started. * Refactored the renderer to fix some issues * Refactored renderer to not need Cython class I worked out how to make the renderer work without the Cython class. This is preferable because I do not need to work out how to compile the code for each platform. * Hide the widget before destroying it This is required to force the hideEvent so that QOpenGLWidgets can destroy their context data. * Fixed warning when closing window The only the data actually needs to be destroyed * Cleaned up imports * Remove pyside6 from setup.py This is no longer needed
- Loading branch information
1 parent
c787e3a
commit a7eeea0
Showing
53 changed files
with
1,345 additions
and
543 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 was deleted.
Oops, something went wrong.
14 changes: 12 additions & 2 deletions
14
src/amulet_editor/models/widgets/traceback_dialog/__init__.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
from ._api import display_exception, display_exception_blocking, DisplayException | ||
from ._api import ( | ||
display_exception, | ||
display_exception_blocking, | ||
DisplayException, | ||
CatchException, | ||
) | ||
|
||
__all__ = ["display_exception", "display_exception_blocking", "DisplayException"] | ||
__all__ = [ | ||
"display_exception", | ||
"display_exception_blocking", | ||
"DisplayException", | ||
"CatchException", | ||
] |
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.