__init__.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. """
  2. 表格线编辑器核心模块
  3. """
  4. from .ui_components import (
  5. parse_ocr_data,
  6. create_file_uploader_section,
  7. create_display_settings_section,
  8. create_undo_redo_section,
  9. create_analysis_section,
  10. create_save_section
  11. )
  12. from .drawing import (
  13. draw_table_lines_with_numbers,
  14. draw_clean_table_lines,
  15. get_cached_table_lines_image,
  16. clear_table_image_cache
  17. )
  18. from .state_manager import (
  19. init_undo_stack,
  20. save_state_for_undo,
  21. undo_last_action,
  22. redo_last_action
  23. )
  24. from .config_loader import (
  25. load_structure_from_config,
  26. save_structure_to_config
  27. )
  28. from .adjustments import (
  29. create_adjustment_section
  30. )
  31. __all__ = [
  32. # UI 组件
  33. 'parse_ocr_data',
  34. 'create_file_uploader_section',
  35. 'create_display_settings_section',
  36. 'create_undo_redo_section',
  37. 'create_analysis_section',
  38. 'create_save_section',
  39. # 绘图
  40. 'draw_table_lines_with_numbers',
  41. 'draw_clean_table_lines',
  42. 'get_cached_table_lines_image',
  43. 'clear_table_image_cache',
  44. # 状态管理
  45. 'init_undo_stack',
  46. 'save_state_for_undo',
  47. 'undo_last_action',
  48. 'redo_last_action',
  49. # 配置
  50. 'load_structure_from_config',
  51. 'save_structure_to_config',
  52. # 调整
  53. 'create_adjustment_section',
  54. ]