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_BROWSE_H__7C7A251D_86AF_4E56_8404_4B4073004C40__INCLUDED_)
18 #define AFX_BROWSE_H__7C7A251D_86AF_4E56_8404_4B4073004C40__INCLUDED_
22 #endif // _MSC_VER > 1000
23 // Browse.h : header file
25 #include "SelectionTerritoire.h"
28 #define REGKEY_TILEDIT _T("Software\\Nevrax\\Nel\\Tile_Edit")
29 #define REGKEY_BUTTONZOOM _T("Zoom button")
30 #define REGKEY_BUTTONVARIETY _T("Zoom variety")
31 #define REGKEY_BUTTONTEXTURE _T("Texture button")
32 #define REGKEY_BUTTONSORT _T("Sort button")
33 #define REGKEY_BUTTONTEXTINFO _T("Info button")
34 #define REGKEY_LISTCOMBOBOX _T("List type combo box")
35 #define REGKEY_WNDPL _T("Window placement")
36 #define REGKEY_LASTPATH _T("Last path")
38 #define SCROLL_MAX 50000
40 #define MAX_LENGTH_GROUP 25
42 /////////////////////////////////////////////////////////////////////////////
43 // Browse dialog : contient les boutons de parametres et la fenetre des textures (TileView)
45 #define EDGEFILE_EXT ".edge"
47 class Browse
: public CDialog
51 Browse(int nland
, CWnd
* pParent
= NULL
); // standard constructor
54 void LoadInThread(void);
55 static unsigned long __stdcall
MyControllingFunction( void* pParam
);
60 RECT minpos
; //position minimum de la fenetre
61 int border_x
,border_y
; //taille de la bordure de la fenetre tile_ctrl a droite et en bas
63 RECT last_sel
; int selection
; int lbutton
; int control
;
68 void Flags (int flagNumber
, bool value
);
70 // listgroup theListGroup;
74 enum { IDD
= IDD_BROWSER
};
99 // ClassWizard generated virtual function overrides
100 //{{AFX_VIRTUAL(Browse)
102 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
103 virtual BOOL
PreCreateWindow(CREATESTRUCT
& cs
);
104 virtual LRESULT
WindowProc(UINT message
, WPARAM wParam
, LPARAM lParam
);
110 // Generated message map functions
112 afx_msg
void OnSize(UINT nType
, int cx
, int cy
);
113 afx_msg
void OnAlpha();
114 afx_msg
void OnChangeVariety();
115 afx_msg
void OnJour();
116 afx_msg
void OnNuit();
117 afx_msg
void OnNum();
118 afx_msg
void OnCancel();
120 afx_msg
void OnRButtonDown(UINT nFlags
, CPoint point
);
121 afx_msg
void OnSelchangeListtype();
122 afx_msg
void OnUpdateTiles();
123 afx_msg
void OnBatchLoad ();
124 afx_msg
void OnSubgroup0();
125 afx_msg
void OnSubgroup1();
126 afx_msg
void OnSubgroup2();
127 afx_msg
void OnSubgroup3();
128 afx_msg
void OnSubgroup4();
129 afx_msg
void OnSubgroup5();
130 afx_msg
void OnSubgroup6();
131 afx_msg
void OnSubgroup7();
132 afx_msg
void OnSubgroup8();
133 afx_msg
void OnSubgroup9();
134 afx_msg
void OnSubgroup10();
135 afx_msg
void OnSubgroup11();
136 afx_msg
void OnExportBorder();
137 afx_msg
void OnImportBorder();
139 DECLARE_MESSAGE_MAP()
142 #endif // !defined(AFX_BROWSE_H__7C7A251D_86AF_4E56_8404_4B4073004C40__INCLUDED_)