eepp: Added UIImageViewer new tool widget to view images.

Added a new UIMessageBox event: `Event::OnDiscard`, this will triggered when window is closed without confirmation (`Event::OnConfirm`). And now `Event::OnCancel` is only triggered when is manually cancelled (click the cancel button).
ecode: Greatly improved image viewing experience. Now you can switch images from the same directory with the mouse wheel, also zoom, translate and rotate the images, images open in a new tab by default but quick-preview can be activated in `Settings -> Window -> Quick Preview Images` (SpartanJ/ecode#96).
This commit is contained in:
Martín Lucas Golini
2025-09-28 00:39:17 -03:00
parent 6244563e7d
commit 9d2aec8e14
24 changed files with 736 additions and 65 deletions

View File

@@ -236,7 +236,7 @@ void SettingsActions::setIndentTabCharacter() {
msgBoxAlert->setCloseShortcut( { KEY_ESCAPE, 0 } );
}
} );
msgBox->on( Event::OnCancel, [this]( const Event* ) {
msgBox->on( Event::OnDiscard, [this]( const Event* ) {
String txt = String::fromUtf8( mApp->getConfig().editor.tabIndentCharacter );
if ( txt.size() != 1 )
return;