macOS: Unify VLCHUDToggleButton/VLCHUDImageButton to VLCImageButton
authorMarvin Scholz <epirat07@gmail.com>
Thu, 1 Jun 2017 11:43:35 +0000 (13:43 +0200)
committerMarvin Scholz <epirat07@gmail.com>
Thu, 1 Jun 2017 11:43:59 +0000 (13:43 +0200)
commitcecb49ed6556143f94d69d581fc934ef9b74ecc8
tree85920b54ab039cb8c67ac8219b93ef4d9afaae7f
parent6aa25676966d9da65ca929c18b4b021cbcf783c0
macOS: Unify VLCHUDToggleButton/VLCHUDImageButton to VLCImageButton

The implementation of these buttons is nearly the same, so it makes no
sense to have separate classes for them.

Only reason to do so, was the inability to get the button type, which
for now is worked-around by using an IBInspectable BOOL that has to be
set, if the button is a toggle button.

Not the nicest solution, but there is no better way, as far as I know.
extras/package/macosx/VLC.xcodeproj/project.pbxproj
modules/gui/macosx/Makefile.am
modules/gui/macosx/UI/VLCFullScreenPanel.xib
modules/gui/macosx/UI/VLCStatusBarIconMainMenu.xib
modules/gui/macosx/VLCHUDImageButton.h [deleted file]
modules/gui/macosx/VLCHUDImageButton.m [deleted file]
modules/gui/macosx/VLCHUDToggleButton.h [deleted file]
modules/gui/macosx/VLCHUDToggleButton.m [deleted file]
modules/gui/macosx/VLCImageButton.h [new file with mode: 0644]
modules/gui/macosx/VLCImageButton.m [new file with mode: 0644]