2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#if SOURCE_CONTROL_WITH_SLATE
|
|
|
|
|
|
|
|
|
|
class SSourceControlPicker : public SCompoundWidget
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
SLATE_BEGIN_ARGS(SSourceControlPicker) {}
|
|
|
|
|
|
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
void Construct(const FArguments& InArgs);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
/** Delegate called when changing source control providers */
|
|
|
|
|
void ChangeSourceControlProvider(int32 ProviderIndex) const;
|
|
|
|
|
|
|
|
|
|
/** Get the content for the drop-down menu for picking providers */
|
|
|
|
|
TSharedRef<SWidget> OnGetMenuContent() const;
|
|
|
|
|
|
|
|
|
|
/** Get the button text for the drop-down */
|
|
|
|
|
FText OnGetButtonText() const;
|
|
|
|
|
|
|
|
|
|
/** Get the text to be displayed given the name of the provider */
|
|
|
|
|
FText GetProviderText(const FName& InName) const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // SOURCE_CONTROL_WITH_SLATE
|