diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/IFileSystemOpenDialog.h | |
| download | archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip | |
Diffstat (limited to 'common/IFileSystemOpenDialog.h')
| -rw-r--r-- | common/IFileSystemOpenDialog.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/common/IFileSystemOpenDialog.h b/common/IFileSystemOpenDialog.h new file mode 100644 index 0000000..61d774c --- /dev/null +++ b/common/IFileSystemOpenDialog.h @@ -0,0 +1,45 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef IFILESYSTEMOPENDIALOG_H +#define IFILESYSTEMOPENDIALOG_H +#ifdef _WIN32 +#pragma once +#endif + + + +#define FILESYSTEMOPENDIALOG_VERSION "FileSystemOpenDlg003" + + +class IFileSystem; + + +abstract_class IFileSystemOpenDialog +{ +public: + // You must call this first to set the hwnd. + virtual void Init( CreateInterfaceFn factory, void *parentHwnd ) = 0; + + // Call this to free the dialog. + virtual void Release() = 0; + + // Use these to configure the dialog. + virtual void AddFileMask( const char *pMask ) = 0; + virtual void SetInitialDir( const char *pDir, const char *pPathID = NULL ) = 0; + virtual void SetFilterMdlAndJpgFiles( bool bFilter ) = 0; + virtual void GetFilename( char *pOut, int outLen ) const = 0; // Get the filename they chose. + + // Call this to make the dialog itself. Returns true if they clicked OK and false + // if they canceled it. + virtual bool DoModal() = 0; + + // This uses the standard windows file open dialog. + virtual bool DoModal_WindowsDialog() = 0; +}; + + +#endif // IFILESYSTEMOPENDIALOG_H |