2017-03-24 03:47:43 +01:00
|
|
|
/*****************************************************************************
|
2018-06-15 14:07:34 +02:00
|
|
|
* Copyright (c) 2014-2018 OpenRCT2 developers
|
|
|
|
*
|
|
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
|
|
|
*
|
|
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
|
|
|
*****************************************************************************/
|
2017-03-24 03:47:43 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-04-20 20:58:59 +02:00
|
|
|
#include <memory>
|
2017-03-24 03:47:43 +01:00
|
|
|
#include <openrct2/common.h>
|
2018-06-22 23:22:29 +02:00
|
|
|
#include <string>
|
2017-03-24 03:47:43 +01:00
|
|
|
|
2017-03-25 15:57:02 +01:00
|
|
|
struct SDL_Window;
|
|
|
|
|
2017-03-24 03:47:43 +01:00
|
|
|
namespace OpenRCT2
|
|
|
|
{
|
|
|
|
interface IContext;
|
2017-06-11 13:53:37 +02:00
|
|
|
interface IPlatformEnvironment;
|
2017-03-24 03:47:43 +01:00
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
2018-06-22 23:22:29 +02:00
|
|
|
struct FileDialogDesc;
|
|
|
|
class InGameConsole;
|
|
|
|
interface IUiContext;
|
2017-03-24 03:47:43 +01:00
|
|
|
|
2017-03-25 15:57:02 +01:00
|
|
|
interface IPlatformUiContext
|
|
|
|
{
|
|
|
|
virtual ~IPlatformUiContext() = default;
|
|
|
|
virtual void SetWindowIcon(SDL_Window * window) abstract;
|
|
|
|
virtual bool IsSteamOverlayAttached() abstract;
|
2017-04-01 18:27:39 +02:00
|
|
|
|
2018-06-22 23:22:29 +02:00
|
|
|
virtual void ShowMessageBox(SDL_Window * window, const std::string& message) abstract;
|
|
|
|
virtual std::string ShowFileDialog(SDL_Window * window, const FileDialogDesc& desc) abstract;
|
|
|
|
virtual std::string ShowDirectoryDialog(SDL_Window * window, const std::string& title) abstract;
|
2017-03-25 15:57:02 +01:00
|
|
|
};
|
|
|
|
|
2018-04-27 19:47:57 +02:00
|
|
|
std::unique_ptr<IUiContext> CreateUiContext(const std::shared_ptr<IPlatformEnvironment>& env);
|
2018-06-22 23:22:29 +02:00
|
|
|
IPlatformUiContext* CreatePlatformUiContext();
|
2018-03-11 23:25:34 +01:00
|
|
|
|
|
|
|
InGameConsole& GetInGameConsole();
|
2018-05-04 22:40:09 +02:00
|
|
|
} // namespace Ui
|
|
|
|
} // namespace OpenRCT2
|