AI'ed clipboard

This commit is contained in:
2026-07-27 16:35:02 +02:00
parent 5df9e53d58
commit 346a963acc
8 changed files with 492 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ import argparse
from PySide6.QtWidgets import QApplication
from bedit_gui.controllers.clipboard_controller import ClipboardController, DocumentTreeClipboardHandler, TextClipboardHandler
from bedit_gui.controllers.document_controller import DocumentController
from bedit_gui.controllers.log_controller import LogController
from bedit_gui.controllers.settings_controller import SettingsController
@@ -14,6 +15,7 @@ from bedit_gui.controllers.window_state_controller import WindowStateController
from bedit_gui.controllers.document_tree_controller import DocumentTreeController
from bedit_gui.documents import Document
from bedit_gui.services.application_settings import ApplicationSettings
from bedit_gui.services.clipboard import ClipboardService
from bedit_gui.views.main_window import MainWindow
def parse_arguments():
@@ -46,7 +48,9 @@ def main() -> int:
SettingsController(window, settings)
UndoController(document, window)
ViewMenuController(window)
DocumentTreeController(document, window)
document_tree_controller = DocumentTreeController(document, window)
clipboard = ClipboardService(app)
ClipboardController(window, clipboard, [TextClipboardHandler(clipboard), DocumentTreeClipboardHandler(document, window.ui.documentTree, document_tree_controller.model, clipboard)])
window_state_controller = WindowStateController(app, window)
window_state_controller.restore()