You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
174 lines
5.3 KiB
C++
174 lines
5.3 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#include "EditorDefs.h"
|
|
|
|
#include "FileUtil_impl.h"
|
|
|
|
bool CFileUtil_impl::ScanDirectory(const QString& path, const QString& fileSpec, FileArray& files, bool recursive, bool addDirAlso, ScanDirectoryUpdateCallBack updateCB, bool bSkipPaks)
|
|
{
|
|
return CFileUtil::ScanDirectory(path, fileSpec, files, recursive, addDirAlso, updateCB, bSkipPaks);
|
|
}
|
|
|
|
void CFileUtil_impl::ShowInExplorer(const QString& path)
|
|
{
|
|
CFileUtil::ShowInExplorer(path);
|
|
}
|
|
|
|
bool CFileUtil_impl::ExtractFile(QString& file, bool bMsgBoxAskForExtraction, const char* pDestinationFilename)
|
|
{
|
|
return CFileUtil::ExtractFile(file, bMsgBoxAskForExtraction, pDestinationFilename);
|
|
}
|
|
|
|
void CFileUtil_impl::EditTextureFile(const char* txtureFile, bool bUseGameFolder)
|
|
{
|
|
CFileUtil::EditTextureFile(txtureFile, bUseGameFolder);
|
|
}
|
|
|
|
void CFileUtil_impl::FormatFilterString(QString& filter)
|
|
{
|
|
CFileUtil::FormatFilterString(filter);
|
|
}
|
|
|
|
bool CFileUtil_impl::SelectSaveFile(const QString& fileFilter, const QString& defaulExtension, const QString& startFolder, QString& fileName)
|
|
{
|
|
return CFileUtil::SelectSaveFile(fileFilter, defaulExtension, startFolder, fileName);
|
|
}
|
|
|
|
bool CFileUtil_impl::OverwriteFile(const QString& filename)
|
|
{
|
|
return CFileUtil::OverwriteFile(filename);
|
|
}
|
|
|
|
bool CFileUtil_impl::CheckoutFile(const char* filename, QWidget* parentWindow)
|
|
{
|
|
return CFileUtil::CheckoutFile(filename, parentWindow);
|
|
}
|
|
|
|
bool CFileUtil_impl::RevertFile(const char* filename, QWidget* parentWindow)
|
|
{
|
|
return CFileUtil::RevertFile(filename, parentWindow);
|
|
}
|
|
|
|
bool CFileUtil_impl::RenameFile(const char* sourceFile, const char* targetFile, QWidget* parentWindow)
|
|
{
|
|
return CFileUtil::RenameFile(sourceFile, targetFile, parentWindow);
|
|
}
|
|
|
|
bool CFileUtil_impl::DeleteFromSourceControl(const char* filename, QWidget* parentWindow)
|
|
{
|
|
return CFileUtil::DeleteFromSourceControl(filename, parentWindow);
|
|
}
|
|
|
|
bool CFileUtil_impl::GetLatestFromSourceControl(const char* filename, QWidget* parentWindow)
|
|
{
|
|
return CFileUtil::GetLatestFromSourceControl(filename, parentWindow);
|
|
}
|
|
|
|
bool CFileUtil_impl::GetFileInfoFromSourceControl(const char* filename, AzToolsFramework::SourceControlFileInfo& fileInfo, QWidget* parentWindow)
|
|
{
|
|
return CFileUtil::GetFileInfoFromSourceControl(filename, fileInfo, parentWindow);
|
|
}
|
|
|
|
void CFileUtil_impl::CreateDirectory(const char* dir)
|
|
{
|
|
CFileUtil::CreateDirectory(dir);
|
|
}
|
|
|
|
void CFileUtil_impl::BackupFile(const char* filename)
|
|
{
|
|
CFileUtil::BackupFile(filename);
|
|
}
|
|
|
|
void CFileUtil_impl::BackupFileDated(const char* filename, bool bUseBackupSubDirectory)
|
|
{
|
|
CFileUtil::BackupFileDated(filename, bUseBackupSubDirectory);
|
|
}
|
|
|
|
bool CFileUtil_impl::Deltree(const char* szFolder, bool bRecurse)
|
|
{
|
|
return CFileUtil::Deltree(szFolder, bRecurse);
|
|
}
|
|
|
|
bool CFileUtil_impl::Exists(const QString& strPath, bool boDirectory, FileDesc* pDesc)
|
|
{
|
|
return CFileUtil::Exists(strPath, boDirectory, pDesc);
|
|
}
|
|
|
|
bool CFileUtil_impl::FileExists(const QString& strFilePath, FileDesc* pDesc)
|
|
{
|
|
return CFileUtil::FileExists(strFilePath, pDesc);
|
|
}
|
|
|
|
bool CFileUtil_impl::PathExists(const QString& strPath)
|
|
{
|
|
return CFileUtil::PathExists(strPath);
|
|
}
|
|
|
|
bool CFileUtil_impl::GetDiskFileSize(const char* pFilePath, uint64& rOutSize)
|
|
{
|
|
return CFileUtil::GetDiskFileSize(pFilePath, rOutSize);
|
|
}
|
|
|
|
bool CFileUtil_impl::IsFileExclusivelyAccessable(const QString& strFilePath)
|
|
{
|
|
return CFileUtil::IsFileExclusivelyAccessable(strFilePath);
|
|
}
|
|
|
|
bool CFileUtil_impl::CreatePath(const QString& strPath)
|
|
{
|
|
return CFileUtil::CreatePath(strPath);
|
|
}
|
|
|
|
bool CFileUtil_impl::DeleteFile(const QString& strPath)
|
|
{
|
|
return CFileUtil::DeleteFile(strPath);
|
|
}
|
|
|
|
bool CFileUtil_impl::RemoveDirectory(const QString& strPath)
|
|
{
|
|
return CFileUtil::RemoveDirectory(strPath);
|
|
}
|
|
|
|
IFileUtil::ECopyTreeResult CFileUtil_impl::CopyTree(const QString& strSourceDirectory, const QString& strTargetDirectory, bool boRecurse, bool boConfirmOverwrite)
|
|
{
|
|
return CFileUtil::CopyTree(strSourceDirectory, strTargetDirectory, boRecurse, boConfirmOverwrite);
|
|
}
|
|
|
|
IFileUtil::ECopyTreeResult CFileUtil_impl::CopyFile(const QString& strSourceFile, const QString& strTargetFile, bool boConfirmOverwrite, ProgressRoutine pfnProgress, bool* pbCancel)
|
|
{
|
|
return CFileUtil::CopyFile(strSourceFile, strTargetFile, boConfirmOverwrite, pfnProgress, pbCancel);
|
|
}
|
|
|
|
IFileUtil::ECopyTreeResult CFileUtil_impl::MoveTree(const QString& strSourceDirectory, const QString& strTargetDirectory, bool boRecurse, bool boConfirmOverwrite)
|
|
{
|
|
return CFileUtil::MoveTree(strSourceDirectory, strTargetDirectory, boRecurse, boConfirmOverwrite);
|
|
}
|
|
|
|
void CFileUtil_impl::GatherAssetFilenamesFromLevel(std::set<QString>& rOutFilenames, bool bMakeLowerCase, bool bMakeUnixPath)
|
|
{
|
|
CFileUtil::GatherAssetFilenamesFromLevel(rOutFilenames, bMakeLowerCase, bMakeUnixPath);
|
|
}
|
|
|
|
uint32 CFileUtil_impl::GetAttributes(const char* filename, bool bUseSourceControl)
|
|
{
|
|
return CFileUtil::GetAttributes(filename, bUseSourceControl);
|
|
}
|
|
|
|
bool CFileUtil_impl::CompareFiles(const QString& strFilePath1, const QString& strFilePath2)
|
|
{
|
|
return CFileUtil::CompareFiles(strFilePath1, strFilePath2);
|
|
}
|
|
|
|
QString CFileUtil_impl::GetPath(const QString& path)
|
|
{
|
|
return Path::GetPath(path);
|
|
}
|
|
|
|
|