Linux multi-monitor fullscreen support
[ryzomcore.git] / ryzom / tools / leveldesign / georges_dll / header_dialog.h
blobdff405553d377ba7190c6866781c7f988f266bd9
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(HEADER_TYPE_H)
18 #define HEADER_TYPE_H
20 #include "base_dialog.h"
21 #include "edit_list_ctrl.h"
23 #if _MSC_VER > 1000
24 #pragma once
25 #endif // _MSC_VER > 1000
26 // type_dialog.h : header file
29 namespace NLGEORGES
31 class CFileHeader;
34 class CGeorgesEditView;
36 /////////////////////////////////////////////////////////////////////////////
37 // CHeaderDialog dialog
39 class CHeaderDialog : public CBaseDialog
41 // Construction
42 public:
43 CHeaderDialog (); // standard constructor
45 enum
47 TypeCombo= 100,
50 enum
52 CbState = 1,
53 BtIncrement,
54 EdComments,
55 EdLog,
58 // The widgets
59 CStatic LabelVersion;
60 CButton IncrementVersion;
61 CStatic LabelState;
62 CComboBox ComboState;
63 CStatic LabelComments;
64 CEdit Comments;
65 CStatic LabelLog;
66 CEdit Log;
68 // From CBaseDialog
69 void onLastFocus ();
70 void onFirstFocus ();
72 // Get from document, update rightview UI
73 void getFromDocument (const NLGEORGES::CFileHeader &header);
75 // Set to document, update document with rightview UI
76 void setStateToDocument ();
77 void setVersionToDocument ();
78 void setCommentsToDocument ();
80 // Resize widget callback
81 void resizeWidgets ();
83 // Overrides
84 // ClassWizard generated virtual function overrides
85 //{{AFX_VIRTUAL(CHeaderDialog)
86 protected:
87 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
88 virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
89 //}}AFX_VIRTUAL
91 // Implementation
92 protected:
94 // Generated message map functions
95 //{{AFX_MSG(CHeaderDialog)
96 afx_msg void OnSize(UINT nType, int cx, int cy);
97 afx_msg BOOL OnInitDialog();
98 //}}AFX_MSG
99 DECLARE_MESSAGE_MAP()
102 //{{AFX_INSERT_LOCATION}}
103 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
105 #endif // !defined(HEADER_TYPE_H)