Work on resource and settings managers, added some documentation.

This commit is contained in:
2014-08-15 15:31:33 +03:00
parent 03d9848b50
commit ef8aec25b7
36 changed files with 1148 additions and 671 deletions

View File

@ -61,128 +61,122 @@ namespace RainmeterStudio.Resources {
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/page_white_star.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string DocumentCreateCommand {
internal static System.Drawing.Bitmap Command_DocumentCreateCommand_Icon {
get {
return ResourceManager.GetString("DocumentCreateCommand", resourceCulture);
object obj = ResourceManager.GetObject("Command_DocumentCreateCommand_Icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/32/text_generic.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string DocumentTemplate_Text {
internal static System.Drawing.Bitmap Command_ProjectCreateCommand_Icon {
get {
return ResourceManager.GetString("DocumentTemplate_Text", resourceCulture);
object obj = ResourceManager.GetObject("Command_ProjectCreateCommand_Icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/project_star.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectCreateCommand {
internal static System.Drawing.Bitmap Command_ProjectOpenCommand_Icon {
get {
return ResourceManager.GetString("ProjectCreateCommand", resourceCulture);
object obj = ResourceManager.GetObject("Command_ProjectOpenCommand_Icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/project.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectItem_rsproj {
internal static System.Drawing.Bitmap Command_ProjectPanel_CollapseAllCommand_Icon {
get {
return ResourceManager.GetString("ProjectItem_rsproj", resourceCulture);
object obj = ResourceManager.GetObject("Command_ProjectPanel_CollapseAllCommand_Icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/text_generic.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectItem_txt {
internal static System.Drawing.Bitmap Command_ProjectPanel_ExpandAllCommand_Icon {
get {
return ResourceManager.GetString("ProjectItem_txt", resourceCulture);
object obj = ResourceManager.GetObject("Command_ProjectPanel_ExpandAllCommand_Icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/folder.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectItemDirectory {
internal static System.Drawing.Bitmap Command_ProjectPanel_RefreshCommand_Icon {
get {
return ResourceManager.GetString("ProjectItemDirectory", resourceCulture);
object obj = ResourceManager.GetObject("Command_ProjectPanel_RefreshCommand_Icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/page_white_delete.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectItemNone {
internal static System.Drawing.Bitmap Command_ProjectPanel_ShowAllFilesCommand_Icon {
get {
return ResourceManager.GetString("ProjectItemNone", resourceCulture);
object obj = ResourceManager.GetObject("Command_ProjectPanel_ShowAllFilesCommand_Icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/file_generic.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectItemUnknown {
internal static System.Drawing.Bitmap Command_ProjectPanel_SyncWithActiveViewCommand_Icon {
get {
return ResourceManager.GetString("ProjectItemUnknown", resourceCulture);
object obj = ResourceManager.GetObject("Command_ProjectPanel_SyncWithActiveViewCommand_Icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/folder_project.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectOpenCommand {
internal static System.Drawing.Bitmap ProjectItem_rsproj {
get {
return ResourceManager.GetString("ProjectOpenCommand", resourceCulture);
object obj = ResourceManager.GetObject("ProjectItem_rsproj", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/minus.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectPanel_CollapseAllCommand {
internal static System.Drawing.Bitmap ProjectItemDirectory {
get {
return ResourceManager.GetString("ProjectPanel_CollapseAllCommand", resourceCulture);
object obj = ResourceManager.GetObject("ProjectItemDirectory", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/plus.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectPanel_ExpandAllCommand {
internal static System.Drawing.Bitmap ProjectItemNone {
get {
return ResourceManager.GetString("ProjectPanel_ExpandAllCommand", resourceCulture);
object obj = ResourceManager.GetObject("ProjectItemNone", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/view-refresh.png.
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static string ProjectPanel_RefreshCommand {
internal static System.Drawing.Bitmap ProjectItemUnknown {
get {
return ResourceManager.GetString("ProjectPanel_RefreshCommand", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/folder_explore.png.
/// </summary>
internal static string ProjectPanel_ShowAllFilesCommand {
get {
return ResourceManager.GetString("ProjectPanel_ShowAllFilesCommand", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to /Resources/Icons/16/arrow_refresh_small.png.
/// </summary>
internal static string ProjectPanel_SyncWithActiveViewCommand {
get {
return ResourceManager.GetString("ProjectPanel_SyncWithActiveViewCommand", resourceCulture);
object obj = ResourceManager.GetObject("ProjectItemUnknown", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}

View File

@ -117,46 +117,41 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="DocumentCreateCommand" xml:space="preserve">
<value>/Resources/Icons/16/page_white_star.png</value>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Command_DocumentCreateCommand_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\page_white_star.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="DocumentTemplate_Text" xml:space="preserve">
<value>/Resources/Icons/32/text_generic.png</value>
<data name="Command_ProjectCreateCommand_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\project_star.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectCreateCommand" xml:space="preserve">
<value>/Resources/Icons/16/project_star.png</value>
<data name="Command_ProjectOpenCommand_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\folder_project.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectItemDirectory" xml:space="preserve">
<value>/Resources/Icons/16/folder.png</value>
<data name="Command_ProjectPanel_CollapseAllCommand_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\minus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectItemNone" xml:space="preserve">
<value>/Resources/Icons/16/page_white_delete.png</value>
<data name="Command_ProjectPanel_ExpandAllCommand_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectItemUnknown" xml:space="preserve">
<value>/Resources/Icons/16/file_generic.png</value>
<data name="Command_ProjectPanel_RefreshCommand_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\view-refresh.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectItem_rsproj" xml:space="preserve">
<value>/Resources/Icons/16/project.png</value>
<data name="Command_ProjectPanel_ShowAllFilesCommand_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\folder_explore.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectItem_txt" xml:space="preserve">
<value>/Resources/Icons/16/text_generic.png</value>
<data name="Command_ProjectPanel_SyncWithActiveViewCommand_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\arrow_refresh_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectOpenCommand" xml:space="preserve">
<value>/Resources/Icons/16/folder_project.png</value>
<data name="ProjectItemDirectory" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\folder.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectPanel_CollapseAllCommand" xml:space="preserve">
<value>/Resources/Icons/16/minus.png</value>
<data name="ProjectItemNone" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\file_generic.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectPanel_ExpandAllCommand" xml:space="preserve">
<value>/Resources/Icons/16/plus.png</value>
<data name="ProjectItemUnknown" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\page_white_delete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ProjectPanel_RefreshCommand" xml:space="preserve">
<value>/Resources/Icons/16/view-refresh.png</value>
</data>
<data name="ProjectPanel_ShowAllFilesCommand" xml:space="preserve">
<value>/Resources/Icons/16/folder_explore.png</value>
</data>
<data name="ProjectPanel_SyncWithActiveViewCommand" xml:space="preserve">
<value>/Resources/Icons/16/arrow_refresh_small.png</value>
<data name="ProjectItem_rsproj" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>icons\16\project.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,126 +0,0 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Resources;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace RainmeterStudio.Resources
{
/// <summary>
/// Manages and provides resources
/// </summary>
public static class ResourceProvider
{
/// <summary>
/// Holds information about a resource manager
/// </summary>
private struct ResourceManagerInfo
{
public ResourceManager Manager;
public Assembly Assembly;
}
private static List<ResourceManagerInfo> _resourceManagers = new List<ResourceManagerInfo>();
private static Dictionary<string, string> _cacheStrings = new Dictionary<string, string>();
private static Dictionary<string, ImageSource> _cacheImages = new Dictionary<string, ImageSource>();
/// <summary>
/// Registers a resource manager
/// </summary>
/// <param name="manager">The resource manager</param>
/// <param name="ownerAssembly">The assembly which will contain the non-string resources</param>
public static void RegisterManager(ResourceManager manager, Assembly ownerAssembly)
{
_resourceManagers.Add(new ResourceManagerInfo()
{
Manager = manager,
Assembly = ownerAssembly
});
}
/// <summary>
/// Gets a string from the resource managers
/// </summary>
/// <param name="key">Identifier of the resource</param>
/// <param name="bypassCache">By default, strings are cached. Setting this to true will bypass the cache.</param>
/// <param name="keepInCache">If this parameter is set to true, the obtained string will be cached.</param>
/// <returns>The string, or null if not found</returns>
public static string GetString(string key, bool bypassCache = false, bool keepInCache = true)
{
string value = null;
// Look up in cache
if (bypassCache || !_cacheStrings.TryGetValue(key, out value))
{
// Not found, query resource managers
foreach (var info in _resourceManagers)
{
// Try to get resource
var str = info.Manager.GetString(key);
// Found?
if (str != null)
{
value = str;
if (keepInCache)
_cacheStrings[key] = str;
break;
}
}
}
// Resource not found
return value;
}
/// <summary>
/// Gets an image from the resource manager.
/// </summary>
/// <param name="key">Identifier of the resource</param>
/// <param name="bypassCache">By default, images are cached. Setting this to true will bypass the cache.</param>
/// <param name="keepInCache">If this parameter is set to true, the obtained image will be cached.</param>
/// <returns>The image source, or null if not found</returns>
public static ImageSource GetImage(string key, bool bypassCache = false, bool keepInCache = true)
{
ImageSource image = null;
// Look up in cache
if (bypassCache || !_cacheImages.TryGetValue(key, out image))
{
// Not found, query resource managers
foreach (var info in _resourceManagers)
{
// Try to get resource
var path = info.Manager.GetString(key);
// Found
if (path != null)
{
Uri fullPath = new Uri("/" + info.Assembly.GetName().Name + ";component" + path, UriKind.Relative);
image = new BitmapImage(fullPath);
if (keepInCache)
_cacheImages[key] = image;
break;
}
}
}
// Resource not found
return image;
}
/// <summary>
/// Clears the cache
/// </summary>
public static void ClearCache()
{
_cacheImages.Clear();
_cacheStrings.Clear();
}
}
}

View File

@ -61,11 +61,245 @@ namespace RainmeterStudio.Resources {
}
/// <summary>
/// Looks up a localized string similar to Utility.
/// Looks up a localized string similar to _Close.
/// </summary>
public static string Category_Utility {
public static string Command_DocumentCloseCommand_DisplayText {
get {
return ResourceManager.GetString("Category_Utility", resourceCulture);
return ResourceManager.GetString("Command_DocumentCloseCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Close active document.
/// </summary>
public static string Command_DocumentCloseCommand_ToolTip {
get {
return ResourceManager.GetString("Command_DocumentCloseCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _File....
/// </summary>
public static string Command_DocumentCreateCommand_DisplayText {
get {
return ResourceManager.GetString("Command_DocumentCreateCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create a new file.
/// </summary>
public static string Command_DocumentCreateCommand_ToolTip {
get {
return ResourceManager.GetString("Command_DocumentCreateCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Project....
/// </summary>
public static string Command_ProjectCreateCommand_DisplayText {
get {
return ResourceManager.GetString("Command_ProjectCreateCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create a new project.
/// </summary>
public static string Command_ProjectCreateCommand_ToolTip {
get {
return ResourceManager.GetString("Command_ProjectCreateCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Project....
/// </summary>
public static string Command_ProjectOpenCommand_DisplayText {
get {
return ResourceManager.GetString("Command_ProjectOpenCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Open existing project.
/// </summary>
public static string Command_ProjectOpenCommand_ToolTip {
get {
return ResourceManager.GetString("Command_ProjectOpenCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Collapse all.
/// </summary>
public static string Command_ProjectPanel_CollapseAllCommand_DisplayText {
get {
return ResourceManager.GetString("Command_ProjectPanel_CollapseAllCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Collapse all.
/// </summary>
public static string Command_ProjectPanel_CollapseAllCommand_ToolTip {
get {
return ResourceManager.GetString("Command_ProjectPanel_CollapseAllCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expand all.
/// </summary>
public static string Command_ProjectPanel_ExpandAllCommand_DisplayText {
get {
return ResourceManager.GetString("Command_ProjectPanel_ExpandAllCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expand all.
/// </summary>
public static string Command_ProjectPanel_ExpandAllCommand_ToolTip {
get {
return ResourceManager.GetString("Command_ProjectPanel_ExpandAllCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Refresh.
/// </summary>
public static string Command_ProjectPanel_RefreshCommand_DisplayText {
get {
return ResourceManager.GetString("Command_ProjectPanel_RefreshCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Refresh.
/// </summary>
public static string Command_ProjectPanel_RefreshCommand_ToolTip {
get {
return ResourceManager.GetString("Command_ProjectPanel_RefreshCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show all files.
/// </summary>
public static string Command_ProjectPanel_ShowAllFilesCommand_DisplayText {
get {
return ResourceManager.GetString("Command_ProjectPanel_ShowAllFilesCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show all files.
/// </summary>
public static string Command_ProjectPanel_ShowAllFilesCommand_ToolTip {
get {
return ResourceManager.GetString("Command_ProjectPanel_ShowAllFilesCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sync with active view.
/// </summary>
public static string Command_ProjectPanel_SyncWithActiveViewCommand_DisplayText {
get {
return ResourceManager.GetString("Command_ProjectPanel_SyncWithActiveViewCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sync with active view.
/// </summary>
public static string Command_ProjectPanel_SyncWithActiveViewCommand_ToolTip {
get {
return ResourceManager.GetString("Command_ProjectPanel_SyncWithActiveViewCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name:.
/// </summary>
public static string CreateDocumentDialog_Name {
get {
return ResourceManager.GetString("CreateDocumentDialog_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Path:.
/// </summary>
public static string CreateDocumentDialog_Path {
get {
return ResourceManager.GetString("CreateDocumentDialog_Path", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to New item.
/// </summary>
public static string CreateDocumentDialog_Title {
get {
return ResourceManager.GetString("CreateDocumentDialog_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Location:.
/// </summary>
public static string CreateProjectDialog_Location {
get {
return ResourceManager.GetString("CreateProjectDialog_Location", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Set location as default.
/// </summary>
public static string CreateProjectDialog_LocationDefault {
get {
return ResourceManager.GetString("CreateProjectDialog_LocationDefault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name:.
/// </summary>
public static string CreateProjectDialog_Name {
get {
return ResourceManager.GetString("CreateProjectDialog_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Path:.
/// </summary>
public static string CreateProjectDialog_Path {
get {
return ResourceManager.GetString("CreateProjectDialog_Path", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create directory for project.
/// </summary>
public static string CreateProjectDialog_PathCreateFolder {
get {
return ResourceManager.GetString("CreateProjectDialog_PathCreateFolder", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create project.
/// </summary>
public static string CreateProjectDialog_Title {
get {
return ResourceManager.GetString("CreateProjectDialog_Title", resourceCulture);
}
}
@ -132,69 +366,6 @@ namespace RainmeterStudio.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to _Close.
/// </summary>
public static string DocumentCloseCommand_DisplayText {
get {
return ResourceManager.GetString("DocumentCloseCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Close active document.
/// </summary>
public static string DocumentCloseCommand_ToolTip {
get {
return ResourceManager.GetString("DocumentCloseCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _File....
/// </summary>
public static string DocumentCreateCommand_DisplayText {
get {
return ResourceManager.GetString("DocumentCreateCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create a new file.
/// </summary>
public static string DocumentCreateCommand_ToolTip {
get {
return ResourceManager.GetString("DocumentCreateCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Text Editor.
/// </summary>
public static string DocumentEditor_Text_Name {
get {
return ResourceManager.GetString("DocumentEditor_Text_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Blank text file.
/// </summary>
public static string DocumentFormat_TextFile_Description {
get {
return ResourceManager.GetString("DocumentFormat_TextFile_Description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Text file.
/// </summary>
public static string DocumentFormat_TextFile_Name {
get {
return ResourceManager.GetString("DocumentFormat_TextFile_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _File.
/// </summary>
@ -223,191 +394,11 @@ namespace RainmeterStudio.Resources {
}
/// <summary>
/// Looks up a localized string similar to _Project....
/// Looks up a localized string similar to Rainmeter Studio.
/// </summary>
public static string ProjectCreateCommand_DisplayText {
public static string MainWindow_Title {
get {
return ResourceManager.GetString("ProjectCreateCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create a new project.
/// </summary>
public static string ProjectCreateCommand_ToolTip {
get {
return ResourceManager.GetString("ProjectCreateCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Location:.
/// </summary>
public static string ProjectCreateDialog_Location {
get {
return ResourceManager.GetString("ProjectCreateDialog_Location", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Set location as default.
/// </summary>
public static string ProjectCreateDialog_LocationDefault {
get {
return ResourceManager.GetString("ProjectCreateDialog_LocationDefault", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name:.
/// </summary>
public static string ProjectCreateDialog_Name {
get {
return ResourceManager.GetString("ProjectCreateDialog_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Path:.
/// </summary>
public static string ProjectCreateDialog_Path {
get {
return ResourceManager.GetString("ProjectCreateDialog_Path", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create directory for project.
/// </summary>
public static string ProjectCreateDialog_PathCreateFolder {
get {
return ResourceManager.GetString("ProjectCreateDialog_PathCreateFolder", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create project.
/// </summary>
public static string ProjectCreateDialog_Title {
get {
return ResourceManager.GetString("ProjectCreateDialog_Title", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Project....
/// </summary>
public static string ProjectOpenCommand_DisplayText {
get {
return ResourceManager.GetString("ProjectOpenCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Open existing project.
/// </summary>
public static string ProjectOpenCommand_ToolTip {
get {
return ResourceManager.GetString("ProjectOpenCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Collapse all.
/// </summary>
public static string ProjectPanel_CollapseAllCommand_DisplayText {
get {
return ResourceManager.GetString("ProjectPanel_CollapseAllCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Collapse all.
/// </summary>
public static string ProjectPanel_CollapseAllCommand_ToolTip {
get {
return ResourceManager.GetString("ProjectPanel_CollapseAllCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expand all.
/// </summary>
public static string ProjectPanel_ExpandAllCommand_DisplayText {
get {
return ResourceManager.GetString("ProjectPanel_ExpandAllCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expand all.
/// </summary>
public static string ProjectPanel_ExpandAllCommand_ToolTip {
get {
return ResourceManager.GetString("ProjectPanel_ExpandAllCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Refresh.
/// </summary>
public static string ProjectPanel_RefreshCommand_DisplayText {
get {
return ResourceManager.GetString("ProjectPanel_RefreshCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Refresh.
/// </summary>
public static string ProjectPanel_RefreshCommand_ToolTip {
get {
return ResourceManager.GetString("ProjectPanel_RefreshCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show all files.
/// </summary>
public static string ProjectPanel_ShowAllFilesCommand_DisplayText {
get {
return ResourceManager.GetString("ProjectPanel_ShowAllFilesCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show all files.
/// </summary>
public static string ProjectPanel_ShowAllFilesCommand_ToolTip {
get {
return ResourceManager.GetString("ProjectPanel_ShowAllFilesCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sync with active view.
/// </summary>
public static string ProjectPanel_SyncWithActiveViewCommand_DisplayText {
get {
return ResourceManager.GetString("ProjectPanel_SyncWithActiveViewCommand_DisplayText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sync with active view.
/// </summary>
public static string ProjectPanel_SyncWithActiveViewCommand_ToolTip {
get {
return ResourceManager.GetString("ProjectPanel_SyncWithActiveViewCommand_ToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Utility.
/// </summary>
public static string TemplateCategory_Utility {
get {
return ResourceManager.GetString("TemplateCategory_Utility", resourceCulture);
return ResourceManager.GetString("MainWindow_Title", resourceCulture);
}
}
}

View File

@ -117,8 +117,14 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Category_Utility" xml:space="preserve">
<value>Utility</value>
<data name="CreateDocumentDialog_Name" xml:space="preserve">
<value>Name:</value>
</data>
<data name="CreateDocumentDialog_Path" xml:space="preserve">
<value>Path:</value>
</data>
<data name="CreateDocumentDialog_Title" xml:space="preserve">
<value>New item</value>
</data>
<data name="Dialog_Browse" xml:space="preserve">
<value>Browse</value>
@ -141,27 +147,18 @@
<data name="Dialog_OpenProject_Title" xml:space="preserve">
<value>Open project...</value>
</data>
<data name="DocumentCloseCommand_DisplayText" xml:space="preserve">
<data name="Command_DocumentCloseCommand_DisplayText" xml:space="preserve">
<value>_Close</value>
</data>
<data name="DocumentCloseCommand_ToolTip" xml:space="preserve">
<data name="Command_DocumentCloseCommand_ToolTip" xml:space="preserve">
<value>Close active document</value>
</data>
<data name="DocumentCreateCommand_DisplayText" xml:space="preserve">
<data name="Command_DocumentCreateCommand_DisplayText" xml:space="preserve">
<value>_File...</value>
</data>
<data name="DocumentCreateCommand_ToolTip" xml:space="preserve">
<data name="Command_DocumentCreateCommand_ToolTip" xml:space="preserve">
<value>Create a new file</value>
</data>
<data name="DocumentEditor_Text_Name" xml:space="preserve">
<value>Text Editor</value>
</data>
<data name="DocumentFormat_TextFile_Description" xml:space="preserve">
<value>Blank text file</value>
</data>
<data name="DocumentFormat_TextFile_Name" xml:space="preserve">
<value>Text file</value>
</data>
<data name="MainWindow_File" xml:space="preserve">
<value>_File</value>
</data>
@ -171,67 +168,67 @@
<data name="MainWindow_File_Open" xml:space="preserve">
<value>_Open</value>
</data>
<data name="ProjectCreateCommand_DisplayText" xml:space="preserve">
<data name="Command_ProjectCreateCommand_DisplayText" xml:space="preserve">
<value>_Project...</value>
</data>
<data name="ProjectCreateCommand_ToolTip" xml:space="preserve">
<data name="Command_ProjectCreateCommand_ToolTip" xml:space="preserve">
<value>Create a new project</value>
</data>
<data name="ProjectCreateDialog_Location" xml:space="preserve">
<data name="CreateProjectDialog_Location" xml:space="preserve">
<value>Location:</value>
</data>
<data name="ProjectCreateDialog_LocationDefault" xml:space="preserve">
<data name="CreateProjectDialog_LocationDefault" xml:space="preserve">
<value>Set location as default</value>
</data>
<data name="ProjectCreateDialog_Name" xml:space="preserve">
<data name="CreateProjectDialog_Name" xml:space="preserve">
<value>Name:</value>
</data>
<data name="ProjectCreateDialog_Path" xml:space="preserve">
<data name="CreateProjectDialog_Path" xml:space="preserve">
<value>Path:</value>
</data>
<data name="ProjectCreateDialog_PathCreateFolder" xml:space="preserve">
<data name="CreateProjectDialog_PathCreateFolder" xml:space="preserve">
<value>Create directory for project</value>
</data>
<data name="ProjectCreateDialog_Title" xml:space="preserve">
<data name="CreateProjectDialog_Title" xml:space="preserve">
<value>Create project</value>
</data>
<data name="ProjectOpenCommand_DisplayText" xml:space="preserve">
<data name="Command_ProjectOpenCommand_DisplayText" xml:space="preserve">
<value>_Project...</value>
</data>
<data name="ProjectOpenCommand_ToolTip" xml:space="preserve">
<data name="Command_ProjectOpenCommand_ToolTip" xml:space="preserve">
<value>Open existing project</value>
</data>
<data name="ProjectPanel_CollapseAllCommand_DisplayText" xml:space="preserve">
<data name="Command_ProjectPanel_CollapseAllCommand_DisplayText" xml:space="preserve">
<value>Collapse all</value>
</data>
<data name="ProjectPanel_CollapseAllCommand_ToolTip" xml:space="preserve">
<data name="Command_ProjectPanel_CollapseAllCommand_ToolTip" xml:space="preserve">
<value>Collapse all</value>
</data>
<data name="ProjectPanel_ExpandAllCommand_DisplayText" xml:space="preserve">
<data name="Command_ProjectPanel_ExpandAllCommand_DisplayText" xml:space="preserve">
<value>Expand all</value>
</data>
<data name="ProjectPanel_ExpandAllCommand_ToolTip" xml:space="preserve">
<data name="Command_ProjectPanel_ExpandAllCommand_ToolTip" xml:space="preserve">
<value>Expand all</value>
</data>
<data name="ProjectPanel_RefreshCommand_DisplayText" xml:space="preserve">
<data name="Command_ProjectPanel_RefreshCommand_DisplayText" xml:space="preserve">
<value>Refresh</value>
</data>
<data name="ProjectPanel_RefreshCommand_ToolTip" xml:space="preserve">
<data name="Command_ProjectPanel_RefreshCommand_ToolTip" xml:space="preserve">
<value>Refresh</value>
</data>
<data name="ProjectPanel_ShowAllFilesCommand_DisplayText" xml:space="preserve">
<data name="Command_ProjectPanel_ShowAllFilesCommand_DisplayText" xml:space="preserve">
<value>Show all files</value>
</data>
<data name="ProjectPanel_ShowAllFilesCommand_ToolTip" xml:space="preserve">
<data name="Command_ProjectPanel_ShowAllFilesCommand_ToolTip" xml:space="preserve">
<value>Show all files</value>
</data>
<data name="ProjectPanel_SyncWithActiveViewCommand_DisplayText" xml:space="preserve">
<data name="Command_ProjectPanel_SyncWithActiveViewCommand_DisplayText" xml:space="preserve">
<value>Sync with active view</value>
</data>
<data name="ProjectPanel_SyncWithActiveViewCommand_ToolTip" xml:space="preserve">
<data name="Command_ProjectPanel_SyncWithActiveViewCommand_ToolTip" xml:space="preserve">
<value>Sync with active view</value>
</data>
<data name="TemplateCategory_Utility" xml:space="preserve">
<value>Utility</value>
<data name="MainWindow_Title" xml:space="preserve">
<value>Rainmeter Studio</value>
</data>
</root>