Linux multi-monitor fullscreen support
[ryzomcore.git] / ryzom / tools / leveldesign / master / ExportCBDlg.h
blobe2bc965affff55b9a103a51e13186032dc5a8e71
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif // _MSC_VER > 1000
23 // ExportCBDlg.h : header file
26 #include "../export/export.h"
28 /////////////////////////////////////////////////////////////////////////////
29 class CExportCBDlg;
31 /////////////////////////////////////////////////////////////////////////////
32 // CExportCB
34 class CExportCB : public IExportCB
36 CExportCBDlg *_Dialog;
37 bool _Canceled;
39 public:
40 CExportCB();
42 void setExportCBDlg (CExportCBDlg *dlg);
43 void cancel ();
44 void pump ();
46 // Interface
48 virtual bool isCanceled (); // Tell the exporter if it must end as quick as possible
49 // Display callbacks
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
63 CExportCB _ExportCB;
64 bool _Finished;
66 // Construction
67 public:
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 (); }
75 // Dialog Data
76 //{{AFX_DATA(CExportCBDlg)
77 enum { IDD = IDD_EXPORTCB };
78 CEdit EditCtrl;
79 CProgressCtrl ProgressBar;
80 CString PassText;
81 CString InfoText;
82 //}}AFX_DATA
85 // Overrides
86 // ClassWizard generated virtual function overrides
87 //{{AFX_VIRTUAL(CExportCBDlg)
88 protected:
89 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
90 //}}AFX_VIRTUAL
92 // Implementation
93 protected:
95 // Generated message map functions
96 //{{AFX_MSG(CExportCBDlg)
97 virtual void OnCancel();
98 virtual BOOL OnInitDialog();
99 //}}AFX_MSG
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_)