Only hunspell available on Linux as spell checker in options.

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@623 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-09-10 14:43:23 +00:00
parent 209803aa0d
commit 7f54b78f5a
2 changed files with 11 additions and 3 deletions

View File

@ -318,6 +318,12 @@ namespace Nikse.SubtitleEdit.Forms
else
comboBoxSpellChecker.SelectedIndex = 0;
if (Utilities.IsRunningOnLinux() || Utilities.IsRunningOnMac())
{
comboBoxSpellChecker.SelectedIndex = 0;
comboBoxSpellChecker.Enabled = false;
}
checkBoxAllowEditOfOriginalSubtitle.Checked = gs.AllowEditOfOriginalSubtitle;
checkBoxPromptDeleteLines.Checked = gs.PromptDeleteLines;

View File

@ -1128,13 +1128,15 @@ namespace Nikse.SubtitleEdit.Logic
{
GeneralSettings gs = Configuration.Settings.General;
if (Utilities.IsRunningOnLinux())
if (Utilities.IsRunningOnLinux() || Utilities.IsRunningOnMac())
return new MPlayer();
if (Utilities.IsRunningOnMac())
return new LibVlcMono();
//if (Utilities.IsRunningOnMac())
// return new LibVlcMono();
if (gs.VideoPlayer == "VLC" && LibVlc11xDynamic.IsInstalled)
return new LibVlc11xDynamic();
//if (gs.VideoPlayer == "WindowsMediaPlayer" && IsWmpAvailable)
// return new WmpPlayer();
//if (gs.VideoPlayer == "ManagedDirectX" && IsManagedDirectXInstalled)