How meaneye/sunflower works
Main Components
a. Core Application Layer:
• Main Window Manager (sunflower/gui/main_window.py)
• Configuration Manager (sunflower/config.py)
• Plugin System (sunflower/plugin_base/)
• Operation Manager (sunflower/operation.py)
b. Plugin Architecture:
• Plugin Base System
• Core Plugins (file_list, archive_support, etc.)
• User Plugins (~/.config/sunflower/user_plugins/)
c. GUI Components:
• Twin Panel Interface
• Toolbar System
• Widgets Layer
• Preferences System
┌─ User Interface Layer ─────────────────────┐
• Main Window │
• ┌─────────────┐ ┌─────────────┐ ┌───────┐ │
• Left Panel │ │ Right Panel │ │Toolbar│ │
• ┘ └─────────────┘ └───────┘ │
• Core Services Layer ────────────────────┐ │
• ┌──────────┐ ┌─────────┐ ┌───────────┐ │ │
• Operations│ │Config │ │Accelerator│ │ │
• ┘ └─────────┘ └───────────┘ │ │
• Plugin System ───────────────────────────┤
• ┌─────────────┐ ┌──────────┐ ┌────────┐ │
• Plugin Base │ │Extension │ │Provider│ │
• ┘ └──────────┘ └────────┘ │
• ┘
Important Relationships
a. Plugin System Integration:
• How plugins extend core functionality
• Plugin loading mechanism
• Extension points for:
• File operations
• Column management
• Viewer extensions
• Rename operations
b. File System Integration:
• Local file system access
• Archive handling
• Remote file system support (GIO)
Key Architectural Patterns to Highlight
• Plugin-based architecture
• MVC pattern in GUI components
• Event-driven system for file operations
• Provider pattern for file system access
Implementation Details
Use these symbols and conventions:
• Double lines: Plugin extension points
• Diamonds: Component aggregation