示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ColorDataEditor"/> class.</summary>
 /// <param name="theme">The visual theme</param>
 public ColorDataEditor(DataEditorTheme theme)
     : base(theme)
 {
 }
        protected override void Configure(out TreeControl treeControl, out TreeControlAdapter treeControlAdapter)
        {
            base.Configure(out treeControl, out treeControlAdapter);

            EditorTheme = new DataEditorTheme(treeControl.Font);
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StringDataEditor"/> class.</summary>
 /// <param name="theme">The visual theme to use</param>
 public BoolDataEditor(DataEditorTheme theme)
     : base(theme)
 {
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StringDataEditor"/> class.</summary>
 /// <param name="theme">The visual theme to use</param>
 public BoolDataEditor(DataEditorTheme theme)
     : base(theme)
 {
 }
示例#5
0
文件: TreeView.cs 项目: zoombapup/ATF
 /// <summary>
 /// Initializes a new instance of the <see cref="TreeView"/> class</summary>
 /// <param name="xmlFilePath">The XML file path of the data document to load</param>
 /// <param name="theme">The visual theme</param>
 public TreeView(string xmlFilePath, DataEditorTheme theme)
 {
     m_xmlDoc          = XDocument.Load(xmlFilePath);// loads the hierarchical data using Linq to XML API
     m_dataEditorTheme = theme;
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StringDataEditor"/> class.</summary>
 /// <param name="theme">The visual theme to use</param>
 public StringDataEditor(DataEditorTheme theme)
     : base(theme)
 {
 }
示例#7
0
文件: DataEditor.cs 项目: GeertVL/ATF
 /// <summary>
 /// Initializes a new instance of the <see cref="DataEditor"/> class.</summary>
 /// <param name="theme">The visual theme</param>
 protected DataEditor(DataEditorTheme theme)
 {
     m_theme = theme;
     EditingMode = EditMode.None;
 }
示例#8
0
文件: TreeView.cs 项目: GeertVL/ATF
 /// <summary>
 /// Initializes a new instance of the <see cref="TreeView"/> class</summary>
 /// <param name="xmlFilePath">The XML file path of the data document to load</param>
 /// <param name="theme">The visual theme</param>
 public TreeView(string xmlFilePath, DataEditorTheme theme)
 {
     m_xmlDoc = XDocument.Load(xmlFilePath);// loads the hierarchical data using Linq to XML API
     m_dataEditorTheme = theme;
 }
示例#9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ColorDataEditor"/> class.</summary>
 /// <param name="theme">The visual theme</param>
 public ColorDataEditor(DataEditorTheme theme)
     : base(theme)
 {
 }
示例#10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FloatDataEditor"/> class.</summary>
 /// <param name="theme">The visual theme to use</param>
 public FloatDataEditor(DataEditorTheme theme)
     : base(theme)
 {
     SliderWidth = theme.DefaultSliderWidth;
     Epsilon = 0.000001f;
 }