2021-01-11 15:31:58 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "Modules/ModuleInterface.h"
|
|
|
|
|
#include "Modules/ModuleManager.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SourceControlWindows module interface
|
|
|
|
|
*/
|
|
|
|
|
class ISourceControlWindowsModule : public IModuleInterface
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* Get reference to the SourceControlWindows module instance
|
|
|
|
|
*/
|
|
|
|
|
static inline ISourceControlWindowsModule& Get()
|
|
|
|
|
{
|
|
|
|
|
return FModuleManager::LoadModuleChecked<ISourceControlWindowsModule>("SourceControlWindows");
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-26 11:04:20 -04:00
|
|
|
static inline ISourceControlWindowsModule* TryGet()
|
|
|
|
|
{
|
|
|
|
|
return FModuleManager::GetModulePtr<ISourceControlWindowsModule>("SourceControlWindows");
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-11 15:31:58 -04:00
|
|
|
virtual void ShowChangelistsTab() = 0;
|
2021-03-17 13:43:31 -04:00
|
|
|
virtual bool CanShowChangelistsTab() const = 0;
|
2022-08-29 14:51:36 -04:00
|
|
|
virtual void SelectFiles(const TArray<FString>& Filenames) = 0;
|
2022-08-26 11:04:20 -04:00
|
|
|
|
|
|
|
|
DECLARE_EVENT_OneParam(ISourceControlWindowsModule, FChangelistFileDoubleClickedEvent, const FString&);
|
|
|
|
|
virtual FChangelistFileDoubleClickedEvent& OnChangelistFileDoubleClicked() = 0;
|
2021-01-11 15:31:58 -04:00
|
|
|
};
|