public FXSetting(Match match, FXSetting parent, sweetConfig controller) { name = match.Groups[1].Value; value = match.Groups[2].Value; origValue = match.Groups[2].Value; limit = match.Groups[3].Value; comment = match.Groups[4].Value; this.parent = parent; this.controller = controller; controller.byName.Add(name, this); if (parent != null) { parent.addChild(this); } }
public void parseConfig(String[] lines) { FXSetting parent = null; foreach (string l in lines) { Match m = settingMatcher.Match(l); if (m.Success) { FXSettings.Add(new FXSetting(m, parent, this)); } else { Match m2 = settingGroupMatcher.Match(l); if (m2.Success) { String groupname = m2.Groups[1].Value; foreach (FXSetting fxp in FXSettings) { if (fxp.comment.StartsWith(groupname)) { parent = fxp; break; } } } else { logger.debug("Could not decode : " + l); } } } // USE_SPLITSCREEN was added in v1.3 if (byName.ContainsKey("USE_SPLITSCREEN")) { configVersion = configVersions.v13; } }
public void init(System.Windows.Forms.Panel p, FXSetting parent) { panel = p; this.parent = parent; }
public void addChild(FXSetting child) { children.Add(child); }
public FXSetting(Match match, FXSetting parent, sweetConfig controller) { name = match.Groups[1].Value; value = match.Groups[2].Value; origValue = match.Groups[2].Value; limit = match.Groups[3].Value; comment = match.Groups[4].Value; this.parent = parent; this.controller = controller; controller.byName.Add(name, this); if (parent != null) parent.addChild(this); }