text: # ------------------------------------------------------------------------------
  #   BSD 2-Clause License
  #   
  #   Copyright (c) 2019, Thomas Larsson
  #   All rights reserved.
  #   
  #   Redistribution and use in source and binary forms, with or without
  #   modification, are permitted provided that the following conditions are met:
  #   
  #   1. Redistributions of source code must retain the above copyright notice, this
  #      list of conditions and the following disclaimer.
  #   
  #   2. Redistributions in binary form must reproduce the above copyright notice,
  #      this list of conditions and the following disclaimer in the documentation
  #      and/or other materials provided with the distribution.
  #   
  #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  #   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  #   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  #   DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  #   FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  #   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  #   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  #   CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  #   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  # ------------------------------------------------------------------------------
  
  
  
  import bpy
  from bpy.props import *
  from bpy_extras.io_utils import ImportHelper, ExportHelper
  
  
  class SaveTargetExport(ExportHelper):
      filename_ext = ".trg"
      filter_glob : StringProperty(default="*.trg", options={'HIDDEN'})
      filepath : StringProperty(name="File Path", description="Filepath to target file", maxlen=1024, default="")
  
  
  class LoadBVH(ImportHelper):
      filename_ext = ".bvh"
      filter_glob : StringProperty(default="*.bvh", options={'HIDDEN'})
      filepath : StringProperty(name="File Path", description="Filepath used for importing the BVH file", maxlen=1024, default="")
  
  
  class LoadJson(ImportHelper):
      filename_ext = ".json"
      filter_glob : StringProperty(default="*.json", options={'HIDDEN'})
      filepath : StringProperty(name="File Path", description="Filepath to tpose file", maxlen=1024, default="")
  
  
  class ProblemsString:
      problems = ""
  
  
  class TypeString:
      type : StringProperty()
  
  
  class AnswerString:
      answer : StringProperty()
  
  
  class PropString:
      prop : StringProperty()
  
  
  class LocRotDel:
      loc : BoolProperty("Loc", default=False)
      rot : BoolProperty("Rot", default=False)
      delete : BoolProperty("Del", default=False)
  
  
  class LeftLast:
      left : BoolProperty("Loc", default=False)
      last : BoolProperty("Rot", default=False)
  
  