Example #1
0
        public PropertiesFormEulerQuat(EditableProperty property, Widget parent)
            : base(property, parent, "Anomalous.GuiFramework.Editor.GUI.PropertiesForm.PropertiesFormXYZ.layout")
        {
            widget.ForwardMouseWheelToParent = true;

            TextBox textBox = (TextBox)widget.findWidget("TextBox");

            textBox.Caption = property.getValue(0);
            textBox.ForwardMouseWheelToParent = true;

            Quaternion quat  = (Quaternion)property.getRealValue(1);
            Vector3    value = quat.getEuler();

            value *= 57.2957795f;

            x               = new SingleNumericEdit((EditBox)widget.findWidget("X"));
            x.Value         = value.x;
            x.ValueChanged += new MyGUIEvent(editBox_ValueChanged);

            y               = new SingleNumericEdit((EditBox)widget.findWidget("Y"));
            y.Value         = value.y;
            y.ValueChanged += new MyGUIEvent(editBox_ValueChanged);

            z               = new SingleNumericEdit((EditBox)widget.findWidget("Z"));
            z.Value         = value.z;
            z.ValueChanged += new MyGUIEvent(editBox_ValueChanged);
        }
        public MovementSequenceRecorder(MedicalController medicalController, MovementSequenceController movementSequenceController)
            : base("KinectPlugin.GUI.MovementSequenceRecorder.layout")
        {
            this.medicalController          = medicalController;
            this.movementSequenceController = movementSequenceController;

            record = new CheckButton((Button)window.findWidget("Record"));
            record.CheckedChanged += record_CheckedChanged;

            play = new CheckButton((Button)window.findWidget("Play"));
            play.CheckedChanged += play_CheckedChanged;
            play.Enabled         = false;

            save = (Button)window.findWidget("Save");
            save.MouseButtonClick += save_MouseButtonClick;
            save.Enabled           = false;

            clear = (Button)window.findWidget("Clear");
            clear.MouseButtonClick += clear_MouseButtonClick;
            clear.Enabled           = false;

            captureRate          = new SingleNumericEdit((EditBox)window.findWidget("CaptureRate"));
            captureRate.MinValue = 1.0f;
            captureRate.MaxValue = 60.0f;
            captureRate.Value    = 15.0f;
        }
Example #3
0
        public PropertiesFormSingle(EditableProperty property, Widget parent)
            : base(property, parent, "Anomalous.GuiFramework.Editor.GUI.PropertiesForm.PropertiesFormTextBox.layout")
        {
            widget.ForwardMouseWheelToParent = true;

            TextBox textBox = (TextBox)widget.findWidget("TextBox");

            textBox.Caption = property.getValue(0);
            textBox.ForwardMouseWheelToParent = true;

            num               = new SingleNumericEdit((EditBox)widget.findWidget("EditBox"));
            num.Value         = (Single)property.getRealValue(1);
            num.ValueChanged += new MyGUIEvent(editBox_ValueChanged);
        }
Example #4
0
        public PropertiesFormSize2(EditableProperty property, Widget parent)
            : base(property, parent, "Anomalous.GuiFramework.Editor.GUI.PropertiesForm.PropertiesFormWidthHeight.layout")
        {
            widget.ForwardMouseWheelToParent = true;

            TextBox textBox = (TextBox)widget.findWidget("TextBox");

            textBox.Caption = property.getValue(0);
            textBox.ForwardMouseWheelToParent = true;

            Size2 value = (Size2)property.getRealValue(1);

            width               = new SingleNumericEdit((EditBox)widget.findWidget("Width"));
            width.Value         = value.Width;
            width.ValueChanged += new MyGUIEvent(editBox_ValueChanged);

            height               = new SingleNumericEdit((EditBox)widget.findWidget("Height"));
            height.Value         = value.Height;
            height.ValueChanged += new MyGUIEvent(editBox_ValueChanged);
        }
Example #5
0
        public PropertiesFormVector2(EditableProperty property, Widget parent)
            : base(property, parent, "Anomalous.GuiFramework.Editor.GUI.PropertiesForm.PropertiesFormXY.layout")
        {
            widget.ForwardMouseWheelToParent = true;

            TextBox textBox = (TextBox)widget.findWidget("TextBox");

            textBox.Caption = property.getValue(0);
            textBox.ForwardMouseWheelToParent = true;

            Vector2 value = (Vector2)property.getRealValue(1);

            x               = new SingleNumericEdit((EditBox)widget.findWidget("X"));
            x.Value         = value.x;
            x.ValueChanged += new MyGUIEvent(editBox_ValueChanged);

            y               = new SingleNumericEdit((EditBox)widget.findWidget("Y"));
            y.Value         = value.y;
            y.ValueChanged += new MyGUIEvent(editBox_ValueChanged);
        }