33 self.dateFormatCombo.addItems(IrcPage.DateFormats) |
33 self.dateFormatCombo.addItems(IrcPage.DateFormats) |
34 |
34 |
35 # set initial values |
35 # set initial values |
36 # timestamps |
36 # timestamps |
37 self.timestampGroup.setChecked(Preferences.getIrc("ShowTimestamps")) |
37 self.timestampGroup.setChecked(Preferences.getIrc("ShowTimestamps")) |
38 self.showDateCheckBox.setChecked(Preferences.getIrc("TimestampIncludeDate")) |
38 self.showDateCheckBox.setChecked( |
|
39 Preferences.getIrc("TimestampIncludeDate")) |
39 self.timeFormatCombo.setCurrentIndex( |
40 self.timeFormatCombo.setCurrentIndex( |
40 self.timeFormatCombo.findText(Preferences.getIrc("TimeFormat"))) |
41 self.timeFormatCombo.findText(Preferences.getIrc("TimeFormat"))) |
41 self.dateFormatCombo.setCurrentIndex( |
42 self.dateFormatCombo.setCurrentIndex( |
42 self.dateFormatCombo.findText(Preferences.getIrc("DateFormat"))) |
43 self.dateFormatCombo.findText(Preferences.getIrc("DateFormat"))) |
43 |
44 |
64 Preferences.getIrc, byName=True) |
65 Preferences.getIrc, byName=True) |
65 self.initColour("ChannelInfoColour", self.infoButton, |
66 self.initColour("ChannelInfoColour", self.infoButton, |
66 Preferences.getIrc, byName=True) |
67 Preferences.getIrc, byName=True) |
67 |
68 |
68 # notifications |
69 # notifications |
69 self.notificationsGroup.setChecked(Preferences.getIrc("ShowNotifications")) |
70 self.notificationsGroup.setChecked( |
|
71 Preferences.getIrc("ShowNotifications")) |
70 self.joinLeaveCheckBox.setChecked(Preferences.getIrc("NotifyJoinPart")) |
72 self.joinLeaveCheckBox.setChecked(Preferences.getIrc("NotifyJoinPart")) |
71 self.messageCheckBox.setChecked(Preferences.getIrc("NotifyMessage")) |
73 self.messageCheckBox.setChecked(Preferences.getIrc("NotifyMessage")) |
72 self.ownNickCheckBox.setChecked(Preferences.getIrc("NotifyNick")) |
74 self.ownNickCheckBox.setChecked(Preferences.getIrc("NotifyNick")) |
73 |
75 |
74 # IRC text colors |
76 # IRC text colors |
106 Preferences.getIrc, byName=True) |
108 Preferences.getIrc, byName=True) |
107 |
109 |
108 # Automatic User Information Lookup |
110 # Automatic User Information Lookup |
109 self.whoGroup.setChecked(Preferences.getIrc("AutoUserInfoLookup")) |
111 self.whoGroup.setChecked(Preferences.getIrc("AutoUserInfoLookup")) |
110 self.whoUsersSpinBox.setValue(Preferences.getIrc("AutoUserInfoMax")) |
112 self.whoUsersSpinBox.setValue(Preferences.getIrc("AutoUserInfoMax")) |
111 self.whoIntervalSpinBox.setValue(Preferences.getIrc("AutoUserInfoInterval")) |
113 self.whoIntervalSpinBox.setValue( |
|
114 Preferences.getIrc("AutoUserInfoInterval")) |
112 |
115 |
113 # Markers |
116 # Markers |
114 self.markWhenHiddenCheckBox.setChecked( |
117 self.markWhenHiddenCheckBox.setChecked( |
115 Preferences.getIrc("MarkPositionWhenHidden")) |
118 Preferences.getIrc("MarkPositionWhenHidden")) |
116 self.initColour("MarkerLineForegroundColour", self.markerForegroundButton, |
119 self.initColour("MarkerLineForegroundColour", |
|
120 self.markerForegroundButton, |
117 Preferences.getIrc, byName=True) |
121 Preferences.getIrc, byName=True) |
118 self.initColour("MarkerLineBackgroundColour", self.markerBackgroundButton, |
122 self.initColour("MarkerLineBackgroundColour", |
|
123 self.markerBackgroundButton, |
119 Preferences.getIrc, byName=True) |
124 Preferences.getIrc, byName=True) |
120 |
125 |
121 # Shutdown |
126 # Shutdown |
122 self.confirmShutdownCheckBox.setChecked( |
127 self.confirmShutdownCheckBox.setChecked( |
123 Preferences.getIrc("AskOnShutdown")) |
128 Preferences.getIrc("AskOnShutdown")) |
126 """ |
131 """ |
127 Public slot to save the IRC configuration. |
132 Public slot to save the IRC configuration. |
128 """ |
133 """ |
129 # timestamps |
134 # timestamps |
130 Preferences.setIrc("ShowTimestamps", self.timestampGroup.isChecked()) |
135 Preferences.setIrc("ShowTimestamps", self.timestampGroup.isChecked()) |
131 Preferences.setIrc("TimestampIncludeDate", self.showDateCheckBox.isChecked()) |
136 Preferences.setIrc( |
|
137 "TimestampIncludeDate", self.showDateCheckBox.isChecked()) |
132 Preferences.setIrc("TimeFormat", self.timeFormatCombo.currentText()) |
138 Preferences.setIrc("TimeFormat", self.timeFormatCombo.currentText()) |
133 Preferences.setIrc("DateFormat", self.dateFormatCombo.currentText()) |
139 Preferences.setIrc("DateFormat", self.dateFormatCombo.currentText()) |
134 |
140 |
135 # notifications |
141 # notifications |
136 Preferences.setIrc("ShowNotifications", self.notificationsGroup.isChecked()) |
142 Preferences.setIrc( |
137 Preferences.setIrc("NotifyJoinPart", self.joinLeaveCheckBox.isChecked()) |
143 "ShowNotifications", self.notificationsGroup.isChecked()) |
|
144 Preferences.setIrc( |
|
145 "NotifyJoinPart", self.joinLeaveCheckBox.isChecked()) |
138 Preferences.setIrc("NotifyMessage", self.messageCheckBox.isChecked()) |
146 Preferences.setIrc("NotifyMessage", self.messageCheckBox.isChecked()) |
139 Preferences.setIrc("NotifyNick", self.ownNickCheckBox.isChecked()) |
147 Preferences.setIrc("NotifyNick", self.ownNickCheckBox.isChecked()) |
140 |
148 |
141 # Automatic User Information Lookup |
149 # Automatic User Information Lookup |
142 Preferences.setIrc("AutoUserInfoLookup", self.whoGroup.isChecked()) |
150 Preferences.setIrc("AutoUserInfoLookup", self.whoGroup.isChecked()) |
143 Preferences.setIrc("AutoUserInfoMax", self.whoUsersSpinBox.value()) |
151 Preferences.setIrc("AutoUserInfoMax", self.whoUsersSpinBox.value()) |
144 Preferences.setIrc("AutoUserInfoInterval", self.whoIntervalSpinBox.value()) |
152 Preferences.setIrc( |
|
153 "AutoUserInfoInterval", self.whoIntervalSpinBox.value()) |
145 |
154 |
146 # Markers |
155 # Markers |
147 Preferences.setIrc("MarkPositionWhenHidden", |
156 Preferences.setIrc("MarkPositionWhenHidden", |
148 self.markWhenHiddenCheckBox.isChecked()) |
157 self.markWhenHiddenCheckBox.isChecked()) |
149 |
158 |
150 # Shutdown |
159 # Shutdown |
151 Preferences.setIrc("AskOnShutdown", self.confirmShutdownCheckBox.isChecked()) |
160 Preferences.setIrc( |
|
161 "AskOnShutdown", self.confirmShutdownCheckBox.isChecked()) |
152 |
162 |
153 # colours |
163 # colours |
154 self.saveColours(Preferences.setIrc) |
164 self.saveColours(Preferences.setIrc) |
155 |
165 |
156 |
166 |