Skip to content

Commit

Permalink
EditToolbar: Remove zoom buttons
Browse files Browse the repository at this point in the history
Signed-off-by: Avery King <[email protected]>
  • Loading branch information
generic-pers0n committed Sep 14, 2024
1 parent 37449a3 commit 7b0c804
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
33 changes: 0 additions & 33 deletions src/toolbars/EditToolBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,31 +160,6 @@ void EditToolBar::Populate()
#endif

// Tooltips match menu entries.
// We previously had longer tooltips which were not more clear.
AddButton(this, bmpZoomIn, bmpZoomIn, bmpZoomInDisabled, ETBZoomInID,
XO("Zoom In"));
AddButton(this, bmpZoomOut, bmpZoomOut, bmpZoomOutDisabled, ETBZoomOutID,
XO("Zoom Out"));
AddButton(this, bmpZoomSel, bmpZoomSel, bmpZoomSelDisabled, ETBZoomSelID,
XO("Zoom to Selection"));
AddButton(this, bmpZoomFit, bmpZoomFit, bmpZoomFitDisabled, ETBZoomFitID,
XO("Fit to Width"));

#ifdef EXPERIMENTAL_ZOOM_TOGGLE_BUTTON
AddButton(this, bmpZoomToggle, bmpZoomToggle, bmpZoomToggleDisabled, ETBZoomToggleID,
XO("Zoom Toggle"));
#endif



mButtons[ETBZoomInID]->SetEnabled(false);
mButtons[ETBZoomOutID]->SetEnabled(false);
#ifdef EXPERIMENTAL_ZOOM_TOGGLE_BUTTON
mButtons[ETBZoomToggleID]->SetEnabled(false);
#endif

mButtons[ETBZoomSelID]->SetEnabled(false);
mButtons[ETBZoomFitID]->SetEnabled(false);
mButtons[ETBPasteID]->SetEnabled(false);

#ifdef OPTION_SYNC_LOCK_BUTTON
Expand Down Expand Up @@ -232,14 +207,6 @@ static const struct Entry {
#ifdef OPTION_SYNC_LOCK_BUTTON
{ ETBSyncLockID, wxT("SyncLock"), XO("Sync-Lock Tracks") },
#endif

{ ETBZoomInID, wxT("ZoomIn"), XO("Zoom In") },
{ ETBZoomOutID, wxT("ZoomOut"), XO("Zoom Out") },
#ifdef EXPERIMENTAL_ZOOM_TOGGLE_BUTTON
{ ETBZoomToggleID, wxT("ZoomToggle"), XO("Zoom Toggle") },
#endif
{ ETBZoomSelID, wxT("ZoomSel"), XO("Fit selection to width") },
{ ETBZoomFitID, wxT("FitInWindow"), XO("Fit project to width") },
};


Expand Down
9 changes: 0 additions & 9 deletions src/toolbars/EditToolBar.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ enum {
ETBSyncLockID,
#endif

ETBZoomInID,
ETBZoomOutID,
#ifdef EXPERIMENTAL_ZOOM_TOGGLE_BUTTON
ETBZoomToggleID,
#endif

ETBZoomSelID,
ETBZoomFitID,

ETBNumButtons
};

Expand Down

0 comments on commit 7b0c804

Please sign in to comment.