Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / tile_edit / Browse.h
blob70fd1c6acbdd5c43d980348a7eafdda84859e556
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_BROWSE_H__7C7A251D_86AF_4E56_8404_4B4073004C40__INCLUDED_)
18 #define AFX_BROWSE_H__7C7A251D_86AF_4E56_8404_4B4073004C40__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif // _MSC_VER > 1000
23 // Browse.h : header file
25 #include "SelectionTerritoire.h"
26 #include "View.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
49 // Construction
50 public:
51 Browse(int nland, CWnd* pParent = NULL); // standard constructor
52 void Init();
54 void LoadInThread(void);
55 static unsigned long __stdcall MyControllingFunction( void* pParam );
56 void UpdateAll(void);
57 // TileCtrl m_ctrl;
59 //my data
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
62 int oldsel;
63 RECT last_sel; int selection; int lbutton; int control;
64 CPoint OriginalPos;
65 int land;
66 void OnDestroy();
67 void UpdateFlags ();
68 void Flags (int flagNumber, bool value);
70 // listgroup theListGroup;
72 // Dialog Data
73 //{{AFX_DATA(Browse)
74 enum { IDD = IDD_BROWSER };
75 int m_128x128;
76 CTView m_ctrl;
77 CStatic m_bmpsel;
78 CButton m_infotexte;
79 CButton m_rb_zoom1;
80 CButton m_rb_num;
81 CButton m_rb_jour;
82 int SubGroup0;
83 int SubGroup1;
84 int SubGroup2;
85 int SubGroup3;
86 int SubGroup4;
87 int SubGroup5;
88 int SubGroup6;
89 int SubGroup7;
90 int SubGroup10;
91 int SubGroup11;
92 int SubGroup8;
93 int SubGroup9;
94 int Oriented;
95 //}}AFX_DATA
98 // Overrides
99 // ClassWizard generated virtual function overrides
100 //{{AFX_VIRTUAL(Browse)
101 protected:
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);
105 //}}AFX_VIRTUAL
107 // Implementation
108 protected:
110 // Generated message map functions
111 //{{AFX_MSG(Browse)
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();
119 afx_msg void OnOk();
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();
138 //}}AFX_MSG
139 DECLARE_MESSAGE_MAP()
142 #endif // !defined(AFX_BROWSE_H__7C7A251D_86AF_4E56_8404_4B4073004C40__INCLUDED_)