-
Notifications
You must be signed in to change notification settings - Fork 4
/
DefaultSettings.py
108 lines (103 loc) · 2.8 KB
/
DefaultSettings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# -*- coding: utf-8 -*-
#default config
from ConfigManager import *
class DefaultSettings:
def get():
config = ConfigManager()
config["general"]={
"language": "ja-JP",
"fileVersion": "101",
"locale": "ja-JP",
"initialCommentCount": 50,
"commentToSns": 0,
"timerType": 0,
"historyMax": 10,
"defaultConnectAccount": "",
"openLivewindow": False,
"update": True,
"timeout": 3,
"displayOnConnectDialog": 1,
"autoconnect": True,
"titlebar": 1,
"log_level": "0",
"checkPoint": True,
}
config["view"]={
"font": "bold 'MS ゴシック' 22 windows-932",
"colorMode":"normal",
"textWrapping":"off"
}
config["mainView"]={
"sizeX": "800",
"sizeY": "600",
}
config["speech"] = {
"reader": "SAPI5",
}
config["autoReadingOptions"]={
"readReceivedComments": True,
"receivedCommentsAnnouncement": "$dispname,$message,$time,$user",
"readMyComment": True,
"readMentions_myLive": 1,
"readMentions_otherLive": 1,
"readViewersIncreased": True,
"viewersIncreasedAnnouncement": "@@@viewers_increased@@@",
"readViewersDecreased": True,
"viewersDecreasedAnnouncement": "@@@viewers_decreased@@@",
"readTypingUser": False,
"readReceivedItems": True,
"readItemPostedUser": 0,
"readRemainingTime": True,
}
config["commentReplaceBasic"]={
}
config["commentReplaceReg"] = {
}
config["commentReplaceSpecial"] = {
"deleteProtcolName": False,
"onlyDomain": False,
"url": ""
}
config["nameReplace"] = {
}
config["livePlay"]={
"autoPlay": False,
"defaultVolume": 100,
"audioDelay": 10,
"device": "",
"login": False,
}
config["fx"] = {
"playCommentReceivedSound": True,
"commentReceivedSound": "fx\\receive.wav",
"playCommentReceivedSoundIfSkipped": False,
"playViewersIncreasedSound": True,
"viewersIncreasedSound": "fx\\info.wav",
"playViewersDecreasedSound": True,
"viewersDecreasedSound": "fx\\info.wav",
"playItemReceivedSound": True,
"itemReceivedSound": "fx\\item.wav",
"playCommentPostedSound": True,
"commentPostedSound": "fx\\comsend.wav",
"playTypingSound": True,
"typingSound": "fx\\typing.wav",
"playTimerSound": True,
"timerSound": "fx\\time.wav",
"playStartupSound": False,
"startupSound": "fx\\info.wav",
"playOtherSound": True,
"otherSound": "fx\\info.wav",
"syncAudioDevice": False,
"fxVolume": 100
}
config["proxy"] = {
"useManualSetting": False,
"server": "",
"port": 8080
}
return config
initialValues={}
"""
この辞書には、ユーザによるキーの削除が許されるが、初回起動時に組み込んでおきたい設定のデフォルト値を設定する。
ここでの設定はユーザの環境に設定ファイルがなかった場合のみ適用され、初期値として保存される。
"""