Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ebc961a
Merge branch 'pr/n22_fix-workflow' into feature
trojanobelix Dec 6, 2022
bd65db6
Merge branch 'pr/n19_bugfix-array-of-strings-export' into feature
trojanobelix Dec 6, 2022
7b8ceba
Extend dirty-notification with an option to save instantly rather tha…
uniederer Dec 15, 2022
5ef3e83
Make message more explicit
uniederer Dec 15, 2022
813788a
Add autosave option
uniederer Dec 15, 2022
6e83ea2
Merge branch 'pr/n44_feature/allow_instant_save' into feature
trojanobelix Dec 15, 2022
bb60e06
Merge branch 'feature' of https://github.com/CANopenNode/CANopenEdito…
trojanobelix Dec 15, 2022
9f5048d
Merge branch 'bugfix' into feature
trojanobelix Jan 10, 2023
44860c7
Merge branch 'bugfix' into feature
trojanobelix Jan 30, 2023
2326320
Merge branch 'bugfix' into feature
trojanobelix Jul 6, 2023
226383f
Bugfix file filter when opening Network XML
trojanobelix Jul 2, 2024
1608e9c
added it back
nimrof Jul 16, 2024
ba45e03
Add/extend some exception catches to provide more information what wa…
trojanobelix Dec 1, 2024
e6472ec
Merge remote-tracking branch 'Github_origin/main' into feature
trojanobelix Jan 14, 2025
0c97545
Merge remote-tracking branch 'Github_origin/ExeptionCatch' into feature
trojanobelix Jan 14, 2025
5cb1bda
Unified header for Exporter legacy/V4
trojanobelix Jan 14, 2025
f959354
Merge remote-tracking branch 'trojanobelix/feature' into ExeptionCatch
trojanobelix Jan 14, 2025
b3baa5d
Merge remote-tracking branch 'Github_origin/main' into feature
trojanobelix Feb 7, 2025
d0b0969
Merge branch 'trojanobelix_main' into feature
trojanobelix Feb 7, 2025
e7e71c2
Merge branch 'added-moduleInfo-tab-back-to-DeviceView' into feature
trojanobelix Feb 7, 2025
b995b39
Update EDSEditorGUI/Form1.cs
trojanobelix Mar 10, 2025
760a177
Update EDSEditorGUI/Form1.cs
trojanobelix Mar 10, 2025
4045605
delete old code fragments
trojanobelix Mar 10, 2025
d7f774b
Merge remote-tracking branch 'trojanobelix/feature' into feature
trojanobelix Mar 25, 2025
bd326c5
Merge remote-tracking branch 'origin/main' into feature
trojanobelix Mar 25, 2025
7937b10
edssharp: add another extension for the EDS file for CountLabel
ckhardin Mar 25, 2025
5a6f7b6
Bugfix for #181
trojanobelix Apr 23, 2025
561b43d
Merge branch 'pr/n181_clonig_crash' into feature
trojanobelix Apr 23, 2025
e0fc09c
Merge remote-tracking branch 'CanopenEditor/feature' into feature
trojanobelix May 12, 2025
55f3d18
Merge remote-tracking branch 'Github_origin/main' into feature
trojanobelix May 12, 2025
5738aa5
Merge branch 'pr/n180_ckhardin/add-countlabel-eds-extension' into fea…
trojanobelix Sep 5, 2025
b4aaa21
Merge remote-tracking branch 'Github_origin/main' into feature
trojanobelix Sep 5, 2025
a02b3f2
Add a small dialog for PDO mapping width adjustments
Nov 13, 2025
792b209
Implement PDO bitwise mapping
Nov 13, 2025
5be27ef
Increment number in object name when adding new objects
trojanobelix Nov 17, 2025
f50327c
Merge branch 'pr/198' into feature
trojanobelix Nov 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions EDSEditorGUI/ChangeMappingWidth.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions EDSEditorGUI/ChangeMappingWidth.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ODEditor
{
/// <summary>
/// A small dialog for PDO mapping width adjustments
/// </summary>
public partial class ChangeMappingWidth : Form
{
public int selected_width = 1;
private int default_width = 1;

public ChangeMappingWidth(int current_width, int max_width)
{
InitializeComponent();
// Validate params
if (current_width < 1)
current_width = 1;
if (max_width < 1)
max_width = 1;
if (current_width > max_width)
current_width = max_width;
updown_newwidth.Maximum = max_width;
updown_newwidth.Value = current_width;
selected_width = current_width;
default_width = current_width;
}

private void button_ok_Click(object sender, EventArgs e)
{
selected_width = (int)updown_newwidth.Value;
if (selected_width != default_width)
{
this.DialogResult = DialogResult.OK;
}
else
{
this.DialogResult = DialogResult.Cancel;
}
this.Close();
}

private void button_cancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}

private void ChangeMappingWidth_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
this.button_ok_Click(null, null);
}
else if (e.KeyCode == Keys.Escape)
{
this.button_cancel_Click(null, null);
}
}
}
}
145 changes: 145 additions & 0 deletions EDSEditorGUI/ChangeMappingWidth.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

Version 2.0

The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.

Example:

... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>

There are any number of "resheader" rows that contain simple
name/value pairs.

Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.

The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:

Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.

mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAAAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAA
AAD///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af//
/wH///8B////Afb29v/29vb/9vb2//b29v/29vb/9vb2//b29v/29vb/9vb2//b29v/29vb/9vb2//b2
9v/29vb/9vb2/////wH29vb/QkJC/0JCQv9CQkL/9vb2//b29v9CQkL/QkJC/0JCQv/29vb/9vb2/0JC
Qv9CQkL/QkJC//b29v////8B9vb2/0JCQv/x7/D/QkJC//b29v/29vb/QkJC//Hv8P9CQkL/9vb2//b2
9v9CQkL/8e/w/0JCQv/29vb/////Afb29v9CQkL/QkJC/0JCQv/29vb/9vb2/0JCQv9CQkL/QkJC//b2
9v/29vb/QkJC/0JCQv9CQkL/9vb2/////wH29vb/9vb2/0JCQv/29vb/9vb2//b29v/29vb/QkJC//b2
9v/29vb/9vb2//b29v9CQkL/9vb2//b29v////8B////Afb29v9CQkL/9vb2//b29v/29vb/9vb2/0JC
Qv/29vb/9vb2//b29v/29vb/QkJC//b29v////8B////Af///wH29vb/QkJC/0JCQv9CQkL/QkJC/0JC
Qv9CQkL/QkJC/0JCQv9CQkL/QkJC/0JCQv/29vb/////Af///wH///8B9vb2//b29v/29vb/9vb2//b2
9v/29vb/QkJC//b29v/29vb/9vb2//b29v/29vb/9vb2/////wH///8B////Af///wH///8B////Af//
/wH///8B9vb2/0JCQv/29vb/////Af///wH///8B////Af///wH///8B////Af///wH///8B////Af//
/wH29vb/9vb2//b29v9CQkL/9vb2//b29v/29vb/////Af///wH///8B////Af///wH///8B////Af//
/wH///8B9vb2/0JCQv9CQkL/QkJC/0JCQv9CQkL/9vb2/////wH///8B////Af///wH///8B////Af//
/wH///8B////Afb29v9CQkL/8e/w//Hv8P/x7/D/QkJC//b29v////8B////Af///wH///8B////Af//
/wH///8B////Af///wH29vb/QkJC//Hv8P/x7/D/8e/w/0JCQv/29vb/////Af///wH///8B////Af//
/wH///8B////Af///wH///8B9vb2/0JCQv9CQkL/QkJC/0JCQv9CQkL/9vb2/////wH///8B////Af//
/wH///8B////Af///wH///8B////Afb29v/29vb/9vb2//b29v/29vb/9vb2//b29v////8B////Af//
/wH///8BAAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA
//8AAP//AAD//w==
</value>
</data>
</root>
Loading
Loading