From c8d865e26b0147940be821c4f1750632e74521c2 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Sun, 1 Jun 2014 23:23:48 +0800 Subject: [PATCH] #87 Add plugin deatails in Plugin tab. [WIP] --- Wox.Plugin/PluginMetadata.cs | 3 +++ Wox/PluginLoader/BasePluginLoader.cs | 1 + Wox/SettingWindow.xaml | 28 +++++++++++++++++----------- Wox/SettingWindow.xaml.cs | 6 ++++++ 4 files changed, 27 insertions(+), 11 deletions(-) diff --git a/Wox.Plugin/PluginMetadata.cs b/Wox.Plugin/PluginMetadata.cs index 4c9d2e3576..362659ff3a 100644 --- a/Wox.Plugin/PluginMetadata.cs +++ b/Wox.Plugin/PluginMetadata.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Security.RightsManagement; using System.Text; namespace Wox.Plugin @@ -26,6 +27,8 @@ namespace Wox.Plugin public string Language { get; set; } public string Description { get; set; } + public string Website { get; set; } + public string ExecuteFilePath { get { return Path.Combine(PluginDirecotry, ExecuteFileName); } diff --git a/Wox/PluginLoader/BasePluginLoader.cs b/Wox/PluginLoader/BasePluginLoader.cs index 8c4823c5bb..e88cc41d78 100644 --- a/Wox/PluginLoader/BasePluginLoader.cs +++ b/Wox/PluginLoader/BasePluginLoader.cs @@ -32,6 +32,7 @@ namespace Wox.PluginLoader { Name = "System Plugins", Author = "System", Description = "system plugins collection", + Website = "http://www.getwox.com", Language = AllowedLanguage.CSharp, Version = "1.0", PluginType = PluginType.System, diff --git a/Wox/SettingWindow.xaml b/Wox/SettingWindow.xaml index e58ea5bc96..2e161503ea 100644 --- a/Wox/SettingWindow.xaml +++ b/Wox/SettingWindow.xaml @@ -51,9 +51,7 @@ - - - + @@ -74,7 +72,6 @@ - @@ -107,7 +104,7 @@ - + @@ -116,15 +113,24 @@ - + - - + + + + + - - - + + + + + + + + Enable + diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 4e8a2d2aad..dda34d159b 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -458,6 +458,9 @@ namespace Wox { provider = pair.Plugin as ISettingProvider; pluginTitle.Text = pair.Metadata.Name; + pluginActionKeyword.Text = "ActionKeyword: " + pair.Metadata.ActionKeyword; + pluginAuthor.Text = "Author: " + pair.Metadata.Author; + pluginWebsite.Text = "Website: " + pair.Metadata.Website; pluginSubTitle.Text = pair.Metadata.Description; SyntaxSugars.CallOrRescueDefault( () => @@ -476,6 +479,9 @@ namespace Wox { pluginTitle.Text = sys.Name; pluginSubTitle.Text = sys.Description; + pluginAuthor.Text = "Author: Wox"; + pluginActionKeyword.Text = "ActionKeyword: auto trigger"; + pluginWebsite.Text = "Website: http://www.getwox.com"; SyntaxSugars.CallOrRescueDefault( () => pluginIcon.Source =