doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WaitDlg.h
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 #if !defined(AFX_WAITDLG_H__2B7A6C91_8D3F_4BEE_B564_33A0CFFA241B__INCLUDED_)
29 #define AFX_WAITDLG_H__2B7A6C91_8D3F_4BEE_B564_33A0CFFA241B__INCLUDED_
30 
31 #if _MSC_VER > 1000
32 #pragma once
33 #endif // _MSC_VER > 1000
34 // WaitDlg.h : header file
35 //
36 
38 // CWaitDlg dialog
39 
40 class CWaitDlg : public CDialog
41 {
42 // Construction
43 public:
44  CWaitDlg(CWnd* pParent = NULL, const char *msg = "Wait..."); // standard constructor
45  ~CWaitDlg();
46  void SetText(const char *msg, bool append = false);
47  void AllowCancel( bool enable );
48  bool CancelPressed( void );
49 
50 // Dialog Data
51  //{{AFX_DATA(CWaitDlg)
52  enum { IDD = IDD_DLG_WAIT };
53  CString waitStr;
54  //}}AFX_DATA
55 
56 
57 // Overrides
58  // ClassWizard generated virtual function overrides
59  //{{AFX_VIRTUAL(CWaitDlg)
60  protected:
61  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
62  //}}AFX_VIRTUAL
63 
64 // Implementation
65 protected:
66 
67  // Generated message map functions
68  //{{AFX_MSG(CWaitDlg)
69  virtual BOOL OnInitDialog();
70  virtual void OnCancel();
71  //}}AFX_MSG
72  DECLARE_MESSAGE_MAP()
73 
74 private:
77 };
78 
79 //{{AFX_INSERT_LOCATION}}
80 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
81 
82 #endif // !defined(AFX_WAITDLG_H__2B7A6C91_8D3F_4BEE_B564_33A0CFFA241B__INCLUDED_)
#define private
Definition: TypeInfo.cpp:30
CWaitDlg(CWnd *pParent=NULL, const char *msg="Wait...")
Definition: WaitDlg.cpp:45
void AllowCancel(bool enable)
Definition: WaitDlg.cpp:109
virtual BOOL OnInitDialog()
Definition: WaitDlg.cpp:77
virtual void OnCancel()
Definition: WaitDlg.cpp:136
~CWaitDlg()
Definition: WaitDlg.cpp:56
#define BOOL
Definition: mprintf.c:71
bool CancelPressed(void)
Definition: WaitDlg.cpp:120
#define NULL
Definition: Lib.h:88
void SetText(const char *msg, bool append=false)
Definition: WaitDlg.cpp:94
virtual void DoDataExchange(CDataExchange *pDX)
Definition: WaitDlg.cpp:60
#define IDD_DLG_WAIT
Definition: Str.h:116
bool cancelPressed
Definition: WaitDlg.h:76
idStr text
Definition: WaitDlg.h:75
CString waitStr
Definition: WaitDlg.h:53