Vixen
02b45cc4
csharp
public sealed class ShapeVocabularyView

A project's shape vocabulary: the names, the tags, and the body plans.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The first file in doc 34's workflow, and the one that had no panel. Everything after it is checked against it, so it being editable only outside Vixen made the first step of the whole module the one step that left the editor.

⚠ One list holding all three kinds rather than three panels. The mistake this file exists to prevent — a class requiring a shape the vocabulary does not declare — is only visible when the terms and the classes are in front of each other. Three tabs would hide exactly the relationship being authored.

⚠ The problems are the vocabulary's own answer, not this panel's. Problems is what the importer reports from too — two copies of the rules would be one copy that goes out of step, and the way that shows up is a file the panel calls clean and the build refuses.

Fields and properties (12)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public UiElement Bar

    The bar across the top.

  • public Button AddTerm

    Declares a name a shape may have.

  • public Button AddTag

    Declares a tag a shape may carry.

  • public Button AddPlan

    Declares a body plan. Named AddPlan because UiElement.AddClass exists.

  • public Button AddMember

    Adds a shape the selected class requires.

  • public Button Drop

    Removes whatever is selected. Named Drop because UiElement.Remove exists.

  • public UiElement List

    Everything the file declares, in one list.

  • public UiElement Fields

    The selected row's fields.

  • public UiElement Report

    What is wrong with the file, as the build would say it.

  • public object? Selected

    What is selected, or .

Methods (5)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public void Show(ShapeVocabularyDocument vocabulary)

    Shows a vocabulary.

  • public void Reload(ShapeVocabularyDocument vocabulary)

    Rebuilds from the document.

  • public void Reload()

    Rebuilds the list.

  • public ShapeClassRecord? Owner()

    Which class the Add Required Shape button would add to, or .

Used by (2)

  • ShapeVocabularyEditorFactoryVixen.Editor.AssetEditors
  • ShapeVocabularyTestsVixen.Editor.AssetEditors.Tests