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
|
//////////////////////////////////////////////////////////////////////
// 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, wxSize(-1, -1), wxTAB_TRAVERSAL);
mainSizer->Add(m_panelSettings, 1, wxEXPAND, 5);
wxBoxSizer* m_sizerSettings = new wxBoxSizer(wxVERTICAL);
m_panelSettings->SetSizer(m_sizerSettings);
wxBoxSizer* bSizer44 = new wxBoxSizer(wxHORIZONTAL);
m_sizerSettings->Add(bSizer44, 0, wxEXPAND, 5);
wxArrayString m_choiceConfigArr;
m_choiceConfig = new wxChoice(m_panelSettings, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_choiceConfigArr, 0);
bSizer44->Add(m_choiceConfig, 1, wxALL|wxEXPAND, 5);
m_treebook = new wxTreebook(m_panelSettings, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxBK_DEFAULT);
m_sizerSettings->Add(m_treebook, 1, wxALL|wxEXPAND, 5);
m_infobar = new wxInfoBar(this, wxID_ANY);
m_infobar->SetSize(wxSize(-1,-1));
m_infobar->Hide();
mainSizer->Add(m_infobar, 0, wxALL|wxEXPAND, 5);
m_stdBtnSizer126 = new wxStdDialogButtonSizer();
mainSizer->Add(m_stdBtnSizer126, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button_ok = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_button_ok->SetDefault();
m_stdBtnSizer126->AddButton(m_button_ok);
m_button_apply = new wxButton(this, wxID_APPLY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_stdBtnSizer126->AddButton(m_button_apply);
m_button_cancel = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_stdBtnSizer126->AddButton(m_button_cancel);
m_button_help = new wxButton(this, wxID_HELP, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_stdBtnSizer126->AddButton(m_button_help);
m_stdBtnSizer126->Realize();
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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, 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, 5);
wxArrayString m_pgMgr136Arr;
wxUnusedVar(m_pgMgr136Arr);
wxArrayInt m_pgMgr136IntArr;
wxUnusedVar(m_pgMgr136IntArr);
m_pgMgr136 = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxSize(400,400), wxPG_DESCRIPTION|wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED);
bSizer35->Add(m_pgMgr136, 1, wxALL|wxEXPAND, 5);
CATEGORY_GENERAL = m_pgMgr136->Append( new wxPropertyCategory( _("General Project Settings") ) );
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"));
m_pgMgr136Arr.Clear();
m_pgMgr136IntArr.Clear();
m_pgPropCompiler = m_pgMgr136->AppendIn( CATEGORY_GENERAL, 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_GENERAL, new wxStringProperty( _("Intermediate Folder"), wxPG_LABEL, wxT("")) );
m_pgPropIntermediateFolder->SetHelpString(_("The name of the folder used for the generated objects during compilation"));
m_pgPropOutputFile = m_pgMgr136->AppendIn( CATEGORY_GENERAL, new wxStringProperty( _("Output File"), wxPG_LABEL, wxT("")) );
m_pgPropOutputFile->SetHelpString(_("The name of the output file (e.g. the executable file name)"));
m_pgPropPause = m_pgMgr136->AppendIn( CATEGORY_GENERAL, 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"));
CATEGORY_EXECUTION = m_pgMgr136->Append( new wxPropertyCategory( _("Execution") ) );
CATEGORY_EXECUTION->SetHelpString(wxT(""));
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 wxStringProperty( _("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 wxStringProperty( _("Debug Program Arguments"), wxPG_LABEL, wxT("")) );
m_pgPropDebugArgs->SetHelpString(_("Arguments to pass to the debugger"));
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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);
}
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);
}
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);
m_checkCompilerNeeded = new wxCheckBox(this, wxID_ANY, _("Compiler is not required for this project"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkCompilerNeeded->SetValue(false);
boxSizer1761->Add(m_checkCompilerNeeded, 0, wxALL|wxALIGN_LEFT, 5);
wxArrayString m_pgMgrArr;
wxUnusedVar(m_pgMgrArr);
wxArrayInt m_pgMgrIntArr;
wxUnusedVar(m_pgMgrIntArr);
m_pgMgr = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxSize(400,400), wxPG_DESCRIPTION|wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED);
boxSizer1761->Add(m_pgMgr, 1, wxALL|wxEXPAND, 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( _("Excplicitly 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_pgMgrIntArr.Add(0);
m_pgMgrIntArr.Add(1);
m_pgPropPCHPolicy = m_pgMgr->AppendIn( CATEGORY_PCH, new wxEnumProperty( _("PCH Compile Flags Policy"), wxPG_LABEL, m_pgMgrArr, m_pgMgrIntArr, 0) );
m_pgPropPCHPolicy->SetHelpString(_("Set the PCH flags policy to:\n* Append - this means that the flags set in the 'PCH Compile Flags' field will be appended to default flags\n* Replace - the 'PCH Compile Flags' will replace any other flags"));
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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_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_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, wxSize(-1, -1), 0);
m_checkLinkerNeeded->SetValue(false);
bSizer37->Add(m_checkLinkerNeeded, 0, wxALL|wxALIGN_LEFT, 5);
wxArrayString m_pgMgrArr;
wxUnusedVar(m_pgMgrArr);
wxArrayInt m_pgMgrIntArr;
wxUnusedVar(m_pgMgrIntArr);
m_pgMgr = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxSize(400,400), wxPG_DESCRIPTION|wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED);
bSizer37->Add(m_pgMgr, 1, wxALL|wxEXPAND, 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") );
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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, wxSize(-1, -1), wxTAB_TRAVERSAL);
bSizer38->Add(m_panelDebugger, 1, wxALL|wxEXPAND, 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, wxSize(-1, -1), 0);
bSizer192->Add(m_staticText321, 0, wxALL|wxEXPAND, 5);
wxBoxSizer* boxSizer35 = new wxBoxSizer(wxHORIZONTAL);
bSizer192->Add(boxSizer35, 0, wxEXPAND, 5);
m_textCtrlDebuggerPath = new wxTextCtrl(m_panelDebugger, wxID_ANY, wxT(""), wxDefaultPosition, 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, 5);
m_button39 = new wxButton(m_panelDebugger, wxID_ANY, _("..."), wxDefaultPosition, wxSize(-1,-1), 0);
boxSizer35->Add(m_button39, 0, wxLEFT|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_notebook67 = new wxNotebook(m_panelDebugger, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxBK_DEFAULT);
bSizer192->Add(m_notebook67, 1, wxALL|wxEXPAND, 5);
m_panel80 = new wxPanel(m_notebook67, wxID_ANY, wxDefaultPosition, 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, wxSize(-1,-1), wxDV_NO_HEADER|wxDV_ROW_LINES|wxDV_MULTIPLE|wxDV_SINGLE);
boxSizer82->Add(m_dvListCtrlDebuggerSearchPaths, 1, wxALL|wxEXPAND, 5);
m_dvListCtrlDebuggerSearchPaths->AppendTextColumn(_("Path"), wxDATAVIEW_CELL_INERT, -2, wxALIGN_LEFT);
wxBoxSizer* boxSizer84 = new wxBoxSizer(wxVERTICAL);
boxSizer82->Add(boxSizer84, 0, wxEXPAND, 5);
m_button88 = new wxButton(m_panel80, wxID_ADD, _("&Add.."), wxDefaultPosition, wxSize(-1,-1), 0);
boxSizer84->Add(m_button88, 0, wxALL|wxEXPAND, 5);
m_button90 = new wxButton(m_panel80, wxID_DELETE, _("&Delete..."), wxDefaultPosition, wxSize(-1,-1), 0);
boxSizer84->Add(m_button90, 0, wxALL|wxEXPAND, 5);
m_panel71 = new wxPanel(m_notebook67, wxID_ANY, wxDefaultPosition, 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, wxSize(-1, -1), 0);
boxSizer76->Add(m_staticText301, 0, wxALL, 5);
m_textCtrlDbgCmds = new wxTextCtrl(m_panel71, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_MULTILINE|wxTE_DONTWRAP);
wxFont m_textCtrlDbgCmdsFont(12, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("Arial"));
m_textCtrlDbgCmds->SetFont(m_textCtrlDbgCmdsFont);
boxSizer76->Add(m_textCtrlDbgCmds, 1, wxALL|wxEXPAND, 5);
m_panel74 = new wxPanel(m_notebook67, wxID_ANY, wxDefaultPosition, 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, wxSize(-1, -1), 0);
boxSizer78->Add(m_staticText311, 0, wxALL|wxEXPAND, 5);
m_textCtrlDbgPostConnectCmds = new wxTextCtrl(m_panel74, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_MULTILINE|wxTE_DONTWRAP);
wxFont m_textCtrlDbgPostConnectCmdsFont(12, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("Arial"));
m_textCtrlDbgPostConnectCmds->SetFont(m_textCtrlDbgPostConnectCmdsFont);
boxSizer78->Add(m_textCtrlDbgPostConnectCmds, 1, wxALL|wxEXPAND, 5);
m_checkBoxDbgRemote = new wxCheckBox(m_panelDebugger, wxID_ANY, _("Debugging a remote target"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxDbgRemote->SetValue(false);
bSizer192->Add(m_checkBoxDbgRemote, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 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, 5);
m_staticText31 = new wxStaticText(m_panelDebugger, wxID_ANY, _("Host / tty:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer61->Add(m_staticText31, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrl1DbgHost = new wxTextCtrl(m_panelDebugger, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_NO_VSCROLL);
#if wxVERSION_NUMBER >= 3000
m_textCtrl1DbgHost->SetHint(wxT(""));
#endif
fgSizer61->Add(m_textCtrl1DbgHost, 0, wxALL|wxEXPAND, 5);
m_staticText32 = new wxStaticText(m_panelDebugger, wxID_ANY, _("Port:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer61->Add(m_staticText32, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlDbgPort = new wxTextCtrl(m_panelDebugger, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_NO_VSCROLL);
#if wxVERSION_NUMBER >= 3000
m_textCtrlDbgPort->SetHint(wxT(""));
#endif
fgSizer61->Add(m_textCtrlDbgPort, 0, wxALL, 5);
m_checkBoxDbgRemoteExt = new wxCheckBox(m_panelDebugger, wxID_ANY, _("Extended Protocol"), wxDefaultPosition, 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, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSDebuggerPageBase::OnProjectEnabledUI), 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_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_textCtrlDbgPostConnectCmds->Connect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), 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_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_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), NULL, this);
m_textCtrlDbgPostConnectCmds->Disconnect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSDebuggerPageBase::OnCmdEvtVModified), 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, wxSize(400,400), wxPG_DESCRIPTION|wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED);
bSizer39->Add(m_pgMgr, 1, wxALL|wxEXPAND, 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") );
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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, wxSize(-1, -1), wxTAB_TRAVERSAL);
bSizer44->Add(m_panelEnv, 1, wxALL|wxEXPAND, 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, 5);
m_staticText44 = new wxStaticText(m_panelEnv, wxID_ANY, _("Environment variable set to use:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer12->Add(m_staticText44, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
wxArrayString m_choiceEnvArr;
m_choiceEnv = new wxChoice(m_panelEnv, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_choiceEnvArr, 0);
fgSizer12->Add(m_choiceEnv, 0, wxALL|wxEXPAND, 5);
m_staticText45 = new wxStaticText(m_panelEnv, wxID_ANY, _("Debugger 'PreDefined Types' set to use:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer12->Add(m_staticText45, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
wxArrayString m_choiceDbgEnvArr;
m_choiceDbgEnv = new wxChoice(m_panelEnv, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_choiceDbgEnvArr, 0);
fgSizer12->Add(m_choiceDbgEnv, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5);
m_staticline12 = new wxStaticLine(m_panelEnv, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxLI_HORIZONTAL);
bSizer34->Add(m_staticline12, 0, wxALL|wxEXPAND, 5);
m_staticText47 = new wxStaticText(m_panelEnv, wxID_ANY, _("Additional environment variables:"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer34->Add(m_staticText47, 0, wxALL, 5);
m_textCtrlEnvvars = new wxTextCtrl(m_panelEnv, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_PROCESS_TAB|wxTE_PROCESS_ENTER|wxTE_MULTILINE);
bSizer34->Add(m_textCtrlEnvvars, 1, wxALL|wxEXPAND, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSEnvironmentBasePage::OnCmdEvtVModified), 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_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSEnvironmentBasePage::OnCmdEvtVModified), 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, wxSize(-1, -1), wxTAB_TRAVERSAL);
bSizer41->Add(m_preBuildPage, 1, wxEXPAND, 5);
wxBoxSizer* bSizer8 = new wxBoxSizer(wxVERTICAL);
m_preBuildPage->SetSizer(bSizer8);
m_staticText11 = new wxStaticText(m_preBuildPage, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer8->Add(m_staticText11, 0, wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5);
wxBoxSizer* bSizer9 = new wxBoxSizer(wxHORIZONTAL);
bSizer8->Add(bSizer9, 1, wxEXPAND, 5);
m_textCtrlBuildEvents = new wxTextCtrl(m_preBuildPage, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_PROCESS_TAB|wxTE_PROCESS_ENTER|wxTE_MULTILINE);
#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_textCtrlBuildEventsFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_textCtrlBuildEventsFont.SetFamily(wxFONTFAMILY_TELETYPE);
#else
wxFont m_textCtrlBuildEventsFont = wxSystemSettings::GetFont(wxSYS_ANSI_FIXED_FONT);
m_textCtrlBuildEventsFont.SetFamily(wxFONTFAMILY_TELETYPE);
#endif
m_textCtrlBuildEvents->SetFont(m_textCtrlBuildEventsFont);
bSizer9->Add(m_textCtrlBuildEvents, 1, wxALL|wxEXPAND, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSBuildEventsBasePage::OnProjectEnabledUI), NULL, this);
}
PSBuildEventsBasePage::~PSBuildEventsBasePage()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSBuildEventsBasePage::OnProjectEnabledUI), 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, wxSize(-1, -1), wxTAB_TRAVERSAL);
bSizer42->Add(m_customBuildPage, 1, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer15 = new wxBoxSizer(wxVERTICAL);
m_customBuildPage->SetSizer(bSizer15);
m_checkEnableCustomBuild = new wxCheckBox(m_customBuildPage, wxID_ANY, _("Enable custom build"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkEnableCustomBuild->SetValue(false);
bSizer15->Add(m_checkEnableCustomBuild, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_staticline12 = new wxStaticLine(m_customBuildPage, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxLI_HORIZONTAL);
bSizer15->Add(m_staticline12, 0, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer23 = new wxBoxSizer(wxHORIZONTAL);
bSizer15->Add(bSizer23, 0, wxEXPAND, 5);
m_staticText33 = new wxStaticText(m_customBuildPage, wxID_ANY, _("Working Directory:"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer23->Add(m_staticText33, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlCustomBuildWD = new wxTextCtrl(m_customBuildPage, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlCustomBuildWD->SetHint(wxT(""));
#endif
bSizer23->Add(m_textCtrlCustomBuildWD, 1, wxALL|wxEXPAND, 5);
m_buttonBrowseCustomBuildWD = new wxButton(m_customBuildPage, wxID_ANY, _("..."), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer23->Add(m_buttonBrowseCustomBuildWD, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
wxBoxSizer* bSizer211 = new wxBoxSizer(wxHORIZONTAL);
bSizer15->Add(bSizer211, 1, wxEXPAND, 5);
m_listCtrlTargets = new wxListCtrl(m_customBuildPage, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxLC_VRULES|wxLC_HRULES|wxLC_SINGLE_SEL|wxLC_REPORT|wxBORDER_THEME);
bSizer211->Add(m_listCtrlTargets, 1, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer221 = new wxBoxSizer(wxVERTICAL);
bSizer211->Add(bSizer221, 0, wxEXPAND, 5);
m_buttonNewCustomTarget = new wxButton(m_customBuildPage, wxID_ANY, _("New..."), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer221->Add(m_buttonNewCustomTarget, 0, wxALL, 5);
m_buttonEditCustomTarget = new wxButton(m_customBuildPage, wxID_ANY, _("Edit..."), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer221->Add(m_buttonEditCustomTarget, 0, wxALL, 5);
m_buttonDeleteCustomTarget = new wxButton(m_customBuildPage, wxID_ANY, _("Delete"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer221->Add(m_buttonDeleteCustomTarget, 0, wxALL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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_listCtrlTargets->Connect(wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler(PSCustomBuildBasePage::OnItemActivated), NULL, this);
m_listCtrlTargets->Connect(wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler(PSCustomBuildBasePage::OnItemSelected), NULL, this);
m_listCtrlTargets->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI), 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_listCtrlTargets->Disconnect(wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler(PSCustomBuildBasePage::OnItemActivated), NULL, this);
m_listCtrlTargets->Disconnect(wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler(PSCustomBuildBasePage::OnItemSelected), NULL, this);
m_listCtrlTargets->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomBuildBasePage::OnCustomBuildEnabledUI), 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, wxSize(400,400), wxPG_DESCRIPTION|wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED);
bSizer117->Add(m_pgMgr, 1, wxALL|wxEXPAND, 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") );
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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, wxSize(-1, -1), wxTAB_TRAVERSAL);
bSizer43->Add(m_customMakefileStep, 1, wxALL|wxEXPAND, 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, 5);
m_staticText25 = new wxStaticText(m_customMakefileStep, wxID_ANY, _("Dependencies:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer5->Add(m_staticText25, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textDeps = new wxTextCtrl(m_customMakefileStep, wxID_ANY, wxT(""), wxDefaultPosition, 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, 5);
m_staticText26 = new wxStaticText(m_customMakefileStep, wxID_ANY, _("Rule action:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer5->Add(m_staticText26, 0, wxALL|wxALIGN_RIGHT, 5);
m_textPreBuildRule = new wxTextCtrl(m_customMakefileStep, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_PROCESS_TAB|wxTE_PROCESS_ENTER|wxTE_MULTILINE|wxTE_DONTWRAP);
#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_textPreBuildRuleFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_textPreBuildRuleFont.SetFamily(wxFONTFAMILY_TELETYPE);
#else
wxFont m_textPreBuildRuleFont = wxSystemSettings::GetFont(wxSYS_ANSI_FIXED_FONT);
m_textPreBuildRuleFont.SetFamily(wxFONTFAMILY_TELETYPE);
#endif
m_textPreBuildRule->SetFont(m_textPreBuildRuleFont);
fgSizer5->Add(m_textPreBuildRule, 0, wxALL|wxEXPAND, 5);
wxStaticBoxSizer* sbSizer2 = new wxStaticBoxSizer( new wxStaticBox(m_customMakefileStep, wxID_ANY, wxT("")), wxVERTICAL);
bSizer16->Add(sbSizer2, 0, wxEXPAND, 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, wxSize(-1, -1), 0);
sbSizer2->Add(m_staticText24, 0, wxALL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSCustomMakefileBasePage::OnCmdEvtVModified), NULL, this);
m_textPreBuildRule->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI), 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_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSCustomMakefileBasePage::OnCmdEvtVModified), NULL, this);
m_textPreBuildRule->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCustomMakefileBasePage::OnProjectCustumBuildUI), 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, 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, 5);
m_panel14 = new wxPanel(m_splitter1, wxID_ANY, wxDefaultPosition, 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, wxSize(-1, -1), 0);
bSizer35->Add(m_staticText47, 0, wxALL, 5);
m_textCtrlSearchPaths = new wxTextCtrl(m_panel14, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_PROCESS_ENTER|wxTE_MULTILINE);
#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_textCtrlSearchPathsFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_textCtrlSearchPathsFont.SetFamily(wxFONTFAMILY_TELETYPE);
#else
wxFont m_textCtrlSearchPathsFont = wxSystemSettings::GetFont(wxSYS_ANSI_FIXED_FONT);
m_textCtrlSearchPathsFont.SetFamily(wxFONTFAMILY_TELETYPE);
#endif
m_textCtrlSearchPaths->SetFont(m_textCtrlSearchPathsFont);
bSizer35->Add(m_textCtrlSearchPaths, 1, wxALL|wxEXPAND, 5);
m_panel15 = new wxPanel(m_splitter1, wxID_ANY, wxDefaultPosition, 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, wxSize(-1, -1), 0);
bSizer36->Add(m_staticText49, 0, wxALL, 5);
m_textCtrlMacros = new wxTextCtrl(m_panel15, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_MULTILINE);
#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_textCtrlMacrosFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_textCtrlMacrosFont.SetFamily(wxFONTFAMILY_TELETYPE);
#else
wxFont m_textCtrlMacrosFont = wxSystemSettings::GetFont(wxSYS_ANSI_FIXED_FONT);
m_textCtrlMacrosFont.SetFamily(wxFONTFAMILY_TELETYPE);
#endif
m_textCtrlMacros->SetFont(m_textCtrlMacrosFont);
bSizer36->Add(m_textCtrlMacros, 1, wxLEFT|wxRIGHT|wxEXPAND, 5);
wxBoxSizer* bSizer40 = new wxBoxSizer(wxVERTICAL);
bSizer36->Add(bSizer40, 0, wxEXPAND, 5);
m_checkBoxC11 = new wxCheckBox(m_panel15, wxID_ANY, _("Enable C++11 Standard"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxC11->SetValue(false);
bSizer40->Add(m_checkBoxC11, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// Connect events
this->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompletionBase::OnProjectEnabledUI), NULL, this);
m_textCtrlSearchPaths->Connect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSCompletionBase::OnCmdEvtVModified), NULL, this);
m_textCtrlMacros->Connect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSCompletionBase::OnCmdEvtVModified), NULL, this);
m_checkBoxC11->Connect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(PSCompletionBase::OnCmdEvtVModified), NULL, this);
}
PSCompletionBase::~PSCompletionBase()
{
this->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(PSCompletionBase::OnProjectEnabledUI), NULL, this);
m_textCtrlSearchPaths->Disconnect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSCompletionBase::OnCmdEvtVModified), NULL, this);
m_textCtrlMacros->Disconnect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(PSCompletionBase::OnCmdEvtVModified), NULL, this);
m_checkBoxC11->Disconnect(wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler(PSCompletionBase::OnCmdEvtVModified), 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, 5);
m_staticTextTargetName = new wxStaticText(this, wxID_ANY, _("Target Name:"), wxDefaultPosition, wxSize(-1,-1), 0);
flexGridSizer53->Add(m_staticTextTargetName, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlTargetName = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1,-1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlTargetName->SetHint(wxT(""));
#endif
flexGridSizer53->Add(m_textCtrlTargetName, 1, wxALL|wxEXPAND, 5);
m_staticTextCommand = new wxStaticText(this, wxID_ANY, _("Command:"), wxDefaultPosition, wxSize(-1,-1), 0);
flexGridSizer53->Add(m_staticTextCommand, 0, wxALL|wxALIGN_RIGHT|wxALIGN_TOP, 5);
m_textCtrlCommand = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1,-1), wxTE_WORDWRAP|wxTE_RICH2|wxTE_MULTILINE);
m_textCtrlCommand->SetFocus();
flexGridSizer53->Add(m_textCtrlCommand, 0, wxALL|wxEXPAND, 5);
m_stdBtnSizer120 = new wxStdDialogButtonSizer();
boxSizer45->Add(m_stdBtnSizer120, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button122 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_button122->SetDefault();
m_stdBtnSizer120->AddButton(m_button122);
m_button124 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_stdBtnSizer120->AddButton(m_button124);
m_stdBtnSizer120->Realize();
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// 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);
}
|