Advertisement
JoshDreamland

Code::Blocks Rectangle Virtual Space (?)

Apr 9th, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.80 KB | None | 0 0
  1. Index: debian/changelog
  2. ===================================================================
  3. --- debian/changelog    (revision 10200)
  4. +++ debian/changelog    (working copy)
  5. @@ -1,4 +1,4 @@
  6. -codeblocks (13.12svn9513) unstable; urgency=low
  7. +codeblocks (13.12svn10200) unstable; urgency=low
  8.  
  9.    * New svn revision
  10.  
  11. Index: src/sdk/cbeditor.cpp
  12. ===================================================================
  13. --- src/sdk/cbeditor.cpp    (revision 10200)
  14. +++ src/sdk/cbeditor.cpp    (working copy)
  15. @@ -1510,10 +1510,15 @@
  16.      control->SetScrollWidthTracking(      mgr->ReadBool(_T("/margin/scroll_width_tracking"), false));
  17.      control->SetMultipleSelection(        mgr->ReadBool(_T("/selection/multi_select"),       false));
  18.      control->SetAdditionalSelectionTyping(mgr->ReadBool(_T("/selection/multi_typing"),       false));
  19. +    
  20. +    unsigned virtualSpace = 0;
  21. +    if (mgr->ReadBool(_T("/selection/use_rect_vspace"), false))
  22. +        virtualSpace |= wxSCI_SCVS_RECTANGULARSELECTION;
  23.      if (mgr->ReadBool(_T("/selection/use_vspace"), false))
  24. -        control->SetVirtualSpaceOptions(wxSCI_SCVS_RECTANGULARSELECTION | wxSCI_SCVS_USERACCESSIBLE);
  25. -    else
  26. -        control->SetVirtualSpaceOptions(wxSCI_SCVS_NONE);
  27. +        virtualSpace |= wxSCI_SCVS_USERACCESSIBLE;
  28. +    if (!virtualSpace)
  29. +        virtualSpace = wxSCI_SCVS_NONE; // Just in case wxSCI_SCVS_NONE != 0
  30. +    control->SetVirtualSpaceOptions(virtualSpace);
  31.  }
  32.  
  33.  // static
  34. Index: src/src/editorconfigurationdlg.cpp
  35. ===================================================================
  36. --- src/src/editorconfigurationdlg.cpp  (revision 10200)
  37. +++ src/src/editorconfigurationdlg.cpp  (working copy)
  38. @@ -177,7 +177,8 @@
  39.      XRCCTRL(*this, "slCaretPeriod",  wxSlider)->SetValue(cfg->ReadInt(_T("/caret/period"), 500));
  40.  
  41.      //selections
  42. -    XRCCTRL(*this, "chkEnableVirtualSpace", wxCheckBox)->SetValue(cfg->ReadBool(_T("/selection/use_vspace"), false));
  43. +    XRCCTRL(*this, "chkEnableVirtualSpace",     wxCheckBox)->SetValue(cfg->ReadBool(_T("/selection/use_vspace"),      false));
  44. +    XRCCTRL(*this, "chkEnableRectVirtualSpace", wxCheckBox)->SetValue(cfg->ReadBool(_T("/selection/use_rect_vspace"), false));
  45.      bool multiSelectEnabled = cfg->ReadBool(_T("/selection/multi_select"), false);
  46.      XRCCTRL(*this, "chkEnableMultipleSelections",        wxCheckBox)->SetValue(multiSelectEnabled);
  47.      XRCCTRL(*this, "chkEnableAdditionalSelectionTyping", wxCheckBox)->SetValue(cfg->ReadBool(_T("/selection/multi_typing"), false));
  48. @@ -1092,6 +1093,7 @@
  49.  
  50.          //selections
  51.          cfg->Write(_T("/selection/use_vspace"),      (bool)XRCCTRL(*this, "chkEnableVirtualSpace",              wxCheckBox)->GetValue());
  52. +        cfg->Write(_T("/selection/use_rect_vspace"), (bool)XRCCTRL(*this, "chkEnableRectVirtualSpace",          wxCheckBox)->GetValue());
  53.          cfg->Write(_T("/selection/multi_select"),    (bool)XRCCTRL(*this, "chkEnableMultipleSelections",        wxCheckBox)->GetValue());
  54.          cfg->Write(_T("/selection/multi_typing"),    (bool)XRCCTRL(*this, "chkEnableAdditionalSelectionTyping", wxCheckBox)->GetValue());
  55.  
  56. Index: src/src/resources/editor_configuration.xrc
  57. ===================================================================
  58. --- src/src/resources/editor_configuration.xrc  (revision 10200)
  59. +++ src/src/resources/editor_configuration.xrc  (working copy)
  60. @@ -1004,6 +1004,9 @@
  61.                                             <object class="wxCheckBox" name="chkEnableVirtualSpace">
  62.                                                 <label>Enable virtual space (space beyond the end of line)</label>
  63.                                             </object>
  64. +                                           <object class="wxCheckBox" name="chkEnableRectVirtualSpace">
  65. +                                               <label>Enable virtual space for rectangle selections</label>
  66. +                                           </object>
  67.                                             <flag>wxBOTTOM|wxLEFT|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP</flag>
  68.                                             <border>4</border>
  69.                                         </object>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement