# Path: src/controllers/utils.py
# def registerContext(func):
#     def wrapper(*args, **kwargs):
# def registerObj(name, obj):
# def duration_to_string(value, default="00:00", i=1000):
# def openLocalUrl(url):


import os
import sys
import json
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty
from PyQt5.QtGui import QCursor
from .utils import registerContext, contexts
from config.constants import ProjectPath
from dwidgets import ModelMetaclass
                  ('setting_background2', 'QString', u'阴影颜色'),
                  ('setting_backgroundSize', 'QString', u'阴影大小'),
                  ('setting_download', 'QString', u'下载'),
                  ('setting_downloadFolder', 'QString', u'下载目录'),
                  ('setting_about', 'QString', u'关于'),
                  ('search_online', 'QString', u'在线音乐'),
                  ('search_local', 'QString', u'本地音乐'),
                  ('suggestPlaylist', 'QString', u'推荐歌单'),
                  ('keyBingTipMessage', 'QString', u'请输入新的快捷键'),
                  ('info_songAbstract', 'QString', u'歌曲摘要'),
                  ('info_songType', 'QString', u'类型'),
                  ('info_songFormat', 'QString', u'格式'),
                  ('info_songSize', 'QString', u'大小'),
                  ('info_songDuration', 'QString', u'时长'),
                  ('info_songAge', 'QString', u'年代'),
                  ('info_songBitrate', 'QString', u'比特率'),
                  ('info_songSampleRate', 'QString', u'采样率'),
                  ('info_songPlayCount', 'QString', u'播放次数'),
                  ('info_detail', 'QString', u'详细信息'),
                  ('info_songTitle', 'QString', u'歌曲名'),
                  ('info_songArtist', 'QString', u'艺术家'),
                  ('info_songAlbum', 'QString', u'专辑'),
                  ('info_albumArtist', 'QString', u'专辑艺术家'),
                  ('info_songComposer', 'QString', u'作曲家'),
                  ('info_songTracks', 'QString', u'曲目'),
                  ('info_lyric', 'QString', u'歌词'),
                  ('info_options', 'QString', u'选项'), )

    __contextName__ = "I18nWorker"


# Path: src/controllers/utils.py
# def registerContext(func):
#     def wrapper(*args, **kwargs):
# def registerObj(name, obj):
# def duration_to_string(value, default="00:00", i=1000):
# def openLocalUrl(url):


# Path: src/controllers/i18nworker.py
import os
import sys
import json
from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, pyqtProperty
from PyQt5.QtGui import QCursor
from .utils import registerContext, contexts
from config.constants import ProjectPath
from dwidgets import ModelMetaclass

                  ('setting_background2', 'QString', u'阴影颜色'),
                  ('setting_backgroundSize', 'QString', u'阴影大小'),
                  ('setting_download', 'QString', u'下载'),
                  ('setting_downloadFolder', 'QString', u'下载目录'),
                  ('setting_about', 'QString', u'关于'),
                  ('search_online', 'QString', u'在线音乐'),
                  ('search_local', 'QString', u'本地音乐'),
                  ('suggestPlaylist', 'QString', u'推荐歌单'),
                  ('keyBingTipMessage', 'QString', u'请输入新的快捷键'),
                  ('info_songAbstract', 'QString', u'歌曲摘要'),
                  ('info_songType', 'QString', u'类型'),
                  ('info_songFormat', 'QString', u'格式'),
                  ('info_songSize', 'QString', u'大小'),
                  ('info_songDuration', 'QString', u'时长'),
                  ('info_songAge', 'QString', u'年代'),
                  ('info_songBitrate', 'QString', u'比特率'),
                  ('info_songSampleRate', 'QString', u'采样率'),
                  ('info_songPlayCount', 'QString', u'播放次数'),
                  ('info_detail', 'QString', u'详细信息'),
                  ('info_songTitle', 'QString', u'歌曲名'),
                  ('info_songArtist', 'QString', u'艺术家'),
                  ('info_songAlbum', 'QString', u'专辑'),
                  ('info_albumArtist', 'QString', u'专辑艺术家'),
                  ('info_songComposer', 'QString', u'作曲家'),
                  ('info_songTracks', 'QString', u'曲目'),
                  ('info_lyric', 'QString', u'歌词'),
                  ('info_options', 'QString', u'选项'), )

    __contextName__ = "I18nWorker"


    @registerContext