aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Editors
diff options
context:
space:
mode:
authorRoy <roy.mail.net@gmail.com>2018-02-11 02:24:33 +0200
committerRoy <roy.mail.net@gmail.com>2018-02-11 02:24:33 +0200
commit6c6dfe112268888b6859da5880d866943d1a4455 (patch)
treedaf4e006d3fefb3d9a6825de3d4ef5575e94714f /Software/Visual_Studio/Tango.Editors
parentdbfde8706313c147a28b16bcc7e7fef158d930bb (diff)
downloadTango-6c6dfe112268888b6859da5880d866943d1a4455.tar.gz
Tango-6c6dfe112268888b6859da5880d866943d1a4455.zip
Implemented Save/Load tech project.
Added menu items...
Diffstat (limited to 'Software/Visual_Studio/Tango.Editors')
-rw-r--r--Software/Visual_Studio/Tango.Editors/ElementEditor.cs10
-rw-r--r--Software/Visual_Studio/Tango.Editors/IElementEditor.cs6
2 files changed, 16 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Editors/ElementEditor.cs b/Software/Visual_Studio/Tango.Editors/ElementEditor.cs
index 99520ba5b..5d90a2b4c 100644
--- a/Software/Visual_Studio/Tango.Editors/ElementEditor.cs
+++ b/Software/Visual_Studio/Tango.Editors/ElementEditor.cs
@@ -235,6 +235,15 @@ namespace Tango.Editors
Height = bounds.Height;
}
+ /// <summary>
+ /// Gets the editor bounds.
+ /// </summary>
+ /// <returns></returns>
+ public virtual Rect GetBounds()
+ {
+ return new Rect(Left, Top, Width, Height);
+ }
+
#endregion
#region Protected Methods
@@ -624,6 +633,7 @@ namespace Tango.Editors
/// <returns></returns>
public abstract IElementEditor Clone();
+
#endregion
#region IConfigurable Members
diff --git a/Software/Visual_Studio/Tango.Editors/IElementEditor.cs b/Software/Visual_Studio/Tango.Editors/IElementEditor.cs
index fc7c93396..dfe539537 100644
--- a/Software/Visual_Studio/Tango.Editors/IElementEditor.cs
+++ b/Software/Visual_Studio/Tango.Editors/IElementEditor.cs
@@ -103,6 +103,12 @@ namespace Tango.Editors
void SetBounds(Rect bounds);
/// <summary>
+ /// Gets the editor bounds.
+ /// </summary>
+ /// <returns></returns>
+ Rect GetBounds();
+
+ /// <summary>
/// Gets or sets an optional attached element for editors mirroring mode.
/// </summary>
IElementEditor AttachedEditor { get; set; }