public override void AddSettingsLayout(SettingsLayout aLayout) { currentRow++; var control = aLayout.GetControl(); control.Dock = DockStyle.Fill; Panel.Controls.Add(control, 1, currentRow); }
public GroupBoxSettingsLayout(SettingsLayout aParentLayout, String aGroupBoxCaption) : base(aParentLayout, AutoLayoutSettingsPage.CreateDefaultTableLayoutPanel()) { groupBox = new GroupBox(); groupBox.Text = aGroupBoxCaption; groupBox.AutoSize = true; groupBox.AutoSizeMode = AutoSizeMode.GrowAndShrink; groupBox.Controls.Add(Panel); }
void DrawLayouts(SettingsLayout settingsLayout, string headerName){ showParticleSettings = GUILayout.Toggle (showParticleSettings, new GUIContent(headerName), new GUIStyle ("ShurikenModuleTitle")); //showParticleSettings = EditorGUILayout.Foldout (showParticleSettings, new GUIContent(headerName), new GUIStyle ("ShurikenModuleTitle")); if (showParticleSettings) { GUILayout.BeginVertical (new GUIStyle("HelpBox") ); // ShurikenModuleBg GUILayout.Space (8); settingsLayout(); GUILayout.Space (8); GUILayout.EndVertical (); } }
protected virtual SettingsLayout GetSettingsLayout() { if (settingsLayout == null) { settingsLayout = CreateSettingsLayout(); if (settingsLayout.GetControl().Parent == null) { this.Controls.Add(settingsLayout.GetControl()); } } return(settingsLayout); }
protected virtual SettingsLayout GetSettingsLayout() { if (settingsLayout == null) { settingsLayout = CreateSettingsLayout(); if (settingsLayout.GetControl().Parent == null) { this.Controls.Add(settingsLayout.GetControl()); } } return settingsLayout; }
private void SettingsList_SelectedIndexChanged(object sender, EventArgs e) { if (settingsList.SelectedItem.Equals(SettingsTypes.General)) { SettingsLayoutPanelInitialize_GeneralSettings(); } if (settingsList.SelectedItem.Equals(SettingsTypes.Hotkeys)) { using (layout = new HotkeysSettingsLayout(parent, settingsLayoutPanel)) { layout.Show(); } } }
public static void AddStringSetting(this SettingsLayout aLayout, string aCaption, GitCommands.Settings.StringSetting aSetting) { aLayout.AddSetting(new StringISettingAdapter(aCaption, aSetting)); }
public BaseSettingsLayout(SettingsLayout aParentLayout) { ParentLayout = aParentLayout; }
public static void AddSetting(this SettingsLayout aLayout, ISetting aSetting) { aLayout.AddSettingControl(aSetting.CreateControlBinding()); }
public static void AddBoolSetting(this SettingsLayout aLayout, string aCaption, BoolNullableSetting aSetting) { aLayout.AddSetting(new BoolNullableISettingAdapter(aCaption, aSetting)); }
public GroupBoxSettingsLayout(SettingsLayout aParentLayout, String aGroupBoxCaption) : base(aParentLayout, AutoLayoutSettingsPage.CreateDefaultTableLayoutPanel()) { groupBox = new GroupBox(); groupBox.Text = aGroupBoxCaption; groupBox.AutoSize = true; groupBox.AutoSizeMode = AutoSizeMode.GrowAndShrink; groupBox.Controls.Add(Panel); }
public abstract void AddSettingsLayout(SettingsLayout aLayout);
public abstract void AddSettingsLayout(SettingsLayout aLayout);
public override void AddSettingsLayout(SettingsLayout aLayout) { currentRow++; var control = aLayout.GetControl(); control.Dock = DockStyle.Fill; Panel.Controls.Add(control, 1, currentRow); }
public GroupBoxSettingsLayout(SettingsLayout aParentLayout, String aGroupBoxCaption) : base(aParentLayout, AutoLayoutSettingsPage.CreateDefaultTableLayoutPanel()) { CreateGroupBox(aGroupBoxCaption); }
public BaseSettingsLayout(SettingsLayout aParentLayout) { ParentLayout = aParentLayout; }
public void LoadLayoutFromConfigSection(string configSectionName) { layout = ConfigurationManager.GetSection(configSectionName) as SettingsLayout; }
public void LoadLayoutFromStream(Stream stream) { layout = SettingsLayout.Load(stream); }
public void AddSettingsLayout(SettingsLayout aLayout) { GetSettingsLayout().AddSettingsLayout(aLayout); }
public void AddSettingsLayout(SettingsLayout aLayout) { GetSettingsLayout().AddSettingsLayout(aLayout); }
public TableSettingsLayout(SettingsLayout aParentLayout, TableLayoutPanel aPanel) : base(aParentLayout) { Panel = aPanel; }
public GroupBoxSettingsLayout(SettingsLayout aParentLayout, String aGroupBoxCaption) : base(aParentLayout, AutoLayoutSettingsPage.CreateDefaultTableLayoutPanel()) { CreateGroupBox(aGroupBoxCaption); }
public TableSettingsLayout(SettingsLayout aParentLayout, TableLayoutPanel aPanel) : base(aParentLayout) { Panel = aPanel; }