Elaztek Developer Hub
Blamite Game Engine - Keystone  00326.06.27.21.0407.blamite
A library that enables the use of Qt in Blamite's editing tools.
keystone_api.h
Go to the documentation of this file.
1 // Blamite Game Engine - keystone.dll Exports Header //
3 // Copyright (c) 2013-2020 Elaztek Studios //
5 
6 #pragma once
7 
8 #include <string>
9 
10 #ifdef KEYSTONE_EXPORTS
11 
14 #define KEYSTONE_API extern "C" __declspec(dllexport)
15 #else
16 #define KEYSTONE_API extern "C" __declspec(dllimport)
17 #endif
18 
19 #ifndef KEYSTONE
20 #define KEYSTONE
21 #endif
22 
23 class BlamConfigurationFile;
24 enum BlamResult;
25 class BlamBasicLogger;
26 
31 {
32  OK,
37  Yes,
38  No,
39 
41 };
42 
48 namespace BlamKeystoneAPI
49 {
56 
69  KEYSTONE_API int ShowErrorDialog(bool classic, bool allow_safemode, bool allow_continue, const char* text);
70 
79 
88 
96  KEYSTONE_API int ShowGuerillaWindow(BlamConfigurationFile* guerilla_config);
97 
104 
110  KEYSTONE_API bool OpenWebURL(std::string url);
111 
117  KEYSTONE_API bool OpenLocalURL(std::string url);
118 
126  KEYSTONE_API BlamResult LoadResourceGroup(std::string file_path);
127 }
128 
129 namespace BlamKeystone
130 {
136  //KEYSTONE SapienCallbacksBundle GetSapienCallbacks();
137 }
BlamKeystoneAPI::ShowErrorDialog
KEYSTONE_API int ShowErrorDialog(bool classic, bool allow_safemode, bool allow_continue, const char *text)
Shows a Qt-driven error dialog.
Definition: keystone_api.cpp:37
Retry
@ Retry
The user pressed the 'Retry' button.
Definition: keystone_api.h:35
KeystoneDialogResult
KeystoneDialogResult
Enumerator containing all possible generic dialog results.
Definition: keystone_api.h:30
Abort
@ Abort
The user pressed the 'Abort' button.
Definition: keystone_api.h:34
BlamKeystoneAPI::ShowMainWindow
KEYSTONE_API int ShowMainWindow()
Shows a default testing window.
Definition: keystone_api.cpp:29
BlamKeystone
Namespace for anything within the Keystone library.
Definition: keystone_api.h:129
BlamKeystoneAPI
Namespace containing any exported functions within Keystone.
Definition: keystone_api.h:48
Default_NotSet
@ Default_NotSet
The dialog result has not yet been set.
Definition: keystone_api.h:40
Cancel
@ Cancel
The user pressed the 'Cancel' button.
Definition: keystone_api.h:33
No
@ No
The user pressed the 'No' button.
Definition: keystone_api.h:38
BlamKeystoneAPI::OpenLocalURL
KEYSTONE_API bool OpenLocalURL(std::string url)
Opens a local file with the user's default application.
Definition: keystone_api.cpp:91
BlamKeystoneAPI::ShowFoundryWindow
KEYSTONE_API int ShowFoundryWindow()
Shows the main Foundry window.
Definition: keystone_api.cpp:56
BlamKeystoneAPI::OpenWebURL
KEYSTONE_API bool OpenWebURL(std::string url)
Opens a URL in the user's default web browser.
Definition: keystone_api.cpp:86
BlamKeystoneAPI::ShowGuerillaWindow
KEYSTONE_API int ShowGuerillaWindow(BlamConfigurationFile *guerilla_config)
Shows the main Guerilla window.
Definition: keystone_api.cpp:66
KEYSTONE_API
#define KEYSTONE_API
Definition: keystone_api.h:16
Yes
@ Yes
The user pressed the 'Yes' button.
Definition: keystone_api.h:37
Ignore
@ Ignore
The user pressed the 'Ignore' button.
Definition: keystone_api.h:36
BlamKeystoneAPI::ShowSapienWindow
KEYSTONE_API int ShowSapienWindow()
Shows the main Sapien window.
Definition: keystone_api.cpp:46
OK
@ OK
The user pressed the 'OK' button.
Definition: keystone_api.h:32
BlamKeystoneAPI::ShowToolWindow
KEYSTONE_API int ShowToolWindow()
Shows the Tool GUI window.
Definition: keystone_api.cpp:76
BlamKeystoneAPI::LoadResourceGroup
KEYSTONE_API BlamResult LoadResourceGroup(std::string file_path)
Loads a resource group for use with Keystone's UI.
Definition: keystone_api.cpp:96