2014-01-29 22:44:57 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace Wox.Infrastructure.UserSettings
|
|
|
|
|
{
|
|
|
|
|
public class UserSetting
|
|
|
|
|
{
|
2014-02-22 11:55:48 +08:00
|
|
|
|
public string Hotkey { get; set; }
|
2014-01-29 22:44:57 +08:00
|
|
|
|
public string Theme { get; set; }
|
|
|
|
|
public bool ReplaceWinR { get; set; }
|
|
|
|
|
public List<WebSearch> WebSearches { get; set; }
|
2014-02-22 15:52:20 +08:00
|
|
|
|
public List<CustomPluginHotkey> CustomPluginHotkeys { get; set; }
|
2014-02-07 22:10:00 +08:00
|
|
|
|
public bool StartWoxOnSystemStartup { get; set; }
|
|
|
|
|
|
2014-02-02 16:15:34 +08:00
|
|
|
|
public List<WebSearch> LoadDefaultWebSearches()
|
2014-01-29 22:44:57 +08:00
|
|
|
|
{
|
|
|
|
|
List<WebSearch> webSearches = new List<WebSearch>();
|
|
|
|
|
|
|
|
|
|
WebSearch googleWebSearch = new WebSearch()
|
|
|
|
|
{
|
|
|
|
|
Title = "Google",
|
|
|
|
|
ActionWord = "g",
|
|
|
|
|
IconPath = Directory.GetCurrentDirectory() + @"\Images\websearch\google.png",
|
|
|
|
|
Url = "https://www.google.com/search?q={q}",
|
|
|
|
|
Enabled = true
|
|
|
|
|
};
|
|
|
|
|
webSearches.Add(googleWebSearch);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WebSearch wikiWebSearch = new WebSearch()
|
|
|
|
|
{
|
|
|
|
|
Title = "Wikipedia",
|
|
|
|
|
ActionWord = "wiki",
|
|
|
|
|
IconPath = Directory.GetCurrentDirectory() + @"\Images\websearch\wiki.png",
|
|
|
|
|
Url = "http://en.wikipedia.org/wiki/{q}",
|
|
|
|
|
Enabled = true
|
|
|
|
|
};
|
|
|
|
|
webSearches.Add(wikiWebSearch);
|
|
|
|
|
|
|
|
|
|
return webSearches;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|