# Import all UI functionality
from .preview import *
from .panels import (
    TEXT_TEXTURE_PT_panel,
    TEXT_TEXTURE_PT_panel_3d,
    TEXT_TEXTURE_PT_panel_properties,
)

# Menu functions for Blender integration
def menu_func_node_editor(self, context):
    pass
    """Add menu item to Node Editor's Add menu"""
    self.layout.operator("text_texture.generate", text="Text Texture", icon='IMAGE_DATA')

def menu_func_view3d(self, context):
    pass
    """Add menu item to 3D View's Add menu"""
    self.layout.operator("text_texture.generate", text="Text Texture", icon='IMAGE_DATA')

def menu_func_image(self, context):
    pass
    """Add menu item to Image Editor menu"""
    self.layout.operator("text_texture.generate", text="Text Texture", icon='IMAGE_DATA')

# Export all UI functions
__all__ = [
    'TEXT_TEXTURE_PT_panel',
    'TEXT_TEXTURE_PT_panel_3d',
    'TEXT_TEXTURE_PT_panel_properties',
    'menu_func_node_editor',
    'menu_func_view3d',
    'menu_func_image'
]