示例#1
0
 void propertiesForm_LayoutChanged(PropertiesForm obj)
 {
     if (respondToPropertiesFormLayout)
     {
         layout();
     }
 }
示例#2
0
        public ExpandingNode(EditInterface editInterface, Widget parentWidget, GuiFrameworkUICallback uiCallback, ExpandingNode parent = null)
            : base("Anomalous.GuiFramework.Editor.GUI.ExpandingEditInterfaceViewer.ExpandingNode.layout")
        {
            this.uiCallback = uiCallback;
            this.parent     = parent;

            widget.attachToWidget(parentWidget);
            defaultHeight = widget.Height;

            caption         = (TextBox)widget.findWidget("Caption");
            caption.Caption = editInterface.getName();

            expandButton = new CheckButton((Button)widget.findWidget("ExpandButton"));
            expandButton.CheckedChanged += new MyGUIEvent(expandButton_CheckedChanged);

            childArea      = widget.findWidget("ChildArea");
            propertiesForm = new PropertiesForm(childArea, uiCallback);
            propertiesForm.LayoutChanged += propertiesForm_LayoutChanged;

            this.editInterface = editInterface;
            editInterface.OnSubInterfaceAdded   += editInterface_OnSubInterfaceAdded;
            editInterface.OnSubInterfaceRemoved += editInterface_OnSubInterfaceRemoved;
        }
示例#3
0
 public ContextualPropertiesEditor(PropertiesForm form, PropertiesTable table)
 {
     this.form     = form;
     this.table    = table;
     currentEditor = form;
 }