pycforge-sdk 0.6.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pycforge_sdk/__init__.py +6 -0
- pycforge_sdk/__main__.py +3 -0
- pycforge_sdk/catalogue.py +287 -0
- pycforge_sdk/cli.py +114 -0
- pycforge_sdk/connection.py +136 -0
- pycforge_sdk/discovery.py +227 -0
- pycforge_sdk/editing.py +84 -0
- pycforge_sdk/engine_launch.py +45 -0
- pycforge_sdk/engine_worker.py +53 -0
- pycforge_sdk/gui/__init__.py +1 -0
- pycforge_sdk/gui/__main__.py +3 -0
- pycforge_sdk/gui/app.py +36 -0
- pycforge_sdk/gui/dialogs.py +310 -0
- pycforge_sdk/gui/editor.py +412 -0
- pycforge_sdk/gui/help/index.html +9 -0
- pycforge_sdk/gui/identity.py +139 -0
- pycforge_sdk/gui/jobs.py +146 -0
- pycforge_sdk/gui/reference.py +39 -0
- pycforge_sdk/gui/resources/sdk-mark.png +0 -0
- pycforge_sdk/gui/scanner.py +134 -0
- pycforge_sdk/gui/startup.py +118 -0
- pycforge_sdk/gui/visual/__init__.py +1 -0
- pycforge_sdk/gui/visual/action_contract.py +550 -0
- pycforge_sdk/gui/visual/icons.py +117 -0
- pycforge_sdk/gui/visual/qt_actions.py +501 -0
- pycforge_sdk/gui/visual/qt_branding.py +47 -0
- pycforge_sdk/gui/visual/qt_dialog_chrome.py +337 -0
- pycforge_sdk/gui/visual/qt_file_icons.py +130 -0
- pycforge_sdk/gui/visual/qt_icons.py +80 -0
- pycforge_sdk/gui/visual/qt_screen_geometry.py +166 -0
- pycforge_sdk/gui/visual/qt_title_controls.py +333 -0
- pycforge_sdk/gui/visual/qt_window_chrome.py +314 -0
- pycforge_sdk/gui/visual/qt_window_resize.py +93 -0
- pycforge_sdk/gui/visual/qt_workspace_widgets.py +448 -0
- pycforge_sdk/gui/visual/resources/icons/128/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/128/whitespace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/16/whitespace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/20/whitespace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/24/whitespace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/256/whitespace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/32/whitespace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/48/whitespace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/64/whitespace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/add-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/brand-mark.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/bundle-search.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/cancel.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/check.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/chevron-right.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/close.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/collapse-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/command-palette.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/convert.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/copy.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/cut.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/decision-trace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/details.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/diagnostics.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/duplicate-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/exit.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/expand-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/export.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/find.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/go-to-line.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/go-to-output.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/go-to-source.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/help.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/history.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/indent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/link-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/mappings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/move-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/move-line-down.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/move-line-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/move-up.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/next.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/open.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/outdent.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/outline.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/paste.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/previous.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/primary-module.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/redo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/remove-document.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/replace.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/save-as.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/save.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/select-all.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/settings.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/show-c.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/split-view.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/summary.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/telemetry.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/toggle-comment.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/toggle-fold.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/tools.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/undo.png +0 -0
- pycforge_sdk/gui/visual/resources/icons/96/whitespace.png +0 -0
- pycforge_sdk/gui/visual/theme.py +204 -0
- pycforge_sdk/gui/visual/theme_steel_stylesheet.py +901 -0
- pycforge_sdk/gui/visual/theme_stylesheet.py +597 -0
- pycforge_sdk/gui/visual/theme_workspace_stylesheet.py +169 -0
- pycforge_sdk/gui/visual/visual_tokens.py +146 -0
- pycforge_sdk/gui/widgets.py +68 -0
- pycforge_sdk/gui/window.py +559 -0
- pycforge_sdk/native.py +42 -0
- pycforge_sdk/package_metadata.py +21 -0
- pycforge_sdk/process.py +58 -0
- pycforge_sdk/project.py +143 -0
- pycforge_sdk/readiness.py +106 -0
- pycforge_sdk/results.py +45 -0
- pycforge_sdk/service.py +454 -0
- pycforge_sdk/workbench.py +88 -0
- pycforge_sdk-0.6.3.dist-info/METADATA +221 -0
- pycforge_sdk-0.6.3.dist-info/RECORD +559 -0
- pycforge_sdk-0.6.3.dist-info/WHEEL +5 -0
- pycforge_sdk-0.6.3.dist-info/entry_points.txt +5 -0
- pycforge_sdk-0.6.3.dist-info/licenses/LICENSE +674 -0
- pycforge_sdk-0.6.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
"""Compact, accessible frameless window chrome for the Qt workspace.
|
|
2
|
+
|
|
3
|
+
The native menu bar remains the actual ``QMenuBar``. It also becomes the
|
|
4
|
+
drag surface, so removing the operating-system title bar gains vertical space
|
|
5
|
+
without replacing menu semantics, mnemonics, hover behavior, or keyboard
|
|
6
|
+
navigation. Moving and resizing are delegated to Qt's system APIs first;
|
|
7
|
+
bounded manual behavior is retained as a fallback for window managers that do
|
|
8
|
+
not expose those APIs.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
from PySide6.QtCore import QEvent, QObject, QPoint, QRect, Qt
|
|
14
|
+
from PySide6.QtGui import (
|
|
15
|
+
QKeySequence,
|
|
16
|
+
QShortcut,
|
|
17
|
+
)
|
|
18
|
+
from PySide6.QtWidgets import (
|
|
19
|
+
QMainWindow,
|
|
20
|
+
QMenu,
|
|
21
|
+
QMenuBar,
|
|
22
|
+
QWidget,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
from .qt_actions import build_window_system_actions
|
|
26
|
+
from .qt_window_resize import WindowResizeHandle as _ResizeHandle
|
|
27
|
+
from .qt_title_controls import _TitleControls, _WindowControlButton
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
_RESIZE_BORDER = 5
|
|
31
|
+
_RESIZE_CORNER = 10
|
|
32
|
+
# WindowResizeHandle owns accessible labels beginning "Resize window from".
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class FramelessWindowChrome(QObject):
|
|
36
|
+
"""Own compact title interactions while preserving native menu surfaces."""
|
|
37
|
+
|
|
38
|
+
def __init__(self, window: QMainWindow, menu_bar: QMenuBar) -> None:
|
|
39
|
+
if not isinstance(window, QMainWindow):
|
|
40
|
+
raise TypeError("window must be a QMainWindow")
|
|
41
|
+
if not isinstance(menu_bar, QMenuBar):
|
|
42
|
+
raise TypeError("menu_bar must be a QMenuBar")
|
|
43
|
+
super().__init__(window)
|
|
44
|
+
self.window = window
|
|
45
|
+
self.menu_bar = menu_bar
|
|
46
|
+
self._manual_move_origin: tuple[QPoint, QPoint] | None = None
|
|
47
|
+
self._manual_move_surface: QWidget | None = None
|
|
48
|
+
|
|
49
|
+
window.setWindowFlag(
|
|
50
|
+
Qt.WindowType.FramelessWindowHint,
|
|
51
|
+
True,
|
|
52
|
+
)
|
|
53
|
+
window.setWindowFlag(
|
|
54
|
+
Qt.WindowType.NoDropShadowWindowHint,
|
|
55
|
+
False,
|
|
56
|
+
)
|
|
57
|
+
window.setAttribute(Qt.WidgetAttribute.WA_StyledBackground, True)
|
|
58
|
+
menu_bar.setAccessibleDescription(
|
|
59
|
+
"Full PyCForge menus and the frameless window drag surface. "
|
|
60
|
+
"Double-click empty space to maximize or restore."
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
self.controls = _TitleControls(self)
|
|
64
|
+
menu_bar.setCornerWidget(
|
|
65
|
+
self.controls,
|
|
66
|
+
Qt.Corner.TopRightCorner,
|
|
67
|
+
)
|
|
68
|
+
self._drag_surfaces = (menu_bar, self.controls)
|
|
69
|
+
for surface in self._drag_surfaces:
|
|
70
|
+
surface.installEventFilter(self)
|
|
71
|
+
window.installEventFilter(self)
|
|
72
|
+
|
|
73
|
+
self.resize_handles = self._build_resize_handles()
|
|
74
|
+
self.system_menu = self._build_system_menu()
|
|
75
|
+
self.system_menu_shortcut = QShortcut(
|
|
76
|
+
QKeySequence("Alt+Space"),
|
|
77
|
+
window,
|
|
78
|
+
)
|
|
79
|
+
self.system_menu_shortcut.setContext(
|
|
80
|
+
Qt.ShortcutContext.WindowShortcut
|
|
81
|
+
)
|
|
82
|
+
self.system_menu_shortcut.activated.connect(
|
|
83
|
+
self.show_system_menu
|
|
84
|
+
)
|
|
85
|
+
self._sync_window_state()
|
|
86
|
+
self._sync_resize_handles()
|
|
87
|
+
|
|
88
|
+
def eventFilter(self, watched, event) -> bool: # noqa: N802 - Qt API
|
|
89
|
+
event_type = event.type()
|
|
90
|
+
if watched is self.window:
|
|
91
|
+
if event_type == QEvent.Type.WindowTitleChange:
|
|
92
|
+
self.controls.sync_title()
|
|
93
|
+
elif event_type in {
|
|
94
|
+
QEvent.Type.Resize,
|
|
95
|
+
QEvent.Type.Show,
|
|
96
|
+
QEvent.Type.WindowStateChange,
|
|
97
|
+
}:
|
|
98
|
+
self._sync_window_state()
|
|
99
|
+
self._sync_resize_handles()
|
|
100
|
+
elif event_type == QEvent.Type.ActivationChange:
|
|
101
|
+
for button in (
|
|
102
|
+
self.controls.minimize_button,
|
|
103
|
+
self.controls.maximize_button,
|
|
104
|
+
self.controls.close_button,
|
|
105
|
+
):
|
|
106
|
+
button.update()
|
|
107
|
+
return False
|
|
108
|
+
|
|
109
|
+
if watched not in self._drag_surfaces:
|
|
110
|
+
return False
|
|
111
|
+
if event_type == QEvent.Type.MouseButtonDblClick:
|
|
112
|
+
if event.button() == Qt.MouseButton.LeftButton and self._drag_allowed(
|
|
113
|
+
watched, event.position().toPoint()
|
|
114
|
+
):
|
|
115
|
+
self.toggle_maximized()
|
|
116
|
+
event.accept()
|
|
117
|
+
return True
|
|
118
|
+
elif event_type == QEvent.Type.MouseButtonPress:
|
|
119
|
+
if event.button() == Qt.MouseButton.LeftButton and self._drag_allowed(
|
|
120
|
+
watched, event.position().toPoint()
|
|
121
|
+
):
|
|
122
|
+
self._begin_move(
|
|
123
|
+
watched,
|
|
124
|
+
event.globalPosition().toPoint(),
|
|
125
|
+
)
|
|
126
|
+
event.accept()
|
|
127
|
+
return True
|
|
128
|
+
elif event_type == QEvent.Type.MouseMove:
|
|
129
|
+
if self._manual_move_origin is not None:
|
|
130
|
+
self._continue_manual_move(event.globalPosition().toPoint())
|
|
131
|
+
event.accept()
|
|
132
|
+
return True
|
|
133
|
+
elif event_type == QEvent.Type.MouseButtonRelease:
|
|
134
|
+
if self._manual_move_origin is not None:
|
|
135
|
+
self._finish_manual_move()
|
|
136
|
+
event.accept()
|
|
137
|
+
return True
|
|
138
|
+
return False
|
|
139
|
+
|
|
140
|
+
def toggle_maximized(self) -> None:
|
|
141
|
+
if self.window.isMaximized():
|
|
142
|
+
self.window.showNormal()
|
|
143
|
+
else:
|
|
144
|
+
self.window.showMaximized()
|
|
145
|
+
self._sync_window_state()
|
|
146
|
+
|
|
147
|
+
def start_system_resize(self, edges: Qt.Edge) -> bool:
|
|
148
|
+
if self.window.isMaximized() or self.window.isFullScreen():
|
|
149
|
+
return False
|
|
150
|
+
handle = self.window.windowHandle()
|
|
151
|
+
if handle is None:
|
|
152
|
+
return False
|
|
153
|
+
try:
|
|
154
|
+
return bool(handle.startSystemResize(edges))
|
|
155
|
+
except (AttributeError, RuntimeError):
|
|
156
|
+
return False
|
|
157
|
+
|
|
158
|
+
def show_system_menu(self) -> None:
|
|
159
|
+
self._restore_action.setEnabled(
|
|
160
|
+
self.window.isMaximized() or self.window.isMinimized()
|
|
161
|
+
)
|
|
162
|
+
self._minimize_action.setEnabled(not self.window.isMinimized())
|
|
163
|
+
self._maximize_action.setEnabled(not self.window.isMaximized())
|
|
164
|
+
self.system_menu.popup(
|
|
165
|
+
self.window.mapToGlobal(QPoint(7, self.menu_bar.height()))
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
def _drag_allowed(self, watched: QWidget, position: QPoint) -> bool:
|
|
169
|
+
return not (
|
|
170
|
+
watched is self.menu_bar
|
|
171
|
+
and self.menu_bar.actionAt(position) is not None
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
def _begin_move(self, surface: QWidget, global_position: QPoint) -> None:
|
|
175
|
+
handle = self.window.windowHandle()
|
|
176
|
+
if handle is not None:
|
|
177
|
+
try:
|
|
178
|
+
if handle.startSystemMove():
|
|
179
|
+
return
|
|
180
|
+
except (AttributeError, RuntimeError):
|
|
181
|
+
pass
|
|
182
|
+
|
|
183
|
+
if self.window.isMaximized():
|
|
184
|
+
maximized = self.window.geometry()
|
|
185
|
+
normal = self.window.normalGeometry()
|
|
186
|
+
ratio = max(
|
|
187
|
+
0.0,
|
|
188
|
+
min(
|
|
189
|
+
1.0,
|
|
190
|
+
(global_position.x() - maximized.x())
|
|
191
|
+
/ max(1, maximized.width()),
|
|
192
|
+
),
|
|
193
|
+
)
|
|
194
|
+
self.window.showNormal()
|
|
195
|
+
self.window.move(
|
|
196
|
+
int(global_position.x() - normal.width() * ratio),
|
|
197
|
+
global_position.y() - min(16, self.menu_bar.height() // 2),
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
self._manual_move_origin = (
|
|
201
|
+
global_position,
|
|
202
|
+
self.window.frameGeometry().topLeft(),
|
|
203
|
+
)
|
|
204
|
+
self._manual_move_surface = surface
|
|
205
|
+
surface.grabMouse()
|
|
206
|
+
|
|
207
|
+
def _continue_manual_move(self, global_position: QPoint) -> None:
|
|
208
|
+
if self._manual_move_origin is None:
|
|
209
|
+
return
|
|
210
|
+
start, origin = self._manual_move_origin
|
|
211
|
+
self.window.move(origin + global_position - start)
|
|
212
|
+
|
|
213
|
+
def _finish_manual_move(self) -> None:
|
|
214
|
+
surface = self._manual_move_surface
|
|
215
|
+
self._manual_move_origin = None
|
|
216
|
+
self._manual_move_surface = None
|
|
217
|
+
if surface is not None:
|
|
218
|
+
surface.releaseMouse()
|
|
219
|
+
|
|
220
|
+
def _build_resize_handles(self) -> tuple[_ResizeHandle, ...]:
|
|
221
|
+
left = Qt.Edge.LeftEdge
|
|
222
|
+
right = Qt.Edge.RightEdge
|
|
223
|
+
top = Qt.Edge.TopEdge
|
|
224
|
+
bottom = Qt.Edge.BottomEdge
|
|
225
|
+
specs = (
|
|
226
|
+
("left edge", left, Qt.CursorShape.SizeHorCursor),
|
|
227
|
+
("right edge", right, Qt.CursorShape.SizeHorCursor),
|
|
228
|
+
("top edge", top, Qt.CursorShape.SizeVerCursor),
|
|
229
|
+
("bottom edge", bottom, Qt.CursorShape.SizeVerCursor),
|
|
230
|
+
("top-left corner", top | left, Qt.CursorShape.SizeFDiagCursor),
|
|
231
|
+
("top-right corner", top | right, Qt.CursorShape.SizeBDiagCursor),
|
|
232
|
+
("bottom-left corner", bottom | left, Qt.CursorShape.SizeBDiagCursor),
|
|
233
|
+
("bottom-right corner", bottom | right, Qt.CursorShape.SizeFDiagCursor),
|
|
234
|
+
)
|
|
235
|
+
return tuple(
|
|
236
|
+
_ResizeHandle(self, name, edges, cursor)
|
|
237
|
+
for name, edges, cursor in specs
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
def _sync_resize_handles(self) -> None:
|
|
241
|
+
visible = not (
|
|
242
|
+
self.window.isMaximized()
|
|
243
|
+
or self.window.isMinimized()
|
|
244
|
+
or self.window.isFullScreen()
|
|
245
|
+
)
|
|
246
|
+
if not visible:
|
|
247
|
+
for handle in self.resize_handles:
|
|
248
|
+
handle.hide()
|
|
249
|
+
return
|
|
250
|
+
|
|
251
|
+
width, height = self.window.width(), self.window.height()
|
|
252
|
+
border, corner = _RESIZE_BORDER, _RESIZE_CORNER
|
|
253
|
+
geometries = (
|
|
254
|
+
QRect(0, corner, border, max(0, height - 2 * corner)),
|
|
255
|
+
QRect(width - border, corner, border, max(0, height - 2 * corner)),
|
|
256
|
+
QRect(corner, 0, max(0, width - 2 * corner), border),
|
|
257
|
+
QRect(corner, height - border, max(0, width - 2 * corner), border),
|
|
258
|
+
QRect(0, 0, corner, corner),
|
|
259
|
+
QRect(width - corner, 0, corner, corner),
|
|
260
|
+
QRect(0, height - corner, corner, corner),
|
|
261
|
+
QRect(width - corner, height - corner, corner, corner),
|
|
262
|
+
)
|
|
263
|
+
for handle, geometry in zip(self.resize_handles, geometries, strict=True):
|
|
264
|
+
handle.setGeometry(geometry)
|
|
265
|
+
handle.show()
|
|
266
|
+
handle.raise_()
|
|
267
|
+
|
|
268
|
+
def _build_system_menu(self) -> QMenu:
|
|
269
|
+
menu = QMenu("Window", self.window)
|
|
270
|
+
menu.setObjectName("FramelessSystemMenu")
|
|
271
|
+
menu.setAccessibleName("PyCForge window menu")
|
|
272
|
+
actions = build_window_system_actions(
|
|
273
|
+
menu,
|
|
274
|
+
{
|
|
275
|
+
"restore": self.window.showNormal,
|
|
276
|
+
"minimize": self.window.showMinimized,
|
|
277
|
+
"maximize": self.window.showMaximized,
|
|
278
|
+
"close": self.window.close,
|
|
279
|
+
},
|
|
280
|
+
)
|
|
281
|
+
self._restore_action = actions["restore"]
|
|
282
|
+
self._minimize_action = actions["minimize"]
|
|
283
|
+
self._maximize_action = actions["maximize"]
|
|
284
|
+
menu.addAction(self._restore_action)
|
|
285
|
+
menu.addAction(self._minimize_action)
|
|
286
|
+
menu.addAction(self._maximize_action)
|
|
287
|
+
menu.addSeparator()
|
|
288
|
+
menu.addAction(actions["close"])
|
|
289
|
+
return menu
|
|
290
|
+
|
|
291
|
+
def _sync_window_state(self) -> None:
|
|
292
|
+
self.controls.sync_window_state()
|
|
293
|
+
self.controls.sync_available_width()
|
|
294
|
+
self.controls.schedule_available_width_sync()
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
def install_frameless_window_chrome(
|
|
298
|
+
window: QMainWindow,
|
|
299
|
+
menu_bar: QMenuBar,
|
|
300
|
+
) -> FramelessWindowChrome:
|
|
301
|
+
"""Install one retained chrome controller on an unshown main window."""
|
|
302
|
+
|
|
303
|
+
existing = getattr(window, "_frameless_window_chrome", None)
|
|
304
|
+
if isinstance(existing, FramelessWindowChrome):
|
|
305
|
+
return existing
|
|
306
|
+
chrome = FramelessWindowChrome(window, menu_bar)
|
|
307
|
+
window._frameless_window_chrome = chrome
|
|
308
|
+
return chrome
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
__all__ = [
|
|
312
|
+
"FramelessWindowChrome",
|
|
313
|
+
"install_frameless_window_chrome",
|
|
314
|
+
]
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"""Manual fallback handle for the frameless PyCForge main window."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Protocol
|
|
6
|
+
|
|
7
|
+
from PySide6.QtCore import QPoint, QRect, Qt
|
|
8
|
+
from PySide6.QtWidgets import QMainWindow, QWidget
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class _ResizeController(Protocol):
|
|
12
|
+
window: QMainWindow
|
|
13
|
+
|
|
14
|
+
def start_system_resize(self, edges: Qt.Edge) -> bool: ...
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class WindowResizeHandle(QWidget):
|
|
18
|
+
"""Prefer compositor resize and retain one bounded manual fallback."""
|
|
19
|
+
|
|
20
|
+
def __init__(
|
|
21
|
+
self,
|
|
22
|
+
controller: _ResizeController,
|
|
23
|
+
edge_name: str,
|
|
24
|
+
edges: Qt.Edge,
|
|
25
|
+
cursor: Qt.CursorShape,
|
|
26
|
+
) -> None:
|
|
27
|
+
super().__init__(controller.window)
|
|
28
|
+
self.controller = controller
|
|
29
|
+
self.edges = edges
|
|
30
|
+
self.setObjectName("FramelessResizeHandle")
|
|
31
|
+
self.setProperty("resizeEdge", edge_name)
|
|
32
|
+
self.setAccessibleName(f"Resize window from {edge_name}")
|
|
33
|
+
self.setCursor(cursor)
|
|
34
|
+
self._manual_origin: tuple[QPoint, QRect] | None = None
|
|
35
|
+
|
|
36
|
+
def mousePressEvent(self, event) -> None: # noqa: N802 - Qt API
|
|
37
|
+
if event.button() != Qt.MouseButton.LeftButton:
|
|
38
|
+
super().mousePressEvent(event)
|
|
39
|
+
return
|
|
40
|
+
if self.controller.start_system_resize(self.edges):
|
|
41
|
+
event.accept()
|
|
42
|
+
return
|
|
43
|
+
self._manual_origin = (
|
|
44
|
+
event.globalPosition().toPoint(),
|
|
45
|
+
self.controller.window.geometry(),
|
|
46
|
+
)
|
|
47
|
+
self.grabMouse()
|
|
48
|
+
event.accept()
|
|
49
|
+
|
|
50
|
+
def mouseMoveEvent(self, event) -> None: # noqa: N802 - Qt API
|
|
51
|
+
if self._manual_origin is None:
|
|
52
|
+
super().mouseMoveEvent(event)
|
|
53
|
+
return
|
|
54
|
+
start, original = self._manual_origin
|
|
55
|
+
delta = event.globalPosition().toPoint() - start
|
|
56
|
+
self.controller.window.setGeometry(
|
|
57
|
+
self._manual_geometry(original, delta)
|
|
58
|
+
)
|
|
59
|
+
event.accept()
|
|
60
|
+
|
|
61
|
+
def mouseReleaseEvent(self, event) -> None: # noqa: N802 - Qt API
|
|
62
|
+
if self._manual_origin is not None:
|
|
63
|
+
self._manual_origin = None
|
|
64
|
+
self.releaseMouse()
|
|
65
|
+
event.accept()
|
|
66
|
+
return
|
|
67
|
+
super().mouseReleaseEvent(event)
|
|
68
|
+
|
|
69
|
+
def _manual_geometry(self, original: QRect, delta: QPoint) -> QRect:
|
|
70
|
+
window = self.controller.window
|
|
71
|
+
minimum_width = window.minimumWidth()
|
|
72
|
+
minimum_height = window.minimumHeight()
|
|
73
|
+
maximum_width = window.maximumWidth()
|
|
74
|
+
maximum_height = window.maximumHeight()
|
|
75
|
+
x, y = original.x(), original.y()
|
|
76
|
+
width, height = original.width(), original.height()
|
|
77
|
+
|
|
78
|
+
if self.edges & Qt.Edge.LeftEdge:
|
|
79
|
+
proposed = max(minimum_width, min(maximum_width, width - delta.x()))
|
|
80
|
+
x += width - proposed
|
|
81
|
+
width = proposed
|
|
82
|
+
elif self.edges & Qt.Edge.RightEdge:
|
|
83
|
+
width = max(minimum_width, min(maximum_width, width + delta.x()))
|
|
84
|
+
if self.edges & Qt.Edge.TopEdge:
|
|
85
|
+
proposed = max(minimum_height, min(maximum_height, height - delta.y()))
|
|
86
|
+
y += height - proposed
|
|
87
|
+
height = proposed
|
|
88
|
+
elif self.edges & Qt.Edge.BottomEdge:
|
|
89
|
+
height = max(minimum_height, min(maximum_height, height + delta.y()))
|
|
90
|
+
return QRect(x, y, width, height)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
__all__ = ["WindowResizeHandle"]
|