You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* Option to check in an asset from the Content Browser Source Control Context Menu is now enabled if the SCC does not use Snapshots instead of if it uses File Revisions * Option to check in an asset from the Scene Outliner Source Control Context Menu is now enabled if the SCC does not use Snapshots instead of if it uses File Revisions * Ability to uncheck files in the Submit Files Window is now enabled if the SCC does not use Snapshots instead of if it uses File Revisions * Option to revert the writable flag on an asset in the Content Browser Source Control Context Menu is now enabled if the SCC uses checkout instead of if it uses File Revisions (like the 'Make Writable' option) #jira UCS-6630 #rb brooke.hubert, wouter.burgers #lockdown jeanmichel.dignard #preflight 640e6b41482188d710ff8316 [CL 24724061 by marco anastasi in ue5-main branch]
155 lines
3.9 KiB
C++
155 lines
3.9 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DefaultSourceControlProvider.h"
|
|
#include "Logging/MessageLog.h"
|
|
|
|
#if SOURCE_CONTROL_WITH_SLATE
|
|
#include "Widgets/SNullWidget.h"
|
|
#endif
|
|
|
|
#define LOCTEXT_NAMESPACE "DefaultSourceControlProvider"
|
|
|
|
void FDefaultSourceControlProvider::Init(bool bForceConnection)
|
|
{
|
|
FMessageLog("SourceControl").Info(LOCTEXT("SourceControlDisabled", "Revision control is disabled"));
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::Close()
|
|
{
|
|
|
|
}
|
|
|
|
FText FDefaultSourceControlProvider::GetStatusText() const
|
|
{
|
|
return LOCTEXT("SourceControlDisabled", "Revision control is disabled");
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::IsAvailable() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::IsEnabled() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
const FName& FDefaultSourceControlProvider::GetName(void) const
|
|
{
|
|
static FName ProviderName("None");
|
|
return ProviderName;
|
|
}
|
|
|
|
ECommandResult::Type FDefaultSourceControlProvider::GetState( const TArray<FString>& InFiles, TArray< TSharedRef<ISourceControlState, ESPMode::ThreadSafe> >& OutState, EStateCacheUsage::Type InStateCacheUsage )
|
|
{
|
|
return ECommandResult::Failed;
|
|
}
|
|
|
|
ECommandResult::Type FDefaultSourceControlProvider::GetState(const TArray<FSourceControlChangelistRef>& InChangelists, TArray<FSourceControlChangelistStateRef>& OutState, EStateCacheUsage::Type InStateCacheUsage)
|
|
{
|
|
return ECommandResult::Failed;
|
|
}
|
|
|
|
TArray<FSourceControlStateRef> FDefaultSourceControlProvider::GetCachedStateByPredicate(TFunctionRef<bool(const FSourceControlStateRef&)> Predicate) const
|
|
{
|
|
return TArray<FSourceControlStateRef>();
|
|
}
|
|
|
|
FDelegateHandle FDefaultSourceControlProvider::RegisterSourceControlStateChanged_Handle( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged )
|
|
{
|
|
return FDelegateHandle();
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::UnregisterSourceControlStateChanged_Handle( FDelegateHandle Handle )
|
|
{
|
|
|
|
}
|
|
|
|
ECommandResult::Type FDefaultSourceControlProvider::Execute( const FSourceControlOperationRef& InOperation, FSourceControlChangelistPtr InChangelist, const TArray<FString>& InFiles, EConcurrency::Type InConcurrency, const FSourceControlOperationComplete& InOperationCompleteDelegate )
|
|
{
|
|
return ECommandResult::Failed;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::CanExecuteOperation( const FSourceControlOperationRef& InOperation ) const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::CanCancelOperation( const FSourceControlOperationRef& InOperation ) const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::CancelOperation( const FSourceControlOperationRef& InOperation )
|
|
{
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::UsesLocalReadOnlyState() const
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::UsesChangelists() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::UsesUncontrolledChangelists() const
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::UsesCheckout() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::UsesFileRevisions() const
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::UsesSnapshots() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::AllowsDiffAgainstDepot() const
|
|
{
|
|
return true;
|
|
}
|
|
|
|
TOptional<bool> FDefaultSourceControlProvider::IsAtLatestRevision() const
|
|
{
|
|
return TOptional<bool>();
|
|
}
|
|
|
|
TOptional<int> FDefaultSourceControlProvider::GetNumLocalChanges() const
|
|
{
|
|
return TOptional<int>();
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::Tick()
|
|
{
|
|
|
|
}
|
|
|
|
TArray< TSharedRef<ISourceControlLabel> > FDefaultSourceControlProvider::GetLabels( const FString& InMatchingSpec ) const
|
|
{
|
|
return TArray< TSharedRef<ISourceControlLabel> >();
|
|
}
|
|
|
|
TArray<FSourceControlChangelistRef> FDefaultSourceControlProvider::GetChangelists( EStateCacheUsage::Type InStateCacheUsage )
|
|
{
|
|
return TArray<FSourceControlChangelistRef>();
|
|
}
|
|
|
|
#if SOURCE_CONTROL_WITH_SLATE
|
|
TSharedRef<class SWidget> FDefaultSourceControlProvider::MakeSettingsWidget() const
|
|
{
|
|
return SNullWidget::NullWidget;
|
|
}
|
|
#endif // SOURCE_CONTROL_WITH_SLATE
|
|
|
|
#undef LOCTEXT_NAMESPACE
|