GL Studio C++ Runtime API
runtime_message_dialogs.h
Go to the documentation of this file.
1/*! \file
2 \brief The Message functions. Implements Messages to the user in the form
3 of pop-up dialog boxes, using FLTK windows.
4
5 \par Copyright Information
6
7 Copyright (c) 2017 by The DiSTI Corporation.<br>
8 11301 Corporate Blvd; Suite 100<br>
9 Orlando, Florida 32817<br>
10 USA<br>
11 <br>
12 All rights reserved.<br>
13
14 This Software contains proprietary trade secrets of DiSTI and may not be
15reproduced, in whole or part, in any form, or by any means of electronic,
16mechanical, or otherwise, without the written permission of DiSTI. Said
17permission may be derived through the purchase of applicable DiSTI product
18licenses which detail the distribution rights of this content and any
19Derivative Works based on this or other copyrighted DiSTI Software.
20
21 NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
22AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
23PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
24AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
25IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
26PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
27
28 LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
29IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
30INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
31DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
32INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
33INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBILITY
34OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
35EXCEED FIVE DOLLARS (US$5.00).
36
37 The aforementioned terms and restrictions are governed by the laws of the
38State of Florida and the United States of America.
39
40*/
41#ifndef INCLUDED_RUNTIME_MESSAGE_DIALOGS_H
42#define INCLUDED_RUNTIME_MESSAGE_DIALOGS_H
43
45#include "gls_include.h"
46#include "message_dialogs.h"
47
48namespace disti
49{
50/// \details The RuntimeMessageDialogs class. Implements message dialogs for the runtime.
52{
53public:
55
56 virtual void MsgBox( const char* s ) DISTI_METHOD_OVERRIDE;
57
58 virtual void Error( const char* s ) DISTI_METHOD_OVERRIDE;
59
60 virtual int Question( const char* s ) DISTI_METHOD_OVERRIDE;
61
62 virtual int Choice( const char* b0, const char* b1, const char* b2, const char* s ) DISTI_METHOD_OVERRIDE;
63
64 virtual int ChoiceWithDefault( const char* b0, const char* b1, const char* b2, const int defaultChoice, const char* s ) DISTI_METHOD_OVERRIDE;
65
66private:
67 // disallow
70
71 // If one of the fltk message functions is called when you are already inside another one
72 // it messes up FLTK and causes the GUI to lock up.
73 // This static is used to prevent a popup from being displayed while one is already up.
74 bool _messageCurrentlyDisplayed;
75};
76} // namespace disti
77
78#endif
Definition: message_dialogs.h:51
Definition: runtime_message_dialogs.h:52
virtual void MsgBox(const char *s) override
virtual int Question(const char *s) override
virtual int Choice(const char *b0, const char *b1, const char *b2, const char *s) override
virtual int ChoiceWithDefault(const char *b0, const char *b1, const char *b2, const int defaultChoice, const char *s) override
virtual void Error(const char *s) override
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:214
A file for all GL Studio files to include.
The Message functions. Implements Messages to the user in the form of pop-up dialog boxes,...
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47