Skip to content

Commit

Permalink
Add Full Screen option
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBlackAka authored Nov 25, 2024
1 parent 2672d22 commit e932118
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 3 deletions.
3 changes: 2 additions & 1 deletion OpenUtau/Strings/Strings.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<system:String x:Key="menu.project.expressions">Expressions...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>
<system:String x:Key="menu.tools">Tools</system:String>
<system:String x:Key="menu.tools.fullscreen">Full Screen</system:String>
<system:String x:Key="menu.tools.clearcache">Clear Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Debug Window</system:String>
<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>
Expand Down Expand Up @@ -567,4 +568,4 @@ General
<system:String x:Key="warning">Warning</system:String>
<system:String x:Key="warning.asciipath">Your OpenUtau home path "{0}" contains non-ASCII character. Exe resamplers may not work.</system:String>
<system:String x:Key="warning.renderer">No settings for this renderer.</system:String>
</ResourceDictionary>
</ResourceDictionary>
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.de-DE.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<system:String x:Key="menu.project.expressions">Ausdrücke...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Tempo Anpassen (Timing beibehalten)</system:String>
<system:String x:Key="menu.tools">Werkzeuge</system:String>
<system:String x:Key="menu.tools.fullscreen">Vollbild</system:String>
<system:String x:Key="menu.tools.clearcache">Cache leeren</system:String>
<system:String x:Key="menu.tools.debugwindow">Debug Fenster</system:String>
<system:String x:Key="menu.tools.dependency.install">Installiere Abhängigkeit (.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.es-ES.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Herramientas</system:String>
<system:String x:Key="menu.tools.fullscreen">Pantalla completa</system:String>
<!--<system:String x:Key="menu.tools.clearcache">Clear Cache</system:String>-->
<!--<system:String x:Key="menu.tools.debugwindow">Debug Window</system:String>-->
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.es-MX.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">_Herramientas</system:String>
<system:String x:Key="menu.tools.fullscreen">Pantalla completa</system:String>
<system:String x:Key="menu.tools.clearcache">Limpiar caché</system:String>
<system:String x:Key="menu.tools.debugwindow">Ventana de depuración</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.fi-FI.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Työkalut</system:String>
<system:String x:Key="menu.tools.fullscreen">Koko näyttön</system:String>
<!--<system:String x:Key="menu.tools.clearcache">Clear Cache</system:String>-->
<!--<system:String x:Key="menu.tools.debugwindow">Debug Window</system:String>-->
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.fr-FR.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Outils</system:String>
<system:String x:Key="menu.tools.fullscreen">Plein écran</system:String>
<system:String x:Key="menu.tools.clearcache">Effacer le Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Fenêtre de débogage</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.id-ID.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Peralatan</system:String>
<system:String x:Key="menu.tools.fullscreen">Layar Penuh</system:String>
<system:String x:Key="menu.tools.clearcache">Hapus Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Jendela Debug</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.it-IT.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Strumenti</system:String>
<system:String x:Key="menu.tools.fullscreen">A schermo intero</system:String>
<system:String x:Key="menu.tools.clearcache">Svuota Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Finestra di Debug</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.ja-JP.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
<system:String x:Key="menu.project.expressions">表情...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">音符の位置を維持したままテンポを再設定</system:String>
<system:String x:Key="menu.tools">ツール</system:String>
<system:String x:Key="menu.tools.fullscreen">全画面表示</system:String>
<system:String x:Key="menu.tools.clearcache">キャッシュクリア</system:String>
<system:String x:Key="menu.tools.debugwindow">デバッグウインドウ</system:String>
<system:String x:Key="menu.tools.dependency.install">依存関係ファイルをインストール(.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.ko-KR.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<system:String x:Key="menu.project.expressions">표현 목록...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">템포 조정 (타이밍은 유지)</system:String>
<system:String x:Key="menu.tools">도구</system:String>
<system:String x:Key="menu.tools.fullscreen">전체 화면</system:String>
<system:String x:Key="menu.tools.clearcache">캐시 삭제</system:String>
<system:String x:Key="menu.tools.debugwindow">디버그 창</system:String>
<system:String x:Key="menu.tools.dependency.install">의존 요소 설치(.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.nl-NL.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">_Tools</system:String>
<system:String x:Key="menu.tools.fullscreen">Volledig scherm</system:String>
<system:String x:Key="menu.tools.clearcache">Cache wissen</system:String>
<system:String x:Key="menu.tools.debugwindow">Debug venster</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.pl-PL.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<system:String x:Key="menu.project.expressions">Ekspresje...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Dostosuj tempo (zachowaj timing)</system:String>
<system:String x:Key="menu.tools">Narzędzia</system:String>
<system:String x:Key="menu.tools.fullscreen">pełny ekran</system:String>
<system:String x:Key="menu.tools.clearcache">Wyczyść cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Okno debugowania</system:String>
<system:String x:Key="menu.tools.dependency.install">Zainstaluj zależność (.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.pt-BR.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">Ferramentas</system:String>
<system:String x:Key="menu.tools.fullscreen">Tela cheia</system:String>
<system:String x:Key="menu.tools.clearcache">Limpar Cache</system:String>
<system:String x:Key="menu.tools.debugwindow">Janela de Debug</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.ru-RU.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<system:String x:Key="menu.project.expressions">Выражения...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Регулировка темпа (сохранение тайминга)</system:String>
<system:String x:Key="menu.tools">Инструменты</system:String>
<system:String x:Key="menu.tools.fullscreen">полноэкранный</system:String>
<system:String x:Key="menu.tools.clearcache">Очистить кэш</system:String>
<system:String x:Key="menu.tools.debugwindow">Окно отладки</system:String>
<system:String x:Key="menu.tools.dependency.install">Установить зависимость (.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.th-TH.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">เครื่องมือ</system:String>
<system:String x:Key="menu.tools.fullscreen">เต็มจอ</system:String>
<system:String x:Key="menu.tools.clearcache">ล้างแคช</system:String>
<!--<system:String x:Key="menu.tools.debugwindow">Debug Window</system:String>-->
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.vi-VN.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<system:String x:Key="menu.project.expressions">Biểu cảm...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">Chỉnh nhịp độ (Giữ trường độ)</system:String>
<system:String x:Key="menu.tools">Công cụ</system:String>
<system:String x:Key="menu.tools.fullscreen">Toàn màn hình</system:String>
<system:String x:Key="menu.tools.clearcache">Xoá bộ nhớ đệm</system:String>
<system:String x:Key="menu.tools.debugwindow">Mở cửa sổ Debug</system:String>
<system:String x:Key="menu.tools.dependency.install">Cài đặt tệp phụ thuộc (.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.zh-CN.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<system:String x:Key="menu.project.expressions">表情...</system:String>
<system:String x:Key="menu.project.remaptimeaxis">修复曲速(保持绝对时长)</system:String>
<system:String x:Key="menu.tools">工具</system:String>
<system:String x:Key="menu.tools.fullscreen">全屏</system:String>
<system:String x:Key="menu.tools.clearcache">清空缓存</system:String>
<system:String x:Key="menu.tools.debugwindow">调试窗口</system:String>
<system:String x:Key="menu.tools.dependency.install">安装依赖项(.oudep)...</system:String>
Expand Down
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.zh-TW.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
<!--<system:String x:Key="menu.project.expressions">Expressions...</system:String>-->
<!--<system:String x:Key="menu.project.remaptimeaxis">Adjust Tempo (Preserve Timing)</system:String>-->
<system:String x:Key="menu.tools">工具</system:String>
<system:String x:Key="menu.tools.fullscreen">全螢幕</system:String>
<system:String x:Key="menu.tools.clearcache">清除快取</system:String>
<system:String x:Key="menu.tools.debugwindow">除錯視窗</system:String>
<!--<system:String x:Key="menu.tools.dependency.install">Install Dependency (.oudep)...</system:String>-->
Expand Down
3 changes: 2 additions & 1 deletion OpenUtau/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<MenuItem Header="{DynamicResource menu.tools.layout.hsplit12}" Click="OnMenuLayoutHSplit12"/>
<MenuItem Header="{DynamicResource menu.tools.layout.hsplit13}" Click="OnMenuLayoutHSplit13"/>
</MenuItem>
<MenuItem Header="{DynamicResource menu.tools.fullscreen}" Click="OnMenuFullScreen"/>
<MenuItem Header="{Binding ClearCacheHeader}" Click="OnMenuClearCache"/>
<MenuItem Header="{DynamicResource menu.tools.debugwindow}" Click="OnMenuDebugWindow"/>
<MenuItem Header="{DynamicResource phoneticassistant.caption}" Click="OnMenuPhoneticAssistant"/>
Expand Down Expand Up @@ -270,4 +271,4 @@
</Grid>
</Grid>
</Grid>
</Window>
</Window>
11 changes: 10 additions & 1 deletion OpenUtau/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,12 @@ void OnMenuPreferences(object sender, RoutedEventArgs args) {
}
}

void OnMenuFullScreen(object sender, RoutedEventArgs args) {
this.WindowState = this.WindowState == WindowState.FullScreen
? WindowState.Normal
: WindowState.FullScreen;
}

void OnMenuClearCache(object sender, RoutedEventArgs args) {
Task.Run(() => {
DocManager.Inst.ExecuteCmd(new ProgressBarNotification(0, "Clearing cache..."));
Expand Down Expand Up @@ -744,6 +750,9 @@ void OnKeyDown(object sender, KeyEventArgs args) {
viewModel.PlaybackViewModel.MovePlayPos(endTick);
}
break;
case Key.F11:
OnMenuFullScreen(this, new RoutedEventArgs());
break;
default:
args.Handled = false;
break;
Expand Down Expand Up @@ -1350,4 +1359,4 @@ public void OnNext(UCommand cmd, bool isUndo) {
}
}
}
}
}

0 comments on commit e932118

Please sign in to comment.