Skip to content

Commit

Permalink
Added < and > hotkeys for saturation.
Browse files Browse the repository at this point in the history
Added hotkey info for zooming in Zoom Display.

Improved po_translate.py script.
  • Loading branch information
ggarra13 committed Sep 11, 2024
1 parent 0b2b030 commit 6bc60ef
Show file tree
Hide file tree
Showing 13 changed files with 1,650 additions and 1,757 deletions.
14 changes: 14 additions & 0 deletions bin/python/po_translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ def translate_with_google(self, english):
print()
self.use_google = False
return english

if english == translated_text:
print()
print('GOOGLE TRANSLATE FAILED.')
print()
return '****FAILED****'

self.have_seen[english] = translated_text
return translated_text
Expand Down Expand Up @@ -337,6 +343,14 @@ def translate_text(self, english):
print('\t\tMENU English=',replaced)
print('\t\tMENU Translated=', translated_text)
return translated_text

if '\n' in english:
lines = english.split('\n')
lines = [self._translate_text(line) for line in lines]
translated_text = '\n'.join(lines)
print('\t\tNEWLINES English=',english)
print('\t\tNEWLINES Translated=', translated_text)
return translated_text

# Tokenize the input text
print(f"\tOriginal: {english}")
Expand Down
2 changes: 1 addition & 1 deletion src/docs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ v1.2.7
- Added Hotkeys display to all button and slider tooltips, which will change
if you modify any shortcuts.
- Added hotkeys entries for saturation more and saturation less. By default,
they are not assigned.
they are assigned to '<' and '>'.
- Fixed tooltip in Gain slider not showing up.
- Fixed an OCIO bug when setting from the command-line the display/view with
nuke-default's config.ocio.
Expand Down
5 changes: 3 additions & 2 deletions src/lib/mrvCore/mrvHotkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ namespace mrv
Hotkey kResetChanges(true, false, false, false, 'r');
Hotkey kExposureMore(false, false, false, false, '.');
Hotkey kExposureLess(false, false, false, false, ',');
Hotkey kSaturationMore(false, false, false, false, 0);
Hotkey kSaturationLess(false, false, false, false, 0);
Hotkey kSaturationMore(false, false, false, false, '<');
Hotkey kSaturationLess(false, false, false, false, '>');
Hotkey kGammaMore(false, false, false, false, 0, ")");
Hotkey kGammaLess(false, false, false, false, 0, "(");

Expand All @@ -178,6 +178,7 @@ namespace mrv

Hotkey kGridToggle(true, false, false, false, 'g');
Hotkey kGridSize(true, true, false, false, 'g');

Hotkey kHudToggle(true, false, false, false, 'h');

Hotkey kOCIOPresetsToggle(false, false, false, false, 0);
Expand Down
11 changes: 11 additions & 0 deletions src/lib/mrvFl/mrvHotkey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,17 @@ namespace mrv
tooltip = _("Set Out Point");
tooltip += addHotkey(kSetOutPoint);
c->uiEndButton->copy_tooltip(tooltip.c_str());

//
// Pixel Tool Bar.
//
PixelToolBarClass* p = ui->uiPixelWindow;
tooltip = _("Image zoom setting.");
tooltip += addHotkeys(kZoomOut, kZoomIn, kFitScreen);
tooltip += _("\n\nMousewheel to zoom in and out.");
tooltip += _("\nAlt + Right Mouse Button to zoom in and out.");
tooltip += _("\n\n0 to 9 to zoom to a specific level.");
p->uiZoom->copy_tooltip(tooltip.c_str());
}

} // namespace mrv
Loading

0 comments on commit 6bc60ef

Please sign in to comment.