Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWin32.h
| Show All 23 Lines | |||||
| #ifndef __GHOST_SYSTEMWIN32_H__ | #ifndef __GHOST_SYSTEMWIN32_H__ | ||||
| #define __GHOST_SYSTEMWIN32_H__ | #define __GHOST_SYSTEMWIN32_H__ | ||||
| #ifndef WIN32 | #ifndef WIN32 | ||||
| # error WIN32 only! | # error WIN32 only! | ||||
| #endif // WIN32 | #endif // WIN32 | ||||
| /* require Windows XP or newer */ | |||||
| #undef _WIN32_WINNT | |||||
| #define _WIN32_WINNT 0x501 | |||||
| #define WIN32_LEAN_AND_MEAN | #define WIN32_LEAN_AND_MEAN | ||||
| #include <windows.h> | #include <windows.h> | ||||
| #include <ole2.h> // for drag-n-drop | #include <ole2.h> // for drag-n-drop | ||||
| #include "GHOST_System.h" | #include "GHOST_System.h" | ||||
| class GHOST_EventButton; | class GHOST_EventButton; | ||||
| ▲ Show 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | public: | ||||
| * \return No return | * \return No return | ||||
| */ | */ | ||||
| void putClipboard(GHOST_TInt8 *buffer, bool selection) const; | void putClipboard(GHOST_TInt8 *buffer, bool selection) const; | ||||
| /** | /** | ||||
| * Show a system message box | * Show a system message box | ||||
| * \param title The title of the message box | * \param title The title of the message box | ||||
| * \param message The message to display | * \param message The message to display | ||||
| * \param help_label Help button label | |||||
| * \param continue_label Continue button label | |||||
| * \param link An optional hyperlink | * \param link An optional hyperlink | ||||
| * \param dialog_options Options how to display the message | * \param dialog_options Options how to display the message | ||||
| */ | */ | ||||
| GHOST_TSuccess showMessageBox(const char *title, | GHOST_TSuccess showMessageBox(const char *title, | ||||
| const char *message, | const char *message, | ||||
| const char *help_label, | |||||
| const char *continue_label, | |||||
| const char *link, | const char *link, | ||||
| GHOST_DialogOptions dialog_options) const; | GHOST_DialogOptions dialog_options) const; | ||||
| /** | /** | ||||
| * Creates a drag'n'drop event and pushes it immediately onto the event queue. | * Creates a drag'n'drop event and pushes it immediately onto the event queue. | ||||
| * Called by GHOST_DropTargetWin32 class. | * Called by GHOST_DropTargetWin32 class. | ||||
| * \param eventType: The type of drag'n'drop event | * \param eventType: The type of drag'n'drop event | ||||
| * \param draggedObjectType: The type object concerned | * \param draggedObjectType: The type object concerned | ||||
| ▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines | |||||