import ipywidgets as widgets
from traitlets import Unicode, List
import uuid


@widgets.register
class HelloWorld(widgets.DOMWidget):
    """An example widget."""
    _view_name = Unicode('HelloView').tag(sync=True)
    _model_name = Unicode('HelloModel').tag(sync=True)
    _view_module = Unicode('genomefeatures').tag(sync=True)
    _model_module = Unicode('genomefeatures').tag(sync=True)
    _view_module_version = Unicode('^0.1.0').tag(sync=True)
    _model_module_version = Unicode('^0.1.0').tag(sync=True)
    value = Unicode('Hello World!').tag(sync=True)


@widgets.register
class GenomeFeature(widgets.DOMWidget):
    """An example widget."""
    _view_name = Unicode('GenomeFeatureView').tag(sync=True)
    _model_name = Unicode('GenomeFeatureModel').tag(sync=True)
    _view_module = Unicode('genomefeatures').tag(sync=True)
    _model_module = Unicode('genomefeatures').tag(sync=True)
    _view_module_version = Unicode('^0.1.0').tag(sync=True)
    _model_module_version = Unicode('^0.1.0').tag(sync=True)
    title = Unicode().tag(sync=True)
    location = Unicode().tag(sync=True)
    chromosome = Unicode().tag(sync=True)
    genome = Unicode().tag(sync=True)
    gene = Unicode().tag(sync=True)
    track = Unicode().tag(sync=True)
    highlightNames = List().tag(sync=True)
    server = Unicode().tag(sync=True)
