simvx.ide.file_controller

File tab management – open, save, close, quit with unsaved-change prompting.

Module Contents

Classes

FileTabController

Manages file lifecycle actions for the IDE.

Data

log

API

simvx.ide.file_controller.log[source]

‘getLogger(…)’

class simvx.ide.file_controller.FileTabController(ide: simvx.ide.app.IDERoot)[source]

Manages file lifecycle actions for the IDE.

All methods access IDE components through the ide reference passed at construction time, keeping this controller decoupled from the node tree.

Initialization

property state
property config
on_file_new()[source]
on_file_open()[source]
open_file(path: str)[source]

Open a file in the editor panel.

on_open_folder()[source]
on_file_save()[source]
on_file_save_as()[source]
on_file_close()[source]
on_tab_close_via_button(path: str)[source]

Handle close-button click on any tab (not just the active one).

on_quit()[source]
get_unsaved_files() list[str][source]

Return list of paths with unsaved modifications.

on_file_deleted(path: str)[source]

Close tab if deleted file was open.

on_file_renamed(old_path: str, new_path: str)[source]

Update tab when file is renamed.