diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2023-12-09 23:59:57 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2023-12-09 23:59:57 +0300 |
commit | 3996b2175a8b49a4e65a5d1c7608c35c1b8f177b (patch) | |
tree | 424347e4d035e1a470860499e612b0853722c891 | |
parent | 52f128c8b743c07052152b3829cf701e6a4880b5 (diff) |
Add RhSolutions and DXF icons
-rw-r--r-- | RhSolutions.AddIn/Controllers/RibbonController.cs | 8 | ||||
-rw-r--r-- | RhSolutions.AddIn/Images/DXF.png | bin | 0 -> 13569 bytes | |||
-rw-r--r-- | RhSolutions.AddIn/Images/RhSolutions.png | bin | 0 -> 1199 bytes | |||
-rw-r--r-- | RhSolutions.AddIn/RhSolutions-AddIn.dna | 4 | ||||
-rw-r--r-- | RhSolutions.AddIn/RhSolutions.AddIn.csproj | 8 |
5 files changed, 15 insertions, 5 deletions
diff --git a/RhSolutions.AddIn/Controllers/RibbonController.cs b/RhSolutions.AddIn/Controllers/RibbonController.cs index deb56b0..4015149 100644 --- a/RhSolutions.AddIn/Controllers/RibbonController.cs +++ b/RhSolutions.AddIn/Controllers/RibbonController.cs @@ -20,21 +20,21 @@ public class RibbonController : ExcelRibbon public override string GetCustomUI(string RibbonID) { return @" - <customUI onLoad='RibbonLoad' xmlns='http://schemas.microsoft.com/office/2006/01/customui'> + <customUI onLoad='RibbonLoad' xmlns='http://schemas.microsoft.com/office/2006/01/customui' loadImage='LoadImage'> <ribbon> <tabs> <tab id='rau' label='RhSolutions'> <group id='priceList' label='Прайс-лист'> - <button id='export' getEnabled='GetExportEnabled' label='Экспорт в новый файл' size='normal' imageMso='PivotExportToExcel' onAction='OnToolPressed'/> + <button id='export' getEnabled='GetExportEnabled' label='Экспорт в новый файл' size='normal' image='RhSolutions' onAction='OnToolPressed'/> <button id='convert' getEnabled='GetConvertEnabled' label='Актуализировать' size='normal' imageMso='FileUpdate' onAction='OnToolPressed'/> <button id='merge' label='Объединить' size='normal' imageMso='Copy' onAction='OnToolPressed'/> <button id='guess' getEnabled='GetGuessEnabled' label='Найти и экспортировать' size='normal' imageMso='ControlWizards' onAction='OnToolPressed'/> <button id='fillsleeves' getEnabled='GetFittingsCalcEnabled' label='Подобрать гильзы' size='normal' imageMso='CreateQueryFromWizard' onAction='OnToolPressed'/> <button id='fillcouplings' getEnabled='GetFittingsCalcEnabled' label='Подобрать муфты' size='normal' imageMso='CreateQueryFromWizard' onAction='OnToolPressed'/> - <button id='dxfexport' getEnabled='GetDxfEnabled' label='Экспортировать в DXF' size='normal' imageMso='ExportExcel' onAction='OnToolPressed'/> + <button id='dxfexport' getEnabled='GetDxfEnabled' label='Экспортировать в DXF' size='normal' image='DXF' onAction='OnToolPressed'/> </group> <group id='rausettings' getLabel='GetVersionLabel'> - <button id='setPriceList' getLabel='GetPriceListPathLabel' size='large' imageMso='TableExcelSpreadsheetInsert' onAction='OnSetPricePressed'/> + <button id='setPriceList' getLabel='GetPriceListPathLabel' size='large' image='RhSolutions' onAction='OnSetPricePressed'/> </group> </tab> </tabs> diff --git a/RhSolutions.AddIn/Images/DXF.png b/RhSolutions.AddIn/Images/DXF.png Binary files differnew file mode 100644 index 0000000..6c94aca --- /dev/null +++ b/RhSolutions.AddIn/Images/DXF.png diff --git a/RhSolutions.AddIn/Images/RhSolutions.png b/RhSolutions.AddIn/Images/RhSolutions.png Binary files differnew file mode 100644 index 0000000..bcd41d0 --- /dev/null +++ b/RhSolutions.AddIn/Images/RhSolutions.png diff --git a/RhSolutions.AddIn/RhSolutions-AddIn.dna b/RhSolutions.AddIn/RhSolutions-AddIn.dna index 1ece3ec..9835141 100644 --- a/RhSolutions.AddIn/RhSolutions-AddIn.dna +++ b/RhSolutions.AddIn/RhSolutions-AddIn.dna @@ -22,5 +22,7 @@ <Reference Path="System.Numerics.Vectors.dll" Pack="true" /> <Reference Path="System.Runtime.CompilerServices.Unsafe.dll" Pack="true" /> <Reference Path="System.Threading.Tasks.Extensions.dll" Pack="true" /> - <Reference Path="System.ValueTuple.dll" Pack="true" /> + <Reference Path="System.ValueTuple.dll" Pack="true" /> + <Image Name='RhSolutions' Path='Images\RhSolutions.png' Pack='true' /> + <Image Name='DXF' Path='Images\DXF.png' Pack='true' /> </DnaLibrary> diff --git a/RhSolutions.AddIn/RhSolutions.AddIn.csproj b/RhSolutions.AddIn/RhSolutions.AddIn.csproj index a08a8f2..0cd800f 100644 --- a/RhSolutions.AddIn/RhSolutions.AddIn.csproj +++ b/RhSolutions.AddIn/RhSolutions.AddIn.csproj @@ -45,4 +45,12 @@ <ItemGroup> <ProjectReference Include="..\RhSolutions.ProductSku\RhSolutions.ProductSku.csproj" /> </ItemGroup> + <ItemGroup> + <None Update="Images\DXF.png"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </None> + <None Update="Images\RhSolutions.png"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </None> + </ItemGroup> </Project>
\ No newline at end of file |