aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Style.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-02 07:53:54 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-02 07:53:54 +0100
commit5bcd45c3ccc34edc68188a3acdb09e742b21aef3 (patch)
tree8370f0536cb66b6b32c70199f02d3234985ca0cf /src/Style.cs
parente02ca10075b3441ad25b697db405ccc7d6436404 (diff)
CrowIDE wip, removed key repeat already handled by otk
Diffstat (limited to 'src/Style.cs')
-rw-r--r--src/Style.cs21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/Style.cs b/src/Style.cs
index fded0503..58f09f33 100644
--- a/src/Style.cs
+++ b/src/Style.cs
@@ -29,12 +29,31 @@ using System.Collections.Generic;
namespace Crow
{
+ public struct FileLocation {
+ public string FilePath;
+ public int Line;
+ public int Column;
+
+ public FileLocation(string filePath, int line, int column){
+ FilePath = filePath;
+ Line = line;
+ Column = column;
+ }
+ public override string ToString ()
+ {
+ return string.Format ("{0} ({1},{2})", FilePath, Line, Column);
+ }
+ }
public class Style : Dictionary<string, object>
{
- public Dictionary<string, Style> SubStyles;//TODO:implement substyles for all tags inside a style
+ #if DESIGN_MODE
+ public Dictionary<string, FileLocation> Locations = new Dictionary<string, FileLocation>();
+ #endif
+ //public Dictionary<string, Style> SubStyles;//TODO:implement substyles for all tags inside a style
public Style () : base()
{
}
+
}
}