From d748e34d7e49f7a270812ad8296ef174715dc4fb Mon Sep 17 00:00:00 2001 From: Aaron Campf Date: Tue, 20 May 2014 21:53:32 -0700 Subject: [PATCH] Working on Adding CheckBox --- Wox.Plugin.SystemPlugins/BaseSystemPlugin.cs | 62 +-- Wox/SettingWindow.xaml | 549 ++++++++++--------- 2 files changed, 294 insertions(+), 317 deletions(-) diff --git a/Wox.Plugin.SystemPlugins/BaseSystemPlugin.cs b/Wox.Plugin.SystemPlugins/BaseSystemPlugin.cs index 46fd476479..278d84f184 100644 --- a/Wox.Plugin.SystemPlugins/BaseSystemPlugin.cs +++ b/Wox.Plugin.SystemPlugins/BaseSystemPlugin.cs @@ -1,50 +1,24 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; -namespace Wox.Plugin.SystemPlugins -{ - public abstract class BaseSystemPlugin :ISystemPlugin - { - protected abstract List QueryInternal(Query query); - protected abstract void InitInternal(PluginInitContext context); +namespace Wox.Plugin.SystemPlugins { - public List Query(Query query) - { - if (string.IsNullOrEmpty(query.RawQuery)) return new List(); - return QueryInternal(query); - } + public abstract class BaseSystemPlugin : ISystemPlugin { + public string PluginDirectory { get; set; } + public virtual string Name { get { return "System workflow"; } } + public virtual string Description { get { return "System workflow"; } } + public virtual string IcoPath { get { return null; } } - public void Init(PluginInitContext context) - { - InitInternal(context); - } + protected abstract List QueryInternal(Query query); - public virtual string Name - { - get - { - return "System workflow"; - } - } + protected abstract void InitInternal(PluginInitContext context); - public virtual string Description - { - get - { - return "System workflow"; - } - } + public List Query(Query query) { + if (string.IsNullOrEmpty(query.RawQuery)) return new List(); + return QueryInternal(query); + } - public virtual string IcoPath - { - get - { - return null; - } - } - - public string PluginDirectory { get; set; } - } -} + public void Init(PluginInitContext context) { + InitInternal(context); + } + } +} \ No newline at end of file diff --git a/Wox/SettingWindow.xaml b/Wox/SettingWindow.xaml index 2ed8ada164..e228a6a689 100644 --- a/Wox/SettingWindow.xaml +++ b/Wox/SettingWindow.xaml @@ -1,289 +1,292 @@  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:wox="clr-namespace:Wox" + xmlns:UserSettings="clr-namespace:Wox.Infrastructure.Storage.UserSettings;assembly=Wox.Infrastructure" x:Class="Wox.SettingWindow" + xmlns:woxPlugin="clr-namespace:Wox.Plugin;assembly=Wox.Plugin" + xmlns:system="clr-namespace:Wox.Plugin.SystemPlugins;assembly=Wox.Plugin.SystemPlugins" + Icon="Images\app.png" + Title="Wox Setting" + ResizeMode="NoResize" + WindowStartupLocation="CenterScreen" + Height="600" Width="800"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - Normal - LayeredWindow - DWM - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + Normal + LayeredWindow + DWM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - -