| 1163 | | void pMonkeyStudio::setCurrentTabTextColor( const QColor& c ) |
| 1164 | | { MonkeyCore::settings()->setValue( settingsPath() +"/CurrentTabTextColor", c ); } |
| 1165 | | |
| | 1173 | /*! |
| | 1174 | \details Set the current tab text color |
| | 1175 | \param color The current tab text color |
| | 1176 | */ |
| | 1177 | void pMonkeyStudio::setCurrentTabTextColor( const QColor& color ) |
| | 1178 | { MonkeyCore::settings()->setValue( settingsPath() +"/CurrentTabTextColor", color ); } |
| | 1179 | |
| | 1180 | /*! |
| | 1181 | \details Return the current tab text color |
| | 1182 | */ |
| 1183 | | void pMonkeyStudio::setExternalChanges( pMonkeyStudio::ExternalChangesMode e ) |
| 1184 | | { MonkeyCore::settings()->setValue( settingsPath() +"/ExternalChanges", e ); } |
| 1185 | | |
| | 1207 | /*! |
| | 1208 | \details Set the external changes react mode |
| | 1209 | \param mode The mode to apply |
| | 1210 | */ |
| | 1211 | void pMonkeyStudio::setExternalChanges( pMonkeyStudio::ExternalChangesMode mode ) |
| | 1212 | { MonkeyCore::settings()->setValue( settingsPath() +"/ExternalChanges", mode ); } |
| | 1213 | |
| | 1214 | /*! |
| | 1215 | \details Return the external changes react mode |
| | 1216 | */ |
| 1189 | | void pMonkeyStudio::setSaveSessionOnClose( bool b ) |
| 1190 | | { MonkeyCore::settings()->setValue( settingsPath() +"/SaveSessionOnClose", b ); } |
| 1191 | | |
| | 1220 | /*! |
| | 1221 | \details Set if session must be save on close |
| | 1222 | \param save If true, session is saved, else not |
| | 1223 | */ |
| | 1224 | void pMonkeyStudio::setSaveSessionOnClose( bool save ) |
| | 1225 | { MonkeyCore::settings()->setValue( settingsPath() +"/SaveSessionOnClose", save ); } |
| | 1226 | |
| | 1227 | /*! |
| | 1228 | \details Return true if session is saved at close, else false |
| | 1229 | */ |
| 1195 | | void pMonkeyStudio::setRestoreSessionOnStartup( bool b ) |
| 1196 | | { MonkeyCore::settings()->setValue( settingsPath() +"/RestoreSessionOnStartup", b ); } |
| 1197 | | |
| | 1233 | /*! |
| | 1234 | \details Set if session is restored on startup |
| | 1235 | \param restore If true, session will be restored on startup, else not |
| | 1236 | */ |
| | 1237 | void pMonkeyStudio::setRestoreSessionOnStartup( bool restore ) |
| | 1238 | { MonkeyCore::settings()->setValue( settingsPath() +"/RestoreSessionOnStartup", restore ); } |
| | 1239 | |
| | 1240 | /*! |
| | 1241 | \details Return true if session will be restored on startup, else false |
| | 1242 | */ |
| 1201 | | void pMonkeyStudio::setAutoSyntaxCheck( bool b ) |
| 1202 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoSyntaxCheck", b ); } |
| 1203 | | |
| | 1246 | /*! |
| | 1247 | \details Set if auto syntax check is performed |
| | 1248 | \param activate If true, automatic syntax check will be performed, else not |
| | 1249 | */ |
| | 1250 | void pMonkeyStudio::setAutoSyntaxCheck( bool activate ) |
| | 1251 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoSyntaxCheck", activate ); } |
| | 1252 | |
| | 1253 | /*! |
| | 1254 | \details Return true if auto syntax check is performed, else false |
| | 1255 | */ |
| 1207 | | void pMonkeyStudio::setConvertTabsUponOpen( bool b ) |
| 1208 | | { MonkeyCore::settings()->setValue( settingsPath() +"/ConvertTabsUponOpen", b ); } |
| 1209 | | |
| | 1259 | /*! |
| | 1260 | \details Set is tabs are converted upon open |
| | 1261 | \param convert If true tabs will be converted, else not |
| | 1262 | */ |
| | 1263 | void pMonkeyStudio::setConvertTabsUponOpen( bool convert ) |
| | 1264 | { MonkeyCore::settings()->setValue( settingsPath() +"/ConvertTabsUponOpen", convert ); } |
| | 1265 | |
| | 1266 | /*! |
| | 1267 | \details Return true if tabs are converted upon open, else false |
| | 1268 | */ |
| 1213 | | void pMonkeyStudio::setCreateBackupUponOpen( bool b ) |
| 1214 | | { MonkeyCore::settings()->setValue( settingsPath() +"/CreateBackupUponOpen", b ); } |
| 1215 | | |
| | 1272 | /*! |
| | 1273 | \details Set if file are backup upon open |
| | 1274 | \param backup If true, file is backup upon open |
| | 1275 | */ |
| | 1276 | void pMonkeyStudio::setCreateBackupUponOpen( bool backup ) |
| | 1277 | { MonkeyCore::settings()->setValue( settingsPath() +"/CreateBackupUponOpen", backup ); } |
| | 1278 | |
| | 1279 | /*! |
| | 1280 | \details Return true if file is backup upon open, else false |
| | 1281 | */ |
| 1219 | | void pMonkeyStudio::setAutoEolConversion( bool b ) |
| 1220 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoEolConversion", b ); } |
| 1221 | | |
| | 1285 | /*! |
| | 1286 | \details Set if eol are convert upon open |
| | 1287 | \param convert If true, eol are convert, else not |
| | 1288 | */ |
| | 1289 | void pMonkeyStudio::setAutoEolConversion( bool convert ) |
| | 1290 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoEolConversion", convert ); } |
| | 1291 | |
| | 1292 | /*! |
| | 1293 | \details Return true if eol are convert, else false |
| | 1294 | */ |
| 1225 | | void pMonkeyStudio::setDefaultEncoding( const QString& s ) |
| 1226 | | { MonkeyCore::settings()->setValue( settingsPath() +"/DefaultEncoding", s ); } |
| 1227 | | |
| | 1298 | /*! |
| | 1299 | \details Set the default used encoding for opening/saving files |
| | 1300 | \param codec The codec to use |
| | 1301 | */ |
| | 1302 | void pMonkeyStudio::setDefaultEncoding( const QString& codec ) |
| | 1303 | { MonkeyCore::settings()->setValue( settingsPath() +"/DefaultEncoding", codec ); } |
| | 1304 | |
| | 1305 | /*! |
| | 1306 | \details Return the default used encoding for opening/saving files. Default UTF-8 |
| | 1307 | */ |
| 1231 | | void pMonkeyStudio::setSelectionBackgroundColor( const QColor& c ) |
| 1232 | | { MonkeyCore::settings()->setValue( settingsPath() +"/SelectionBackgroundColor", c ); } |
| 1233 | | |
| | 1311 | /*! |
| | 1312 | \details Set the selection background color |
| | 1313 | \param color The color to apply |
| | 1314 | */ |
| | 1315 | void pMonkeyStudio::setSelectionBackgroundColor( const QColor& color ) |
| | 1316 | { MonkeyCore::settings()->setValue( settingsPath() +"/SelectionBackgroundColor", color ); } |
| | 1317 | |
| | 1318 | /*! |
| | 1319 | \details Return the selection background color |
| | 1320 | */ |
| 1237 | | void pMonkeyStudio::setSelectionForegroundColor( const QColor& c ) |
| 1238 | | { MonkeyCore::settings()->setValue( settingsPath() +"/SelectionForegroundColor", c ); } |
| 1239 | | |
| | 1324 | /*! |
| | 1325 | \details Set the selection foreground color |
| | 1326 | \param color The color to apply |
| | 1327 | */ |
| | 1328 | void pMonkeyStudio::setSelectionForegroundColor( const QColor& color ) |
| | 1329 | { MonkeyCore::settings()->setValue( settingsPath() +"/SelectionForegroundColor", color ); } |
| | 1330 | |
| | 1331 | /*! |
| | 1332 | \details Return the selection foreground color |
| | 1333 | */ |
| 1243 | | void pMonkeyStudio::setDefaultDocumentColours( bool b ) |
| 1244 | | { MonkeyCore::settings()->setValue( settingsPath() +"/DefaultDocumentColours", b ); } |
| 1245 | | |
| | 1337 | /*! |
| | 1338 | \details Set if editors got default colors or no |
| | 1339 | \param useDefault If true, use default pen and paper for editors, else use custom one |
| | 1340 | */ |
| | 1341 | void pMonkeyStudio::setDefaultDocumentColours( bool useDefault ) |
| | 1342 | { MonkeyCore::settings()->setValue( settingsPath() +"/DefaultDocumentColours", useDefault ); } |
| | 1343 | |
| | 1344 | /*! |
| | 1345 | \details Return if editors use default colros or custom one |
| | 1346 | */ |
| 1249 | | void pMonkeyStudio::setDefaultDocumentPen( const QColor& c ) |
| 1250 | | { MonkeyCore::settings()->setValue( settingsPath() +"/DefaultDocumentPen", c ); } |
| 1251 | | |
| | 1350 | /*! |
| | 1351 | \details Set custom editor pen color |
| | 1352 | \param color The color to apply |
| | 1353 | */ |
| | 1354 | void pMonkeyStudio::setDefaultDocumentPen( const QColor& color ) |
| | 1355 | { MonkeyCore::settings()->setValue( settingsPath() +"/DefaultDocumentPen", color ); } |
| | 1356 | |
| | 1357 | /*! |
| | 1358 | \details Return the custom editor pen color |
| | 1359 | */ |
| 1255 | | void pMonkeyStudio::setDefaultDocumentPaper( const QColor& c ) |
| 1256 | | { MonkeyCore::settings()->setValue( settingsPath() +"/DefaultDocumentPaper", c ); } |
| 1257 | | |
| | 1363 | /*! |
| | 1364 | \details Set the custom editor paper color |
| | 1365 | \param color The color to apply |
| | 1366 | */ |
| | 1367 | void pMonkeyStudio::setDefaultDocumentPaper( const QColor& color ) |
| | 1368 | { MonkeyCore::settings()->setValue( settingsPath() +"/DefaultDocumentPaper", color ); } |
| | 1369 | |
| | 1370 | /*! |
| | 1371 | \details Return the custom editor paper color |
| | 1372 | */ |
| 1261 | | void pMonkeyStudio::setAutoCompletionCaseSensitivity( bool b ) |
| 1262 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionCaseSensitivity", b ); } |
| 1263 | | |
| | 1376 | /*! |
| | 1377 | \details Set auto completion is case sensitive or not |
| | 1378 | \param sensitive If true auto completion is case sensitive, else not |
| | 1379 | */ |
| | 1380 | void pMonkeyStudio::setAutoCompletionCaseSensitivity( bool sensitive ) |
| | 1381 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionCaseSensitivity", sensitive ); } |
| | 1382 | |
| | 1383 | /*! |
| | 1384 | \details Return true if auto completion is case sensitive, else false |
| | 1385 | */ |
| 1267 | | void pMonkeyStudio::setAutoCompletionReplaceWord( bool b ) |
| 1268 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionReplaceWord", b ); } |
| 1269 | | |
| | 1389 | /*! |
| | 1390 | \details Set if applying an autocompletion replace current word, or append to it |
| | 1391 | \param replace If true repalce word, else append to it |
| | 1392 | */ |
| | 1393 | void pMonkeyStudio::setAutoCompletionReplaceWord( bool replace ) |
| | 1394 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionReplaceWord", replace ); } |
| | 1395 | |
| | 1396 | /*! |
| | 1397 | \details Return true if auto completion repalce word else false |
| | 1398 | */ |
| 1273 | | void pMonkeyStudio::setAutoCompletionShowSingle( bool b ) |
| 1274 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionShowSingle", b ); } |
| 1275 | | |
| | 1402 | /*! |
| | 1403 | \details Set if auto completion list is shown for single match |
| | 1404 | \param show If true, showw single match in list popup, else auto complate |
| | 1405 | */ |
| | 1406 | void pMonkeyStudio::setAutoCompletionShowSingle( bool show ) |
| | 1407 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionShowSingle", show ); } |
| | 1408 | |
| | 1409 | /*! |
| | 1410 | \details Return true if single match is shown, else false |
| | 1411 | */ |
| 1279 | | void pMonkeyStudio::setAutoCompletionSource( QsciScintilla::AutoCompletionSource a ) |
| 1280 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionSource", a ); } |
| 1281 | | |
| | 1415 | /*! |
| | 1416 | \details Set autocompletion source mode |
| | 1417 | \param mode The mode to use |
| | 1418 | */ |
| | 1419 | void pMonkeyStudio::setAutoCompletionSource( QsciScintilla::AutoCompletionSource mode ) |
| | 1420 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionSource", mode ); } |
| | 1421 | |
| | 1422 | /*! |
| | 1423 | \details Return the autocompletion mode used |
| | 1424 | */ |
| 1285 | | void pMonkeyStudio::setAutoCompletionThreshold( int i ) |
| 1286 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionThreshold", i ); } |
| 1287 | | |
| | 1428 | /*! |
| | 1429 | \details Set the autocompletion threshold ( ie: needed typed letters to invoke autocompletion list ) |
| | 1430 | \param count The number of letters to type |
| | 1431 | */ |
| | 1432 | void pMonkeyStudio::setAutoCompletionThreshold( int count ) |
| | 1433 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoCompletionThreshold", count ); } |
| | 1434 | |
| | 1435 | /*! |
| | 1436 | \details Return the autocompletion threshold count |
| | 1437 | */ |
| 1291 | | void pMonkeyStudio::setCallTipsBackgroundColor( const QColor& c ) |
| 1292 | | { MonkeyCore::settings()->setValue( settingsPath() +"/CallTipsBackgroundColor", c ); } |
| 1293 | | |
| | 1441 | /*! |
| | 1442 | \details Set the calltips background color |
| | 1443 | \param color The color to apply |
| | 1444 | */ |
| | 1445 | void pMonkeyStudio::setCallTipsBackgroundColor( const QColor& color ) |
| | 1446 | { MonkeyCore::settings()->setValue( settingsPath() +"/CallTipsBackgroundColor", color ); } |
| | 1447 | |
| | 1448 | /*! |
| | 1449 | \details Return the calltips baclground color |
| | 1450 | */ |
| 1297 | | void pMonkeyStudio::setCallTipsForegroundColor( const QColor& c ) |
| 1298 | | { MonkeyCore::settings()->setValue( settingsPath() +"/CallTipsForegroundColor", c ); } |
| 1299 | | |
| | 1454 | /*! |
| | 1455 | \details Set calltips foreground color |
| | 1456 | \param color The color to apply |
| | 1457 | */ |
| | 1458 | void pMonkeyStudio::setCallTipsForegroundColor( const QColor& color ) |
| | 1459 | { MonkeyCore::settings()->setValue( settingsPath() +"/CallTipsForegroundColor", color ); } |
| | 1460 | |
| | 1461 | /*! |
| | 1462 | \details Return the calltips foreground color |
| | 1463 | */ |
| 1303 | | void pMonkeyStudio::setCallTipsHighlightColor( const QColor& c ) |
| 1304 | | { MonkeyCore::settings()->setValue( settingsPath() +"/CallTipsHighlightColor", c ); } |
| 1305 | | |
| | 1467 | /*! |
| | 1468 | \details Set the calltips highlight color |
| | 1469 | \param color The color to apply |
| | 1470 | */ |
| | 1471 | void pMonkeyStudio::setCallTipsHighlightColor( const QColor& color ) |
| | 1472 | { MonkeyCore::settings()->setValue( settingsPath() +"/CallTipsHighlightColor", color ); } |
| | 1473 | |
| | 1474 | /*! |
| | 1475 | \details Return the calltips highlight color |
| | 1476 | */ |
| 1321 | | void pMonkeyStudio::setAutoIndent( bool b ) |
| 1322 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoIndent", b ); } |
| 1323 | | |
| | 1506 | /*! |
| | 1507 | \details Set auto indentation |
| | 1508 | \param autoindent If true auto indentation is performed, else no |
| | 1509 | */ |
| | 1510 | void pMonkeyStudio::setAutoIndent( bool autoindent ) |
| | 1511 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoIndent", autoindent ); } |
| | 1512 | |
| | 1513 | /*! |
| | 1514 | \details Return true if auto indentation is active, else false |
| | 1515 | */ |
| 1327 | | void pMonkeyStudio::setBackspaceUnindents( bool b ) |
| 1328 | | { MonkeyCore::settings()->setValue( settingsPath() +"/BackspaceUnindents", b ); } |
| 1329 | | |
| | 1519 | /*! |
| | 1520 | \details Set if backspace unindents |
| | 1521 | \param unindents If true, backspace key do unindents, else no |
| | 1522 | */ |
| | 1523 | void pMonkeyStudio::setBackspaceUnindents( bool unindents ) |
| | 1524 | { MonkeyCore::settings()->setValue( settingsPath() +"/BackspaceUnindents", unindents ); } |
| | 1525 | |
| | 1526 | /*! |
| | 1527 | \details Return true if backspace key unindents else false |
| | 1528 | */ |
| 1333 | | void pMonkeyStudio::setIndentationGuides( bool b ) |
| 1334 | | { MonkeyCore::settings()->setValue( settingsPath() +"/IndentationGuides", b ); } |
| 1335 | | |
| | 1532 | /*! |
| | 1533 | \details Set if indentation guides are visible |
| | 1534 | \param visible If true guides are visible |
| | 1535 | */ |
| | 1536 | void pMonkeyStudio::setIndentationGuides( bool visible ) |
| | 1537 | { MonkeyCore::settings()->setValue( settingsPath() +"/IndentationGuides", visible ); } |
| | 1538 | |
| | 1539 | /*! |
| | 1540 | \details Return true if indentation guides are shown, else false |
| | 1541 | */ |
| 1339 | | void pMonkeyStudio::setIndentationsUseTabs( bool b ) |
| 1340 | | { MonkeyCore::settings()->setValue( settingsPath() +"/IndentationsUseTabs", b ); } |
| 1341 | | |
| | 1545 | /*! |
| | 1546 | \details Set if indentation use tabs |
| | 1547 | \param tabs If true, tabs are used, else spaces |
| | 1548 | */ |
| | 1549 | void pMonkeyStudio::setIndentationsUseTabs( bool tabs ) |
| | 1550 | { MonkeyCore::settings()->setValue( settingsPath() +"/IndentationsUseTabs", tabs ); } |
| | 1551 | |
| | 1552 | /*! |
| | 1553 | \details Return true if indentation use tabs, else false |
| | 1554 | */ |
| 1345 | | void pMonkeyStudio::setAutoDetectIndent( bool b ) |
| 1346 | | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoDetectIndent", b ); } |
| 1347 | | |
| | 1558 | /*! |
| | 1559 | \details Set if indent is auto detected |
| | 1560 | \param detect If true, inden is auto detected, else no |
| | 1561 | */ |
| | 1562 | void pMonkeyStudio::setAutoDetectIndent( bool detect ) |
| | 1563 | { MonkeyCore::settings()->setValue( settingsPath() +"/AutoDetectIndent", detect ); } |
| | 1564 | |
| | 1565 | /*! |
| | 1566 | \details Return true if indent is auto detected, else false |
| | 1567 | */ |
| 1357 | | void pMonkeyStudio::setTabIndents( bool b ) |
| 1358 | | { MonkeyCore::settings()->setValue( settingsPath() +"/TabIndents", b ); } |
| 1359 | | |
| | 1584 | /*! |
| | 1585 | \details Set if tab key indents |
| | 1586 | \param indent If true, tab key do indent, else add simple tabulation |
| | 1587 | */ |
| | 1588 | void pMonkeyStudio::setTabIndents( bool indent ) |
| | 1589 | { MonkeyCore::settings()->setValue( settingsPath() +"/TabIndents", indent ); } |
| | 1590 | |
| | 1591 | /*! |
| | 1592 | \details Return true if tab key do indent, else false |
| | 1593 | */ |
| 1369 | | void pMonkeyStudio::setIndentationGuidesBackgroundColor( const QColor& c ) |
| 1370 | | { MonkeyCore::settings()->setValue( settingsPath() +"/IndentationGuidesBackgroundColor", c ); } |
| 1371 | | |
| | 1610 | /*! |
| | 1611 | \details Set the indentation guide guide background color |
| | 1612 | \param color The color to apply |
| | 1613 | */ |
| | 1614 | void pMonkeyStudio::setIndentationGuidesBackgroundColor( const QColor& color ) |
| | 1615 | { MonkeyCore::settings()->setValue( settingsPath() +"/IndentationGuidesBackgroundColor", color ); } |
| | 1616 | |
| | 1617 | /*! |
| | 1618 | \details Return the indentation guide background color |
| | 1619 | */ |
| 1387 | | void pMonkeyStudio::setMatchedBraceBackgroundColor( const QColor& c ) |
| 1388 | | { MonkeyCore::settings()->setValue( settingsPath() +"/MatchedBraceBackgroundColor", c ); } |
| 1389 | | |
| | 1649 | /*! |
| | 1650 | \details Set the matched brace background color |
| | 1651 | \param color The color to apply |
| | 1652 | */ |
| | 1653 | void pMonkeyStudio::setMatchedBraceBackgroundColor( const QColor& color ) |
| | 1654 | { MonkeyCore::settings()->setValue( settingsPath() +"/MatchedBraceBackgroundColor", color ); } |
| | 1655 | |
| | 1656 | /*! |
| | 1657 | \details Return the matched brace background color |
| | 1658 | */ |
| 1393 | | void pMonkeyStudio::setMatchedBraceForegroundColor( const QColor& c ) |
| 1394 | | { MonkeyCore::settings()->setValue( settingsPath() +"/MatchedBraceForegroundColor", c ); } |
| 1395 | | |
| | 1662 | /*! |
| | 1663 | \details Set the matched brache foreground color |
| | 1664 | \param color The color to apply |
| | 1665 | */ |
| | 1666 | void pMonkeyStudio::setMatchedBraceForegroundColor( const QColor& color ) |
| | 1667 | { MonkeyCore::settings()->setValue( settingsPath() +"/MatchedBraceForegroundColor", color ); } |
| | 1668 | |
| | 1669 | /*! |
| | 1670 | \details Return the matched brace foreground color |
| | 1671 | */ |