Add Feature Tab in Settings. (Still WIP)

This commit is contained in:
Yeechan Lu
2014-03-28 22:42:28 +08:00
parent 70950b8267
commit 4512854c2a
16 changed files with 265 additions and 43 deletions

View File

@@ -17,6 +17,7 @@ using Wox.Helper;
using Application = System.Windows.Forms.Application;
using File = System.IO.File;
using MessageBox = System.Windows.MessageBox;
using System.Windows.Data;
namespace Wox
{
@@ -157,6 +158,24 @@ namespace Wox
cbEnablePythonPlugins.IsChecked = UserSettingStorage.Instance.EnablePythonPlugins;
cbStartWithWindows.IsChecked = File.Exists(woxLinkPath);
var features = new CompositeCollection
{
new CollectionContainer()
{
Collection =
PluginLoader.Plugins.AllPlugins.Where(o => o.Metadata.PluginType == PluginType.System)
.Select(o => o.Plugin)
.Cast<Wox.Plugin.System.ISystemPlugin>()
},
FindResource("FeatureBoxSeperator"),
new CollectionContainer()
{
Collection =
PluginLoader.Plugins.AllPlugins.Where(o => o.Metadata.PluginType == PluginType.ThirdParty)
}
};
featureBox.ItemsSource = features;
slOpacity.Value = UserSettingStorage.Instance.Opacity;
CbOpacityMode.SelectedItem = UserSettingStorage.Instance.OpacityMode;
@@ -473,5 +492,10 @@ namespace Wox
else
PreviewMainPanel.Opacity = 1;
}
private void featureBox_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
// throw new NotImplementedException();
}
}
}