<< lib/gui/version-military/SLGuiKind.sleela SLeeLa Standard Library Definition. Definition: Defines SLGuiKind — the explicit CONTAINER vs COMPONENT taxonomy for the military GUI line. Every node tag is classified as either a CONTAINER (it holds and lays out children — window, box, frame, header, status, grid) or a COMPONENT (a leaf control the user interacts with or reads — button, label, entry, toggle, recorder, video, urlbar, circle, canvas, html, crypto selector, certificate store, menu item). It also states which kinds may carry an ICON (buttons, menu items, and clickable components), so icons are only offered where they belong. This makes the distinction a first-class, queryable fact rather than something implied by the widget factory's construction branch. Family: gui. Pure classification; consulted by the factory, mount, and the icon system to decide layout role and icon eligibility. >> #sleela 2.5 material; class SLGuiKind { < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- > << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader, or catalog can read and (where appropriate) override this record. Values are faithful to the subject's real origin where publicly known. >> String metaVersion = "1.0.0"; int metaId = 11238; String metaAuthor = "Kiro Agent"; String metaDate = "2026-10-16"; String metaCopyright = "SLeeLa project"; String metaTrademark = "none"; String metaCorporation = "none"; < metaOrigin: National | | International | Galactic > String metaOrigin = "International"; String metaBirthDate = "2026-10-16"; < metaScienceRating: maturity/robustness on a 1..10 scale > int metaScienceRating = 9; < metaNationalSchedule: a real, citable instrument or "none" > String metaNationalSchedule = "none"; String getMetaVersion() { return metaVersion; } void setMetaVersion(String v) { metaVersion = v; } int getMetaId() { return metaId; } void setMetaId(int v) { metaId = v; } String getAuthor() { return metaAuthor; } void setAuthor(String v) { metaAuthor = v; } String getDate() { return metaDate; } void setDate(String v) { metaDate = v; } String getCopyright() { return metaCopyright; } void setCopyright(String v) { metaCopyright = v; } String getTrademark() { return metaTrademark; } void setTrademark(String v) { metaTrademark = v; } String getCorporation() { return metaCorporation; } void setCorporation(String v) { metaCorporation = v; } String getOrigin() { return metaOrigin; } void setOrigin(String v) { metaOrigin = v; } String getBirthDate() { return metaBirthDate; } void setBirthDate(String v) { metaBirthDate = v; } int getScienceRating() { return metaScienceRating; } void setScienceRating(int v) { metaScienceRating = v; } String getNationalSchedule() { return metaNationalSchedule; } void setNationalSchedule(String v) { metaNationalSchedule = v; } static final int KIND_UNKNOWN = 0; < holds + lays out children > static final int KIND_CONTAINER = 1; < a leaf control > static final int KIND_COMPONENT = 2; < Classify a tag as a container or a component. > int kindOf(String tag) { if (isContainer(tag)) { return KIND_CONTAINER; } if (isComponent(tag)) { return KIND_COMPONENT; } return KIND_UNKNOWN; } boolean isContainer(String tag) { return tag == "window" || tag == "box" || tag == "vbox" || tag == "hbox" || tag == "row" || tag == "header" || tag == "headerbar" || tag == "status" || tag == "statusbar" || tag == "frame" || tag == "group" || tag == "grid" || tag == "menu" || tag == "toolbar" || tag == "panel"; } boolean isComponent(String tag) { return tag == "label" || tag == "text" || tag == "button" || tag == "entry" || tag == "input" || tag == "toggle" || tag == "switch" || tag == "spacer" || tag == "separator" || tag == "hr" || tag == "recorder" || tag == "record" || tag == "urlbar" || tag == "addressbar" || tag == "video" || tag == "movie" || tag == "canvas" || tag == "graphics" || tag == "circle" || tag == "clickobject" || tag == "html" || tag == "webview" || tag == "cryptoselector" || tag == "certstore" || tag == "menuitem" || tag == "icon"; } < Interactive = a component the user activates (not a static label/spacer). > boolean isClickable(String tag) { return tag == "button" || tag == "menuitem" || tag == "toggle" || tag == "switch" || tag == "recorder" || tag == "record" || tag == "urlbar" || tag == "addressbar" || tag == "video" || tag == "movie" || tag == "circle" || tag == "clickobject" || tag == "cryptoselector" || tag == "certstore"; } < Icons are allowed on buttons, menu items, and clickable components. > boolean iconEligible(String tag) { return tag == "button" || tag == "menuitem" || isClickable(tag); } String kindName(int kind) { if (kind == KIND_CONTAINER) { return "container"; } if (kind == KIND_COMPONENT) { return "component"; } return "unknown"; } String describe(String tag) { int k = kindOf(tag); String s = tag + " -> " + kindName(k); if (isClickable(tag)) { s = s + " (clickable)"; } if (iconEligible(tag)) { s = s + " (icon-eligible)"; } return s; } }