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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856
|
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: project_settings.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////
#include "project_settings_base_dlg.h"
// Declare the bitmap loading function
extern void wxCA3F0InitBitmapResources();
static bool bBitmapLoaded = false;
ProjectSettingsBaseDlg::ProjectSettingsBaseDlg(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size, long style)
: wxDialog(parent, id, title, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);
this->SetSizer(mainSizer);
m_panelSettings = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxTAB_TRAVERSAL);
mainSizer->Add(m_panelSettings, 1, wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* m_sizerSettings = new wxBoxSizer(wxVERTICAL);
m_panelSettings->SetSizer(m_sizerSettings);
wxBoxSizer* bSizer44 = new wxBoxSizer(wxHORIZONTAL);
m_sizerSettings->Add(bSizer44, 0, wxEXPAND, WXC_FROM_DIP(5));
wxArrayString m_choiceConfigArr;
m_choiceConfig = new wxChoice(m_panelSettings, wxID_ANY, wxDefaultPosition,
wxDLG_UNIT(m_panelSettings, wxSize(-1, -1)), m_choiceConfigArr, 0);
bSizer44->Add(m_choiceConfig, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_treebook = new wxTreebook(m_panelSettings, wxID_ANY, wxDefaultPosition,
wxDLG_UNIT(m_panelSettings, wxSize(-1, -1)), wxBK_DEFAULT);
m_treebook->SetName(wxT("m_treebook"));
m_sizerSettings->Add(m_treebook, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_infobar = new wxInfoBar(this, wxID_ANY);
m_infobar->SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
m_infobar->Hide();
mainSizer->Add(m_infobar, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_stdBtnSizer126 = new wxStdDialogButtonSizer();
mainSizer->Add(m_stdBtnSizer126, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(5));
m_button_ok = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_button_ok->SetDefault();
m_stdBtnSizer126->AddButton(m_button_ok);
m_button_apply = new wxButton(this, wxID_APPLY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_stdBtnSizer126->AddButton(m_button_apply);
m_button_cancel = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_stdBtnSizer126->AddButton(m_button_cancel);
m_button_help = new wxButton(this, wxID_HELP, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_stdBtnSizer126->AddButton(m_button_help);
m_stdBtnSizer126->Realize();
#if wxVERSION_NUMBER >= 2900
if(!wxPersistenceManager::Get().Find(m_treebook)) {
wxPersistenceManager::Get().RegisterAndRestore(m_treebook);
} else {
wxPersistenceManager::Get().Restore(m_treebook);
}
#endif
SetName(wxT("ProjectSettingsBaseDlg"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
if(GetParent()) {
CentreOnParent(wxBOTH);
} else {
CentreOnScreen(wxBOTH);
}
#if wxVERSION_NUMBER >= 2900
if(!wxPersistenceManager::Get().Find(this)) {
wxPersistenceManager::Get().RegisterAndRestore(this);
} else {
wxPersistenceManager::Get().Restore(this);
}
#endif
// Connect events
m_choiceConfig->Connect(wxEVT_COMMAND_CHOICE_SELECTED,
wxCommandEventHandler(ProjectSettingsBaseDlg::OnConfigurationChanged), NULL, this);
m_treebook->Connect(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED,
wxTreebookEventHandler(ProjectSettingsBaseDlg::OnPageChanged), NULL, this);
m_button_ok->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ProjectSettingsBaseDlg::OnButtonOK), NULL,
this);
m_button_apply->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ProjectSettingsBaseDlg::OnButtonApply),
NULL, this);
m_button_apply->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ProjectSettingsBaseDlg::OnButtonApplyUI), NULL,
this);
m_button_cancel->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(ProjectSettingsBaseDlg::OnButtonCancel), NULL, this);
m_button_help->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ProjectSettingsBaseDlg::OnButtonHelp),
NULL, this);
}
ProjectSettingsBaseDlg::~ProjectSettingsBaseDlg()
{
m_choiceConfig->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED,
wxCommandEventHandler(ProjectSettingsBaseDlg::OnConfigurationChanged), NULL, this);
m_treebook->Disconnect(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED,
wxTreebookEventHandler(ProjectSettingsBaseDlg::OnPageChanged), NULL, this);
m_button_ok->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ProjectSettingsBaseDlg::OnButtonOK),
NULL, this);
m_button_apply->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(ProjectSettingsBaseDlg::OnButtonApply), NULL, this);
m_button_apply->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ProjectSettingsBaseDlg::OnButtonApplyUI), NULL,
this);
m_button_cancel->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(ProjectSettingsBaseDlg::OnButtonCancel), NULL, this);
m_button_help->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ProjectSettingsBaseDlg::OnButtonHelp),
NULL, this);
}
PSGeneralPageBase::PSGeneralPageBase(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer35 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer35);
m_checkBoxEnabled =
new wxCheckBox(this, wxID_ANY, _("Project enabled"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_checkBoxEnabled->SetValue(true);
m_checkBoxEnabled->SetToolTip(
_("When unchecked, this project will not be built for the current build configuration"));
bSizer35->Add(m_checkBoxEnabled, 0, wxALL, WXC_FROM_DIP(5));
wxArrayString m_pgMgr136Arr;
wxUnusedVar(m_pgMgr136Arr);
wxArrayInt m_pgMgr136IntArr;
wxUnusedVar(m_pgMgr136IntArr);
m_pgMgr136 = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(400, 400)),
wxPG_DESCRIPTION | wxPG_SPLITTER_AUTO_CENTER | wxPG_BOLD_MODIFIED);
bSizer35->Add(m_pgMgr136, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
CATEGORY_GENERAL = m_pgMgr136->Append(new wxPropertyCategory(_("General")));
CATEGORY_GENERAL->SetHelpString(wxT(""));
m_pgMgr136Arr.Clear();
m_pgMgr136IntArr.Clear();
m_pgMgr136Arr.Add(_("Dynamic Library"));
m_pgMgr136Arr.Add(_("Static Library"));
m_pgMgr136Arr.Add(_("Executable"));
m_pgPropProjectType = m_pgMgr136->AppendIn(
CATEGORY_GENERAL, new wxEnumProperty(_("Project Type"), wxPG_LABEL, m_pgMgr136Arr, m_pgMgr136IntArr, 0));
m_pgPropProjectType->SetHelpString(_("Sets the type of the project"));
CATEGORY_BUILD = m_pgMgr136->Append(new wxPropertyCategory(_("Build")));
CATEGORY_BUILD->SetHelpString(wxT(""));
m_pgMgr136Arr.Clear();
m_pgMgr136IntArr.Clear();
m_pgPropMakeGenerator = m_pgMgr136->AppendIn(
CATEGORY_BUILD, new wxEnumProperty(_("Makefile Generator"), wxPG_LABEL, m_pgMgr136Arr, m_pgMgr136IntArr, 0));
m_pgPropMakeGenerator->SetHelpString(
_("Select the Makefile generator to use. By default, CodeLite uses its builtin Makefile generator"));
m_pgPropMakeGeneratorArgs =
m_pgMgr136->AppendIn(m_pgPropMakeGenerator, new wxLongStringProperty(_("Arguments"), wxPG_LABEL, wxT("")));
m_pgPropMakeGeneratorArgs->SetHelpString(_("Set the Makefile generator arguments"));
m_pgPropMakeGeneratorArgs->SetEditor(wxT("TextCtrlAndButton"));
m_pgMgr136Arr.Clear();
m_pgMgr136IntArr.Clear();
m_pgPropCompiler = m_pgMgr136->AppendIn(
CATEGORY_BUILD, new wxEnumProperty(_("Compiler"), wxPG_LABEL, m_pgMgr136Arr, m_pgMgr136IntArr, 0));
m_pgPropCompiler->SetHelpString(
_("Select the compiler to use. The compiler controls two aspects of the project:\n- If the project is _not_ a "
"custom build, then this compiler is used for compilation\n- CodeLite uses the compiler definition for "
"parsing the output"));
m_pgPropIntermediateFolder =
m_pgMgr136->AppendIn(CATEGORY_BUILD, new wxStringProperty(_("Intermediate Directory"), wxPG_LABEL, wxT("")));
m_pgPropIntermediateFolder->SetHelpString(
_("The name of the folder used for the generated objects during compilation"));
m_pgPropOutputFile =
m_pgMgr136->AppendIn(CATEGORY_BUILD, new wxStringProperty(_("Output File"), wxPG_LABEL, wxT("")));
m_pgPropOutputFile->SetHelpString(_("The name of the output file (e.g. the executable file name)"));
CATEGORY_EXECUTION = m_pgMgr136->Append(new wxPropertyCategory(_("Execution")));
CATEGORY_EXECUTION->SetHelpString(wxT(""));
m_pgPropPause =
m_pgMgr136->AppendIn(CATEGORY_EXECUTION, new wxBoolProperty(_("Pause when execution ends"), wxPG_LABEL, 1));
m_pgPropPause->SetHelpString(_(
"After the execution of the program ends, show a console with the message \"Hit any key to continue...\"\nThis "
"is useful when you wish to view the output printed to stdout before the console terminates"));
m_pgPropGUIApp = m_pgMgr136->AppendIn(CATEGORY_EXECUTION,
new wxBoolProperty(_("This program is a GUI application"), wxPG_LABEL, 0));
m_pgPropGUIApp->SetHelpString(_("By marking the project as a GUI project, CodeLite will launch the program without "
"any console terminal wrapping the process execution"));
m_pgPropProgram = m_pgMgr136->AppendIn(CATEGORY_EXECUTION,
new wxStringProperty(_("Executable to Run / Debug"), wxPG_LABEL, wxT("")));
m_pgPropProgram->SetHelpString(_("The executable to run / debug"));
m_pgPropProgram->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropWorkingDirectory =
m_pgMgr136->AppendIn(CATEGORY_EXECUTION, new wxStringProperty(_("Working Directory"), wxPG_LABEL, wxT("")));
m_pgPropWorkingDirectory->SetHelpString(
_("The working directory to set before executing or debugging the program"));
m_pgPropWorkingDirectory->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropArgs =
m_pgMgr136->AppendIn(CATEGORY_EXECUTION, new wxLongStringProperty(_("Program Arguments"), wxPG_LABEL, wxT("")));
m_pgPropArgs->SetHelpString(_("The command line arguments to pass to the program when executing or debugging it"));
CATEGORY_DEBUGGER = m_pgMgr136->Append(new wxPropertyCategory(_("Debugging")));
CATEGORY_DEBUGGER->SetHelpString(wxT(""));
m_pgMgr136Arr.Clear();
m_pgMgr136IntArr.Clear();
m_pgPropDebugger = m_pgMgr136->AppendIn(
CATEGORY_DEBUGGER, new wxEnumProperty(_("Debugger"), wxPG_LABEL, m_pgMgr136Arr, m_pgMgr136IntArr, 0));
m_pgPropDebugger->SetHelpString(_("Select the debugger type to use for this project"));
m_pgPropUseSeparateDebuggerArgs =
m_pgMgr136->AppendIn(CATEGORY_DEBUGGER, new wxBoolProperty(_("Use separate debugger args"), wxPG_LABEL, 1));
m_pgPropUseSeparateDebuggerArgs->SetHelpString(
_("When enabled (.e.g. set to True) codelite will pass the arguments set in 'Debug Program Arguments'"));
m_pgPropDebugArgs = m_pgMgr136->AppendIn(
CATEGORY_DEBUGGER, new wxLongStringProperty(_("Debug Program Arguments"), wxPG_LABEL, wxT("")));
m_pgPropDebugArgs->SetHelpString(_("Arguments to pass to the debugger"));
SetName(wxT("PSGeneralPageBase"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
m_checkBoxEnabled->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSGeneralPageBase::OnProjectEnabled), NULL, this);
m_pgMgr136->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(PSGeneralPageBase::OnValueChanged), NULL, this);
m_pgMgr136->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSGeneralPageBase::OnProjectCustumBuildUI), NULL, this);
m_pgMgr136->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSGeneralPageBase::OnCustomEditorClicked),
NULL, this);
m_pgMgr136->Connect(wxEVT_PG_CHANGING, wxPropertyGridEventHandler(PSGeneralPageBase::OnValueChanging), NULL, this);
}
PSGeneralPageBase::~PSGeneralPageBase()
{
m_checkBoxEnabled->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSGeneralPageBase::OnProjectEnabled), NULL, this);
m_pgMgr136->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(PSGeneralPageBase::OnValueChanged), NULL, this);
m_pgMgr136->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSGeneralPageBase::OnProjectCustumBuildUI), NULL,
this);
m_pgMgr136->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSGeneralPageBase::OnCustomEditorClicked), NULL, this);
m_pgMgr136->Disconnect(wxEVT_PG_CHANGING, wxPropertyGridEventHandler(PSGeneralPageBase::OnValueChanging), NULL,
this);
}
PSCompilerPageBase::PSCompilerPageBase(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* boxSizer1761 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(boxSizer1761);
wxBoxSizer* boxSizer301 = new wxBoxSizer(wxHORIZONTAL);
boxSizer1761->Add(boxSizer301, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_checkCompilerNeeded = new wxCheckBox(this, wxID_ANY, _("Compiler is not required for this project"),
wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_checkCompilerNeeded->SetValue(false);
boxSizer301->Add(m_checkCompilerNeeded, 0, wxALL | wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
boxSizer301->Add(0, 0, 1, wxALL, WXC_FROM_DIP(5));
m_buttonSyncCompilerOptions =
new wxButton(this, wxID_ANY, _("Copy"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_buttonSyncCompilerOptions->SetToolTip(_("Copy settings for this page from another project"));
boxSizer301->Add(m_buttonSyncCompilerOptions, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
wxArrayString m_pgMgrArr;
wxUnusedVar(m_pgMgrArr);
wxArrayInt m_pgMgrIntArr;
wxUnusedVar(m_pgMgrIntArr);
m_pgMgr = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(400, 400)),
wxPG_DESCRIPTION | wxPG_SPLITTER_AUTO_CENTER | wxPG_BOLD_MODIFIED);
boxSizer1761->Add(m_pgMgr, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
CATEGORY_OPTIONS4 = m_pgMgr->Append(new wxPropertyCategory(_("Options")));
CATEGORY_OPTIONS4->SetHelpString(wxT(""));
m_pgMgrArr.Clear();
m_pgMgrIntArr.Clear();
m_pgMgrArr.Add(_("Append to global settings"));
m_pgMgrArr.Add(_("Overwrite global settings"));
m_pgMgrArr.Add(_("Prepend to global settings"));
m_pgPropBehaviorWithGlobalSettings = m_pgMgr->AppendIn(
CATEGORY_OPTIONS4, new wxEnumProperty(_("Use with Global Settings"), wxPG_LABEL, m_pgMgrArr, m_pgMgrIntArr, 0));
m_pgPropBehaviorWithGlobalSettings->SetHelpString(
_("Define how CodeLite will merge the compiler settings defined in the 'Global Settings' with the settings "
"defined on this page"));
m_pgPropCppOpts =
m_pgMgr->AppendIn(CATEGORY_OPTIONS4, new wxStringProperty(_("C++ Compiler Options"), wxPG_LABEL, wxT("")));
m_pgPropCppOpts->SetHelpString(
_("Additional compiler options to pass to the compiler provided as a semi-colon delimited list"));
m_pgPropCppOpts->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropCOpts =
m_pgMgr->AppendIn(CATEGORY_OPTIONS4, new wxStringProperty(_("C Compiler Options"), wxPG_LABEL, wxT("")));
m_pgPropCOpts->SetHelpString(_("Additional C compiler options to pass to the compiler provided as a semi-colon "
"delimited list (used for C files only)"));
m_pgPropCOpts->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropAssembler =
m_pgMgr->AppendIn(CATEGORY_OPTIONS4, new wxStringProperty(_("Assembler Options"), wxPG_LABEL, wxT("")));
m_pgPropAssembler->SetHelpString(_("Additional assembler options to pass to the assembler provided as a semi-colon "
"delimited list\n(used for .s files only)"));
m_pgPropIncludePaths =
m_pgMgr->AppendIn(CATEGORY_OPTIONS4, new wxStringProperty(_("Include Paths"), wxPG_LABEL, wxT("")));
m_pgPropIncludePaths->SetHelpString(
_("Include path to pass to the compiler (provided as semi-colon delimited list)"));
m_pgPropIncludePaths->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropPreProcessors =
m_pgMgr->AppendIn(CATEGORY_OPTIONS4, new wxStringProperty(_("Preprocessors"), wxPG_LABEL, wxT("")));
m_pgPropPreProcessors->SetHelpString(
_("macros (\"defines\") to pass to the compiler (provided as semi-colon delimited list)"));
m_pgPropPreProcessors->SetEditor(wxT("TextCtrlAndButton"));
CATEGORY_PCH = m_pgMgr->Append(new wxPropertyCategory(_("Pre Compiled Header")));
CATEGORY_PCH->SetHelpString(wxT(""));
m_pgPropPreCmpHeaderFile =
m_pgMgr->AppendIn(CATEGORY_PCH, new wxStringProperty(_("Header File"), wxPG_LABEL, wxT("")));
m_pgPropPreCmpHeaderFile->SetHelpString(_("Pre compiled header"));
m_pgPropPreCmpHeaderFile->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropIncludePCH =
m_pgMgr->AppendIn(CATEGORY_PCH, new wxBoolProperty(_("Explicitly Include PCH"), wxPG_LABEL, 1));
m_pgPropIncludePCH->SetHelpString(
_("Explicitly include the PCH file in the command line using a compiler switch (.e.g -include /path/to/pch)"));
m_pgPropPCHCompileLine =
m_pgMgr->AppendIn(CATEGORY_PCH, new wxLongStringProperty(_("PCH Compile Flags"), wxPG_LABEL, wxT("")));
m_pgPropPCHCompileLine->SetHelpString(_("Use separate compilation flags for the PCH file"));
m_pgMgrArr.Clear();
m_pgMgrIntArr.Clear();
m_pgMgrArr.Add(_("Replace"));
m_pgMgrArr.Add(_("Append"));
m_pgMgrArr.Add(_("Just Include"));
m_pgMgrIntArr.Add(0);
m_pgMgrIntArr.Add(1);
m_pgMgrIntArr.Add(2);
m_pgPropPCHPolicy = m_pgMgr->AppendIn(
CATEGORY_PCH, new wxEnumProperty(_("PCH Compile Flags Policy"), wxPG_LABEL, m_pgMgrArr, m_pgMgrIntArr, 0));
m_pgPropPCHPolicy->SetHelpString(
_("When compiling a PCH, use the value set in PCH compile Flags as follows:\n- Append: append the value\n- "
"Replace: replace any other compile flags with this value (not recommended)\n- Just Include: don't attempt "
"to build the PCH, just include it"));
SetName(wxT("PSCompilerPageBase"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompilerPageBase::OnProjectEnabledUI), NULL, this);
m_checkCompilerNeeded->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSCompilerPageBase::OnCompilerNeeded), NULL, this);
m_buttonSyncCompilerOptions->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSCompilerPageBase::OnCopyCompilerSettings), NULL, this);
m_buttonSyncCompilerOptions->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompilerPageBase::OnUpdateUI), NULL,
this);
m_pgMgr->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(PSCompilerPageBase::OnPropertyChanged), NULL, this);
m_pgMgr->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompilerPageBase::OnUpdateUI), NULL, this);
m_pgMgr->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSCompilerPageBase::OnCustomEditorClicked),
NULL, this);
}
PSCompilerPageBase::~PSCompilerPageBase()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompilerPageBase::OnProjectEnabledUI), NULL, this);
m_checkCompilerNeeded->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSCompilerPageBase::OnCompilerNeeded), NULL, this);
m_buttonSyncCompilerOptions->Disconnect(
wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSCompilerPageBase::OnCopyCompilerSettings), NULL, this);
m_buttonSyncCompilerOptions->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompilerPageBase::OnUpdateUI),
NULL, this);
m_pgMgr->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(PSCompilerPageBase::OnPropertyChanged), NULL,
this);
m_pgMgr->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompilerPageBase::OnUpdateUI), NULL, this);
m_pgMgr->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSCompilerPageBase::OnCustomEditorClicked),
NULL, this);
}
PSLinkPageBase::PSLinkPageBase(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer37 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer37);
m_checkLinkerNeeded = new wxCheckBox(this, wxID_ANY, _("Linker is not required for this project"),
wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_checkLinkerNeeded->SetValue(false);
bSizer37->Add(m_checkLinkerNeeded, 0, wxALL | wxALIGN_LEFT, WXC_FROM_DIP(5));
wxArrayString m_pgMgrArr;
wxUnusedVar(m_pgMgrArr);
wxArrayInt m_pgMgrIntArr;
wxUnusedVar(m_pgMgrIntArr);
m_pgMgr = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(400, 400)),
wxPG_DESCRIPTION | wxPG_SPLITTER_AUTO_CENTER | wxPG_BOLD_MODIFIED);
bSizer37->Add(m_pgMgr, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
CATEGORY_OPTIONS = m_pgMgr->Append(new wxPropertyCategory(_("Options")));
CATEGORY_OPTIONS->SetHelpString(wxT(""));
m_pgMgrArr.Clear();
m_pgMgrIntArr.Clear();
m_pgPropBehaviorWithGlobalSettings = m_pgMgr->AppendIn(
CATEGORY_OPTIONS, new wxEnumProperty(_("Use with global settings"), wxPG_LABEL, m_pgMgrArr, m_pgMgrIntArr, 0));
m_pgPropBehaviorWithGlobalSettings->SetHelpString(
_("Define how CodeLite will merge the linker settings defined in the 'Global Settings' with the settings "
"defined on this page"));
m_pgPropOptions =
m_pgMgr->AppendIn(CATEGORY_OPTIONS, new wxStringProperty(_("Linker Options"), wxPG_LABEL, wxT("")));
m_pgPropOptions->SetHelpString(_("Add additional linker options separated by semi-colon"));
m_pgPropOptions->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropLibraryPaths =
m_pgMgr->AppendIn(CATEGORY_OPTIONS, new wxStringProperty(_("Libraries Search Path"), wxPG_LABEL, wxT("")));
m_pgPropLibraryPaths->SetHelpString(_("Add additional library search paths separated by semi-colon"));
m_pgPropLibraryPaths->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropLibraries = m_pgMgr->AppendIn(CATEGORY_OPTIONS, new wxStringProperty(_("Libraries"), wxPG_LABEL, wxT("")));
m_pgPropLibraries->SetHelpString(_("Enter any extra library names, separated by';' e.g. Foo or Foo;Bar"));
m_pgPropLibraries->SetEditor(wxT("TextCtrlAndButton"));
SetName(wxT("PSLinkPageBase"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSLinkPageBase::OnProjectEnabledUI), NULL, this);
m_checkLinkerNeeded->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSLinkPageBase::OnCheckLinkerNeeded), NULL, this);
m_checkLinkerNeeded->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSLinkPageBase::OnProjectCustumBuildUI), NULL,
this);
m_pgMgr->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSLinkPageBase::OnCustomEditorClicked), NULL,
this);
m_pgMgr->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSLinkPageBase::OnLinkerNotNeededUI), NULL, this);
m_pgMgr->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(PSLinkPageBase::OnPropertyChanged), NULL, this);
}
PSLinkPageBase::~PSLinkPageBase()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSLinkPageBase::OnProjectEnabledUI), NULL, this);
m_checkLinkerNeeded->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSLinkPageBase::OnCheckLinkerNeeded), NULL, this);
m_checkLinkerNeeded->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSLinkPageBase::OnProjectCustumBuildUI),
NULL, this);
m_pgMgr->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSLinkPageBase::OnCustomEditorClicked),
NULL, this);
m_pgMgr->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSLinkPageBase::OnLinkerNotNeededUI), NULL, this);
m_pgMgr->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(PSLinkPageBase::OnPropertyChanged), NULL, this);
}
PSDebuggerPageBase::PSDebuggerPageBase(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer38 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer38);
m_panelDebugger = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxTAB_TRAVERSAL);
bSizer38->Add(m_panelDebugger, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* bSizer192 = new wxBoxSizer(wxVERTICAL);
m_panelDebugger->SetSizer(bSizer192);
m_staticText321 =
new wxStaticText(m_panelDebugger, wxID_ANY, _("Select debugger path. Leave empty to use the default:"),
wxDefaultPosition, wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), 0);
bSizer192->Add(m_staticText321, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* boxSizer35 = new wxBoxSizer(wxHORIZONTAL);
bSizer192->Add(boxSizer35, 0, wxEXPAND, WXC_FROM_DIP(5));
m_textCtrlDebuggerPath = new wxTextCtrl(m_panelDebugger, wxID_ANY, wxT(""), wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), 0);
m_textCtrlDebuggerPath->SetFocus();
#if wxVERSION_NUMBER >= 3000
m_textCtrlDebuggerPath->SetHint(wxT(""));
#endif
boxSizer35->Add(m_textCtrlDebuggerPath, 1, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_button39 = new wxButton(m_panelDebugger, wxID_ANY, _("..."), wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), 0);
boxSizer35->Add(m_button39, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_notebook67 = new wxNotebook(m_panelDebugger, wxID_ANY, wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), wxBK_DEFAULT);
m_notebook67->SetName(wxT("m_notebook67"));
bSizer192->Add(m_notebook67, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_panel80 = new wxPanel(m_notebook67, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook67, wxSize(-1, -1)),
wxTAB_TRAVERSAL);
m_notebook67->AddPage(m_panel80, _("Debugger Search Paths"), false);
wxBoxSizer* boxSizer82 = new wxBoxSizer(wxHORIZONTAL);
m_panel80->SetSizer(boxSizer82);
m_dvListCtrlDebuggerSearchPaths =
new wxDataViewListCtrl(m_panel80, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel80, wxSize(-1, -1)),
wxDV_NO_HEADER | wxDV_ROW_LINES | wxDV_MULTIPLE | wxDV_SINGLE);
boxSizer82->Add(m_dvListCtrlDebuggerSearchPaths, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_dvListCtrlDebuggerSearchPaths->AppendTextColumn(_("Path"), wxDATAVIEW_CELL_INERT, WXC_FROM_DIP(-2), wxALIGN_LEFT,
wxDATAVIEW_COL_RESIZABLE);
wxBoxSizer* boxSizer84 = new wxBoxSizer(wxVERTICAL);
boxSizer82->Add(boxSizer84, 0, wxEXPAND, WXC_FROM_DIP(5));
m_button88 =
new wxButton(m_panel80, wxID_ADD, _("&Add.."), wxDefaultPosition, wxDLG_UNIT(m_panel80, wxSize(-1, -1)), 0);
boxSizer84->Add(m_button88, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_button90 = new wxButton(m_panel80, wxID_DELETE, _("&Delete..."), wxDefaultPosition,
wxDLG_UNIT(m_panel80, wxSize(-1, -1)), 0);
boxSizer84->Add(m_button90, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_panel71 = new wxPanel(m_notebook67, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook67, wxSize(-1, -1)),
wxTAB_TRAVERSAL);
m_notebook67->AddPage(m_panel71, _("Startup Commands"), false);
wxBoxSizer* boxSizer76 = new wxBoxSizer(wxVERTICAL);
m_panel71->SetSizer(boxSizer76);
m_staticText301 = new wxStaticText(m_panel71, wxID_ANY,
_("Enter here any commands that should be passed to the debugger on startup:"),
wxDefaultPosition, wxDLG_UNIT(m_panel71, wxSize(-1, -1)), 0);
boxSizer76->Add(m_staticText301, 0, wxALL, WXC_FROM_DIP(5));
m_textCtrlDbgCmds =
new clThemedSTC(m_panel71, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel71, wxSize(-1, -1)), 0);
// Configure the fold margin
m_textCtrlDbgCmds->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
m_textCtrlDbgCmds->SetMarginMask(4, wxSTC_MASK_FOLDERS);
m_textCtrlDbgCmds->SetMarginSensitive(4, true);
m_textCtrlDbgCmds->SetMarginWidth(4, 0);
// Configure the tracker margin
m_textCtrlDbgCmds->SetMarginWidth(1, 0);
// Configure the symbol margin
m_textCtrlDbgCmds->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
m_textCtrlDbgCmds->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
m_textCtrlDbgCmds->SetMarginWidth(2, 0);
m_textCtrlDbgCmds->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_textCtrlDbgCmds->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_textCtrlDbgCmds->SetMarginWidth(0, 0);
// Configure the line symbol margin
m_textCtrlDbgCmds->SetMarginType(3, wxSTC_MARGIN_FORE);
m_textCtrlDbgCmds->SetMarginMask(3, 0);
m_textCtrlDbgCmds->SetMarginWidth(3, 0);
// Select the lexer
m_textCtrlDbgCmds->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_textCtrlDbgCmds->StyleClearAll();
m_textCtrlDbgCmds->SetWrapMode(0);
m_textCtrlDbgCmds->SetIndentationGuides(0);
m_textCtrlDbgCmds->SetKeyWords(0, wxT(""));
m_textCtrlDbgCmds->SetKeyWords(1, wxT(""));
m_textCtrlDbgCmds->SetKeyWords(2, wxT(""));
m_textCtrlDbgCmds->SetKeyWords(3, wxT(""));
m_textCtrlDbgCmds->SetKeyWords(4, wxT(""));
boxSizer76->Add(m_textCtrlDbgCmds, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_panel74 = new wxPanel(m_notebook67, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_notebook67, wxSize(-1, -1)),
wxTAB_TRAVERSAL);
m_notebook67->AddPage(m_panel74, _("Remote Attach Commands"), false);
wxBoxSizer* boxSizer78 = new wxBoxSizer(wxVERTICAL);
m_panel74->SetSizer(boxSizer78);
m_staticText311 = new wxStaticText(
m_panel74, wxID_ANY,
_("Enter here any commands that should be passed to the debugger after attaching the remote target:"),
wxDefaultPosition, wxDLG_UNIT(m_panel74, wxSize(-1, -1)), 0);
boxSizer78->Add(m_staticText311, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_textCtrlDbgPostConnectCmds =
new clThemedSTC(m_panel74, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel74, wxSize(-1, -1)), 0);
// Configure the fold margin
m_textCtrlDbgPostConnectCmds->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
m_textCtrlDbgPostConnectCmds->SetMarginMask(4, wxSTC_MASK_FOLDERS);
m_textCtrlDbgPostConnectCmds->SetMarginSensitive(4, true);
m_textCtrlDbgPostConnectCmds->SetMarginWidth(4, 0);
// Configure the tracker margin
m_textCtrlDbgPostConnectCmds->SetMarginWidth(1, 0);
// Configure the symbol margin
m_textCtrlDbgPostConnectCmds->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
m_textCtrlDbgPostConnectCmds->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
m_textCtrlDbgPostConnectCmds->SetMarginWidth(2, 0);
m_textCtrlDbgPostConnectCmds->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_textCtrlDbgPostConnectCmds->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_textCtrlDbgPostConnectCmds->SetMarginWidth(0, 0);
// Configure the line symbol margin
m_textCtrlDbgPostConnectCmds->SetMarginType(3, wxSTC_MARGIN_FORE);
m_textCtrlDbgPostConnectCmds->SetMarginMask(3, 0);
m_textCtrlDbgPostConnectCmds->SetMarginWidth(3, 0);
// Select the lexer
m_textCtrlDbgPostConnectCmds->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_textCtrlDbgPostConnectCmds->StyleClearAll();
m_textCtrlDbgPostConnectCmds->SetWrapMode(0);
m_textCtrlDbgPostConnectCmds->SetIndentationGuides(0);
m_textCtrlDbgPostConnectCmds->SetKeyWords(0, wxT(""));
m_textCtrlDbgPostConnectCmds->SetKeyWords(1, wxT(""));
m_textCtrlDbgPostConnectCmds->SetKeyWords(2, wxT(""));
m_textCtrlDbgPostConnectCmds->SetKeyWords(3, wxT(""));
m_textCtrlDbgPostConnectCmds->SetKeyWords(4, wxT(""));
boxSizer78->Add(m_textCtrlDbgPostConnectCmds, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_checkBoxDbgRemote = new wxCheckBox(m_panelDebugger, wxID_ANY, _("Debugging a remote target"), wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), 0);
m_checkBoxDbgRemote->SetValue(false);
bSizer192->Add(m_checkBoxDbgRemote, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(5));
wxFlexGridSizer* fgSizer61 = new wxFlexGridSizer(1, 5, 0, 0);
fgSizer61->SetFlexibleDirection(wxBOTH);
fgSizer61->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
fgSizer61->AddGrowableCol(1);
bSizer192->Add(fgSizer61, 0, wxEXPAND, WXC_FROM_DIP(5));
m_staticText31 = new wxStaticText(m_panelDebugger, wxID_ANY, _("Host / tty:"), wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), 0);
fgSizer61->Add(m_staticText31, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_textCtrl1DbgHost = new wxTextCtrl(m_panelDebugger, wxID_ANY, wxT(""), wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), wxTE_NO_VSCROLL);
#if wxVERSION_NUMBER >= 3000
m_textCtrl1DbgHost->SetHint(wxT(""));
#endif
fgSizer61->Add(m_textCtrl1DbgHost, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticText32 = new wxStaticText(m_panelDebugger, wxID_ANY, _("Port:"), wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), 0);
fgSizer61->Add(m_staticText32, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_textCtrlDbgPort = new wxTextCtrl(m_panelDebugger, wxID_ANY, wxT(""), wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), wxTE_NO_VSCROLL);
#if wxVERSION_NUMBER >= 3000
m_textCtrlDbgPort->SetHint(wxT(""));
#endif
fgSizer61->Add(m_textCtrlDbgPort, 0, wxALL, WXC_FROM_DIP(5));
m_checkBoxDbgRemoteExt = new wxCheckBox(m_panelDebugger, wxID_ANY, _("Extended Protocol"), wxDefaultPosition,
wxDLG_UNIT(m_panelDebugger, wxSize(-1, -1)), 0);
m_checkBoxDbgRemoteExt->SetValue(false);
m_checkBoxDbgRemoteExt->SetToolTip(_("Enable extended mode. In extended mode, the remote server is made "
"persistent.\ni.e. it does not go down after the debug session ends"));
fgSizer61->Add(m_checkBoxDbgRemoteExt, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
SetName(wxT("PSDebuggerPageBase"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnProjectEnabledUI), NULL, this);
m_textCtrlDebuggerPath->Connect(wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_button39->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnBrowseForDebuggerPath), NULL, this);
m_dvListCtrlDebuggerSearchPaths->Connect(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED,
wxDataViewEventHandler(PSDebuggerPageBase::OnItemActivated), NULL, this);
m_button88->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnAddDebuggerSearchPath), NULL, this);
m_button90->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnDeleteDebuggerSearchPath), NULL, this);
m_button90->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnDeleteDebuggerSearchPathUI), NULL,
this);
m_textCtrlDbgCmds->Connect(wxEVT_STC_MODIFIED, wxStyledTextEventHandler(PSDebuggerPageBase::OnStcEvtVModified),
NULL, this);
m_textCtrlDbgPostConnectCmds->Connect(wxEVT_STC_MODIFIED,
wxStyledTextEventHandler(PSDebuggerPageBase::OnStcEvtVModified), NULL, this);
m_checkBoxDbgRemote->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_staticText31->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL, this);
m_textCtrl1DbgHost->Connect(wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_textCtrl1DbgHost->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL,
this);
m_staticText32->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL, this);
m_textCtrlDbgPort->Connect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified),
NULL, this);
m_textCtrlDbgPort->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL,
this);
m_checkBoxDbgRemoteExt->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL,
this);
m_checkBoxDbgRemoteExt->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
}
PSDebuggerPageBase::~PSDebuggerPageBase()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnProjectEnabledUI), NULL, this);
m_textCtrlDebuggerPath->Disconnect(wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_button39->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnBrowseForDebuggerPath), NULL, this);
m_dvListCtrlDebuggerSearchPaths->Disconnect(
wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler(PSDebuggerPageBase::OnItemActivated), NULL, this);
m_button88->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnAddDebuggerSearchPath), NULL, this);
m_button90->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnDeleteDebuggerSearchPath), NULL, this);
m_button90->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnDeleteDebuggerSearchPathUI),
NULL, this);
m_textCtrlDbgCmds->Disconnect(wxEVT_STC_MODIFIED, wxStyledTextEventHandler(PSDebuggerPageBase::OnStcEvtVModified),
NULL, this);
m_textCtrlDbgPostConnectCmds->Disconnect(
wxEVT_STC_MODIFIED, wxStyledTextEventHandler(PSDebuggerPageBase::OnStcEvtVModified), NULL, this);
m_checkBoxDbgRemote->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_staticText31->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL,
this);
m_textCtrl1DbgHost->Disconnect(wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_textCtrl1DbgHost->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL,
this);
m_staticText32->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL,
this);
m_textCtrlDbgPort->Disconnect(wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_textCtrlDbgPort->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI), NULL,
this);
m_checkBoxDbgRemoteExt->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnRemoteDebugUI),
NULL, this);
m_checkBoxDbgRemoteExt->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
}
PSResourcesPageBase::PSResourcesPageBase(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer39 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer39);
wxArrayString m_pgMgrArr;
wxUnusedVar(m_pgMgrArr);
wxArrayInt m_pgMgrIntArr;
wxUnusedVar(m_pgMgrIntArr);
m_pgMgr = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(400, 400)),
wxPG_DESCRIPTION | wxPG_SPLITTER_AUTO_CENTER | wxPG_BOLD_MODIFIED);
bSizer39->Add(m_pgMgr, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
CATEGORY_RESOURCES = m_pgMgr->Append(new wxPropertyCategory(_("Resources")));
CATEGORY_RESOURCES->SetHelpString(wxT(""));
m_pgMgrArr.Clear();
m_pgMgrIntArr.Clear();
m_pgPropBehaviorWithGlobalSettings =
m_pgMgr->AppendIn(CATEGORY_RESOURCES,
new wxEnumProperty(_("Use with global settings"), wxPG_LABEL, m_pgMgrArr, m_pgMgrIntArr, 0));
m_pgPropBehaviorWithGlobalSettings->SetHelpString(
_("Define how CodeLite will merge the linker settings defined in the 'Global Settings' with the settings "
"defined on this page"));
m_pgPropResCmpOptions = m_pgMgr->AppendIn(
CATEGORY_RESOURCES, new wxStringProperty(_("Resource Compiler Options"), wxPG_LABEL, wxT("")));
m_pgPropResCmpOptions->SetHelpString(_("Resource compiler options provided as semi-colon list"));
m_pgPropResCmpOptions->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropResCmpSearchPath =
m_pgMgr->AppendIn(CATEGORY_RESOURCES, new wxStringProperty(_("Additional Search Path"), wxPG_LABEL, wxT("")));
m_pgPropResCmpSearchPath->SetHelpString(_("Resource compiler search path, as semi colon list"));
m_pgPropResCmpSearchPath->SetEditor(wxT("TextCtrlAndButton"));
SetName(wxT("PSResourcesPageBase"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSResourcesPageBase::OnProjectEnabledUI), NULL, this);
m_pgMgr->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(PSResourcesPageBase::OnValueChanged), NULL, this);
m_pgMgr->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSResourcesPageBase::OnCustomEditorClicked),
NULL, this);
m_pgMgr->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSResourcesPageBase::OnResourcesEnabledUI), NULL, this);
}
PSResourcesPageBase::~PSResourcesPageBase()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSResourcesPageBase::OnProjectEnabledUI), NULL, this);
m_pgMgr->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(PSResourcesPageBase::OnValueChanged), NULL, this);
m_pgMgr->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSResourcesPageBase::OnCustomEditorClicked),
NULL, this);
m_pgMgr->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSResourcesPageBase::OnResourcesEnabledUI), NULL, this);
}
PSEnvironmentBasePage::PSEnvironmentBasePage(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer44 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer44);
m_panelEnv = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxTAB_TRAVERSAL);
bSizer44->Add(m_panelEnv, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* bSizer34 = new wxBoxSizer(wxVERTICAL);
m_panelEnv->SetSizer(bSizer34);
wxFlexGridSizer* fgSizer12 = new wxFlexGridSizer(0, 2, 0, 0);
fgSizer12->SetFlexibleDirection(wxBOTH);
fgSizer12->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
fgSizer12->AddGrowableCol(1);
bSizer34->Add(fgSizer12, 0, wxEXPAND, WXC_FROM_DIP(5));
m_staticText44 = new wxStaticText(m_panelEnv, wxID_ANY, _("Environment variable set to use:"), wxDefaultPosition,
wxDLG_UNIT(m_panelEnv, wxSize(-1, -1)), 0);
fgSizer12->Add(m_staticText44, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
wxArrayString m_choiceEnvArr;
m_choiceEnv = new wxChoice(m_panelEnv, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panelEnv, wxSize(-1, -1)),
m_choiceEnvArr, 0);
fgSizer12->Add(m_choiceEnv, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticText45 = new wxStaticText(m_panelEnv, wxID_ANY, _("Debugger 'PreDefined Types' set to use:"),
wxDefaultPosition, wxDLG_UNIT(m_panelEnv, wxSize(-1, -1)), 0);
fgSizer12->Add(m_staticText45, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
wxArrayString m_choiceDbgEnvArr;
m_choiceDbgEnv = new wxChoice(m_panelEnv, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panelEnv, wxSize(-1, -1)),
m_choiceDbgEnvArr, 0);
fgSizer12->Add(m_choiceDbgEnv, 0, wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_staticline12 = new wxStaticLine(m_panelEnv, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panelEnv, wxSize(-1, -1)),
wxLI_HORIZONTAL);
bSizer34->Add(m_staticline12, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticText47 = new wxStaticText(m_panelEnv, wxID_ANY, _("Additional environment variables:"), wxDefaultPosition,
wxDLG_UNIT(m_panelEnv, wxSize(-1, -1)), 0);
bSizer34->Add(m_staticText47, 0, wxALL, WXC_FROM_DIP(5));
m_textCtrlEnvvars =
new clThemedSTC(m_panelEnv, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panelEnv, wxSize(-1, -1)), 0);
// Configure the fold margin
m_textCtrlEnvvars->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
m_textCtrlEnvvars->SetMarginMask(4, wxSTC_MASK_FOLDERS);
m_textCtrlEnvvars->SetMarginSensitive(4, true);
m_textCtrlEnvvars->SetMarginWidth(4, 0);
// Configure the tracker margin
m_textCtrlEnvvars->SetMarginWidth(1, 0);
// Configure the symbol margin
m_textCtrlEnvvars->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
m_textCtrlEnvvars->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
m_textCtrlEnvvars->SetMarginWidth(2, 0);
m_textCtrlEnvvars->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_textCtrlEnvvars->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_textCtrlEnvvars->SetMarginWidth(0, 0);
// Configure the line symbol margin
m_textCtrlEnvvars->SetMarginType(3, wxSTC_MARGIN_FORE);
m_textCtrlEnvvars->SetMarginMask(3, 0);
m_textCtrlEnvvars->SetMarginWidth(3, 0);
// Select the lexer
m_textCtrlEnvvars->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_textCtrlEnvvars->StyleClearAll();
m_textCtrlEnvvars->SetWrapMode(0);
m_textCtrlEnvvars->SetIndentationGuides(0);
m_textCtrlEnvvars->SetKeyWords(0, wxT(""));
m_textCtrlEnvvars->SetKeyWords(1, wxT(""));
m_textCtrlEnvvars->SetKeyWords(2, wxT(""));
m_textCtrlEnvvars->SetKeyWords(3, wxT(""));
m_textCtrlEnvvars->SetKeyWords(4, wxT(""));
bSizer34->Add(m_textCtrlEnvvars, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
SetName(wxT("PSEnvironmentBasePage"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSEnvironmentBasePage::OnProjectEnabledUI), NULL, this);
m_choiceEnv->Connect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(PSEnvironmentBasePage::OnCmdEvtVModified),
NULL, this);
m_choiceDbgEnv->Connect(wxEVT_COMMAND_CHOICE_SELECTED,
wxCommandEventHandler(PSEnvironmentBasePage::OnCmdEvtVModified), NULL, this);
m_textCtrlEnvvars->Connect(wxEVT_STC_MODIFIED, wxStyledTextEventHandler(PSEnvironmentBasePage::OnStcEvtVModified),
NULL, this);
}
PSEnvironmentBasePage::~PSEnvironmentBasePage()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSEnvironmentBasePage::OnProjectEnabledUI), NULL, this);
m_choiceEnv->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED,
wxCommandEventHandler(PSEnvironmentBasePage::OnCmdEvtVModified), NULL, this);
m_choiceDbgEnv->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED,
wxCommandEventHandler(PSEnvironmentBasePage::OnCmdEvtVModified), NULL, this);
m_textCtrlEnvvars->Disconnect(wxEVT_STC_MODIFIED,
wxStyledTextEventHandler(PSEnvironmentBasePage::OnStcEvtVModified), NULL, this);
}
PSBuildEventsBasePage::PSBuildEventsBasePage(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer41 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer41);
m_preBuildPage = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxTAB_TRAVERSAL);
bSizer41->Add(m_preBuildPage, 1, wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* bSizer8 = new wxBoxSizer(wxVERTICAL);
m_preBuildPage->SetSizer(bSizer8);
m_staticText11 = new wxStaticText(m_preBuildPage, wxID_ANY, wxT(""), wxDefaultPosition,
wxDLG_UNIT(m_preBuildPage, wxSize(-1, -1)), 0);
bSizer8->Add(m_staticText11, 0, wxLEFT | wxRIGHT | wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* bSizer9 = new wxBoxSizer(wxHORIZONTAL);
bSizer8->Add(bSizer9, 1, wxEXPAND, WXC_FROM_DIP(5));
m_textCtrlBuildEvents =
new clThemedSTC(m_preBuildPage, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_preBuildPage, wxSize(-1, -1)), 0);
// Configure the fold margin
m_textCtrlBuildEvents->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
m_textCtrlBuildEvents->SetMarginMask(4, wxSTC_MASK_FOLDERS);
m_textCtrlBuildEvents->SetMarginSensitive(4, true);
m_textCtrlBuildEvents->SetMarginWidth(4, 0);
// Configure the tracker margin
m_textCtrlBuildEvents->SetMarginWidth(1, 0);
// Configure the symbol margin
m_textCtrlBuildEvents->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
m_textCtrlBuildEvents->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
m_textCtrlBuildEvents->SetMarginWidth(2, 0);
m_textCtrlBuildEvents->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_textCtrlBuildEvents->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_textCtrlBuildEvents->SetMarginWidth(0, 0);
// Configure the line symbol margin
m_textCtrlBuildEvents->SetMarginType(3, wxSTC_MARGIN_FORE);
m_textCtrlBuildEvents->SetMarginMask(3, 0);
m_textCtrlBuildEvents->SetMarginWidth(3, 0);
// Select the lexer
m_textCtrlBuildEvents->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_textCtrlBuildEvents->StyleClearAll();
m_textCtrlBuildEvents->SetWrapMode(0);
m_textCtrlBuildEvents->SetIndentationGuides(0);
m_textCtrlBuildEvents->SetKeyWords(0, wxT(""));
m_textCtrlBuildEvents->SetKeyWords(1, wxT(""));
m_textCtrlBuildEvents->SetKeyWords(2, wxT(""));
m_textCtrlBuildEvents->SetKeyWords(3, wxT(""));
m_textCtrlBuildEvents->SetKeyWords(4, wxT(""));
bSizer9->Add(m_textCtrlBuildEvents, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
SetName(wxT("PSBuildEventsBasePage"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSBuildEventsBasePage::OnProjectEnabledUI), NULL, this);
m_textCtrlBuildEvents->Connect(wxEVT_STC_MODIFIED,
wxStyledTextEventHandler(PSBuildEventsBasePage::OnStcEvtVModified), NULL, this);
}
PSBuildEventsBasePage::~PSBuildEventsBasePage()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSBuildEventsBasePage::OnProjectEnabledUI), NULL, this);
m_textCtrlBuildEvents->Disconnect(wxEVT_STC_MODIFIED,
wxStyledTextEventHandler(PSBuildEventsBasePage::OnStcEvtVModified), NULL, this);
}
PSCustomBuildBasePage::PSCustomBuildBasePage(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer42 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer42);
m_customBuildPage =
new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxTAB_TRAVERSAL);
bSizer42->Add(m_customBuildPage, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* bSizer15 = new wxBoxSizer(wxVERTICAL);
m_customBuildPage->SetSizer(bSizer15);
m_checkEnableCustomBuild = new wxCheckBox(m_customBuildPage, wxID_ANY, _("Enable custom build"), wxDefaultPosition,
wxDLG_UNIT(m_customBuildPage, wxSize(-1, -1)), 0);
m_checkEnableCustomBuild->SetValue(false);
bSizer15->Add(m_checkEnableCustomBuild, 0, wxALL | wxALIGN_LEFT, WXC_FROM_DIP(5));
wxBoxSizer* bSizer23 = new wxBoxSizer(wxHORIZONTAL);
bSizer15->Add(bSizer23, 0, wxEXPAND, WXC_FROM_DIP(5));
m_staticText33 = new wxStaticText(m_customBuildPage, wxID_ANY, _("Working Directory:"), wxDefaultPosition,
wxDLG_UNIT(m_customBuildPage, wxSize(-1, -1)), 0);
bSizer23->Add(m_staticText33, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_textCtrlCustomBuildWD = new wxTextCtrl(m_customBuildPage, wxID_ANY, wxT(""), wxDefaultPosition,
wxDLG_UNIT(m_customBuildPage, wxSize(-1, -1)), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlCustomBuildWD->SetHint(wxT(""));
#endif
bSizer23->Add(m_textCtrlCustomBuildWD, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_buttonBrowseCustomBuildWD = new wxButton(m_customBuildPage, wxID_ANY, _("..."), wxDefaultPosition,
wxDLG_UNIT(m_customBuildPage, wxSize(-1, -1)), 0);
bSizer23->Add(m_buttonBrowseCustomBuildWD, 0, wxALL | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
wxBoxSizer* bSizer211 = new wxBoxSizer(wxHORIZONTAL);
bSizer15->Add(bSizer211, 1, wxEXPAND, WXC_FROM_DIP(5));
m_dvListCtrlTargets = new wxDataViewListCtrl(m_customBuildPage, wxID_ANY, wxDefaultPosition,
wxDLG_UNIT(m_customBuildPage, wxSize(-1, -1)),
wxDV_VERT_RULES | wxDV_ROW_LINES | wxDV_SINGLE);
bSizer211->Add(m_dvListCtrlTargets, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_dvListCtrlTargets->AppendTextColumn(_("Target"), wxDATAVIEW_CELL_INERT, WXC_FROM_DIP(150), wxALIGN_LEFT,
wxDATAVIEW_COL_RESIZABLE);
m_dvListCtrlTargets->AppendTextColumn(_("Command"), wxDATAVIEW_CELL_INERT, WXC_FROM_DIP(500), wxALIGN_LEFT,
wxDATAVIEW_COL_RESIZABLE);
wxBoxSizer* bSizer221 = new wxBoxSizer(wxVERTICAL);
bSizer211->Add(bSizer221, 0, wxEXPAND, WXC_FROM_DIP(5));
m_buttonNewCustomTarget = new wxButton(m_customBuildPage, wxID_ANY, _("New..."), wxDefaultPosition,
wxDLG_UNIT(m_customBuildPage, wxSize(-1, -1)), 0);
bSizer221->Add(m_buttonNewCustomTarget, 0, wxALL, WXC_FROM_DIP(5));
m_buttonEditCustomTarget = new wxButton(m_customBuildPage, wxID_ANY, _("Edit..."), wxDefaultPosition,
wxDLG_UNIT(m_customBuildPage, wxSize(-1, -1)), 0);
bSizer221->Add(m_buttonEditCustomTarget, 0, wxALL, WXC_FROM_DIP(5));
m_buttonDeleteCustomTarget = new wxButton(m_customBuildPage, wxID_ANY, _("Delete"), wxDefaultPosition,
wxDLG_UNIT(m_customBuildPage, wxSize(-1, -1)), 0);
bSizer221->Add(m_buttonDeleteCustomTarget, 0, wxALL, WXC_FROM_DIP(5));
SetName(wxT("PSCustomBuildBasePage"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnProjectEnabledUI), NULL, this);
m_checkEnableCustomBuild->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED,
wxCommandEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabled), NULL, this);
m_checkEnableCustomBuild->Connect(
wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildCBEnabledUI), NULL, this);
m_staticText33->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI),
NULL, this);
m_textCtrlCustomBuildWD->Connect(wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(PSCustomBuildBasePage::OnCmdEvtVModified), NULL, this);
m_textCtrlCustomBuildWD->Connect(wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI), NULL, this);
m_buttonBrowseCustomBuildWD->Connect(
wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSCustomBuildBasePage::OnBrowseCustomBuildWD), NULL, this);
m_buttonBrowseCustomBuildWD->Connect(
wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI), NULL, this);
m_dvListCtrlTargets->Connect(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED,
wxDataViewEventHandler(PSCustomBuildBasePage::OnTargetActivated), NULL, this);
m_dvListCtrlTargets->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnEnableTableUI), NULL,
this);
m_buttonNewCustomTarget->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSCustomBuildBasePage::OnNewTarget), NULL, this);
m_buttonNewCustomTarget->Connect(wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI), NULL, this);
m_buttonEditCustomTarget->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSCustomBuildBasePage::OnEditTarget), NULL, this);
m_buttonEditCustomTarget->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnEditTargetUI),
NULL, this);
m_buttonDeleteCustomTarget->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSCustomBuildBasePage::OnDeleteTarget), NULL, this);
m_buttonDeleteCustomTarget->Connect(wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(PSCustomBuildBasePage::OnDeleteTargetUI), NULL, this);
}
PSCustomBuildBasePage::~PSCustomBuildBasePage()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnProjectEnabledUI), NULL, this);
m_checkEnableCustomBuild->Disconnect(
wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabled), NULL, this);
m_checkEnableCustomBuild->Disconnect(
wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildCBEnabledUI), NULL, this);
m_staticText33->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI),
NULL, this);
m_textCtrlCustomBuildWD->Disconnect(wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(PSCustomBuildBasePage::OnCmdEvtVModified), NULL, this);
m_textCtrlCustomBuildWD->Disconnect(
wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI), NULL, this);
m_buttonBrowseCustomBuildWD->Disconnect(
wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(PSCustomBuildBasePage::OnBrowseCustomBuildWD), NULL, this);
m_buttonBrowseCustomBuildWD->Disconnect(
wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI), NULL, this);
m_dvListCtrlTargets->Disconnect(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED,
wxDataViewEventHandler(PSCustomBuildBasePage::OnTargetActivated), NULL, this);
m_dvListCtrlTargets->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnEnableTableUI),
NULL, this);
m_buttonNewCustomTarget->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSCustomBuildBasePage::OnNewTarget), NULL, this);
m_buttonNewCustomTarget->Disconnect(
wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI), NULL, this);
m_buttonEditCustomTarget->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSCustomBuildBasePage::OnEditTarget), NULL, this);
m_buttonEditCustomTarget->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnEditTargetUI),
NULL, this);
m_buttonDeleteCustomTarget->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(PSCustomBuildBasePage::OnDeleteTarget), NULL, this);
m_buttonDeleteCustomTarget->Disconnect(wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(PSCustomBuildBasePage::OnDeleteTargetUI), NULL, this);
}
GlobalSettingsBasePanel::GlobalSettingsBasePanel(wxWindow* parent, wxWindowID id, const wxPoint& pos,
const wxSize& size, long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer117 = new wxBoxSizer(wxHORIZONTAL);
this->SetSizer(bSizer117);
wxArrayString m_pgMgrArr;
wxUnusedVar(m_pgMgrArr);
wxArrayInt m_pgMgrIntArr;
wxUnusedVar(m_pgMgrIntArr);
m_pgMgr = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(400, 400)),
wxPG_DESCRIPTION | wxPG_SPLITTER_AUTO_CENTER | wxPG_BOLD_MODIFIED);
bSizer117->Add(m_pgMgr, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
CATEGORY_COMPILER = m_pgMgr->Append(new wxPropertyCategory(_("Compiler")));
CATEGORY_COMPILER->SetHelpString(wxT(""));
m_pgPropCppCmpOpts =
m_pgMgr->AppendIn(CATEGORY_COMPILER, new wxStringProperty(_("C++ Compiler Options"), wxPG_LABEL, wxT("")));
m_pgPropCppCmpOpts->SetHelpString(
_("Additional compiler options to pass to the compiler provided as a semi-colon delimited list These settings "
"are used by _all_ build configurations (e.g. Release and Debug)"));
m_pgPropCppCmpOpts->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropCCmpOpts =
m_pgMgr->AppendIn(CATEGORY_COMPILER, new wxStringProperty(_("C Compiler Options"), wxPG_LABEL, wxT("")));
m_pgPropCCmpOpts->SetHelpString(
_("Additional C compiler options to pass to the compiler provided as a semi-colon delimited list These "
"settings are used by _all_ build configurations (e.g. Release and Debug)"));
m_pgPropCCmpOpts->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropIncludePaths =
m_pgMgr->AppendIn(CATEGORY_COMPILER, new wxStringProperty(_("Additional Include Paths"), wxPG_LABEL, wxT("")));
m_pgPropIncludePaths->SetHelpString(_("Compiler search paths for header files. These settings are used by _all_ "
"build configurations (e.g. Release and Debug)"));
m_pgPropIncludePaths->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropPreProcessors =
m_pgMgr->AppendIn(CATEGORY_COMPILER, new wxStringProperty(_("Preprocessors"), wxPG_LABEL, wxT("")));
m_pgPropPreProcessors->SetHelpString(
_("Additional preprocessors definitions provided as a semi-colon delimited list These settings are used by "
"_all_ build configurations (e.g. Release and Debug)"));
m_pgPropPreProcessors->SetEditor(wxT("TextCtrlAndButton"));
CATEGORY_LINKER = m_pgMgr->Append(new wxPropertyCategory(_("Linker")));
CATEGORY_LINKER->SetHelpString(wxT(""));
m_pgPropOptions = m_pgMgr->AppendIn(CATEGORY_LINKER, new wxStringProperty(_("Options"), wxPG_LABEL, wxT("")));
m_pgPropOptions->SetHelpString(_("Additional linker options provided as a semi-colon delimited list These settings "
"are used by _all_ build configurations (e.g. Release and Debug)"));
m_pgPropOptions->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropLibPath = m_pgMgr->AppendIn(CATEGORY_LINKER, new wxStringProperty(_("Library Path"), wxPG_LABEL, wxT("")));
m_pgPropLibPath->SetHelpString(_("Additional library search path provided as a semi-colon delimited list These "
"settings are used by _all_ build configurations (e.g. Release and Debug)"));
m_pgPropLibPath->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropLIbs = m_pgMgr->AppendIn(CATEGORY_LINKER, new wxStringProperty(_("Libraries"), wxPG_LABEL, wxT("")));
m_pgPropLIbs->SetHelpString(_("Enter any extra library names, separated by';' e.g. Foo or Foo;Bar"));
m_pgPropLIbs->SetEditor(wxT("TextCtrlAndButton"));
CATEGORY_RESOURCES = m_pgMgr->Append(new wxPropertyCategory(_("Resources")));
CATEGORY_RESOURCES->SetHelpString(wxT(""));
m_pgPropResCmpOptions = m_pgMgr->AppendIn(
CATEGORY_RESOURCES, new wxStringProperty(_("Resource Compiler Options"), wxPG_LABEL, wxT("")));
m_pgPropResCmpOptions->SetHelpString(_("Resource compiler options provided as semi-colon list"));
m_pgPropResCmpOptions->SetEditor(wxT("TextCtrlAndButton"));
m_pgPropResCmpSearchPath =
m_pgMgr->AppendIn(CATEGORY_RESOURCES, new wxStringProperty(_("Additional Search Path"), wxPG_LABEL, wxT("")));
m_pgPropResCmpSearchPath->SetHelpString(_("Resource compiler search path, as semi colon list"));
m_pgPropResCmpSearchPath->SetEditor(wxT("TextCtrlAndButton"));
SetName(wxT("GlobalSettingsBasePanel"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
m_pgMgr->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(GlobalSettingsBasePanel::OnValueChanged), NULL, this);
m_pgMgr->Connect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(GlobalSettingsBasePanel::OnCustomEditorClicked), NULL, this);
}
GlobalSettingsBasePanel::~GlobalSettingsBasePanel()
{
m_pgMgr->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(GlobalSettingsBasePanel::OnValueChanged), NULL,
this);
m_pgMgr->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED,
wxCommandEventHandler(GlobalSettingsBasePanel::OnCustomEditorClicked), NULL, this);
}
PSCustomMakefileBasePage::PSCustomMakefileBasePage(wxWindow* parent, wxWindowID id, const wxPoint& pos,
const wxSize& size, long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer43 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer43);
m_customMakefileStep =
new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxTAB_TRAVERSAL);
bSizer43->Add(m_customMakefileStep, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* bSizer16 = new wxBoxSizer(wxVERTICAL);
m_customMakefileStep->SetSizer(bSizer16);
wxFlexGridSizer* fgSizer5 = new wxFlexGridSizer(2, 2, 0, 0);
fgSizer5->SetFlexibleDirection(wxBOTH);
fgSizer5->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
fgSizer5->AddGrowableCol(1);
fgSizer5->AddGrowableRow(1);
bSizer16->Add(fgSizer5, 1, wxEXPAND, WXC_FROM_DIP(5));
m_staticText25 = new wxStaticText(m_customMakefileStep, wxID_ANY, _("Dependencies:"), wxDefaultPosition,
wxDLG_UNIT(m_customMakefileStep, wxSize(-1, -1)), 0);
fgSizer5->Add(m_staticText25, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_textDeps = new wxTextCtrl(m_customMakefileStep, wxID_ANY, wxT(""), wxDefaultPosition,
wxDLG_UNIT(m_customMakefileStep, wxSize(-1, -1)), wxTE_NO_VSCROLL);
#ifdef __WXMSW__
// To get the newer version of the font on MSW, we use font wxSYS_DEFAULT_GUI_FONT with family set to
// wxFONTFAMILY_TELETYPE
wxFont m_textDepsFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_textDepsFont.SetFamily(wxFONTFAMILY_TELETYPE);
#else
wxFont m_textDepsFont = wxSystemSettings::GetFont(wxSYS_ANSI_FIXED_FONT);
m_textDepsFont.SetFamily(wxFONTFAMILY_TELETYPE);
#endif
m_textDeps->SetFont(m_textDepsFont);
#if wxVERSION_NUMBER >= 3000
m_textDeps->SetHint(wxT(""));
#endif
fgSizer5->Add(m_textDeps, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticText26 = new wxStaticText(m_customMakefileStep, wxID_ANY, _("Rule action:"), wxDefaultPosition,
wxDLG_UNIT(m_customMakefileStep, wxSize(-1, -1)), 0);
fgSizer5->Add(m_staticText26, 0, wxALL | wxALIGN_RIGHT, WXC_FROM_DIP(5));
m_textPreBuildRule = new clThemedSTC(m_customMakefileStep, wxID_ANY, wxDefaultPosition,
wxDLG_UNIT(m_customMakefileStep, wxSize(-1, -1)), 0);
// Configure the fold margin
m_textPreBuildRule->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
m_textPreBuildRule->SetMarginMask(4, wxSTC_MASK_FOLDERS);
m_textPreBuildRule->SetMarginSensitive(4, true);
m_textPreBuildRule->SetMarginWidth(4, 0);
// Configure the tracker margin
m_textPreBuildRule->SetMarginWidth(1, 0);
// Configure the symbol margin
m_textPreBuildRule->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
m_textPreBuildRule->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
m_textPreBuildRule->SetMarginWidth(2, 0);
m_textPreBuildRule->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_textPreBuildRule->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_textPreBuildRule->SetMarginWidth(0, 0);
// Configure the line symbol margin
m_textPreBuildRule->SetMarginType(3, wxSTC_MARGIN_FORE);
m_textPreBuildRule->SetMarginMask(3, 0);
m_textPreBuildRule->SetMarginWidth(3, 0);
// Select the lexer
m_textPreBuildRule->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_textPreBuildRule->StyleClearAll();
m_textPreBuildRule->SetWrapMode(0);
m_textPreBuildRule->SetIndentationGuides(0);
m_textPreBuildRule->SetKeyWords(0, wxT(""));
m_textPreBuildRule->SetKeyWords(1, wxT(""));
m_textPreBuildRule->SetKeyWords(2, wxT(""));
m_textPreBuildRule->SetKeyWords(3, wxT(""));
m_textPreBuildRule->SetKeyWords(4, wxT(""));
fgSizer5->Add(m_textPreBuildRule, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
wxStaticBoxSizer* sbSizer2 =
new wxStaticBoxSizer(new wxStaticBox(m_customMakefileStep, wxID_ANY, wxT("")), wxVERTICAL);
bSizer16->Add(sbSizer2, 0, wxEXPAND, WXC_FROM_DIP(5));
m_staticText24 = new wxStaticText(
m_customMakefileStep, wxID_ANY,
_("Define here a custom makefile rule to be executed in the pre-build steps.\nSee the wiki for more help"),
wxDefaultPosition, wxDLG_UNIT(m_customMakefileStep, wxSize(-1, -1)), 0);
sbSizer2->Add(m_staticText24, 0, wxALL, WXC_FROM_DIP(5));
SetName(wxT("PSCustomMakefileBasePage"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectEnabledUI), NULL, this);
m_staticText25->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI),
NULL, this);
m_textDeps->Connect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSCustomMakefileBasePage::OnCmdEvtVModified),
NULL, this);
m_textDeps->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI), NULL,
this);
m_staticText26->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI),
NULL, this);
m_textPreBuildRule->Connect(wxEVT_STC_MODIFIED,
wxStyledTextEventHandler(PSCustomMakefileBasePage::OnStcEvtVModified), NULL, this);
m_staticText24->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI),
NULL, this);
}
PSCustomMakefileBasePage::~PSCustomMakefileBasePage()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectEnabledUI), NULL, this);
m_staticText25->Disconnect(wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI), NULL, this);
m_textDeps->Disconnect(wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(PSCustomMakefileBasePage::OnCmdEvtVModified), NULL, this);
m_textDeps->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI),
NULL, this);
m_staticText26->Disconnect(wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI), NULL, this);
m_textPreBuildRule->Disconnect(wxEVT_STC_MODIFIED,
wxStyledTextEventHandler(PSCustomMakefileBasePage::OnStcEvtVModified), NULL, this);
m_staticText24->Disconnect(wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI), NULL, this);
}
PSCompletionBase::PSCompletionBase(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
: wxPanel(parent, id, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer34 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer34);
m_splitter1 = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)),
wxSP_LIVE_UPDATE | wxSP_NO_XP_THEME | wxSP_3DSASH);
m_splitter1->SetSashGravity(0.5);
m_splitter1->SetMinimumPaneSize(20);
bSizer34->Add(m_splitter1, 1, wxEXPAND, WXC_FROM_DIP(5));
m_panel14 =
new wxPanel(m_splitter1, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_splitter1, wxSize(-1, -1)), wxTAB_TRAVERSAL);
wxBoxSizer* bSizer35 = new wxBoxSizer(wxVERTICAL);
m_panel14->SetSizer(bSizer35);
m_staticText47 = new wxStaticText(m_panel14, wxID_ANY, _("Search paths:"), wxDefaultPosition,
wxDLG_UNIT(m_panel14, wxSize(-1, -1)), 0);
bSizer35->Add(m_staticText47, 0, wxALL, WXC_FROM_DIP(5));
m_textCtrlSearchPaths =
new clThemedSTC(m_panel14, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel14, wxSize(-1, -1)), 0);
// Configure the fold margin
m_textCtrlSearchPaths->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
m_textCtrlSearchPaths->SetMarginMask(4, wxSTC_MASK_FOLDERS);
m_textCtrlSearchPaths->SetMarginSensitive(4, true);
m_textCtrlSearchPaths->SetMarginWidth(4, 0);
// Configure the tracker margin
m_textCtrlSearchPaths->SetMarginWidth(1, 0);
// Configure the symbol margin
m_textCtrlSearchPaths->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
m_textCtrlSearchPaths->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
m_textCtrlSearchPaths->SetMarginWidth(2, 0);
m_textCtrlSearchPaths->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_textCtrlSearchPaths->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_textCtrlSearchPaths->SetMarginWidth(0, 0);
// Configure the line symbol margin
m_textCtrlSearchPaths->SetMarginType(3, wxSTC_MARGIN_FORE);
m_textCtrlSearchPaths->SetMarginMask(3, 0);
m_textCtrlSearchPaths->SetMarginWidth(3, 0);
// Select the lexer
m_textCtrlSearchPaths->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_textCtrlSearchPaths->StyleClearAll();
m_textCtrlSearchPaths->SetWrapMode(0);
m_textCtrlSearchPaths->SetIndentationGuides(0);
m_textCtrlSearchPaths->SetKeyWords(0, wxT(""));
m_textCtrlSearchPaths->SetKeyWords(1, wxT(""));
m_textCtrlSearchPaths->SetKeyWords(2, wxT(""));
m_textCtrlSearchPaths->SetKeyWords(3, wxT(""));
m_textCtrlSearchPaths->SetKeyWords(4, wxT(""));
bSizer35->Add(m_textCtrlSearchPaths, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_panel15 =
new wxPanel(m_splitter1, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_splitter1, wxSize(-1, -1)), wxTAB_TRAVERSAL);
m_splitter1->SplitHorizontally(m_panel14, m_panel15, 0);
wxBoxSizer* bSizer36 = new wxBoxSizer(wxVERTICAL);
m_panel15->SetSizer(bSizer36);
m_staticText49 = new wxStaticText(m_panel15, wxID_ANY, _("Macros (clang only):"), wxDefaultPosition,
wxDLG_UNIT(m_panel15, wxSize(-1, -1)), 0);
bSizer36->Add(m_staticText49, 0, wxALL, WXC_FROM_DIP(5));
m_textCtrlMacros =
new clThemedSTC(m_panel15, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panel15, wxSize(-1, -1)), 0);
// Configure the fold margin
m_textCtrlMacros->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
m_textCtrlMacros->SetMarginMask(4, wxSTC_MASK_FOLDERS);
m_textCtrlMacros->SetMarginSensitive(4, true);
m_textCtrlMacros->SetMarginWidth(4, 0);
// Configure the tracker margin
m_textCtrlMacros->SetMarginWidth(1, 0);
// Configure the symbol margin
m_textCtrlMacros->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
m_textCtrlMacros->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
m_textCtrlMacros->SetMarginWidth(2, 0);
m_textCtrlMacros->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_textCtrlMacros->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_textCtrlMacros->SetMarginWidth(0, 0);
// Configure the line symbol margin
m_textCtrlMacros->SetMarginType(3, wxSTC_MARGIN_FORE);
m_textCtrlMacros->SetMarginMask(3, 0);
m_textCtrlMacros->SetMarginWidth(3, 0);
// Select the lexer
m_textCtrlMacros->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_textCtrlMacros->StyleClearAll();
m_textCtrlMacros->SetWrapMode(0);
m_textCtrlMacros->SetIndentationGuides(0);
m_textCtrlMacros->SetKeyWords(0, wxT(""));
m_textCtrlMacros->SetKeyWords(1, wxT(""));
m_textCtrlMacros->SetKeyWords(2, wxT(""));
m_textCtrlMacros->SetKeyWords(3, wxT(""));
m_textCtrlMacros->SetKeyWords(4, wxT(""));
bSizer36->Add(m_textCtrlMacros, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
wxBoxSizer* bSizer40 = new wxBoxSizer(wxHORIZONTAL);
bSizer36->Add(bSizer40, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(5));
SetName(wxT("PSCompletionBase"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompletionBase::OnProjectEnabledUI), NULL, this);
m_textCtrlSearchPaths->Connect(wxEVT_STC_MODIFIED, wxStyledTextEventHandler(PSCompletionBase::OnStcEvtVModified),
NULL, this);
m_textCtrlMacros->Connect(wxEVT_STC_MODIFIED, wxStyledTextEventHandler(PSCompletionBase::OnStcEvtVModified), NULL,
this);
}
PSCompletionBase::~PSCompletionBase()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompletionBase::OnProjectEnabledUI), NULL, this);
m_textCtrlSearchPaths->Disconnect(wxEVT_STC_MODIFIED, wxStyledTextEventHandler(PSCompletionBase::OnStcEvtVModified),
NULL, this);
m_textCtrlMacros->Disconnect(wxEVT_STC_MODIFIED, wxStyledTextEventHandler(PSCompletionBase::OnStcEvtVModified),
NULL, this);
}
ProjectCustomBuildTragetDlgBase::ProjectCustomBuildTragetDlgBase(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size, long style)
: wxDialog(parent, id, title, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* boxSizer45 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(boxSizer45);
wxFlexGridSizer* flexGridSizer53 = new wxFlexGridSizer(0, 2, 0, 0);
flexGridSizer53->SetFlexibleDirection(wxBOTH);
flexGridSizer53->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
flexGridSizer53->AddGrowableCol(1);
flexGridSizer53->AddGrowableRow(1);
boxSizer45->Add(flexGridSizer53, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticTextTargetName =
new wxStaticText(this, wxID_ANY, _("Target Name:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
flexGridSizer53->Add(m_staticTextTargetName, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_textCtrlTargetName =
new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlTargetName->SetHint(wxT(""));
#endif
flexGridSizer53->Add(m_textCtrlTargetName, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_staticTextCommand =
new wxStaticText(this, wxID_ANY, _("Command:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
flexGridSizer53->Add(m_staticTextCommand, 0, wxALL | wxALIGN_RIGHT | wxALIGN_TOP, WXC_FROM_DIP(5));
m_textCtrlCommand = new clThemedSTC(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
// Configure the fold margin
m_textCtrlCommand->SetMarginType(4, wxSTC_MARGIN_SYMBOL);
m_textCtrlCommand->SetMarginMask(4, wxSTC_MASK_FOLDERS);
m_textCtrlCommand->SetMarginSensitive(4, true);
m_textCtrlCommand->SetMarginWidth(4, 0);
// Configure the tracker margin
m_textCtrlCommand->SetMarginWidth(1, 0);
// Configure the symbol margin
m_textCtrlCommand->SetMarginType(2, wxSTC_MARGIN_SYMBOL);
m_textCtrlCommand->SetMarginMask(2, ~(wxSTC_MASK_FOLDERS));
m_textCtrlCommand->SetMarginWidth(2, 0);
m_textCtrlCommand->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_textCtrlCommand->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_textCtrlCommand->SetMarginWidth(0, 0);
// Configure the line symbol margin
m_textCtrlCommand->SetMarginType(3, wxSTC_MARGIN_FORE);
m_textCtrlCommand->SetMarginMask(3, 0);
m_textCtrlCommand->SetMarginWidth(3, 0);
// Select the lexer
m_textCtrlCommand->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_textCtrlCommand->StyleClearAll();
m_textCtrlCommand->SetWrapMode(0);
m_textCtrlCommand->SetIndentationGuides(0);
m_textCtrlCommand->SetKeyWords(0, wxT(""));
m_textCtrlCommand->SetKeyWords(1, wxT(""));
m_textCtrlCommand->SetKeyWords(2, wxT(""));
m_textCtrlCommand->SetKeyWords(3, wxT(""));
m_textCtrlCommand->SetKeyWords(4, wxT(""));
flexGridSizer53->Add(m_textCtrlCommand, 1, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_stdBtnSizer120 = new wxStdDialogButtonSizer();
boxSizer45->Add(m_stdBtnSizer120, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(5));
m_button122 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_button122->SetDefault();
m_stdBtnSizer120->AddButton(m_button122);
m_button124 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_stdBtnSizer120->AddButton(m_button124);
m_stdBtnSizer120->Realize();
SetName(wxT("ProjectCustomBuildTragetDlgBase"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
if(GetParent()) {
CentreOnParent(wxBOTH);
} else {
CentreOnScreen(wxBOTH);
}
#if wxVERSION_NUMBER >= 2900
if(!wxPersistenceManager::Get().Find(this)) {
wxPersistenceManager::Get().RegisterAndRestore(this);
} else {
wxPersistenceManager::Get().Restore(this);
}
#endif
// Connect events
m_textCtrlTargetName->Connect(
wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ProjectCustomBuildTragetDlgBase::OnEditTargetNameUI), NULL, this);
}
ProjectCustomBuildTragetDlgBase::~ProjectCustomBuildTragetDlgBase()
{
m_textCtrlTargetName->Disconnect(
wxEVT_UPDATE_UI, wxUpdateUIEventHandler(ProjectCustomBuildTragetDlgBase::OnEditTargetNameUI), NULL, this);
}
CopyCompilerSettingsDlgBase::CopyCompilerSettingsDlgBase(wxWindow* parent, wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size, long style)
: wxDialog(parent, id, title, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCA3F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* boxSizer307 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(boxSizer307);
wxFlexGridSizer* flexGridSizer315 = new wxFlexGridSizer(0, 2, 0, 0);
flexGridSizer315->SetFlexibleDirection(wxBOTH);
flexGridSizer315->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
flexGridSizer315->AddGrowableCol(1);
boxSizer307->Add(flexGridSizer315, 1, wxALL | wxEXPAND, WXC_FROM_DIP(10));
m_staticText317 =
new wxStaticText(this, wxID_ANY, _("Project Name:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
flexGridSizer315->Add(m_staticText317, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
wxArrayString m_choiceProjectsArr;
m_choiceProjects =
new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(250, -1)), m_choiceProjectsArr, 0);
flexGridSizer315->Add(m_choiceProjects, 0, wxALL | wxEXPAND | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
m_staticText321 =
new wxStaticText(this, wxID_ANY, _("Configuration:"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
flexGridSizer315->Add(m_staticText321, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, WXC_FROM_DIP(5));
wxArrayString m_choiceConfigurationsArr;
m_choiceConfigurations =
new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), m_choiceConfigurationsArr, 0);
flexGridSizer315->Add(m_choiceConfigurations, 0, wxALL | wxEXPAND, WXC_FROM_DIP(5));
m_stdBtnSizer309 = new wxStdDialogButtonSizer();
boxSizer307->Add(m_stdBtnSizer309, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, WXC_FROM_DIP(10));
m_button311 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_stdBtnSizer309->AddButton(m_button311);
m_button313 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
m_button313->SetDefault();
m_stdBtnSizer309->AddButton(m_button313);
m_stdBtnSizer309->Realize();
SetName(wxT("CopyCompilerSettingsDlgBase"));
SetSize(wxDLG_UNIT(this, wxSize(-1, -1)));
if(GetSizer()) {
GetSizer()->Fit(this);
}
if(GetParent()) {
CentreOnParent(wxBOTH);
} else {
CentreOnScreen(wxBOTH);
}
#if wxVERSION_NUMBER >= 2900
if(!wxPersistenceManager::Get().Find(this)) {
wxPersistenceManager::Get().RegisterAndRestore(this);
} else {
wxPersistenceManager::Get().Restore(this);
}
#endif
}
CopyCompilerSettingsDlgBase::~CopyCompilerSettingsDlgBase() {}
|