msgBox.h

Engine/source/platform/nativeDialogs/msgBox.h

More...

Public Enumerations

enum
MBButtons {
  MBOk = 0
  MBOkCancel 
  MBRetryCancel 
  MBSaveDontSave 
  MBSaveDontSaveCancel 
  MBAlertAssert 
}
enum
MBIcons {
  MIWarning = 0
  MIInformation 
  MIQuestion 
  MIStop 
}
enum
MBReturnVal {
  MROk = 1
  MRCancel 
  MRRetry 
  MRDontSave 
}

Public Functions

Detailed Description

Public Enumerations

MBButtons

Enumerator

MBOk = 0
MBOkCancel
MBRetryCancel
MBSaveDontSave
MBSaveDontSaveCancel
MBAlertAssert
MBIcons

Enumerator

MIWarning = 0
MIInformation
MIQuestion
MIStop
MBReturnVal

Enumerator

MROk = 1
MRCancel
MRRetry
MRDontSave

Public Functions

initMessageBoxVars()

 1
 2//-----------------------------------------------------------------------------
 3// Copyright (c) 2012 GarageGames, LLC
 4//
 5// Permission is hereby granted, free of charge, to any person obtaining a copy
 6// of this software and associated documentation files (the "Software"), to
 7// deal in the Software without restriction, including without limitation the
 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 9// sell copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21// IN THE SOFTWARE.
22//-----------------------------------------------------------------------------
23
24#ifndef _MSGBOX_H_
25#define _MSGBOX_H_
26
27
28// [tom, 10/17/2006] Note: If you change either of these enums, make sure you
29// update the relevant code in the all the platform layers.
30
31// [pauls, 3/20/2007] Reduced the available types of dialog boxes in order to
32// maintain a consistent but platform - appropriate look and feel in Torque.
33
34enum MBButtons
35{
36   MBOk = 0,
37   MBOkCancel,
38   MBRetryCancel,
39   MBSaveDontSave,
40   MBSaveDontSaveCancel,
41   MBAlertAssert
42};
43
44enum MBIcons
45{
46   MIWarning = 0,
47   MIInformation,
48   MIQuestion,
49   MIStop,
50};
51
52enum MBReturnVal
53{
54   MROk = 1,   // Start from 1 to allow use of 0 for errors
55   MRCancel,
56   MRRetry,
57   MRDontSave,
58};
59
60
61
62extern void initMessageBoxVars();
63
64#endif // _MSGBOX_H_
65