Пример #1
0
        SettingsDlg(List <Settings.SettingsObject> settings)
        {
            InitializeComponent();

            // Create the tree view
            tree                   = new Sce.Atf.Controls.TreeControl();
            tree.Dock              = DockStyle.Fill;
            tree.SelectionChanged += tree_SelectionChanged;
            topSplitter.Panel1.Controls.Add(tree);
            tree.ShowRoot = false;

            foreach (Settings.SettingsObject obj in settings)
            {
                Sce.Atf.Controls.TreeControl.Node node = tree.Root.Add(obj);
                node.Label  = obj.GetType().Name.Replace("Settings", "").Localize();
                node.IsLeaf = true;
            }

            // Create the property sheet
            propertyGrid      = new Sce.Atf.Controls.PropertyEditing.PropertyGrid();
            propertyGrid.Dock = DockStyle.Fill;
            propertiesSplitter.Panel1.Controls.Add(propertyGrid);

            Sce.Atf.Applications.SkinService.ApplyActiveSkin(this);
        }
Пример #2
0
        PropertyDlg(IEnumerable <object> objects)
        {
            InitializeComponent();

            // Create the tree view
            tree                   = new Sce.Atf.Controls.TreeControl();
            tree.Dock              = DockStyle.Fill;
            tree.SelectionChanged += tree_SelectionChanged;
            topSplitter.Panel1.Controls.Add(tree);
            tree.ShowRoot = false;

            int index = 0;

            foreach (object obj in objects)
            {
                Sce.Atf.Controls.TreeControl.Node node = tree.Root.Add(obj);
                node.Label  = obj.GetType().Name + " " + index;
                node.IsLeaf = true;
                index      += 1;
            }

            // Create the property sheet
            propertyGrid      = new Sce.Atf.Controls.PropertyEditing.PropertyGrid();
            propertyGrid.Dock = DockStyle.Fill;
            propertiesSplitter.Panel1.Controls.Add(propertyGrid);

            Sce.Atf.Applications.SkinService.ApplyActiveSkin(this);
        }
Пример #3
0
 public ResourceMetadataEditor()
 {
     m_propertyGrid = new PropertyGrid();
     m_controlInfo  = new ControlInfo(
         "Resource Metadata".Localize(),
         "Edits selected resource metadata".Localize(),
         StandardControlGroup.Hidden);
 }
Пример #4
0
 public ResourceMetadataEditor()
 {
     m_propertyGrid = new PropertyGrid();
     m_controlInfo = new ControlInfo(
         "Resource Metadata".Localize(),
         "Edits selected resource metadata".Localize(),
         StandardControlGroup.Hidden);
 }
Пример #5
0
        NewPlacementsPage()
        {
            m_config          = new Config();
            m_control         = new Sce.Atf.Controls.PropertyEditing.PropertyGrid();
            m_control.Dock    = DockStyle.Fill;
            m_control.Visible = true;

            m_control.Bind((new Helper()).CreatePropertyContext(m_config));
        }
Пример #6
0
        NewPlacementsPage()
        {
            m_config = new Config();
            m_control = new Sce.Atf.Controls.PropertyEditing.PropertyGrid();
            m_control.Dock = DockStyle.Fill;
            m_control.Visible = true;

            m_control.Bind((new Helper()).CreatePropertyContext(m_config));
        }
Пример #7
0
        public PropertyEditor()
        {
            InitializeComponent();
            Text           = "Properties".Localize();
            DoubleBuffered = true;
            CloseButton    = CloseButtonVisible = false;

            sonygrid = new Sce.Atf.Controls.PropertyEditing.PropertyGrid();
            sonygrid.PropertySorting = Sce.Atf.Controls.PropertyEditing.PropertySorting.None;
            sonygrid.Dock            = DockStyle.Fill;
            Controls.Add(sonygrid);

            DocumentManager.GetInst().DocumentChanged += PropertyEditor_DocumentChanged;
        }
Пример #8
0
        public MatTab(MaterialSchemaLoader schemaLoader)
        {
            m_schemaLoader = schemaLoader;

            SuspendLayout();
            m_child = new Sce.Atf.Controls.PropertyEditing.PropertyGrid();

            m_child.Location = new System.Drawing.Point(158, 3);
            m_child.Size     = new System.Drawing.Size(341, 188);
            m_child.TabIndex = 1;
            m_child.Dock     = DockStyle.Fill;
            m_child.Visible  = true;

            Controls.Add(m_child);
            Dock    = DockStyle.Fill;
            Padding = new Padding(0);
            ResumeLayout(false);
        }
Пример #9
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this._previewWindow = new ControlsLibrary.LayerControl();
     this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     this._previewSettings = new System.Windows.Forms.PropertyGrid();
     this._tickButton = new System.Windows.Forms.Button();
     this._systemSettings = new Sce.Atf.Controls.PropertyEditing.PropertyGrid();
     this._autoTick = new System.Windows.Forms.CheckBox();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
     this.splitContainer2.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this._previewWindow);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
     this.splitContainer1.Size = new System.Drawing.Size(819, 629);
     this.splitContainer1.SplitterDistance = 547;
     this.splitContainer1.TabIndex = 0;
     //
     // _previewWindow
     //
     this._previewWindow.Dock = System.Windows.Forms.DockStyle.Fill;
     this._previewWindow.Location = new System.Drawing.Point(0, 0);
     this._previewWindow.Size = new System.Drawing.Size(547, 629);
     this._previewWindow.TabIndex = 0;
     this._previewWindow.Text = "button1";
     //
     // splitContainer2
     //
     this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer2.Location = new System.Drawing.Point(0, 0);
     this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.Controls.Add(this._previewSettings);
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this._autoTick);
     this.splitContainer2.Panel2.Controls.Add(this._tickButton);
     this.splitContainer2.Panel2.Controls.Add(this._systemSettings);
     this.splitContainer2.Size = new System.Drawing.Size(268, 629);
     this.splitContainer2.SplitterDistance = 174;
     this.splitContainer2.TabIndex = 0;
     //
     // _previewSettings
     //
     this._previewSettings.CategoryForeColor = System.Drawing.SystemColors.InactiveCaptionText;
     this._previewSettings.Dock = System.Windows.Forms.DockStyle.Fill;
     this._previewSettings.Location = new System.Drawing.Point(0, 0);
     this._previewSettings.Size = new System.Drawing.Size(268, 174);
     this._previewSettings.TabIndex = 0;
     //
     // _tickButton
     //
     this._tickButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this._tickButton.Location = new System.Drawing.Point(109, 427);
     this._tickButton.Size = new System.Drawing.Size(156, 21);
     this._tickButton.TabIndex = 1;
     this._tickButton.Text = "Tick";
     this._tickButton.UseVisualStyleBackColor = true;
     this._tickButton.Click += new System.EventHandler(this._tickButton_Click);
     //
     // _systemSettings
     //
     this._systemSettings.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this._systemSettings.Location = new System.Drawing.Point(0, 0);
     this._systemSettings.Size = new System.Drawing.Size(273, 425);
     this._systemSettings.TabIndex = 0;
     //
     // _autoTick
     //
     this._autoTick.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this._autoTick.AutoSize = true;
     this._autoTick.Location = new System.Drawing.Point(3, 430);
     this._autoTick.Size = new System.Drawing.Size(72, 17);
     this._autoTick.TabIndex = 2;
     this._autoTick.Text = "Auto Tick";
     this._autoTick.UseVisualStyleBackColor = true;
     this._autoTick.CheckedChanged += new System.EventHandler(this._autoTick_CheckedChanged);
     //
     // IterativeSystem
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(819, 629);
     this.Controls.Add(this.splitContainer1);
     this.Name = "IterativeSystem";
     this.Text = "IterativeSystem";
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel2.ResumeLayout(false);
     this.splitContainer2.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
     this.splitContainer2.ResumeLayout(false);
     this.ResumeLayout(false);
 }