1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #if !defined(AFX_EXPORTCBDLG_H__34C63700_C8D7_454C_A752_3722257D9160__INCLUDED_)
18 #define AFX_EXPORTCBDLG_H__34C63700_C8D7_454C_A752_3722257D9160__INCLUDED_
22 #endif // _MSC_VER > 1000
23 // ExportCBDlg.h : header file
26 #include "../export/export.h"
28 /////////////////////////////////////////////////////////////////////////////
31 /////////////////////////////////////////////////////////////////////////////
34 class CExportCB
: public IExportCB
36 CExportCBDlg
*_Dialog
;
42 void setExportCBDlg (CExportCBDlg
*dlg
);
48 virtual bool isCanceled (); // Tell the exporter if it must end as quick as possible
50 virtual void dispPass (const std::string
&Text
); // Pass (generate land, vegetable, etc...)
51 virtual void dispPassProgress (float percentage
); // [ 0.0 , 1.0 ]
52 virtual void dispInfo (const std::string
&Text
); // Verbose
53 virtual void dispWarning (const std::string
&Text
); // Error but not critical
54 virtual void dispError (const std::string
&Text
); // Should block (misfunction)
57 /////////////////////////////////////////////////////////////////////////////
58 // CExportCBDlg dialog
60 class CExportCBDlg
: public CDialog
68 CExportCBDlg(CWnd
* pParent
= NULL
); // standard constructor
69 CExportCB
*getExportCB () { return &_ExportCB
; }
71 void setFinishedButton ();
72 bool getFinished () { return _Finished
; }
73 void pump () { _ExportCB
.pump (); }
76 //{{AFX_DATA(CExportCBDlg)
77 enum { IDD
= IDD_EXPORTCB
};
79 CProgressCtrl ProgressBar
;
86 // ClassWizard generated virtual function overrides
87 //{{AFX_VIRTUAL(CExportCBDlg)
89 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
95 // Generated message map functions
96 //{{AFX_MSG(CExportCBDlg)
97 virtual void OnCancel();
98 virtual BOOL
OnInitDialog();
100 DECLARE_MESSAGE_MAP()
103 //{{AFX_INSERT_LOCATION}}
104 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
106 #endif // !defined(AFX_EXPORTCBDLG_H__34C63700_C8D7_454C_A752_3722257D9160__INCLUDED_)