mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-12 02:00:27 +08:00
Compare commits
4 Commits
copilot/fi
...
copilot/cr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d872b526f | ||
|
|
ed5c34735f | ||
|
|
45403ad402 | ||
|
|
26f5707977 |
Submodule QuickLook.Common updated: 709f26fa38...ffda8978fa
@@ -35,10 +35,6 @@ public class LottieImagePanel : SvgImagePanel
|
||||
ObjectForScripting ??= new ScriptHandler(path);
|
||||
|
||||
_homePage = _resources["/lottie2html.html"];
|
||||
|
||||
// Update WebView2 background color based on current theme
|
||||
UpdateWebViewBackgroundColor();
|
||||
|
||||
NavigateToUri(new Uri("file://quicklook/"));
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
using Microsoft.Web.WebView2.Core;
|
||||
using Microsoft.Web.WebView2.Wpf;
|
||||
using QuickLook.Common.Helpers;
|
||||
using QuickLook.Common.Plugin;
|
||||
using QuickLook.Plugin.HtmlViewer;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -30,36 +29,17 @@ using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace QuickLook.Plugin.ImageViewer.Webview.Svg;
|
||||
|
||||
public partial class SvgImagePanel : UserControl, IWebImagePanel
|
||||
public class SvgImagePanel : WebpagePanel, IWebImagePanel
|
||||
{
|
||||
protected const string _resourcePrefix = "QuickLook.Plugin.ImageViewer.Resources.";
|
||||
protected internal static readonly Dictionary<string, byte[]> _resources = [];
|
||||
protected byte[] _homePage;
|
||||
protected WebView2 _webView;
|
||||
protected Uri _currentUri;
|
||||
protected string _primaryPath;
|
||||
protected string _fallbackPath;
|
||||
private ContextObject _contextObject;
|
||||
|
||||
private object _objectForScripting;
|
||||
|
||||
public string FallbackPath
|
||||
{
|
||||
get => _fallbackPath;
|
||||
set => _fallbackPath = value;
|
||||
}
|
||||
|
||||
public ContextObject ContextObject
|
||||
{
|
||||
get => _contextObject;
|
||||
set => _contextObject = value;
|
||||
}
|
||||
|
||||
public object ObjectForScripting
|
||||
{
|
||||
get => _objectForScripting;
|
||||
@@ -80,21 +60,7 @@ public partial class SvgImagePanel : UserControl, IWebImagePanel
|
||||
InitializeResources();
|
||||
}
|
||||
|
||||
public SvgImagePanel()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
// Clear merged dictionaries from design time
|
||||
Resources.MergedDictionaries.Clear();
|
||||
|
||||
// Initialize WebView2
|
||||
InitializeWebView();
|
||||
|
||||
// Wire up the theme toggle button
|
||||
buttonBackgroundColour.Click += OnBackgroundColourOnClick;
|
||||
}
|
||||
|
||||
protected void InitializeWebView()
|
||||
protected override void InitializeComponent()
|
||||
{
|
||||
_webView = new WebView2()
|
||||
{
|
||||
@@ -105,53 +71,7 @@ public partial class SvgImagePanel : UserControl, IWebImagePanel
|
||||
DefaultBackgroundColor = Color.Transparent,
|
||||
};
|
||||
_webView.CoreWebView2InitializationCompleted += WebView_CoreWebView2InitializationCompleted;
|
||||
|
||||
// Add WebView2 to the Grid at the first position (behind the button)
|
||||
var grid = (Grid)Content;
|
||||
grid.Children.Insert(0, _webView);
|
||||
}
|
||||
|
||||
private void OnBackgroundColourOnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (ContextObject == null) return;
|
||||
|
||||
// Toggle the theme
|
||||
var newTheme = ContextObject.Theme == Themes.Dark ? Themes.Light : Themes.Dark;
|
||||
ContextObject.Theme = newTheme;
|
||||
|
||||
// Save the theme preference
|
||||
SettingHelper.Set("LastTheme", (int)newTheme, "QuickLook.Plugin.ImageViewer");
|
||||
|
||||
// Update WebView2 background color
|
||||
UpdateWebViewBackgroundColor();
|
||||
}
|
||||
|
||||
protected void UpdateWebViewBackgroundColor()
|
||||
{
|
||||
if (_webView == null) return;
|
||||
|
||||
var isDark = ContextObject?.Theme == Themes.Dark;
|
||||
_webView.DefaultBackgroundColor = isDark
|
||||
? Color.FromArgb(255, 32, 32, 32)
|
||||
: Color.White;
|
||||
}
|
||||
|
||||
public void NavigateToUri(Uri uri)
|
||||
{
|
||||
if (_webView == null)
|
||||
return;
|
||||
|
||||
_webView.Source = uri;
|
||||
_currentUri = _webView.Source;
|
||||
}
|
||||
|
||||
protected virtual void WebView_CoreWebView2InitializationCompleted(object sender, CoreWebView2InitializationCompletedEventArgs e)
|
||||
{
|
||||
if (e.IsSuccess)
|
||||
{
|
||||
_webView.CoreWebView2.AddWebResourceRequestedFilter("*", CoreWebView2WebResourceContext.All);
|
||||
_webView.CoreWebView2.WebResourceRequested += WebView_WebResourceRequested;
|
||||
}
|
||||
Content = _webView;
|
||||
}
|
||||
|
||||
protected static void InitializeResources()
|
||||
@@ -182,14 +102,10 @@ public partial class SvgImagePanel : UserControl, IWebImagePanel
|
||||
ObjectForScripting ??= new ScriptHandler(path);
|
||||
|
||||
_homePage = _resources["/svg2html.html"];
|
||||
|
||||
// Update WebView2 background color based on current theme
|
||||
UpdateWebViewBackgroundColor();
|
||||
|
||||
NavigateToUri(new Uri("file://quicklook/"));
|
||||
}
|
||||
|
||||
protected virtual void WebView_WebResourceRequested(object sender, CoreWebView2WebResourceRequestedEventArgs args)
|
||||
protected override void WebView_WebResourceRequested(object sender, CoreWebView2WebResourceRequestedEventArgs args)
|
||||
{
|
||||
Debug.WriteLine($"[{args.Request.Method}] {args.Request.Uri}");
|
||||
|
||||
@@ -270,13 +186,7 @@ public partial class SvgImagePanel : UserControl, IWebImagePanel
|
||||
return reader.ReadToEnd();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_webView?.Dispose();
|
||||
_webView = null;
|
||||
}
|
||||
|
||||
public static class MimeTypes
|
||||
public new static class MimeTypes
|
||||
{
|
||||
public static string GetContentTypeHeader(string extension = null)
|
||||
=> $"Content-Type: {WebpagePanel.MimeTypes.GetMimeType(extension)}";
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
<UserControl x:Class="QuickLook.Plugin.ImageViewer.Webview.Svg.SvgImagePanel"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
x:Name="svgImagePanel"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="300"
|
||||
mc:Ignorable="d">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<!-- only for design -->
|
||||
<ResourceDictionary Source="/QuickLook.Common;component/Styles/MainWindowStyles.xaml" />
|
||||
<ResourceDictionary Source="/QuickLook.Common;component/Styles/MainWindowStyles.Dark.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<!-- WebView2 will be added here programmatically -->
|
||||
<StackPanel Margin="0,8,8,0"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Top"
|
||||
Orientation="Horizontal">
|
||||
<Button x:Name="buttonBackgroundColour"
|
||||
Width="24"
|
||||
Height="24"
|
||||
Content=""
|
||||
Style="{StaticResource CaptionButtonStyle}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -34,10 +34,6 @@ public class SvgaImagePanel(IWebMetaProvider metaWeb) : SvgImagePanel()
|
||||
ObjectForScripting ??= new ScriptHandler(path, _metaWeb);
|
||||
|
||||
_homePage = _resources["/svga2html.html"];
|
||||
|
||||
// Update WebView2 background color based on current theme
|
||||
UpdateWebViewBackgroundColor();
|
||||
|
||||
NavigateToUri(new Uri("file://quicklook/"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,10 +35,6 @@ public class TgsImagePanel : SvgImagePanel
|
||||
ObjectForScripting ??= new TgsScriptHandler(path);
|
||||
|
||||
_homePage = _resources["/lottie2html.html"];
|
||||
|
||||
// Update WebView2 background color based on current theme
|
||||
UpdateWebViewBackgroundColor();
|
||||
|
||||
NavigateToUri(new Uri("file://quicklook/"));
|
||||
}
|
||||
|
||||
|
||||
@@ -102,10 +102,10 @@ internal static class WebHandler
|
||||
|
||||
ipWeb = ext switch
|
||||
{
|
||||
".svg" => new SvgImagePanel() { ContextObject = context },
|
||||
".svga" => new SvgaImagePanel(metaWeb) { ContextObject = context },
|
||||
".lottie" or ".json" => new LottieImagePanel() { ContextObject = context },
|
||||
".tgs" => new TgsImagePanel() { ContextObject = context },
|
||||
".svg" => new SvgImagePanel(),
|
||||
".svga" => new SvgaImagePanel(metaWeb),
|
||||
".lottie" or ".json" => new LottieImagePanel(),
|
||||
".tgs" => new TgsImagePanel(),
|
||||
_ => throw new NotSupportedException($"Unsupported file type: {ext}")
|
||||
};
|
||||
|
||||
|
||||
@@ -45,16 +45,31 @@ public class Plugin : IViewer
|
||||
|
||||
public void Prepare(string path, ContextObject context)
|
||||
{
|
||||
// Set Ignore to true to display "blocked" in the preview window
|
||||
context.IsBlocked = true;
|
||||
context.Title = $"[BLOCKED] {Path.GetFileName(path)}";
|
||||
context.PreferredSize = new Size(400, 200);
|
||||
// Set a minimal window size (1x1 pixels) to make the window as small as possible
|
||||
// This window will be closed immediately in View() before becoming visible
|
||||
context.PreferredSize = new Size { Width = 1, Height = 1 };
|
||||
}
|
||||
|
||||
public void View(string path, ContextObject context)
|
||||
{
|
||||
// This should not be called since Ignore is set to true in Prepare
|
||||
// But if called, do nothing
|
||||
// Create an empty text block as content (required to avoid errors)
|
||||
var textBlock = new TextBlock
|
||||
{
|
||||
Text = "",
|
||||
Visibility = Visibility.Collapsed
|
||||
};
|
||||
context.ViewerContent = textBlock;
|
||||
context.IsBusy = false;
|
||||
|
||||
// Close the window immediately using Send priority for immediate execution
|
||||
// This prevents the window from becoming visible to the user
|
||||
Application.Current?.Dispatcher?.BeginInvoke(new Action(() =>
|
||||
{
|
||||
if (context.Source is Window window)
|
||||
{
|
||||
window.Close();
|
||||
}
|
||||
}), DispatcherPriority.Send);
|
||||
}
|
||||
|
||||
public void Cleanup()
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<UseWPF>true</UseWPF>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
using ICSharpCode.AvalonEdit;
|
||||
using ICSharpCode.AvalonEdit.Document;
|
||||
using ICSharpCode.AvalonEdit.Editing;
|
||||
using ICSharpCode.AvalonEdit.Rendering;
|
||||
using ICSharpCode.AvalonEdit.Search;
|
||||
using QuickLook.Common.Helpers;
|
||||
@@ -28,7 +27,6 @@ using QuickLook.Plugin.TextViewer.Themes.HighlightingDefinitions;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
@@ -70,33 +68,16 @@ public partial class TextViewerPanel : TextEditor, IDisposable
|
||||
ShowLineNumbers = true;
|
||||
WordWrap = true;
|
||||
IsReadOnly = true;
|
||||
|
||||
// Enable manipulation events (touch gestures like pan/scroll).
|
||||
IsManipulationEnabled = true;
|
||||
|
||||
// Disable automatic hyperlink detection for email addresses.
|
||||
Options.EnableEmailHyperlinks = false;
|
||||
|
||||
// Disable automatic hyperlink detection for general URLs.
|
||||
Options.EnableHyperlinks = false;
|
||||
|
||||
// Search for the separator line inside the left margins of the TextArea.
|
||||
// The default LineNumberMargin in AvalonEdit often contains a thin Line element
|
||||
// used as a visual separator between line numbers and the text.
|
||||
// If found, set its Stroke to Transparent to hide the separator visually.
|
||||
TextArea.LeftMargins
|
||||
.OfType<System.Windows.Shapes.Line>()
|
||||
.FirstOrDefault()
|
||||
?.Stroke = Brushes.Transparent;
|
||||
|
||||
ContextMenu = new ContextMenu();
|
||||
// Add "Copy" menu item.
|
||||
ContextMenu.Items.Add(new MenuItem
|
||||
{
|
||||
Header = TranslationHelper.Get("Editor_Copy", domain: Assembly.GetExecutingAssembly().GetName().Name),
|
||||
Command = ApplicationCommands.Copy
|
||||
});
|
||||
// Add "Select All" menu item.
|
||||
ContextMenu.Items.Add(new MenuItem
|
||||
{
|
||||
Header = TranslationHelper.Get("Editor_SelectAll",
|
||||
@@ -114,10 +95,8 @@ public partial class TextViewerPanel : TextEditor, IDisposable
|
||||
FontFamily = new FontFamily(TranslationHelper.Get("Editor_FontFamily",
|
||||
domain: Assembly.GetExecutingAssembly().GetName().Name));
|
||||
|
||||
// Add a custom element generator (e.g., to truncate extremely long lines).
|
||||
TextArea.TextView.ElementGenerators.Add(new TruncateLongLines());
|
||||
|
||||
// Install the search panel (Ctrl+F style search UI).
|
||||
SearchPanel.Install(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
<MW_Open>افتح الملف {0} باستخدام البرنامج الافتراضي</MW_Open>
|
||||
<MW_OpenWith>افتح الملف {0} باستخدام برنامج محدد</MW_OpenWith>
|
||||
<MW_Run>شغل الملف {0} المحدد</MW_Run>
|
||||
<MW_FileBlocked>هذا النوع من الملفات محظور.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>شغل البرنامج أوتوماتيكيًا عند تشغيل النظام</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>النسخة {0} من كويك لووك</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>تأكد من وجود أي تحديث للبرنامج</Icon_CheckUpdate>
|
||||
@@ -41,7 +40,6 @@
|
||||
<MW_Open>Megnyitás {0}</MW_Open>
|
||||
<MW_OpenWith>Megnyitás ezzel {0}</MW_OpenWith>
|
||||
<MW_Run>Futtatás {0}</MW_Run>
|
||||
<MW_FileBlocked>Ez a fájltípus blokkolva van.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>Futattás &Indításkor</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Keressen új &Frissítést...</Icon_CheckUpdate>
|
||||
@@ -71,7 +69,6 @@
|
||||
<MW_Open>Otvoriť {0}</MW_Open>
|
||||
<MW_OpenWith>Otvoriť v programe {0}</MW_OpenWith>
|
||||
<MW_Run>Spustiť {0}</MW_Run>
|
||||
<MW_FileBlocked>Tento typ súboru je blokovaný.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>Spustiť pri &štarte</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Skontrolovať &aktualizácie...</Icon_CheckUpdate>
|
||||
@@ -100,7 +97,6 @@
|
||||
<MW_Open>Buka {0}</MW_Open>
|
||||
<MW_OpenWith>Buka dengan {0}</MW_OpenWith>
|
||||
<MW_Run>Jalankan {0}</MW_Run>
|
||||
<MW_FileBlocked>Jenis file ini diblokir.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>Jalankan saat &Memulai</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v. {0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Memeriksa &Pembaharuan...</Icon_CheckUpdate>
|
||||
@@ -134,7 +130,6 @@
|
||||
<MW_Open>{0} 열기</MW_Open>
|
||||
<MW_OpenWith>{0}(으)로 열기</MW_OpenWith>
|
||||
<MW_Run>{0} 실행</MW_Run>
|
||||
<MW_FileBlocked>이 파일 유형은 차단되었습니다.</MW_FileBlocked>
|
||||
<MW_Share>공유</MW_Share>
|
||||
<Icon_RunAtStartup>시작 시 실행(&S)</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
@@ -165,7 +160,6 @@
|
||||
<MW_Open>Obre {0}</MW_Open>
|
||||
<MW_OpenWith>Obre'l amb {0}</MW_OpenWith>
|
||||
<MW_Run>Executa'l {0}</MW_Run>
|
||||
<MW_FileBlocked>Aquest tipus de fitxer està bloquejat.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>Executa'l a l'&inici</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Cerca &actualitzacions...</Icon_CheckUpdate>
|
||||
@@ -198,7 +192,6 @@
|
||||
<MW_OpenWith>Öffnen mit {0}</MW_OpenWith>
|
||||
<MW_OpenWithMenu>Öffnen mit ...</MW_OpenWithMenu>
|
||||
<MW_Run>{0} ausführen</MW_Run>
|
||||
<MW_FileBlocked>Dieser Dateityp ist blockiert.</MW_FileBlocked>
|
||||
<MW_Share>Freigeben</MW_Share>
|
||||
<MW_Reload>Neu laden</MW_Reload>
|
||||
<MW_More>Mehr</MW_More>
|
||||
@@ -236,7 +229,6 @@
|
||||
<MW_OpenWith>Open with {0}</MW_OpenWith>
|
||||
<MW_OpenWithMenu>Open With Menu</MW_OpenWithMenu>
|
||||
<MW_Run>Run {0}</MW_Run>
|
||||
<MW_FileBlocked>This file type is blocked.</MW_FileBlocked>
|
||||
<MW_Share>Share</MW_Share>
|
||||
<MW_Reload>Reload</MW_Reload>
|
||||
<MW_More>More</MW_More>
|
||||
@@ -274,7 +266,6 @@
|
||||
<MW_OpenWith>Abrir con {0}</MW_OpenWith>
|
||||
<MW_OpenWithMenu>Abrir Con Menu</MW_OpenWithMenu>
|
||||
<MW_Run>Iniciar {0}</MW_Run>
|
||||
<MW_FileBlocked>Este tipo de archivo está bloqueado.</MW_FileBlocked>
|
||||
<MW_Share>Compartir</MW_Share>
|
||||
<MW_Reload>Recargar</MW_Reload>
|
||||
<MW_More>Más</MW_More>
|
||||
@@ -308,7 +299,6 @@
|
||||
<MW_Open>Ouvrir {0}</MW_Open>
|
||||
<MW_OpenWith>Ouvrir avec {0}</MW_OpenWith>
|
||||
<MW_Run>Exécuter {0}</MW_Run>
|
||||
<MW_FileBlocked>Ce type de fichier est bloqué.</MW_FileBlocked>
|
||||
<MW_Reload>Recharger</MW_Reload>
|
||||
<MW_More>Plus</MW_More>
|
||||
<Icon_RunAtStartup>Exécuter au &démarrage</Icon_RunAtStartup>
|
||||
@@ -341,7 +331,6 @@
|
||||
<MW_Open>Apri {0}</MW_Open>
|
||||
<MW_OpenWith>Apri con {0}</MW_OpenWith>
|
||||
<MW_Run>Esegui {0}</MW_Run>
|
||||
<MW_FileBlocked>Questo tipo di file è bloccato.</MW_FileBlocked>
|
||||
<MW_Reload>Ricarica</MW_Reload>
|
||||
<MW_More>Altro</MW_More>
|
||||
<Icon_RunAtStartup>Esegui all'&Avvio</Icon_RunAtStartup>
|
||||
@@ -376,7 +365,6 @@
|
||||
<MW_OpenWith>{0} で開く</MW_OpenWith>
|
||||
<MW_OpenWithMenu>メニューから選択して開く</MW_OpenWithMenu>
|
||||
<MW_Run>{0} を起動</MW_Run>
|
||||
<MW_FileBlocked>このファイルタイプはブロックされています.</MW_FileBlocked>
|
||||
<MW_Share>シェア</MW_Share>
|
||||
<MW_Reload>再読み込み</MW_Reload>
|
||||
<MW_More>その他</MW_More>
|
||||
@@ -409,7 +397,6 @@
|
||||
<MW_Open>Åpne {0}</MW_Open>
|
||||
<MW_OpenWith>Åpne med {0}</MW_OpenWith>
|
||||
<MW_Run>Kjør {0}</MW_Run>
|
||||
<MW_FileBlocked>Denne filtypen er blokkert.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>Kjør ved &oppstart</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Se etter &oppdateringer...</Icon_CheckUpdate>
|
||||
@@ -437,7 +424,6 @@
|
||||
<MW_Open>Open {0}</MW_Open>
|
||||
<MW_OpenWith>Openen met {0}</MW_OpenWith>
|
||||
<MW_Run>Uitvoeren {0}</MW_Run>
|
||||
<MW_FileBlocked>Dit bestandstype is geblokkeerd.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>Uitvoeren bij &Opstarten</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Controleren op &Updates...</Icon_CheckUpdate>
|
||||
@@ -470,7 +456,6 @@
|
||||
<MW_OpenWith>Otwórz w {0}</MW_OpenWith>
|
||||
<MW_OpenWithMenu>Otwórz za pomocą...</MW_OpenWithMenu>
|
||||
<MW_Run>Uruchom {0}</MW_Run>
|
||||
<MW_FileBlocked>Ten typ pliku jest zablokowany.</MW_FileBlocked>
|
||||
<MW_Share>Udostępnij</MW_Share>
|
||||
<MW_Reload>Przeładuj</MW_Reload>
|
||||
<MW_More>Więcej</MW_More>
|
||||
@@ -508,7 +493,6 @@
|
||||
<MW_OpenWith>Abrir com {0}</MW_OpenWith>
|
||||
<MW_OpenWithMenu>Menu abrir com</MW_OpenWithMenu>
|
||||
<MW_Run>Executar {0}</MW_Run>
|
||||
<MW_FileBlocked>Este tipo de arquivo está bloqueado.</MW_FileBlocked>
|
||||
<MW_Share>Compartilhar</MW_Share>
|
||||
<MW_Reload>Recarregar</MW_Reload>
|
||||
<MW_More>Mais</MW_More>
|
||||
@@ -541,7 +525,6 @@
|
||||
<MW_Open>Abrir {0}</MW_Open>
|
||||
<MW_OpenWith>Abrir com {0}</MW_OpenWith>
|
||||
<MW_Run>Executar {0}</MW_Run>
|
||||
<MW_FileBlocked>Este tipo de ficheiro está bloqueado.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>Executar no &Arranque</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Procurar por &Atualizações...</Icon_CheckUpdate>
|
||||
@@ -570,7 +553,6 @@
|
||||
<MW_Open>Открыть {0}</MW_Open>
|
||||
<MW_OpenWith>Открыть с помощью {0}</MW_OpenWith>
|
||||
<MW_Run>Запустить {0}</MW_Run>
|
||||
<MW_FileBlocked>Этот тип файла заблокирован.</MW_FileBlocked>
|
||||
<MW_StayTop>Поверх всех окон</MW_StayTop>
|
||||
<MW_PreventClosing>Закрепить</MW_PreventClosing>
|
||||
<MW_Share>Поделиться</MW_Share>
|
||||
@@ -605,7 +587,6 @@
|
||||
<MW_Open>Aç: {0}</MW_Open>
|
||||
<MW_OpenWith>Birlikte aç: {0}</MW_OpenWith>
|
||||
<MW_Run>Çalıştır: {0}</MW_Run>
|
||||
<MW_FileBlocked>Bu dosya türü engellenmiştir.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>B&aşlangıçta çalıştır</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>&Güncellemeleri denetle...</Icon_CheckUpdate>
|
||||
@@ -639,7 +620,6 @@
|
||||
<MW_OpenWith>Відкрити за допомогою {0}</MW_OpenWith>
|
||||
<MW_OpenWithMenu>Відкрити за допомогою меню</MW_OpenWithMenu>
|
||||
<MW_Run>Запустити {0}</MW_Run>
|
||||
<MW_FileBlocked>Цей тип файлу заблоковано.</MW_FileBlocked>
|
||||
<MW_Share>Поширити</MW_Share>
|
||||
<MW_Reload>Перезавантажити</MW_Reload>
|
||||
<MW_More>Більше</MW_More>
|
||||
@@ -672,7 +652,6 @@
|
||||
<MW_Open>Mở {0}</MW_Open>
|
||||
<MW_OpenWith>Mở bằng {0}</MW_OpenWith>
|
||||
<MW_Run>Chạy {0}</MW_Run>
|
||||
<MW_FileBlocked>Loại tệp này bị chặn.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>&Khởi động cùng hệ thống</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>&Kiểm tra cập nhật...</Icon_CheckUpdate>
|
||||
@@ -705,7 +684,6 @@
|
||||
<MW_OpenWith>用 {0} 打开</MW_OpenWith>
|
||||
<MW_OpenWithMenu>从菜单选择打开</MW_OpenWithMenu>
|
||||
<MW_Run>运行 {0}</MW_Run>
|
||||
<MW_FileBlocked>此文件类型已被阻止。</MW_FileBlocked>
|
||||
<MW_Share>分享</MW_Share>
|
||||
<MW_Reload>重新加载</MW_Reload>
|
||||
<MW_More>更多</MW_More>
|
||||
@@ -743,7 +721,6 @@
|
||||
<MW_OpenWith>使用 {0} 開啟</MW_OpenWith>
|
||||
<MW_OpenWithMenu>從選單選擇開啟</MW_OpenWithMenu>
|
||||
<MW_Run>執行 {0}</MW_Run>
|
||||
<MW_FileBlocked>此檔案類型已被阻止。</MW_FileBlocked>
|
||||
<MW_Share>分享</MW_Share>
|
||||
<MW_Reload>重新載入</MW_Reload>
|
||||
<MW_More>更多</MW_More>
|
||||
@@ -777,7 +754,6 @@
|
||||
<MW_Open>{0} उघडा</MW_Open>
|
||||
<MW_OpenWith>{0} च्या सह उघडा</MW_OpenWith>
|
||||
<MW_Run>{0} चालवा</MW_Run>
|
||||
<MW_FileBlocked>हा फाइल प्रकार ब्लॉक केला आहे.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>&सुरूवातीस चालवा</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook आवृत्ती v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>&अद्यतनांसाठी तपासा...</Icon_CheckUpdate>
|
||||
@@ -805,7 +781,6 @@
|
||||
<MW_Open>{0} खोलें</MW_Open>
|
||||
<MW_OpenWith>{0} के साथ खोलें</MW_OpenWith>
|
||||
<MW_Run>{0} चलाएं</MW_Run>
|
||||
<MW_FileBlocked>यह फ़ाइल प्रकार अवरुद्ध है.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>&शुरु होते समय चलाएं</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook आवृत्ती v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>&अद्यतन के लिए जाँच करें...</Icon_CheckUpdate>
|
||||
@@ -833,8 +808,6 @@
|
||||
<MW_BrowseFolder>סייר ב{0}</MW_BrowseFolder>
|
||||
<MW_Open>פתח את {0}</MW_Open>
|
||||
<MW_OpenWith>פתח בעזרת {0}</MW_OpenWith>
|
||||
<MW_Run>הפעל {0}</MW_Run>
|
||||
<MW_FileBlocked>סוג קובץ זה חסום.</MW_FileBlocked>
|
||||
<MW_Run>הרץ {0}</MW_Run>
|
||||
<Icon_RunAtStartup>הרץ ב&אתחול</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>'תצוגה מהירה' v{0}</Icon_ToolTip>
|
||||
@@ -864,7 +837,6 @@
|
||||
<MW_Open>Άνοιγμα {0}</MW_Open>
|
||||
<MW_OpenWith>Άνοιγμα με {0}</MW_OpenWith>
|
||||
<MW_Run>Εκτέλεση {0}</MW_Run>
|
||||
<MW_FileBlocked>Αυτός ο τύπος αρχείου είναι αποκλεισμένος.</MW_FileBlocked>
|
||||
<Icon_RunAtStartup>Εκτέλεση κατά &την εκκίνηση</Icon_RunAtStartup>
|
||||
<Icon_ToolTip>QuickLook v{0}</Icon_ToolTip>
|
||||
<Icon_CheckUpdate>Ελεγχος για &ενημερώσεις...</Icon_CheckUpdate>
|
||||
@@ -896,7 +868,6 @@
|
||||
<MW_OpenWith>Öppna med {0}</MW_OpenWith>
|
||||
<MW_OpenWithMenu>Öppna med…</MW_OpenWithMenu>
|
||||
<MW_Run>Kör {0}</MW_Run>
|
||||
<MW_FileBlocked>Den här filtypen är blockerad.</MW_FileBlocked>
|
||||
<MW_Share>Dela</MW_Share>
|
||||
<MW_Reload>Ladda om</MW_Reload>
|
||||
<Icon_RunAtStartup>Kör vid &start</Icon_RunAtStartup>
|
||||
|
||||
@@ -201,19 +201,6 @@ public partial class ViewerWindow
|
||||
return;
|
||||
}
|
||||
|
||||
if (ContextObject.IsBlocked)
|
||||
{
|
||||
ContextObject.ViewerContent = new System.Windows.Controls.TextBlock
|
||||
{
|
||||
Text = TranslationHelper.Get("MW_FileBlocked", failsafe: "This file type is blocked."),
|
||||
HorizontalAlignment = HorizontalAlignment.Center,
|
||||
VerticalAlignment = VerticalAlignment.Center,
|
||||
FontSize = 14,
|
||||
};
|
||||
ContextObject.IsBusy = false;
|
||||
return;
|
||||
}
|
||||
|
||||
SetOpenWithButtonAndPath();
|
||||
|
||||
// Revert UI changes
|
||||
|
||||
Reference in New Issue
Block a user