window: Add missing shortcuts
Add shortcuts - F9 Image properties - F10 Main menu - Ctrl +/- for zoom - Ctrl 0 for best fit - Ctrl [Shift] R for rotate - Escape to leave fullscrenen Updated help overlay accordingly.
This commit is contained in:
parent
583794a3ec
commit
f1593203a0
5 changed files with 200 additions and 14 deletions
|
|
@ -671,7 +671,6 @@ impl LpImage {
|
|||
.build();
|
||||
|
||||
animation.connect_done(glib::clone!(@weak self as obj => move |_| {
|
||||
dbg!("animation done");
|
||||
obj.imp().zoom_hscrollbar_transition.set(false);
|
||||
obj.imp().zoom_vscrollbar_transition.set(false);
|
||||
}));
|
||||
|
|
@ -732,6 +731,13 @@ impl LpImage {
|
|||
self.zoom_to(zoom);
|
||||
}
|
||||
|
||||
/// Zoom to best fit
|
||||
///
|
||||
/// Used by shortcut
|
||||
pub fn zoom_best_fit(&self) {
|
||||
self.zoom_to(self.zoom_level_best_fit());
|
||||
}
|
||||
|
||||
/// Zoom to specific level with animation
|
||||
pub fn zoom_to(&self, zoom: f64) {
|
||||
log::debug!("Zoom to {zoom:.3}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue