Preferences/ConfigurationPages/EditorPropertiesPage.py

changeset 7
c679fb30c8f3
parent 0
de9c2efb9d02
child 12
1d8dd9706f46
equal deleted inserted replaced
6:52e8c820d0dd 7:c679fb30c8f3
174 """ 174 """
175 Public slot to save the Editor Properties (1) configuration. 175 Public slot to save the Editor Properties (1) configuration.
176 """ 176 """
177 # All 177 # All
178 Preferences.setEditor("AllFoldCompact", 178 Preferences.setEditor("AllFoldCompact",
179 int(self.allFoldCompactCheckBox.isChecked())) 179 self.allFoldCompactCheckBox.isChecked())
180 180
181 # Bash 181 # Bash
182 Preferences.setEditor("BashFoldComment", 182 Preferences.setEditor("BashFoldComment",
183 int(self.foldBashCommentCheckBox.isChecked())) 183 self.foldBashCommentCheckBox.isChecked())
184 184
185 # CMake 185 # CMake
186 Preferences.setEditor("CMakeFoldAtElse", 186 Preferences.setEditor("CMakeFoldAtElse",
187 int(self.cmakeFoldAtElseCheckBox.isChecked())) 187 self.cmakeFoldAtElseCheckBox.isChecked())
188 188
189 # C++ 189 # C++
190 Preferences.setEditor("CppFoldComment", 190 Preferences.setEditor("CppFoldComment",
191 int(self.foldCppCommentCheckBox.isChecked())) 191 self.foldCppCommentCheckBox.isChecked())
192 Preferences.setEditor("CppFoldPreprocessor", 192 Preferences.setEditor("CppFoldPreprocessor",
193 int(self.foldCppPreprocessorCheckBox.isChecked())) 193 self.foldCppPreprocessorCheckBox.isChecked())
194 Preferences.setEditor("CppFoldAtElse", 194 Preferences.setEditor("CppFoldAtElse",
195 int(self.foldCppAtElseCheckBox.isChecked())) 195 self.foldCppAtElseCheckBox.isChecked())
196 Preferences.setEditor("CppIndentOpeningBrace", 196 Preferences.setEditor("CppIndentOpeningBrace",
197 int(self.cppIndentOpeningBraceCheckBox.isChecked())) 197 self.cppIndentOpeningBraceCheckBox.isChecked())
198 Preferences.setEditor("CppIndentClosingBrace", 198 Preferences.setEditor("CppIndentClosingBrace",
199 int(self.cppIndentClosingBraceCheckBox.isChecked())) 199 self.cppIndentClosingBraceCheckBox.isChecked())
200 Preferences.setEditor("CppCaseInsensitiveKeywords", 200 Preferences.setEditor("CppCaseInsensitiveKeywords",
201 int(self.cppCaseInsensitiveCheckBox.isChecked())) 201 self.cppCaseInsensitiveCheckBox.isChecked())
202 Preferences.setEditor("CppDollarsAllowed", 202 Preferences.setEditor("CppDollarsAllowed",
203 int(self.cppDollarAllowedCheckBox.isChecked())) 203 self.cppDollarAllowedCheckBox.isChecked())
204 204
205 # CSS 205 # CSS
206 Preferences.setEditor("CssFoldComment", 206 Preferences.setEditor("CssFoldComment",
207 int(self.foldCssCommentCheckBox.isChecked())) 207 self.foldCssCommentCheckBox.isChecked())
208 208
209 # D 209 # D
210 Preferences.setEditor("DFoldComment", 210 Preferences.setEditor("DFoldComment",
211 int(self.foldDCommentCheckBox.isChecked())) 211 self.foldDCommentCheckBox.isChecked())
212 Preferences.setEditor("DFoldAtElse", 212 Preferences.setEditor("DFoldAtElse",
213 int(self.foldDAtElseCheckBox.isChecked())) 213 self.foldDAtElseCheckBox.isChecked())
214 Preferences.setEditor("DIndentOpeningBrace", 214 Preferences.setEditor("DIndentOpeningBrace",
215 int(self.dIndentOpeningBraceCheckBox.isChecked())) 215 self.dIndentOpeningBraceCheckBox.isChecked())
216 Preferences.setEditor("DIndentClosingBrace", 216 Preferences.setEditor("DIndentClosingBrace",
217 int(self.dIndentClosingBraceCheckBox.isChecked())) 217 self.dIndentClosingBraceCheckBox.isChecked())
218 218
219 # HTML 219 # HTML
220 Preferences.setEditor("HtmlFoldPreprocessor", 220 Preferences.setEditor("HtmlFoldPreprocessor",
221 int(self.foldHtmlPreprocessorCheckBox.isChecked())) 221 self.foldHtmlPreprocessorCheckBox.isChecked())
222 Preferences.setEditor("HtmlCaseSensitiveTags", 222 Preferences.setEditor("HtmlCaseSensitiveTags",
223 int(self.htmlCaseSensitiveTagsCheckBox.isChecked())) 223 self.htmlCaseSensitiveTagsCheckBox.isChecked())
224 Preferences.setEditor("HtmlFoldScriptComments", 224 Preferences.setEditor("HtmlFoldScriptComments",
225 int(self.foldHtmlScriptCommentsCheckBox.isChecked())) 225 self.foldHtmlScriptCommentsCheckBox.isChecked())
226 Preferences.setEditor("HtmlFoldScriptHeredocs", 226 Preferences.setEditor("HtmlFoldScriptHeredocs",
227 int(self.foldHtmlScriptHereDocsCheckBox.isChecked())) 227 self.foldHtmlScriptHereDocsCheckBox.isChecked())
228 228
229 # Pascal 229 # Pascal
230 if "Pascal" in self.languages: 230 if "Pascal" in self.languages:
231 Preferences.setEditor("PascalFoldComment", 231 Preferences.setEditor("PascalFoldComment",
232 int(self.foldPascalCommentCheckBox.isChecked())) 232 self.foldPascalCommentCheckBox.isChecked())
233 Preferences.setEditor("PascalFoldPreprocessor", 233 Preferences.setEditor("PascalFoldPreprocessor",
234 int(self.foldPascalPreprocessorCheckBox.isChecked())) 234 self.foldPascalPreprocessorCheckBox.isChecked())
235 Preferences.setEditor("PascalSmartHighlighting", 235 Preferences.setEditor("PascalSmartHighlighting",
236 int(self.pascalSmartHighlightingCheckBox.isChecked())) 236 self.pascalSmartHighlightingCheckBox.isChecked())
237 237
238 # Perl 238 # Perl
239 Preferences.setEditor("PerlFoldComment", 239 Preferences.setEditor("PerlFoldComment",
240 int(self.foldPerlCommentCheckBox.isChecked())) 240 self.foldPerlCommentCheckBox.isChecked())
241 Preferences.setEditor("PerlFoldPackages", 241 Preferences.setEditor("PerlFoldPackages",
242 int(self.foldPerlPackagesCheckBox.isChecked())) 242 self.foldPerlPackagesCheckBox.isChecked())
243 Preferences.setEditor("PerlFoldPODBlocks", 243 Preferences.setEditor("PerlFoldPODBlocks",
244 int(self.foldPerlPODBlocksCheckBox.isChecked())) 244 self.foldPerlPODBlocksCheckBox.isChecked())
245 245
246 # PostScript 246 # PostScript
247 if "PostScript" in self.languages: 247 if "PostScript" in self.languages:
248 Preferences.setEditor("PostScriptFoldAtElse", 248 Preferences.setEditor("PostScriptFoldAtElse",
249 int(self.psFoldAtElseCheckBox.isChecked())) 249 self.psFoldAtElseCheckBox.isChecked())
250 Preferences.setEditor("PostScriptTokenize", 250 Preferences.setEditor("PostScriptTokenize",
251 int(self.psMarkTokensCheckBox.isChecked())) 251 self.psMarkTokensCheckBox.isChecked())
252 Preferences.setEditor("PostScriptLevel", 252 Preferences.setEditor("PostScriptLevel",
253 self.psLevelSpinBox.value()) 253 self.psLevelSpinBox.value())
254 254
255 # Povray 255 # Povray
256 Preferences.setEditor("PovFoldComment", 256 Preferences.setEditor("PovFoldComment",
257 int(self.foldPovrayCommentCheckBox.isChecked())) 257 self.foldPovrayCommentCheckBox.isChecked())
258 Preferences.setEditor("PovFoldDirectives", 258 Preferences.setEditor("PovFoldDirectives",
259 int(self.foldPovrayDirectivesCheckBox.isChecked())) 259 self.foldPovrayDirectivesCheckBox.isChecked())
260 260
261 # Python 261 # Python
262 Preferences.setEditor("PythonFoldComment", 262 Preferences.setEditor("PythonFoldComment",
263 int(self.foldPythonCommentCheckBox.isChecked())) 263 self.foldPythonCommentCheckBox.isChecked())
264 Preferences.setEditor("PythonFoldString", 264 Preferences.setEditor("PythonFoldString",
265 int(self.foldPythonStringCheckBox.isChecked())) 265 self.foldPythonStringCheckBox.isChecked())
266 Preferences.setEditor("PythonBadIndentation", 266 Preferences.setEditor("PythonBadIndentation",
267 int(self.pythonBadIndentationCheckBox.isChecked())) 267 self.pythonBadIndentationCheckBox.isChecked())
268 Preferences.setEditor("PythonAutoIndent", 268 Preferences.setEditor("PythonAutoIndent",
269 int(self.pythonAutoindentCheckBox.isChecked())) 269 self.pythonAutoindentCheckBox.isChecked())
270 Preferences.setEditor("PythonAllowV2Unicode", 270 Preferences.setEditor("PythonAllowV2Unicode",
271 int(self.pythonV2UnicodeAllowedCheckBox.isChecked())) 271 self.pythonV2UnicodeAllowedCheckBox.isChecked())
272 Preferences.setEditor("PythonAllowV3Binary", 272 Preferences.setEditor("PythonAllowV3Binary",
273 int(self.pythonV3BinaryAllowedCheckBox.isChecked())) 273 self.pythonV3BinaryAllowedCheckBox.isChecked())
274 Preferences.setEditor("PythonAllowV3Bytes", 274 Preferences.setEditor("PythonAllowV3Bytes",
275 int(self.pythonV3BytesAllowedCheckBox.isChecked())) 275 self.pythonV3BytesAllowedCheckBox.isChecked())
276 276
277 # SQL 277 # SQL
278 Preferences.setEditor("SqlFoldComment", 278 Preferences.setEditor("SqlFoldComment",
279 int(self.foldSqlCommentCheckBox.isChecked())) 279 self.foldSqlCommentCheckBox.isChecked())
280 Preferences.setEditor("SqlBackslashEscapes", 280 Preferences.setEditor("SqlBackslashEscapes",
281 int(self.sqlBackslashEscapesCheckBox.isChecked())) 281 self.sqlBackslashEscapesCheckBox.isChecked())
282 282
283 # VHDL 283 # VHDL
284 Preferences.setEditor("VHDLFoldComment", 284 Preferences.setEditor("VHDLFoldComment",
285 int(self.vhdlFoldCommentCheckBox.isChecked())) 285 self.vhdlFoldCommentCheckBox.isChecked())
286 Preferences.setEditor("VHDLFoldAtElse", 286 Preferences.setEditor("VHDLFoldAtElse",
287 int(self.vhdlFoldAtElseCheckBox.isChecked())) 287 self.vhdlFoldAtElseCheckBox.isChecked())
288 Preferences.setEditor("VHDLFoldAtBegin", 288 Preferences.setEditor("VHDLFoldAtBegin",
289 int(self.vhdlFoldAtBeginCheckBox.isChecked())) 289 self.vhdlFoldAtBeginCheckBox.isChecked())
290 Preferences.setEditor("VHDLFoldAtParenthesis", 290 Preferences.setEditor("VHDLFoldAtParenthesis",
291 int(self.vhdlFoldAtParenthesisCheckBox.isChecked())) 291 self.vhdlFoldAtParenthesisCheckBox.isChecked())
292 292
293 # XML 293 # XML
294 Preferences.setEditor("XMLStyleScripts", 294 Preferences.setEditor("XMLStyleScripts",
295 int(self.xmlSyleScriptsCheckBox.isChecked())) 295 self.xmlSyleScriptsCheckBox.isChecked())
296 296
297 # YAML 297 # YAML
298 if "YAML" in self.languages: 298 if "YAML" in self.languages:
299 Preferences.setEditor("YAMLFoldComment", 299 Preferences.setEditor("YAMLFoldComment",
300 int(self.foldYamlCommentCheckBox.isChecked())) 300 self.foldYamlCommentCheckBox.isChecked())
301 301
302 def create(dlg): 302 def create(dlg):
303 """ 303 """
304 Module function to create the configuration page. 304 Module function to create the configuration page.
305 305

eric ide

mercurial