You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
51 lines
1.5 KiB
C++
51 lines
1.5 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
class SBspPalette : public SCompoundWidget, public FNotifyHook
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS( SBspPalette ){}
|
|
SLATE_END_ARGS();
|
|
|
|
void Construct( const FArguments& InArgs );
|
|
|
|
private:
|
|
|
|
/** Make a widget for the list view display */
|
|
TSharedRef<ITableRow> MakeListViewWidget(TSharedPtr<struct FBspBuilderType> BspBuilder, const TSharedRef<STableViewBase>& OwnerTable);
|
|
|
|
/** Delegate for when the list view selection changes */
|
|
void OnSelectionChanged(TSharedPtr<FBspBuilderType> BspBuilder, ESelectInfo::Type SelectionType);
|
|
|
|
/** Begin dragging a list widget */
|
|
FReply OnDraggingListViewWidget(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent);
|
|
|
|
/** Select additive mode */
|
|
void OnAdditiveModeButtonClicked(ECheckBoxState CheckType);
|
|
|
|
/** Select subtractive mode */
|
|
void OnSubtractiveModeButtonClicked(ECheckBoxState CheckType);
|
|
|
|
/** @return the check state of the additive mode checkbox */
|
|
ECheckBoxState IsAdditiveModeChecked() const;
|
|
|
|
/** @return the check state of the subtractive mode checkbox */
|
|
ECheckBoxState IsSubtractiveModeChecked() const;
|
|
|
|
/** Get the image for additive mode */
|
|
const FSlateBrush* GetAdditiveModeImage() const;
|
|
|
|
/** Get the image for subtractive mode */
|
|
const FSlateBrush* GetSubtractiveModeImage() const;
|
|
|
|
private:
|
|
/** Property view for brush options */
|
|
TSharedPtr<class IDetailsView> BrushOptionView;
|
|
|
|
/** Brush builder currently active */
|
|
TWeakObjectPtr<UBrushBuilder> ActiveBrushBuilder;
|
|
|
|
/** Additive or subtractive mode */
|
|
bool bIsAdditive;
|
|
}; |