Пример #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
 /// <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
 /// <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
 /// <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;
 }