Native class

SGBAClassInfo#

  • Declared in "Slate/SGBAClassInfo.h"
class SGBAClassInfo : public SCompoundWidget

Slate widget representing the top part Attribute Set cpp creation window.

Holds info such as ClassName, ClassPath, BaseClass, etc.

Methods#

  • public
    • Construct&
    void
    Construct(​
    const FArguments& InArgs,
    const TSharedPtr<FGBAAttributeSetWizardViewModel>& InViewModel
    )

    Constructs this widget with InArgs

    • SLATE_BEGIN_ARGS&
  • protected
    • CalculateNewClassPath&
    FString
    CalculateNewClassPath(​
    GameProjectUtils::EClassLocation InLocation,
    const FString& InNewClassPath
    ) const

    Compute new fully qualified class path

    • GetClassLocation&
    GameProjectUtils::EClassLocation
    GetClassLocation(​) const

    Checks to see if the given class location is active based on the current value of NewClassPath

    • GetClassPickerMenuContent&
    TSharedRef<SWidget>

    Constructs a Blueprint Class picker menu widget

    • GetClassPickerText&
    FText
    GetClassPickerText(​
    const bool bIsTooltipText = false
    ) const

    Gets the text for the class picker combo button

    • GetSelectedModuleComboText&
    FText

    Get the combo box text for the currently selected module

    • HandleChooseFolderButtonClicked&

    Handler for when the "Choose Folder" button is clicked

    • HandleSelectedModuleComboBoxSelectionChanged&
    void
    HandleSelectedModuleComboBoxSelectionChanged(​
    TSharedPtr<FModuleContextInfo> InSelectedModuleInfo,
    ESelectInfo::Type InSelectInfo
    ) const

    Called when the currently selected module is changed

    • InitAvailableModules&

    Init list of AvailableModules, based on project / plugin modules currently loaded

    • InitSelectedModuleInfo&
    TSharedPtr<FModuleContextInfo>

    Returns best suited module for target module

    • IsClassPathTextEnabled&
    bool

    Enables / disables input depending on valid user folder selection

    • MakeWidgetForSelectedModuleCombo&
    TSharedRef<SWidget>
    MakeWidgetForSelectedModuleCombo(​
    TSharedPtr<FModuleContextInfo> InValue
    ) const

    Create the widget to use as the combo box entry for the given module info

    • OnClassLocationChanged&
    void
    OnClassLocationChanged(​
    GameProjectUtils::EClassLocation InLocation
    ) const

    Update the value of NewClassPath so that it uses the given class location

    • OnClassNameTextChanged&
    void
    OnClassNameTextChanged(​
    const FText& InNewText
    ) const

    Handler for when the text in the class name edit box has changed

    • OnClassPathTextChanged&
    void
    OnClassPathTextChanged(​
    const FText& InNewText
    )

    Handler for when the text in the class path edit box has changed

    • OnGetClassHeaderFileText&
    FText

    Returns the text for the calculated header file name

    • OnGetClassNameText&
    FText
    OnGetClassNameText(​) const

    Returns the text in the class name edit box

    • OnGetClassPathText&
    FText
    OnGetClassPathText(​) const

    Returns the text in the class path edit box

    • OnGetClassSourceFileText&
    FText

    Returns the text for the calculated source file name

    • OnParentClassSelected&
    void
    OnParentClassSelected(​
    UClass* InParentClass
    ) const

    Handler for the class viewer selection on parent class

Fields#

  • protected
    • AvailableModules&
    TArray<TSharedPtr<FModuleContextInfo>> AvailableModules

    Information about the currently available modules for this project

    • AvailableModulesCombo&
    TSharedPtr<SComboBox<TSharedPtr<FModuleContextInfo>>> AvailableModulesCombo

    The available modules combo box

    • ClassNameEditBox&
    TSharedPtr<SEditableTextBox> ClassNameEditBox

    The editable text box to enter the current name

    • LastSelectedModuleName&
    static FString LastSelectedModuleName

    Keep a reference to the last selected module, so we can init it when re-opening the wizard

    • ParentClassPickerComboButton&
    TSharedPtr<SComboButton> ParentClassPickerComboButton

    Reference to the Class Picker combo button widget

    • ViewModel&
    TSharedPtr<FGBAAttributeSetWizardViewModel> ViewModel

    View model for our widget (passed down from container widget)