예제 #1
0
 public static Dictionary <string, Func <IPropertyEditor> > InheritViewPropertyEditors(
     this Dictionary <string, Func <IPropertyEditor> > propertyEditors, ObjectInspectorTree inspector)
 {
     propertyEditors.Add("ConfigId", () => new ConfigIdEditor());
     propertyEditors.Add("DocumentId", () => new DocumentIdEditor());
     propertyEditors.Add("ViewType", ValueListEditorExtensions.CreateViewTypeEditor);
     propertyEditors.Add("OpenMode", ValueListEditorExtensions.CreateOpenModeEditor);
     return(propertyEditors);
 }
        public static Dictionary <string, Func <IPropertyEditor> > InheritBaseElementPropertyEditors(
            this Dictionary <string, Func <IPropertyEditor> > propertyEditors, ObjectInspectorTree inspector)
        {
            propertyEditors.Add("VerticalAlignment", () => new AlignmentEditor());
            propertyEditors.Add("HorizontalAlignment", () => new AlignmentEditor());
            propertyEditors.Add("Enabled", () => new BooleanEditor());
            propertyEditors.Add("Visible", () => new BooleanEditor());
            propertyEditors.Add("OnLoaded.Name", () => new ScriptIdEditor(inspector));
            propertyEditors.Add("OnValueChanged.Name", () => new ScriptIdEditor(inspector));

            return(propertyEditors);
        }
예제 #3
0
 public static Dictionary <string, Func <IPropertyEditor> > InheritBaseDataSourceEditors(
     this Dictionary <string, Func <IPropertyEditor> > editors, ObjectInspectorTree objectInspector)
 {
     editors.Add("FillCreatedItem", () => new BooleanEditor());
     editors.Add("ConfigId", () => new ConfigIdEditor());
     editors.Add("DocumentId", () => new DocumentIdEditor());
     editors.Add("Query", () => new JsonObjectEditor());
     editors.Add("ValidationErrors", () => new JsonObjectEditor());
     editors.Add("ValidationWarnings", () => new JsonObjectEditor());
     editors.Add("OnPageSizeChanged.Name", () => new ScriptIdEditor(objectInspector));
     editors.Add("OnSelectedItemChanged.Name", () => new ScriptIdEditor(objectInspector));
     editors.Add("OnPropertyFiltersChanged.Name", () => new ScriptIdEditor(objectInspector));
     editors.Add("OnItemDeleted.Name", () => new ScriptIdEditor(objectInspector));
     editors.Add("OnTextFilterChanged.Name", () => new ScriptIdEditor(objectInspector));
     editors.Add("OnItemsUpdated.Name", () => new ScriptIdEditor(objectInspector));
     return(editors);
 }
예제 #4
0
 public ScriptIdEditor(ObjectInspectorTree inspector)
 {
     _inspector = inspector;
 }
 public FocusedNodeMemento(ObjectInspectorTree inspector)
 {
     _inspector = inspector;
 }
 public static Dictionary <string, Func <IPropertyEditor> > InheritBindingPropertyEditors(
     this Dictionary <string, Func <IPropertyEditor> > propertyEditors, ObjectInspectorTree inspector)
 {
     propertyEditors.Add("DataSource", () => new DataSourceEditor(inspector));
     return(propertyEditors);
 }
예제 #7
0
 public SizeCalculator(ObjectInspectorTree objectInspector, int currentHeight)
 {
     _objectInspector = objectInspector;
     _currentHeight   = currentHeight;
 }
 public DataSourceEditor(ObjectInspectorTree inspector)
 {
     _inspector = inspector;
 }