Linux multi-monitor fullscreen support
[ryzomcore.git] / ryzom / tools / leveldesign / mission_compiler_fe / dialog_mode.cpp
blob55b44fc8b56c6f5847f8abe69a6f3e9174c530c4
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 // dialog_mode.cpp : implementation file
20 #include "stdafx.h"
21 #include "mission_compiler_fe.h"
22 #include "dialog_mode.h"
24 /////////////////////////////////////////////////////////////////////////////
25 // CDialogMode dialog
28 CDialogMode::CDialogMode(CWnd* pParent /*=NULL*/)
29 : CDialog(CDialogMode::IDD, pParent)
31 Mode = mode_compile;
32 //{{AFX_DATA_INIT(CDialogMode)
33 // NOTE: the ClassWizard will add member initialization here
34 //}}AFX_DATA_INIT
38 void CDialogMode::DoDataExchange(CDataExchange* pDX)
40 CDialog::DoDataExchange(pDX);
41 //{{AFX_DATA_MAP(CDialogMode)
42 // NOTE: the ClassWizard will add DDX and DDV calls here
43 //}}AFX_DATA_MAP
47 BEGIN_MESSAGE_MAP(CDialogMode, CDialog)
48 //{{AFX_MSG_MAP(CDialogMode)
49 ON_BN_CLICKED(ID_MODE_COMPILE, OnModeCompile)
50 ON_BN_CLICKED(ID_MODE_PUBLISH, OnModePublish)
51 //}}AFX_MSG_MAP
52 END_MESSAGE_MAP()
54 /////////////////////////////////////////////////////////////////////////////
55 // CDialogMode message handlers
57 void CDialogMode::OnModeCompile()
59 Mode = mode_compile;
61 this->EndDialog(IDOK);
64 void CDialogMode::OnModePublish()
66 Mode = mode_publish;
68 this->EndDialog(IDOK);