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
|
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: subversion2.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////
#include "subversion2_ui.h"
// Declare the bitmap loading function
extern void wxC95F2InitBitmapResources();
static bool bBitmapLoaded = false;
SubversionPageBase::SubversionPageBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);
this->SetSizer(mainSizer);
m_splitter17 = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxSP_LIVE_UPDATE|wxSP_NO_XP_THEME|wxSP_3DSASH);
m_splitter17->SetSashGravity(0.5);
m_splitter17->SetMinimumPaneSize(10);
mainSizer->Add(m_splitter17, 1, wxEXPAND, 5);
m_splitterPageLeft = new wxPanel(m_splitter17, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTAB_TRAVERSAL);
wxBoxSizer* boxSizer27 = new wxBoxSizer(wxVERTICAL);
m_splitterPageLeft->SetSizer(boxSizer27);
m_treeCtrl = new wxTreeCtrl(m_splitterPageLeft, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxTR_DEFAULT_STYLE|wxTR_MULTIPLE);
boxSizer27->Add(m_treeCtrl, 1, wxEXPAND, 5);
m_splitterPageRight = new wxPanel(m_splitter17, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTAB_TRAVERSAL);
m_splitter17->SplitVertically(m_splitterPageLeft, m_splitterPageRight, 0);
wxBoxSizer* boxSizer30 = new wxBoxSizer(wxVERTICAL);
m_splitterPageRight->SetSizer(boxSizer30);
m_sci = new wxStyledTextCtrl(m_splitterPageRight, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), 0);
// Configure the fold margin
m_sci->SetMarginType (4, wxSTC_MARGIN_SYMBOL);
m_sci->SetMarginMask (4, wxSTC_MASK_FOLDERS);
m_sci->SetMarginSensitive(4, true);
m_sci->SetMarginWidth (4, 0);
// Configure the tracker margin
m_sci->SetMarginWidth(1, 0);
// Configure the symbol margin
m_sci->SetMarginType (2, wxSTC_MARGIN_SYMBOL);
m_sci->SetMarginMask (2, ~(wxSTC_MASK_FOLDERS));
m_sci->SetMarginWidth(2, 0);
m_sci->SetMarginSensitive(2, true);
// Configure the line numbers margin
m_sci->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_sci->SetMarginWidth(0,0);
// Configure the line symbol margin
m_sci->SetMarginType(3, wxSTC_MARGIN_FORE);
m_sci->SetMarginMask(3, 0);
m_sci->SetMarginWidth(3,0);
// Select the lexer
m_sci->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_sci->StyleClearAll();
m_sci->SetWrapMode(0);
m_sci->SetIndentationGuides(0);
m_sci->SetKeyWords(0, wxT(""));
m_sci->SetKeyWords(1, wxT(""));
m_sci->SetKeyWords(2, wxT(""));
m_sci->SetKeyWords(3, wxT(""));
m_sci->SetKeyWords(4, wxT(""));
boxSizer30->Add(m_sci, 1, wxALL|wxEXPAND, 2);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// Connect events
m_treeCtrl->Connect(wxEVT_COMMAND_TREE_ITEM_ACTIVATED, wxTreeEventHandler(SubversionPageBase::OnItemActivated), NULL, this);
m_treeCtrl->Connect(wxEVT_COMMAND_TREE_ITEM_MENU, wxTreeEventHandler(SubversionPageBase::OnTreeMenu), NULL, this);
m_sci->Connect(wxEVT_STC_UPDATEUI, wxStyledTextEventHandler(SubversionPageBase::OnUpdateUI), NULL, this);
m_sci->Connect(wxEVT_STC_CHARADDED, wxStyledTextEventHandler(SubversionPageBase::OnCharAdded), NULL, this);
m_sci->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(SubversionPageBase::OnKeyDown), NULL, this);
}
SubversionPageBase::~SubversionPageBase()
{
m_treeCtrl->Disconnect(wxEVT_COMMAND_TREE_ITEM_ACTIVATED, wxTreeEventHandler(SubversionPageBase::OnItemActivated), NULL, this);
m_treeCtrl->Disconnect(wxEVT_COMMAND_TREE_ITEM_MENU, wxTreeEventHandler(SubversionPageBase::OnTreeMenu), NULL, this);
m_sci->Disconnect(wxEVT_STC_UPDATEUI, wxStyledTextEventHandler(SubversionPageBase::OnUpdateUI), NULL, this);
m_sci->Disconnect(wxEVT_STC_CHARADDED, wxStyledTextEventHandler(SubversionPageBase::OnCharAdded), NULL, this);
m_sci->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(SubversionPageBase::OnKeyDown), NULL, this);
}
SvnCopyDialogBase::SvnCopyDialogBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer7 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer7);
wxFlexGridSizer* fgSizer1 = new wxFlexGridSizer(2, 2, 0, 0);
fgSizer1->SetFlexibleDirection( wxBOTH );
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer1->AddGrowableCol(1);
bSizer7->Add(fgSizer1, 0, wxEXPAND, 5);
m_staticText3 = new wxStaticText(this, wxID_ANY, _("Source URL:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer1->Add(m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlSourceURL = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlSourceURL->SetHint(wxT(""));
#endif
fgSizer1->Add(m_textCtrlSourceURL, 1, wxALL|wxEXPAND, 5);
m_staticText4 = new wxStaticText(this, wxID_ANY, _("Target URL:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer1->Add(m_staticText4, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlTargetURL = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlTargetURL->SetHint(wxT(""));
#endif
fgSizer1->Add(m_textCtrlTargetURL, 1, wxALL|wxEXPAND, 5);
m_staticText5 = new wxStaticText(this, wxID_ANY, _("Comment:"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer7->Add(m_staticText5, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_textCtrlComment = new wxTextCtrl(this, 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_textCtrlCommentFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_textCtrlCommentFont.SetFamily(wxFONTFAMILY_TELETYPE);
#else
wxFont m_textCtrlCommentFont = wxSystemSettings::GetFont(wxSYS_ANSI_FIXED_FONT);
m_textCtrlCommentFont.SetFamily(wxFONTFAMILY_TELETYPE);
#endif
m_textCtrlComment->SetFont(m_textCtrlCommentFont);
bSizer7->Add(m_textCtrlComment, 1, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer8 = new wxBoxSizer(wxHORIZONTAL);
bSizer7->Add(bSizer8, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button4 = new wxButton(this, wxID_OK, _("&OK"), wxDefaultPosition, wxSize(-1, -1), 0);
m_button4->SetDefault();
bSizer8->Add(m_button4, 0, wxALL, 5);
m_button5 = new wxButton(this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer8->Add(m_button5, 0, wxALL, 5);
SetSizeHints(575,315);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
}
SvnCopyDialogBase::~SvnCopyDialogBase()
{
}
SvnLoginDialogBase::SvnLoginDialogBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer10 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer10);
wxFlexGridSizer* fgSizer2 = new wxFlexGridSizer(2, 2, 0, 0);
fgSizer2->SetFlexibleDirection( wxBOTH );
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer2->AddGrowableCol(1);
bSizer10->Add(fgSizer2, 0, wxEXPAND, 5);
m_staticText6 = new wxStaticText(this, wxID_ANY, _("Username:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer2->Add(m_staticText6, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlUsername = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlUsername->SetHint(wxT(""));
#endif
fgSizer2->Add(m_textCtrlUsername, 0, wxALL|wxEXPAND, 5);
m_textCtrlUsername->SetMinSize(wxSize(300,-1));
m_staticText7 = new wxStaticText(this, wxID_ANY, _("Password:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer2->Add(m_staticText7, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlPassword = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_PASSWORD);
#if wxVERSION_NUMBER >= 3000
m_textCtrlPassword->SetHint(wxT(""));
#endif
fgSizer2->Add(m_textCtrlPassword, 0, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer11 = new wxBoxSizer(wxHORIZONTAL);
bSizer10->Add(bSizer11, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button6 = new wxButton(this, wxID_OK, _("&Login"), wxDefaultPosition, wxSize(-1, -1), 0);
m_button6->SetDefault();
bSizer11->Add(m_button6, 0, wxALL, 5);
m_button7 = new wxButton(this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer11->Add(m_button7, 0, wxALL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
}
SvnLoginDialogBase::~SvnLoginDialogBase()
{
}
SvnPreferencesDialogBase::SvnPreferencesDialogBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer12 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer12);
m_treebook1 = new wxTreebook(this, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxBK_DEFAULT);
wxImageList* m_treebook1_il = new wxImageList(16, 16);
m_treebook1->AssignImageList(m_treebook1_il);
bSizer12->Add(m_treebook1, 1, wxALL|wxEXPAND, 5);
m_panel3 = new wxPanel(m_treebook1, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxTAB_TRAVERSAL);
int m_panel3ImgIndex;
m_panel3ImgIndex = m_treebook1_il->Add(wxXmlResource::Get()->LoadBitmap(wxT("general")));
m_treebook1->AddPage(m_panel3, _("General"), true, m_panel3ImgIndex);
wxBoxSizer* bSizer15 = new wxBoxSizer(wxVERTICAL);
m_panel3->SetSizer(bSizer15);
wxFlexGridSizer* fgSizer3 = new wxFlexGridSizer(2, 3, 0, 0);
fgSizer3->SetFlexibleDirection( wxBOTH );
fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer3->AddGrowableCol(1);
bSizer15->Add(fgSizer3, 0, wxALL|wxEXPAND, 5);
m_staticTextExe = new wxStaticText(m_panel3, wxID_ANY, _("Executable:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer3->Add(m_staticTextExe, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlSvnExecutable = new wxTextCtrl(m_panel3, wxID_ANY, wxT("svn"), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlSvnExecutable->SetHint(wxT(""));
#endif
fgSizer3->Add(m_textCtrlSvnExecutable, 1, wxALL|wxEXPAND, 5);
m_buttonBrowse = new wxButton(m_panel3, wxID_ANY, _("Browse"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer3->Add(m_buttonBrowse, 0, wxRIGHT|wxTOP|wxBOTTOM, 5);
m_staticText9 = new wxStaticText(m_panel3, wxID_ANY, _("Ignore the following file patterns:"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer15->Add(m_staticText9, 0, wxALL, 5);
m_textCtrlIgnorePattern = new wxTextCtrl(m_panel3, wxID_ANY, wxT("*.o *.obj *.exe *.lib *.so *.dll *.a *.dynlib *.exp *.ilk *.pdb *.d *.tags *.suo *.ncb *.bak *.orig *.dll *.mine *.o.d *.session Debug Release DebugUnicode ReleaseUnicode"), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_MULTILINE);
bSizer15->Add(m_textCtrlIgnorePattern, 1, wxALL|wxEXPAND, 5);
wxStaticBoxSizer* sbSizer1 = new wxStaticBoxSizer( new wxStaticBox(m_panel3, wxID_ANY, wxT("")), wxVERTICAL);
bSizer15->Add(sbSizer1, 0, wxALL|wxEXPAND, 5);
m_checkBoxAddToSvn = new wxCheckBox(m_panel3, wxID_ANY, _("When adding file(s) to project, add it to svn as well"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxAddToSvn->SetValue(false);
sbSizer1->Add(m_checkBoxAddToSvn, 0, wxALL|wxEXPAND, 5);
m_checkBoxRetag = new wxCheckBox(m_panel3, wxID_ANY, _("Retag workspace after svn update, revert or applying patch"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxRetag->SetValue(false);
sbSizer1->Add(m_checkBoxRetag, 0, wxALL|wxEXPAND, 5);
m_checkBoxRenameFile = new wxCheckBox(m_panel3, wxID_ANY, _("When renaming a file in the project, rename it in the repository as well"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxRenameFile->SetValue(false);
sbSizer1->Add(m_checkBoxRenameFile, 0, wxALL|wxEXPAND, 5);
m_checkBoxUsePosixLocale = new wxCheckBox(m_panel3, wxID_ANY, _("Use POSIX Locale"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxUsePosixLocale->SetValue(true);
m_checkBoxUsePosixLocale->SetToolTip(_("When checked, CodeLite will use the default \"C\" locale instead of the current locale. This will ensure that svn command line output is parsed properly."));
sbSizer1->Add(m_checkBoxUsePosixLocale, 0, wxALL|wxEXPAND, 5);
m_panel4 = new wxPanel(m_treebook1, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxTAB_TRAVERSAL);
int m_panel4ImgIndex;
m_panel4ImgIndex = m_treebook1_il->Add(wxXmlResource::Get()->LoadBitmap(wxT("diff")));
m_treebook1->AddPage(m_panel4, _("External Diff"), false, m_panel4ImgIndex);
wxBoxSizer* bSizer16 = new wxBoxSizer(wxVERTICAL);
m_panel4->SetSizer(bSizer16);
m_checkBoxUseExternalDiff = new wxCheckBox(m_panel4, wxID_ANY, _("Use external diff tool"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxUseExternalDiff->SetValue(false);
bSizer16->Add(m_checkBoxUseExternalDiff, 0, wxALL, 5);
wxFlexGridSizer* fgSizer5 = new wxFlexGridSizer(1, 3, 0, 0);
fgSizer5->SetFlexibleDirection( wxBOTH );
fgSizer5->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer5->AddGrowableCol(1);
bSizer16->Add(fgSizer5, 0, wxALL|wxEXPAND, 5);
m_staticText10 = new wxStaticText(m_panel4, wxID_ANY, _("External Diff Viewer:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer5->Add(m_staticText10, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlDiffViewer = new wxTextCtrl(m_panel4, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlDiffViewer->SetHint(wxT(""));
#endif
fgSizer5->Add(m_textCtrlDiffViewer, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5);
m_buttonBrowseExtDiff = new wxButton(m_panel4, wxID_ANY, _("Browse"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer5->Add(m_buttonBrowseExtDiff, 0, wxALL, 5);
m_panel5 = new wxPanel(m_treebook1, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxTAB_TRAVERSAL);
int m_panel5ImgIndex;
m_panel5ImgIndex = m_treebook1_il->Add(wxXmlResource::Get()->LoadBitmap(wxT("secure")));
m_treebook1->AddPage(m_panel5, _("SSH Client"), false, m_panel5ImgIndex);
wxBoxSizer* bSizer161 = new wxBoxSizer(wxVERTICAL);
m_panel5->SetSizer(bSizer161);
wxFlexGridSizer* fgSizer6 = new wxFlexGridSizer(2, 3, 0, 0);
fgSizer6->SetFlexibleDirection( wxBOTH );
fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer6->AddGrowableCol(1);
bSizer161->Add(fgSizer6, 0, wxALL|wxEXPAND, 5);
m_staticText20 = new wxStaticText(m_panel5, wxID_ANY, _("SSH Client:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer6->Add(m_staticText20, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlSSHClient = new wxTextCtrl(m_panel5, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlSSHClient->SetHint(wxT(""));
#endif
fgSizer6->Add(m_textCtrlSSHClient, 0, wxALL|wxEXPAND, 5);
m_button12 = new wxButton(m_panel5, wxID_ANY, _("Browse"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer6->Add(m_button12, 0, wxALL, 5);
m_staticText21 = new wxStaticText(m_panel5, wxID_ANY, _("SSH Client arguments:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer6->Add(m_staticText21, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlSshClientArgs = new wxTextCtrl(m_panel5, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlSshClientArgs->SetHint(wxT(""));
#endif
fgSizer6->Add(m_textCtrlSshClientArgs, 0, wxALL|wxEXPAND, 5);
wxStaticBoxSizer* sbSizer2 = new wxStaticBoxSizer( new wxStaticBox(m_panel5, wxID_ANY, wxT("")), wxVERTICAL);
bSizer161->Add(sbSizer2, 1, wxALL|wxEXPAND, 5);
m_staticText22 = new wxStaticText(m_panel5, wxID_ANY, _("The SSH client field should contain the command to be\nused by the SVN command line client for establishing a secured channel. \n\nFor example, on Windows it should contain something like:\n/path/to/plink.exe -l <user name> -pw <svn password>\n\nIf you dont need SSH channel, leave this field empty"), wxDefaultPosition, wxSize(-1, -1), 0);
sbSizer2->Add(m_staticText22, 0, wxALL|wxEXPAND, 5);
m_panel6 = new wxPanel(m_treebook1, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxTAB_TRAVERSAL);
int m_panel6ImgIndex;
m_panel6ImgIndex = m_treebook1_il->Add(wxXmlResource::Get()->LoadBitmap(wxT("integration")));
m_treebook1->AddPage(m_panel6, _("Integration"), false, m_panel6ImgIndex);
wxBoxSizer* bSizer23 = new wxBoxSizer(wxVERTICAL);
m_panel6->SetSizer(bSizer23);
wxStaticBoxSizer* sbSizer5 = new wxStaticBoxSizer( new wxStaticBox(m_panel6, wxID_ANY, _("Auto Revision:")), wxVERTICAL);
bSizer23->Add(sbSizer5, 0, wxALL|wxEXPAND, 5);
m_checkBoxExposeRevisionMacro = new wxCheckBox(m_panel6, wxID_ANY, _("Add revision number as preprocessor definition in the compilation line"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxExposeRevisionMacro->SetValue(false);
sbSizer5->Add(m_checkBoxExposeRevisionMacro, 0, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer24 = new wxBoxSizer(wxHORIZONTAL);
sbSizer5->Add(bSizer24, 0, wxALL|wxEXPAND, 5);
m_staticText29 = new wxStaticText(m_panel6, wxID_ANY, _("Preprocessor name:"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer24->Add(m_staticText29, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlMacroName = new wxTextCtrl(m_panel6, wxID_ANY, wxT("SVN_REVISION"), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlMacroName->SetHint(wxT(""));
#endif
bSizer24->Add(m_textCtrlMacroName, 1, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer13 = new wxBoxSizer(wxHORIZONTAL);
bSizer12->Add(bSizer13, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button8 = new wxButton(this, wxID_OK, _("&OK"), wxDefaultPosition, wxSize(-1, -1), 0);
m_button8->SetDefault();
bSizer13->Add(m_button8, 0, wxALL, 5);
m_button9 = new wxButton(this, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer13->Add(m_button9, 0, wxALL, 5);
m_treebook1->ExpandNode( 0, true );
m_treebook1->ExpandNode( 1, true );
m_treebook1->ExpandNode( 2, true );
m_treebook1->ExpandNode( 3, true );
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// Connect events
m_buttonBrowse->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnPreferencesDialogBase::OnBrowseSvnExe), NULL, this);
m_staticText10->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnUseExternalDiffUI), NULL, this);
m_textCtrlDiffViewer->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnUseExternalDiffUI), NULL, this);
m_buttonBrowseExtDiff->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnPreferencesDialogBase::OnBrowseDiffViewer), NULL, this);
m_buttonBrowseExtDiff->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnUseExternalDiffUI), NULL, this);
m_button12->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnPreferencesDialogBase::OnBrowseSSHClient), NULL, this);
m_staticText29->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnAddRevisionMacroUI), NULL, this);
m_textCtrlMacroName->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnAddRevisionMacroUI), NULL, this);
m_button8->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnPreferencesDialogBase::OnButtonOK), NULL, this);
}
SvnPreferencesDialogBase::~SvnPreferencesDialogBase()
{
m_buttonBrowse->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnPreferencesDialogBase::OnBrowseSvnExe), NULL, this);
m_staticText10->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnUseExternalDiffUI), NULL, this);
m_textCtrlDiffViewer->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnUseExternalDiffUI), NULL, this);
m_buttonBrowseExtDiff->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnPreferencesDialogBase::OnBrowseDiffViewer), NULL, this);
m_buttonBrowseExtDiff->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnUseExternalDiffUI), NULL, this);
m_button12->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnPreferencesDialogBase::OnBrowseSSHClient), NULL, this);
m_staticText29->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnAddRevisionMacroUI), NULL, this);
m_textCtrlMacroName->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnPreferencesDialogBase::OnAddRevisionMacroUI), NULL, this);
m_button8->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnPreferencesDialogBase::OnButtonOK), NULL, this);
}
SvnInfoDialogBase::SvnInfoDialogBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer17 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer17);
wxStaticBoxSizer* sbSizer3 = new wxStaticBoxSizer( new wxStaticBox(this, wxID_ANY, wxT("")), wxVERTICAL);
bSizer17->Add(sbSizer3, 0, wxALL|wxEXPAND, 5);
wxFlexGridSizer* fgSizer7 = new wxFlexGridSizer(5, 2, 0, 0);
fgSizer7->SetFlexibleDirection( wxBOTH );
fgSizer7->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer7->AddGrowableCol(1);
sbSizer3->Add(fgSizer7, 1, wxALL|wxEXPAND, 5);
m_staticText19 = new wxStaticText(this, wxID_ANY, _("Root URL:"), wxDefaultPosition, wxSize(-1, -1), 0);
wxFont m_staticText19Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_staticText19Font.SetWeight(wxFONTWEIGHT_BOLD);
m_staticText19->SetFont(m_staticText19Font);
fgSizer7->Add(m_staticText19, 0, wxALL|wxALIGN_RIGHT, 5);
m_textCtrlRootURL = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(500,-1), wxTE_READONLY);
#if wxVERSION_NUMBER >= 3000
m_textCtrlRootURL->SetHint(wxT(""));
#endif
fgSizer7->Add(m_textCtrlRootURL, 0, wxALL|wxEXPAND, 5);
m_staticText21 = new wxStaticText(this, wxID_ANY, _("URL:"), wxDefaultPosition, wxSize(-1, -1), 0);
wxFont m_staticText21Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_staticText21Font.SetWeight(wxFONTWEIGHT_BOLD);
m_staticText21->SetFont(m_staticText21Font);
fgSizer7->Add(m_staticText21, 0, wxALL|wxALIGN_RIGHT, 5);
m_textCtrlURL = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_READONLY);
#if wxVERSION_NUMBER >= 3000
m_textCtrlURL->SetHint(wxT(""));
#endif
fgSizer7->Add(m_textCtrlURL, 0, wxALL|wxEXPAND, 5);
m_staticText23 = new wxStaticText(this, wxID_ANY, _("Revision:"), wxDefaultPosition, wxSize(-1, -1), 0);
wxFont m_staticText23Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_staticText23Font.SetWeight(wxFONTWEIGHT_BOLD);
m_staticText23->SetFont(m_staticText23Font);
fgSizer7->Add(m_staticText23, 0, wxALL|wxALIGN_RIGHT, 5);
m_textCtrlRevision = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_READONLY);
#if wxVERSION_NUMBER >= 3000
m_textCtrlRevision->SetHint(wxT(""));
#endif
fgSizer7->Add(m_textCtrlRevision, 0, wxALL|wxEXPAND, 5);
m_staticText25 = new wxStaticText(this, wxID_ANY, _("Author:"), wxDefaultPosition, wxSize(-1, -1), 0);
wxFont m_staticText25Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_staticText25Font.SetWeight(wxFONTWEIGHT_BOLD);
m_staticText25->SetFont(m_staticText25Font);
fgSizer7->Add(m_staticText25, 0, wxALL|wxALIGN_RIGHT, 5);
m_textCtrlAuthor = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_READONLY);
#if wxVERSION_NUMBER >= 3000
m_textCtrlAuthor->SetHint(wxT(""));
#endif
fgSizer7->Add(m_textCtrlAuthor, 0, wxALL|wxEXPAND, 5);
m_staticText27 = new wxStaticText(this, wxID_ANY, _("Date:"), wxDefaultPosition, wxSize(-1, -1), 0);
wxFont m_staticText27Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_staticText27Font.SetWeight(wxFONTWEIGHT_BOLD);
m_staticText27->SetFont(m_staticText27Font);
fgSizer7->Add(m_staticText27, 0, wxALL|wxALIGN_RIGHT, 5);
m_textCtrlDate = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_READONLY);
#if wxVERSION_NUMBER >= 3000
m_textCtrlDate->SetHint(wxT(""));
#endif
fgSizer7->Add(m_textCtrlDate, 0, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer18 = new wxBoxSizer(wxHORIZONTAL);
bSizer17->Add(bSizer18, 0, wxALIGN_CENTER_HORIZONTAL, 5);
m_button13 = new wxButton(this, wxID_OK, _("&OK"), wxDefaultPosition, wxSize(-1, -1), 0);
m_button13->SetDefault();
bSizer18->Add(m_button13, 0, wxALL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
}
SvnInfoDialogBase::~SvnInfoDialogBase()
{
}
SvnCheckoutDialogBase::SvnCheckoutDialogBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer19 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer19);
wxStaticBoxSizer* sbSizer4 = new wxStaticBoxSizer( new wxStaticBox(this, wxID_ANY, wxT("")), wxVERTICAL);
bSizer19->Add(sbSizer4, 0, wxALL|wxEXPAND, 5);
wxFlexGridSizer* fgSizer8 = new wxFlexGridSizer(2, 3, 0, 0);
fgSizer8->SetFlexibleDirection( wxBOTH );
fgSizer8->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer8->AddGrowableCol(1);
sbSizer4->Add(fgSizer8, 1, wxALL|wxEXPAND, 5);
m_staticText24 = new wxStaticText(this, wxID_ANY, _("URL of repository:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer8->Add(m_staticText24, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
wxArrayString m_comboBoxRepoURLArr;
m_comboBoxRepoURL = new wxComboBox(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), m_comboBoxRepoURLArr, 0);
#if wxVERSION_NUMBER >= 3000
m_comboBoxRepoURL->SetHint(wxT(""));
#endif
fgSizer8->Add(m_comboBoxRepoURL, 0, wxALL|wxEXPAND, 5);
fgSizer8->Add(0, 0, 1, wxEXPAND, 5);
m_staticText25 = new wxStaticText(this, wxID_ANY, _("Checkout directory:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer8->Add(m_staticText25, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrl20 = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrl20->SetHint(wxT(""));
#endif
fgSizer8->Add(m_textCtrl20, 0, wxALL|wxEXPAND, 5);
m_buttonBrowseDir = new wxButton(this, wxID_ANY, _("Browse"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer8->Add(m_buttonBrowseDir, 0, wxALL, 5);
bSizer19->Add(0, 0, 1, wxBOTTOM|wxEXPAND, 5);
wxBoxSizer* bSizer20 = new wxBoxSizer(wxHORIZONTAL);
bSizer19->Add(bSizer20, 0, wxALIGN_CENTER_HORIZONTAL, 5);
m_button14 = new wxButton(this, wxID_OK, _("OK"), wxDefaultPosition, wxSize(-1, -1), 0);
m_button14->SetDefault();
bSizer20->Add(m_button14, 0, wxALL, 5);
m_button15 = new wxButton(this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer20->Add(m_button15, 0, wxALL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// Connect events
m_comboBoxRepoURL->Connect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(SvnCheckoutDialogBase::OnCheckoutDirectoryText), NULL, this);
m_buttonBrowseDir->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnCheckoutDialogBase::OnBrowseDirectory), NULL, this);
m_button14->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnCheckoutDialogBase::OnOK), NULL, this);
m_button14->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnCheckoutDialogBase::OnOkUI), NULL, this);
}
SvnCheckoutDialogBase::~SvnCheckoutDialogBase()
{
m_comboBoxRepoURL->Disconnect(wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(SvnCheckoutDialogBase::OnCheckoutDirectoryText), NULL, this);
m_buttonBrowseDir->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnCheckoutDialogBase::OnBrowseDirectory), NULL, this);
m_button14->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(SvnCheckoutDialogBase::OnOK), NULL, this);
m_button14->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(SvnCheckoutDialogBase::OnOkUI), NULL, this);
}
SvnLogDialogBase::SvnLogDialogBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer21 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer21);
wxFlexGridSizer* fgSizer9 = new wxFlexGridSizer(2, 2, 0, 0);
fgSizer9->SetFlexibleDirection( wxBOTH );
fgSizer9->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer9->AddGrowableCol(1);
bSizer21->Add(fgSizer9, 0, wxALL|wxEXPAND, 5);
m_staticText28 = new wxStaticText(this, wxID_ANY, _("From revision:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer9->Add(m_staticText28, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_from = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(200,-1), 0);
#if wxVERSION_NUMBER >= 3000
m_from->SetHint(wxT(""));
#endif
fgSizer9->Add(m_from, 0, wxALL|wxEXPAND, 5);
m_staticText29 = new wxStaticText(this, wxID_ANY, _("To revision:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer9->Add(m_staticText29, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_to = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_to->SetHint(wxT(""));
#endif
fgSizer9->Add(m_to, 0, wxALL|wxEXPAND, 5);
m_compact = new wxCheckBox(this, wxID_ANY, _("Create compact log"), wxDefaultPosition, wxSize(-1, -1), 0);
m_compact->SetValue(false);
bSizer21->Add(m_compact, 0, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer22 = new wxBoxSizer(wxHORIZONTAL);
bSizer21->Add(bSizer22, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button17 = new wxButton(this, wxID_OK, _("&OK"), wxDefaultPosition, wxSize(-1, -1), 0);
m_button17->SetDefault();
bSizer22->Add(m_button17, 0, wxALL, 5);
m_button18 = new wxButton(this, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer22->Add(m_button18, 0, wxALL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
}
SvnLogDialogBase::~SvnLogDialogBase()
{
}
DiffDialogBase::DiffDialogBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer25 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer25);
wxFlexGridSizer* fgSizer9 = new wxFlexGridSizer(0, 2, 0, 0);
fgSizer9->SetFlexibleDirection( wxBOTH );
fgSizer9->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer9->AddGrowableCol(1);
bSizer25->Add(fgSizer9, 0, wxALL|wxEXPAND, 5);
m_staticText25 = new wxStaticText(this, wxID_ANY, _("From Revision:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer9->Add(m_staticText25, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlFromRev = new wxTextCtrl(this, wxID_ANY, wxT("BASE"), wxDefaultPosition, wxSize(-1, -1), 0);
m_textCtrlFromRev->SetFocus();
#if wxVERSION_NUMBER >= 3000
m_textCtrlFromRev->SetHint(wxT(""));
#endif
fgSizer9->Add(m_textCtrlFromRev, 0, wxALL|wxEXPAND, 5);
m_staticText26 = new wxStaticText(this, wxID_ANY, _("To Revision:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer9->Add(m_staticText26, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlToRev = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
#if wxVERSION_NUMBER >= 3000
m_textCtrlToRev->SetHint(wxT(""));
#endif
fgSizer9->Add(m_textCtrlToRev, 0, wxALL|wxEXPAND, 5);
bSizer25->Add(0, 0, 1, wxTOP|wxBOTTOM|wxEXPAND, 5);
m_checkBoxIgnoreWhitespace = new wxCheckBox(this, wxID_ANY, _("Ignore whitespaces"), wxDefaultPosition, wxSize(-1,-1), 0);
m_checkBoxIgnoreWhitespace->SetValue(true);
bSizer25->Add(m_checkBoxIgnoreWhitespace, 0, wxALL, 5);
wxBoxSizer* bSizer26 = new wxBoxSizer(wxHORIZONTAL);
bSizer25->Add(bSizer26, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button20 = new wxButton(this, wxID_OK, _("&OK"), wxDefaultPosition, wxSize(-1, -1), 0);
m_button20->SetDefault();
bSizer26->Add(m_button20, 0, wxALL, 5);
m_button19 = new wxButton(this, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer26->Add(m_button19, 0, wxALL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
}
DiffDialogBase::~DiffDialogBase()
{
}
ChangeLogPageBase::ChangeLogPageBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer27 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer27);
m_textCtrl = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2|wxTE_PROCESS_TAB|wxTE_PROCESS_ENTER|wxTE_MULTILINE|wxTE_DONTWRAP|wxTE_AUTO_URL);
#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_textCtrlFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_textCtrlFont.SetFamily(wxFONTFAMILY_TELETYPE);
#else
wxFont m_textCtrlFont = wxSystemSettings::GetFont(wxSYS_ANSI_FIXED_FONT);
m_textCtrlFont.SetFamily(wxFONTFAMILY_TELETYPE);
#endif
m_textCtrl->SetFont(m_textCtrlFont);
bSizer27->Add(m_textCtrl, 1, wxALL|wxEXPAND, 5);
SetSizeHints(500,300);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// Connect events
m_textCtrl->Connect(wxEVT_COMMAND_TEXT_URL, wxCommandEventHandler(ChangeLogPageBase::OnURL), NULL, this);
}
ChangeLogPageBase::~ChangeLogPageBase()
{
m_textCtrl->Disconnect(wxEVT_COMMAND_TEXT_URL, wxCommandEventHandler(ChangeLogPageBase::OnURL), NULL, this);
}
SvnPropsBaseDlg::SvnPropsBaseDlg(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer28 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer28);
m_staticTextURL = new wxStaticText(this, wxID_ANY, _("Title"), wxDefaultPosition, wxSize(-1, -1), 0);
wxFont m_staticTextURLFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
m_staticTextURLFont.SetStyle(wxFONTSTYLE_ITALIC);
m_staticTextURLFont.SetWeight(wxFONTWEIGHT_BOLD);
m_staticTextURL->SetFont(m_staticTextURLFont);
bSizer28->Add(m_staticTextURL, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
wxFlexGridSizer* fgSizer10 = new wxFlexGridSizer(0, 2, 0, 0);
fgSizer10->SetFlexibleDirection( wxBOTH );
fgSizer10->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer10->AddGrowableCol(1);
bSizer28->Add(fgSizer10, 0, wxALL|wxEXPAND, 5);
m_staticText27 = new wxStaticText(this, wxID_ANY, _("Bug URL Pattern:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer10->Add(m_staticText27, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlBugURL = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_textCtrlBugURL->SetToolTip(_("Enter here the URL for the bug details.\nFor example: http://mytracker.com?bug_id=$(BUGID)"));
#if wxVERSION_NUMBER >= 3000
m_textCtrlBugURL->SetHint(wxT(""));
#endif
fgSizer10->Add(m_textCtrlBugURL, 0, wxALL|wxEXPAND, 5);
m_staticText33 = new wxStaticText(this, wxID_ANY, _("Bug Message Pattern:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer10->Add(m_staticText33, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlBugMsg = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_textCtrlBugMsg->SetToolTip(_("Enter here the message to add to the commit log. You may use the $(BUG_URL) and $(BUGID) macros.\nAn example: \"Fixed: BUG#$(BUGID), See $(BUG_URL) for more details\""));
#if wxVERSION_NUMBER >= 3000
m_textCtrlBugMsg->SetHint(wxT(""));
#endif
fgSizer10->Add(m_textCtrlBugMsg, 0, wxALL|wxEXPAND, 5);
m_staticText31 = new wxStaticText(this, wxID_ANY, _("Feature URL Pattern:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer10->Add(m_staticText31, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlFrURL = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_textCtrlFrURL->SetToolTip(_("Enter here the URL for the feature request details.\nFor example: http://mytracker.com?fr_id=$(FRID)"));
#if wxVERSION_NUMBER >= 3000
m_textCtrlFrURL->SetHint(wxT(""));
#endif
fgSizer10->Add(m_textCtrlFrURL, 0, wxALL|wxEXPAND, 5);
m_staticText34 = new wxStaticText(this, wxID_ANY, _("Feature Message Pattern:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer10->Add(m_staticText34, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlFrMsg = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_textCtrlFrMsg->SetToolTip(_("Enter here the message to add to the commit log. You may use the $(FR_URL) and $(FRID) macros.\nAn example: \"Implements FR#$(FRID), See $(FR_URL) for more details\""));
#if wxVERSION_NUMBER >= 3000
m_textCtrlFrMsg->SetHint(wxT(""));
#endif
fgSizer10->Add(m_textCtrlFrMsg, 0, wxALL|wxEXPAND, 5);
bSizer28->Add(0, 0, 1, wxEXPAND, 5);
m_staticline7 = new wxStaticLine(this, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxLI_HORIZONTAL);
bSizer28->Add(m_staticline7, 0, wxALL|wxEXPAND, 5);
wxBoxSizer* bSizer29 = new wxBoxSizer(wxHORIZONTAL);
bSizer28->Add(bSizer29, 0, wxALIGN_CENTER_HORIZONTAL, 5);
m_button21 = new wxButton(this, wxID_OK, _("&OK"), wxDefaultPosition, wxSize(-1, -1), 0);
m_button21->SetDefault();
bSizer29->Add(m_button21, 0, wxALL, 5);
m_button22 = new wxButton(this, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer29->Add(m_button22, 0, wxALL, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
}
SvnPropsBaseDlg::~SvnPropsBaseDlg()
{
}
PatchDlgBase::PatchDlgBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer31 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer31);
wxFlexGridSizer* fgSizer11 = new wxFlexGridSizer(0, 1, 0, 0);
fgSizer11->SetFlexibleDirection( wxBOTH );
fgSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer11->AddGrowableCol(0);
bSizer31->Add(fgSizer11, 1, wxALL|wxEXPAND, 5);
m_filePicker = new wxFilePickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a file"), wxT("Patch files (*.patch;*.diff)|*.patch;*.diff|All Files (*)|*"), wxDefaultPosition, wxSize(-1, -1), wxFLP_DEFAULT_STYLE);
fgSizer11->Add(m_filePicker, 0, wxALL|wxEXPAND, 5);
wxArrayString m_radioBoxEOLPolicyArr;
m_radioBoxEOLPolicyArr.Add(wxT("Do not change EOL, apply patch as it is"));
m_radioBoxEOLPolicyArr.Add(wxT("Change to Windows style (CRLF)"));
m_radioBoxEOLPolicyArr.Add(wxT("Change to UNIX style (LF)"));
m_radioBoxEOLPolicy = new wxRadioBox(this, wxID_ANY, _("Change patch line endings (EOL):"), wxDefaultPosition, wxSize(-1, -1), m_radioBoxEOLPolicyArr, 1, wxRA_SPECIFY_COLS);
m_radioBoxEOLPolicy->SetSelection(0);
fgSizer11->Add(m_radioBoxEOLPolicy, 0, wxALL|wxEXPAND, 5);
m_stdBtnSizer33 = new wxStdDialogButtonSizer();
bSizer31->Add(m_stdBtnSizer33, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button35 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_stdBtnSizer33->AddButton(m_button35);
m_button37 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_button37->SetDefault();
m_stdBtnSizer33->AddButton(m_button37);
m_stdBtnSizer33->Realize();
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
}
PatchDlgBase::~PatchDlgBase()
{
}
SvnSelectLocalRepoBase::SvnSelectLocalRepoBase(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);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* bSizer33 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer33);
wxFlexGridSizer* fgSizer13 = new wxFlexGridSizer(0, 2, 0, 0);
fgSizer13->SetFlexibleDirection( wxBOTH );
fgSizer13->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
fgSizer13->AddGrowableCol(1);
bSizer33->Add(fgSizer13, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5);
m_staticText37 = new wxStaticText(this, wxID_ANY, _("Select path:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer13->Add(m_staticText37, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
m_dirPicker1 = new wxDirPickerCtrl(this, wxID_ANY, wxEmptyString, wxT("Select a folder"), wxDefaultPosition, wxSize(-1, -1), wxDIRP_DEFAULT_STYLE);
fgSizer13->Add(m_dirPicker1, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5);
m_staticText36 = new wxStaticText(this, wxID_ANY, _("Recently used paths:"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer33->Add(m_staticText36, 0, wxALL, 5);
wxArrayString m_listBoxPathsArr;
m_listBoxPaths = new wxListBox(this, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), m_listBoxPathsArr, wxLB_EXTENDED);
bSizer33->Add(m_listBoxPaths, 1, wxALL|wxEXPAND, 5);
m_stdBtnSizer39 = new wxStdDialogButtonSizer();
bSizer33->Add(m_stdBtnSizer39, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5);
m_button41 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_stdBtnSizer39->AddButton(m_button41);
m_button43 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_button43->SetDefault();
m_stdBtnSizer39->AddButton(m_button43);
m_stdBtnSizer39->Realize();
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
// Connect events
m_listBoxPaths->Connect(wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler(SvnSelectLocalRepoBase::OnPathSelected), NULL, this);
m_listBoxPaths->Connect(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler(SvnSelectLocalRepoBase::OnPathActivated), NULL, this);
m_listBoxPaths->Connect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(SvnSelectLocalRepoBase::OnMenu), NULL, this);
}
SvnSelectLocalRepoBase::~SvnSelectLocalRepoBase()
{
m_listBoxPaths->Disconnect(wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler(SvnSelectLocalRepoBase::OnPathSelected), NULL, this);
m_listBoxPaths->Disconnect(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler(SvnSelectLocalRepoBase::OnPathActivated), NULL, this);
m_listBoxPaths->Disconnect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(SvnSelectLocalRepoBase::OnMenu), NULL, this);
}
SvnBlameFrameBase::SvnBlameFrameBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
: wxFrame(parent, id, title, pos, size, style)
{
if ( !bBitmapLoaded ) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxC95F2InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* boxSizer9 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(boxSizer9);
m_panel11 = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTAB_TRAVERSAL);
boxSizer9->Add(m_panel11, 1, wxEXPAND, 5);
wxBoxSizer* boxSizer13 = new wxBoxSizer(wxVERTICAL);
m_panel11->SetSizer(boxSizer13);
m_stc = new SvnBlameEditor(m_panel11, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), 0);
// Configure the fold margin
m_stc->SetMarginType (4, wxSTC_MARGIN_SYMBOL);
m_stc->SetMarginMask (4, wxSTC_MASK_FOLDERS);
m_stc->SetMarginSensitive(4, true);
m_stc->SetMarginWidth (4, 16);
m_stc->SetProperty(wxT("fold"),wxT("1"));
m_stc->MarkerDefine(wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_ARROWDOWN);
m_stc->MarkerDefine(wxSTC_MARKNUM_FOLDER, wxSTC_MARK_ARROW);
m_stc->MarkerDefine(wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_BACKGROUND);
m_stc->MarkerDefine(wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_BACKGROUND);
m_stc->MarkerDefine(wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_ARROW);
m_stc->MarkerDefine(wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_ARROWDOWN);
m_stc->MarkerDefine(wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_BACKGROUND);
// Configure the tracker margin
m_stc->SetMarginWidth(1, 0);
// Configure the symbol margin
m_stc->SetMarginType (2, wxSTC_MARGIN_SYMBOL);
m_stc->SetMarginMask (2, ~(wxSTC_MASK_FOLDERS));
m_stc->SetMarginWidth(2, 0);
m_stc->SetMarginSensitive(2, true);
// Configure the line numbers margin
int m_stc_PixelWidth = 4 + 5 *m_stc->TextWidth(wxSTC_STYLE_LINENUMBER, wxT("9"));
m_stc->SetMarginType(0, wxSTC_MARGIN_NUMBER);
m_stc->SetMarginWidth(0,m_stc_PixelWidth);
// Configure the line symbol margin
m_stc->SetMarginType(3, wxSTC_MARGIN_FORE);
m_stc->SetMarginMask(3, 0);
m_stc->SetMarginWidth(3,0);
// Select the lexer
m_stc->SetLexer(wxSTC_LEX_NULL);
// Set default font / styles
m_stc->StyleClearAll();
m_stc->SetWrapMode(0);
m_stc->SetIndentationGuides(0);
m_stc->SetKeyWords(0, wxT(""));
m_stc->SetKeyWords(1, wxT(""));
m_stc->SetKeyWords(2, wxT(""));
m_stc->SetKeyWords(3, wxT(""));
m_stc->SetKeyWords(4, wxT(""));
boxSizer13->Add(m_stc, 1, wxALL|wxEXPAND, 5);
SetSizeHints(-1,-1);
if ( GetSizer() ) {
GetSizer()->Fit(this);
}
Centre(wxBOTH);
}
SvnBlameFrameBase::~SvnBlameFrameBase()
{
}
|