Document handling

New/Open/Save/Save as and Undo/Redo
This commit is contained in:
2026-07-26 13:41:23 +02:00
parent 38b8ee34ff
commit 4c3b8b4b6d
12 changed files with 506 additions and 4 deletions

View File

@@ -1,18 +1,26 @@
from __future__ import annotations
import sys
from PySide6.QtWidgets import QApplication
from bedit_gui.resources import resources_rc
from bedit_gui.controllers.document_controller import DocumentController
from bedit_gui.controllers.undo_controller import UndoController
from bedit_gui.documents import Document
from bedit_gui.resources.generated import resources_rc # noqa: F401
from bedit_gui.views.main_window import MainWindow
def main() -> int:
app = QApplication(sys.argv)
app.setOrganizationName("BEdit")
app.setApplicationName("BEdit")
document = Document(app)
window = MainWindow()
DocumentController(document, window)
UndoController(document, window)
window.show()
return app.exec()