from sarpy.annotation.annotate import FileAnnotationCollection
from sarpy.annotation.schema_processing import LabelSchema
from sarpy.annotation.annotate import Annotation
from tkbuilder.panel_templates.image_canvas_panel.image_canvas_panel import ImageCanvasPanel
import os


class AppVariables:
    def __init__(self):
        self.image_fname = None     # type: str

        # set up label schema stuff
        self.label_schema = LabelSchema
        self.file_annotation_collection = FileAnnotationCollection
        self.file_annotation_fname = None                   # type: str
        self.canvas_geom_ids_to_annotations_id_dict = {}
        self.annotate_canvas = ImageCanvasPanel                  # type: ImageCanvasPanel
        self.context_canvas = ImageCanvasPanel                   # type: ImageCanvasPanel
        self.new_annotation = False                         # type: bool
