Program Listing for File ZagalaSpecFeatureDocumentPanel.h#

↰ Return to documentation for file (ZagalaSpecEditor/Public/Widgets/ZagalaSpecFeatureDocumentPanel.h)

// Copyright (c) 2026, Zagala Game Solutions. All rights reserved.

#pragma once

#include "CoreMinimal.h"
#include "Widgets/SCompoundWidget.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Document/ZagalaSpecDocumentRow.h"

class FZagalaSpecFeatureEditorContext;
class SZagalaSpecFeatureDocumentView;

class ZAGALASPECEDITOR_API SZagalaSpecFeatureDocumentPanel : public SCompoundWidget
{
public:
    SLATE_BEGIN_ARGS(SZagalaSpecFeatureDocumentPanel) {}
        SLATE_ARGUMENT(TSharedPtr<FZagalaSpecFeatureEditorContext>, Context)
    SLATE_END_ARGS()


    void Construct(const FArguments& InArgs);

    TSharedPtr<SZagalaSpecFeatureDocumentView> GetView() const;

private:
    void HandleRowsChanged();

    void HandleSelectedRowChanged(const FZagalaSpecDocumentRowPtr& Row);

    void HandleRowSelected(const FZagalaSpecDocumentRowPtr& Row);

    TSharedPtr<FZagalaSpecFeatureEditorContext> Context;

    TSharedPtr<SZagalaSpecFeatureDocumentView> View;
};