# 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_fade', 'QString', u'启用淡出淡入'),
                  ('setting_close', 'QString', u'关闭'),
                  ('setting_minimized', 'QString', u'最小化到托盘'),
                  ('setting_quit', 'QString', u'立即退出'),
                  ('setting_addtoPlaylist', 'QString', u'添加音乐到播放列表'),
                  ('setting_firstPlay', 'QString', u'优先播放'),
                  ('setting_nextPaly', 'QString', u'下一首播放'),
                  ('setting_lastPlay', 'QString', u'最后播放'),
                  ('setting_keyBindings', 'QString', u'快捷键'),
                  ('setting_enableKeyBindings', 'QString', u'启用快捷键'),
                  ('setting_preivous', 'QString', u'上一首'),
                  ('setting_next', 'QString', u'下一首'),
                  ('setting_volumnIncrease', 'QString', u'音量增大'),
                  ('setting_volumeDecrease', 'QString', u'音量减小'),
                  ('setting_playPause', 'QString', u'暂停/继续'),
                  ('setting_simpleFullMode', 'QString', u'简洁/完整模式'),
                  ('setting_miniFullMode', 'QString', u'迷你/完整模式'),
                  ('setting_hideShowWindow', 'QString', u'隐藏/显示窗口'),
                  ('setting_hideShowDesktopLRC', 'QString', u'隐藏/显示桌面歌词'),
                  ('setting_desktopLRC', 'QString', u'桌面歌词'),
                  ('setting_fontType', 'QString', u'字体'),
                  ('setting_fontSize', 'QString', u'字号'),
                  ('setting_fontItalic', 'QString', u'字型'),
                  ('setting_lineNumber', 'QString', u'行数'),
                  ('setting_fontAlignment', 'QString', u'对齐'),
                  ('setting_background1', 'QString', u'字体颜色'),
                  ('setting_background2', 'QString', u'阴影颜色'),
                  ('setting_backgroundSize', 'QString', u'阴影大小'),
                  ('setting_download', 'QString', u'下载'),
                  ('setting_downloadFolder', 'QString', u'下载目录'),

# 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_fade', 'QString', u'启用淡出淡入'),
                  ('setting_close', 'QString', u'关闭'),
                  ('setting_minimized', 'QString', u'最小化到托盘'),
                  ('setting_quit', 'QString', u'立即退出'),
                  ('setting_addtoPlaylist', 'QString', u'添加音乐到播放列表'),
                  ('setting_firstPlay', 'QString', u'优先播放'),
                  ('setting_nextPaly', 'QString', u'下一首播放'),
                  ('setting_lastPlay', 'QString', u'最后播放'),
                  ('setting_keyBindings', 'QString', u'快捷键'),
                  ('setting_enableKeyBindings', 'QString', u'启用快捷键'),
                  ('setting_preivous', 'QString', u'上一首'),
                  ('setting_next', 'QString', u'下一首'),
                  ('setting_volumnIncrease', 'QString', u'音量增大'),
                  ('setting_volumeDecrease', 'QString', u'音量减小'),
                  ('setting_playPause', 'QString', u'暂停/继续'),
                  ('setting_simpleFullMode', 'QString', u'简洁/完整模式'),
                  ('setting_miniFullMode', 'QString', u'迷你/完整模式'),
                  ('setting_hideShowWindow', 'QString', u'隐藏/显示窗口'),
                  ('setting_hideShowDesktopLRC', 'QString', u'隐藏/显示桌面歌词'),
                  ('setting_desktopLRC', 'QString', u'桌面歌词'),
                  ('setting_fontType', 'QString', u'字体'),
                  ('setting_fontSize', 'QString', u'字号'),
                  ('setting_fontItalic', 'QString', u'字型'),
                  ('setting_lineNumber', 'QString', u'行数'),
                  ('setting_fontAlignment', 'QString', u'对齐'),
                  ('setting_background1', 'QString', u'字体颜色'),
                  ('setting_background2', 'QString', u'阴影颜色'),
                  ('setting_backgroundSize', 'QString', u'阴影大小'),
                  ('setting_download', 'QString', u'下载'),
                  ('setting_downloadFolder', 'QString', u'下载目录'),

                  ('setting_about', 'QString', u'关于'),