| 129 | } |
| 130 | |
| 131 | void CutCopyPasteToolBar::Populate() |
| 132 | { |
| 133 | SetBackgroundColour( theTheme.Colour( clrMedium ) ); |
| 134 | MakeButtonBackgroundsSmall(); |
| 135 | |
| 136 | Add(mToolSizer = safenew wxGridSizer(2, 2, toolbarSpacing, toolbarSpacing), |
| 137 | 0, wxALIGN_CENTRE | wxALL, toolbarSpacing); |
| 138 | |
| 139 | /* Buttons */ |
| 140 | // Tooltips match menu entries. |
| 141 | // We previously had longer tooltips which were not more clear. |
| 142 | AddButton(bmpCut, bmpCut, bmpCutDisabled, TBCutID, |
| 143 | XO("Cut")); |
| 144 | AddButton(bmpCopy, bmpCopy, bmpCopyDisabled, TBCopyID, |
| 145 | XO("Copy")); |
| 146 | AddButton(bmpPaste, bmpPaste, bmpPasteDisabled, TBPasteID, |
| 147 | XO("Paste")); |
| 148 | AddButton(bmpDelete, bmpDelete, bmpDeleteDisabled, TBDeleteID, |
| 149 | XO("Delete")); |
| 150 | |
| 151 | mButtons.SetEnabled(TBPasteID, false); |
| 152 | |
| 153 | RegenerateTooltips(); |
| 154 | } |
| 155 | |
| 156 | void CutCopyPasteToolBar::UpdatePrefs() |
| 157 | { |
nothing calls this directly
no test coverage detected