Moved ObjectListView to HelpersLib

This commit is contained in:
Jaex 2019-12-04 03:39:57 +03:00
parent 7eceecf76d
commit f5e5c5c5b4
9 changed files with 56 additions and 57 deletions

View file

@ -23,14 +23,13 @@
#endregion License Information (GPL v3) #endregion License Information (GPL v3)
using ShareX.HelpersLib; using ShareX.HelpersLib.Properties;
using ShareX.HistoryLib.Properties;
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.Reflection; using System.Reflection;
using System.Windows.Forms; using System.Windows.Forms;
namespace ShareX.HistoryLib namespace ShareX.HelpersLib
{ {
public class ObjectListView : MyListView public class ObjectListView : MyListView
{ {

View file

@ -2222,6 +2222,42 @@ internal class Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Copy name.
/// </summary>
internal static string ObjectListView_ObjectListView_Copy_name {
get {
return ResourceManager.GetString("ObjectListView_ObjectListView_Copy_name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Copy value.
/// </summary>
internal static string ObjectListView_ObjectListView_Copy_value {
get {
return ResourceManager.GetString("ObjectListView_ObjectListView_Copy_value", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name.
/// </summary>
internal static string ObjectListView_ObjectListView_Name {
get {
return ResourceManager.GetString("ObjectListView_ObjectListView_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Value.
/// </summary>
internal static string ObjectListView_ObjectListView_Value {
get {
return ResourceManager.GetString("ObjectListView_ObjectListView_Value", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to 1 Day. /// Looks up a localized string similar to 1 Day.
/// </summary> /// </summary>

View file

@ -1205,4 +1205,16 @@ Would you like to download and install it?</value>
<data name="ReplCodeMenuEntry_wy_Week_of_year" xml:space="preserve"> <data name="ReplCodeMenuEntry_wy_Week_of_year" xml:space="preserve">
<value>Week of year</value> <value>Week of year</value>
</data> </data>
<data name="ObjectListView_ObjectListView_Copy_name" xml:space="preserve">
<value>Copy name</value>
</data>
<data name="ObjectListView_ObjectListView_Copy_value" xml:space="preserve">
<value>Copy value</value>
</data>
<data name="ObjectListView_ObjectListView_Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="ObjectListView_ObjectListView_Value" xml:space="preserve">
<value>Value</value>
</data>
</root> </root>

View file

@ -103,6 +103,9 @@
<Compile Include="..\SharedAssemblyInfo.cs"> <Compile Include="..\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link> <Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile> </Compile>
<Compile Include="Controls\ObjectListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Controls\ToolStripRoundedEdgeRenderer.cs" /> <Compile Include="Controls\ToolStripRoundedEdgeRenderer.cs" />
<Compile Include="Controls\DarkColorTable.cs" /> <Compile Include="Controls\DarkColorTable.cs" />
<Compile Include="Controls\HotkeySelectionButton.cs"> <Compile Include="Controls\HotkeySelectionButton.cs">

View file

@ -30,7 +30,7 @@ private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HistoryItemInfoForm)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HistoryItemInfoForm));
this.olvMain = new ShareX.HistoryLib.ObjectListView(); this.olvMain = new ShareX.HelpersLib.ObjectListView();
this.SuspendLayout(); this.SuspendLayout();
// //
// olvMain // olvMain
@ -59,6 +59,6 @@ private void InitializeComponent()
#endregion Windows Form Designer generated code #endregion Windows Form Designer generated code
private ShareX.HistoryLib.ObjectListView olvMain; private ShareX.HelpersLib.ObjectListView olvMain;
} }
} }

View file

@ -30,7 +30,7 @@ namespace ShareX.HistoryLib
{ {
public partial class HistoryItemInfoForm : Form public partial class HistoryItemInfoForm : Form
{ {
public HistoryItemInfoForm(object hi) public HistoryItemInfoForm(HistoryItem hi)
{ {
InitializeComponent(); InitializeComponent();
ShareXResources.ApplyTheme(this); ShareXResources.ApplyTheme(this);

View file

@ -460,41 +460,5 @@ internal class Resources {
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary>
/// Looks up a localized string similar to Copy name.
/// </summary>
internal static string ObjectListView_ObjectListView_Copy_name {
get {
return ResourceManager.GetString("ObjectListView_ObjectListView_Copy_name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Copy value.
/// </summary>
internal static string ObjectListView_ObjectListView_Copy_value {
get {
return ResourceManager.GetString("ObjectListView_ObjectListView_Copy_value", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name.
/// </summary>
internal static string ObjectListView_ObjectListView_Name {
get {
return ResourceManager.GetString("ObjectListView_ObjectListView_Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Value.
/// </summary>
internal static string ObjectListView_ObjectListView_Value {
get {
return ResourceManager.GetString("ObjectListView_ObjectListView_Value", resourceCulture);
}
}
} }
} }

View file

@ -117,9 +117,6 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<data name="ObjectListView_ObjectListView_Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="HistoryManager_GetHistoryItems_Error" xml:space="preserve"> <data name="HistoryManager_GetHistoryItems_Error" xml:space="preserve">
<value>Error</value> <value>Error</value>
</data> </data>
@ -135,9 +132,6 @@
<data name="HistoryItemManager_InitializeComponent_Image" xml:space="preserve"> <data name="HistoryItemManager_InitializeComponent_Image" xml:space="preserve">
<value>Image</value> <value>Image</value>
</data> </data>
<data name="ObjectListView_ObjectListView_Copy_name" xml:space="preserve">
<value>Copy name</value>
</data>
<data name="HistoryItemManager_InitializeComponent_Markdown__link" xml:space="preserve"> <data name="HistoryItemManager_InitializeComponent_Markdown__link" xml:space="preserve">
<value>Markdown link</value> <value>Markdown link</value>
</data> </data>
@ -151,9 +145,6 @@
<data name="globe" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="globe" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\globe.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\globe.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="ObjectListView_ObjectListView_Copy_value" xml:space="preserve">
<value>Copy value</value>
</data>
<data name="HistoryItemManager_InitializeComponent_File_name_with_extension" xml:space="preserve"> <data name="HistoryItemManager_InitializeComponent_File_name_with_extension" xml:space="preserve">
<value>File name with extension</value> <value>File name with extension</value>
</data> </data>
@ -196,9 +187,6 @@
<data name="HistoryItemManager_InitializeComponent_HTML_linked_image" xml:space="preserve"> <data name="HistoryItemManager_InitializeComponent_HTML_linked_image" xml:space="preserve">
<value>HTML linked image</value> <value>HTML linked image</value>
</data> </data>
<data name="ObjectListView_ObjectListView_Value" xml:space="preserve">
<value>Value</value>
</data>
<data name="HistoryItemManager_InitializeComponent_Forum__BBCode__linked_image" xml:space="preserve"> <data name="HistoryItemManager_InitializeComponent_Forum__BBCode__linked_image" xml:space="preserve">
<value>Forum (BBCode) linked image</value> <value>Forum (BBCode) linked image</value>
</data> </data>

View file

@ -108,9 +108,6 @@
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="UserControls\ObjectListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Forms\HistoryForm.cs"> <Compile Include="Forms\HistoryForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>