world_editor.diff

Patch for the world editor client. Need to add DialogCommand.h and DialogCommand.cpp to the project in the shard_monitor plugin - Dishwasha, 05/18/2010 11:46 pm

Download (70.1 kB)

ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor/plugin_interface.h 2010-05-16 00:00:52.964314300 -0500
178 178
	virtual bool		activatePlugin()=0;
179 179

  
180 180
	virtual bool		closePlugin()=0;
181
	virtual int			actionCount()=0;
182
	virtual bool		processAction(uint actionID)=0;
183

  
181 184
};
182 185
// Interface for primitive display plusing
183 186
class IPrimitiveDisplayer
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor/resource.h 2010-05-15 23:49:43.583027900 -0500
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.
13
//
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/>.
16

  
17 1
//{{NO_DEPENDENCIES}}
18
// Microsoft Developer Studio generated include file.
2
// Microsoft Visual C++ generated include file.
19 3
// Used by world_editor.rc
20 4
//
21 5
#define IDC_BROWSE                      3
......
327 311
#define ID_SAVPOS                       33482
328 312
#define ID_MISSION_COMPILER             33483
329 313
#define ID_NAME_DLG                     33484
314
#define ID_EDIT_EXECUTE_COMMAND			33485
330 315
#define ID_INDICATOR_ZONENAMENEL        0xE710
331 316
#define ID_INDICATOR_ZONENAMEREF        0xE711
332 317
#define ID_INDICATOR_COORDINATES        0xE712
......
335 320
#define ID_INDICATOR_INFO               59157
336 321
#define ID_INDICATOR_SELECTION          59158
337 322
#define ID_WINDOWS_PLUGINS              59170
323
#define ID_WINDOWS_PLUGIN_ACTIONS		59370
338 324

  
339 325
// Next default values for new objects
340 326
// 
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor/world_editor.cpp 2010-05-15 23:46:21.258455600 -0500
275 275

  
276 276
	// Load the plugins
277 277
	loadPlugins();
278
	pluginsActionSize = 0;
279
	for(uint x = 0; x < Plugins.size(); x++)
280
		if(pluginsActionSize < Plugins.at(x)->actionCount())
281
			pluginsActionSize = Plugins.at(x)->actionCount();
282

  
278 283

  
279 284
	splashScreen.addLine(string("Init the plugin menu"));
280 285
	
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor/world_editor.h 2010-05-15 23:46:30.730997400 -0500
79 79

  
80 80
	/// Vector of loaded plugins.
81 81
	std::vector<IPluginCallback*>	Plugins;
82
	int pluginsActionSize;
82 83

  
83 84
	/// list of primitives associated to plugin displayer
84 85
	std::map<std::string, IPrimitiveDisplayer*>	PrimitiveDisplayers;
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor/world_editor.rc 2010-05-15 01:20:07.428292300 -0500
1
//Microsoft Developer Studio generated resource script.
1
// Microsoft Visual C++ generated resource script.
2 2
//
3 3
#include "resource.h"
4 4

  
......
27 27
// TEXTINCLUDE
28 28
//
29 29

  
30
1 TEXTINCLUDE DISCARDABLE 
30
1 TEXTINCLUDE 
31 31
BEGIN
32 32
    "resource.h\0"
33 33
END
34 34

  
35
2 TEXTINCLUDE DISCARDABLE 
35
2 TEXTINCLUDE 
36 36
BEGIN
37 37
    "#include ""afxres.h""\r\n"
38 38
    "\0"
39 39
END
40 40

  
41
3 TEXTINCLUDE DISCARDABLE 
41
3 TEXTINCLUDE 
42 42
BEGIN
43 43
    "#define _AFX_NO_OLE_RESOURCES\r\n"
44 44
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
......
67 67

  
68 68
// Icon with lowest ID value placed first to ensure application icon
69 69
// remains consistent on all systems.
70
IDR_MAINFRAME           ICON    DISCARDABLE     "res\\world_editor.ico"
71
IDR_WORLDETYPE          ICON    DISCARDABLE     "res\\world_editor_doc.ico"
72
IDI_FOLDER_CLOSED       ICON    DISCARDABLE     "res\\folder_closed.ico"
73
IDI_POINT_OPENED        ICON    DISCARDABLE     "res\\point_opened.ico"
74
IDI_LINE_OPENED         ICON    DISCARDABLE     "res\\line_opened.ico"
75
IDI_ZONE_OPENED         ICON    DISCARDABLE     "res\\zone_opened.ico"
76
IDI_FOLDER_OPENED       ICON    DISCARDABLE     "res\\folder_opened.ico"
77
IDI_PROPERTY_CLOSED     ICON    DISCARDABLE     "res\\property_closed.ico"
78
IDI_ROOT_CLOSED         ICON    DISCARDABLE     "res\\root_closed.ico"
79
IDI_PROPERTY_OPENED     ICON    DISCARDABLE     "res\\property_opened.ico"
80
IDI_LINE_CLOSED         ICON    DISCARDABLE     "res\\line_closed.ico"
81
IDI_POINT_CLOSED        ICON    DISCARDABLE     "res\\point_closed.ico"
82
IDI_ZONE_CLOSED         ICON    DISCARDABLE     "res\\zone_closed.ico"
83
IDI_ROOT_OPENED         ICON    DISCARDABLE     "res\\root_opened.ico"
84
IDI_FOLDER_HIDDEN       ICON    DISCARDABLE     "res\\folder_hidden.ico"
85
IDI_LINE_HIDDEN         ICON    DISCARDABLE     "res\\line_hidden.ico"
86
IDI_POINT_HIDDEN        ICON    DISCARDABLE     "res\\point_hidden.ico"
87
IDI_PROPERTY_HIDDEN     ICON    DISCARDABLE     "res\\property_hidden.ico"
88
IDI_ROOT_HIDDEN         ICON    DISCARDABLE     "res\\root_hidden.ico"
89
IDI_ZONE_HIDDEN         ICON    DISCARDABLE     "res\\zone_hidden.ico"
90
IDI_ERROR_STRUCTURE     ICON    DISCARDABLE     "res\\erro.ico"
70
IDR_MAINFRAME           ICON                    "res\\world_editor.ico"
71
IDR_WORLDETYPE          ICON                    "res\\world_editor_doc.ico"
72
IDI_FOLDER_CLOSED       ICON                    "res\\folder_closed.ico"
73
IDI_POINT_OPENED        ICON                    "res\\point_opened.ico"
74
IDI_LINE_OPENED         ICON                    "res\\line_opened.ico"
75
IDI_ZONE_OPENED         ICON                    "res\\zone_opened.ico"
76
IDI_FOLDER_OPENED       ICON                    "res\\folder_opened.ico"
77
IDI_PROPERTY_CLOSED     ICON                    "res\\property_closed.ico"
78
IDI_ROOT_CLOSED         ICON                    "res\\root_closed.ico"
79
IDI_PROPERTY_OPENED     ICON                    "res\\property_opened.ico"
80
IDI_LINE_CLOSED         ICON                    "res\\line_closed.ico"
81
IDI_POINT_CLOSED        ICON                    "res\\point_closed.ico"
82
IDI_ZONE_CLOSED         ICON                    "res\\zone_closed.ico"
83
IDI_ROOT_OPENED         ICON                    "res\\root_opened.ico"
84
IDI_FOLDER_HIDDEN       ICON                    "res\\folder_hidden.ico"
85
IDI_LINE_HIDDEN         ICON                    "res\\line_hidden.ico"
86
IDI_POINT_HIDDEN        ICON                    "res\\point_hidden.ico"
87
IDI_PROPERTY_HIDDEN     ICON                    "res\\property_hidden.ico"
88
IDI_ROOT_HIDDEN         ICON                    "res\\root_hidden.ico"
89
IDI_ZONE_HIDDEN         ICON                    "res\\zone_hidden.ico"
90
IDI_ERROR_STRUCTURE     ICON                    "res\\erro.ico"
91 91

  
92 92
/////////////////////////////////////////////////////////////////////////////
93 93
//
94 94
// Bitmap
95 95
//
96 96

  
97
IDR_MAINFRAME           BITMAP  MOVEABLE PURE   "res\\Toolbar.bmp"
97
IDR_MAINFRAME           BITMAP                  "res\\Toolbar.bmp"
98 98

  
99 99
/////////////////////////////////////////////////////////////////////////////
100 100
//
101 101
// Toolbar
102 102
//
103 103

  
104
IDR_MAINFRAME TOOLBAR DISCARDABLE  16, 16
104
IDR_MAINFRAME TOOLBAR  16, 16
105 105
BEGIN
106 106
    BUTTON      ID_FILE_NEW
107 107
    BUTTON      ID_FILE_OPEN
......
163 163
// Menu
164 164
//
165 165

  
166
IDR_MAINFRAME MENU PRELOAD DISCARDABLE 
166
IDR_MAINFRAME MENU 
167 167
BEGIN
168 168
    POPUP "&File"
169 169
    BEGIN
......
234 234
        MENUITEM "Show / Hide C&ollisions\tO",  ID_VIEW_COLLISIONS
235 235
        MENUITEM "Show / Hide &PACS\tCTRL+P",   ID_VIEW_PACS
236 236
        MENUITEM SEPARATOR
237
        MENUITEM "Locate selected primitives\tALT+L", 
238
                                                ID_VIEW_LOCATESELECTEDPRIMITIVES
239

  
240
        MENUITEM "Locate selected primitives in tree\tALT+T", 
241
                                                ID_VIEW_LOCATESELECTEDPRIMITIVES_TREE
242

  
237
        MENUITEM "Locate selected primitives\tALT+L", ID_VIEW_LOCATESELECTEDPRIMITIVES
238
        MENUITEM "Locate selected primitives in tree\tALT+T", ID_VIEW_LOCATESELECTEDPRIMITIVES_TREE
243 239
    END
244 240
    POPUP "&Project"
245 241
    BEGIN
......
255 251
        MENUITEM "&Reset unique ID",            ID_PROJECT_RESETUNIQUEID
256 252
        MENUITEM "&Generate missing ID",        ID_PROJECT_GENERATENULLID
257 253
        MENUITEM "&Force ID uniqueness",        ID_PROJECT_CORRECT_ID
258
        MENUITEM "&Reset primitive configuration", 
259
                                                ID_PROJECT_RESET_PRIMITIVE_CONFIGURATION
260

  
254
        MENUITEM "&Reset primitive configuration", ID_PROJECT_RESET_PRIMITIVE_CONFIGURATION
261 255
    END
262 256
    POPUP "Windows"
263 257
    BEGIN
264 258
        MENUITEM "Primitive configuration",     ID_WINDOWS_PRIMITIVECONFIGURATION
265

  
266 259
    END
267 260
    POPUP "&Help"
268 261
    BEGIN
......
279 272
// Accelerator
280 273
//
281 274

  
282
IDR_DIALOG ACCELERATORS PRELOAD MOVEABLE PURE 
275
IDR_DIALOG ACCELERATORS 
283 276
BEGIN
284 277
    "F",            ID_FIND,                VIRTKEY, CONTROL, NOINVERT
285 278
    "G",            ID_GOTO,                VIRTKEY, CONTROL, NOINVERT
......
289 282
    "O",            ID_FILE_OPEN,           VIRTKEY, CONTROL, NOINVERT
290 283
    "P",            ID_VIEW_PACS,           VIRTKEY, CONTROL, NOINVERT
291 284
    "S",            ID_FILE_SAVE,           VIRTKEY, CONTROL, NOINVERT
292
    "T",            ID_VIEW_LOCATESELECTEDPRIMITIVES_TREE, VIRTKEY, ALT, 
293
                                                    NOINVERT
285
    "T",            ID_VIEW_LOCATESELECTEDPRIMITIVES_TREE, VIRTKEY, ALT, NOINVERT
294 286
    VK_F1,          ID_HELP_FINDER,         VIRTKEY, NOINVERT
295 287
    VK_F10,         ID_EDIT_RADIUS,         VIRTKEY, NOINVERT
296 288
    VK_F11,         ID_EDIT_ADD_POINT,      VIRTKEY, NOINVERT
......
306 298
    VK_RETURN,      ID_EDIT_PROPERTIES,     VIRTKEY, ALT, NOINVERT
307 299
END
308 300

  
309
IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE 
301
IDR_MAINFRAME ACCELERATORS 
310 302
BEGIN
311 303
    "A",            ID_EDIT_SELECT_ALL,     VIRTKEY, CONTROL, NOINVERT
312 304
    "C",            ID_EDIT_SELECT_CHILDREN, VIRTKEY, NOINVERT
......
330 322
    "R",            ID_EDIT_COLLAPSE,       VIRTKEY, NOINVERT
331 323
    "S",            ID_VIEW_SHOW,           VIRTKEY, NOINVERT
332 324
    "S",            ID_FILE_SAVE,           VIRTKEY, CONTROL, NOINVERT
333
    "T",            ID_VIEW_LOCATESELECTEDPRIMITIVES_TREE, VIRTKEY, ALT, 
334
                                                    NOINVERT
325
    "T",            ID_VIEW_LOCATESELECTEDPRIMITIVES_TREE, VIRTKEY, ALT, NOINVERT
335 326
    "V",            ID_EDIT_PASTE,          VIRTKEY, CONTROL, NOINVERT
336 327
    VK_BACK,        ID_EDIT_UNDO,           VIRTKEY, ALT, NOINVERT
337 328
    VK_DELETE,      ID_EDIT_DELETE,         VIRTKEY, NOINVERT
......
367 358
// Dialog
368 359
//
369 360

  
370
IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 235, 73
371
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
361
IDD_ABOUTBOX DIALOG  0, 0, 235, 73
362
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
372 363
CAPTION "About NeL World Editor"
373 364
FONT 8, "MS Sans Serif"
374 365
BEGIN
375 366
    ICON            IDR_MAINFRAME,IDC_STATIC,11,17,20,20
376
    LTEXT           "NeL World Editor Version 0.47",IDC_TITLE_VERSION,40,10,
377
                    96,8,SS_NOPREFIX
367
    LTEXT           "NeL World Editor Version 0.47",IDC_TITLE_VERSION,40,10,96,8,SS_NOPREFIX
378 368
    LTEXT           "Copyright Nevrax (C) 2005",IDC_STATIC,40,25,119,8
379 369
    DEFPUSHBUTTON   "OK",IDOK,178,8,50,14,WS_GROUP
380 370
    LTEXT           "Allocated Video Mem :",IDC_STATIC,15,43,73,16
381 371
    LTEXT           "Static",IDC_STATIC_VIDEO_MEM,97,43,87,16
382 372
END
383 373

  
384
IDD_CREATE_ELEMENT DIALOG DISCARDABLE  0, 0, 247, 47
385
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
374
IDD_CREATE_ELEMENT DIALOG  0, 0, 247, 47
375
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
386 376
CAPTION "Create Element"
387 377
FONT 8, "MS Sans Serif"
388 378
BEGIN
......
391 381
    EDITTEXT        IDC_EDIT_NAME,32,7,148,14,ES_AUTOHSCROLL
392 382
    LTEXT           "Name",IDC_STATIC,7,7,20,8
393 383
    LTEXT           "Type",IDC_STATIC,7,25,20,8
394
    COMBOBOX        IDC_COMBOTYPE,32,25,148,106,CBS_DROPDOWN | CBS_SORT | 
395
                    WS_VSCROLL | WS_TABSTOP
384
    COMBOBOX        IDC_COMBOTYPE,32,25,148,106,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
396 385
END
397 386

  
398
IDD_TOOLS_ZONE DIALOG DISCARDABLE  0, 0, 246, 278
399
STYLE WS_CHILD
387
IDD_TOOLS_ZONE DIALOG  0, 0, 246, 278
388
STYLE DS_SETFONT | WS_CHILD
400 389
FONT 8, "MS Sans Serif"
401 390
BEGIN
402
    COMBOBOX        IDC_CATTYPE1,7,7,83,65,CBS_DROPDOWNLIST | CBS_SORT | 
403
                    WS_VSCROLL | WS_TABSTOP
404
    COMBOBOX        IDC_CATVALUE1,94,7,83,66,CBS_DROPDOWNLIST | CBS_SORT | 
405
                    WS_VSCROLL | WS_TABSTOP
406
    COMBOBOX        IDC_CATTYPE2,7,26,83,65,CBS_DROPDOWNLIST | CBS_SORT | 
407
                    WS_VSCROLL | WS_TABSTOP
408
    COMBOBOX        IDC_CATVALUE2,94,26,83,66,CBS_DROPDOWNLIST | CBS_SORT | 
409
                    WS_VSCROLL | WS_TABSTOP
410
    COMBOBOX        IDC_CATTYPE3,7,46,83,65,CBS_DROPDOWNLIST | CBS_SORT | 
411
                    WS_VSCROLL | WS_TABSTOP
412
    COMBOBOX        IDC_CATVALUE3,94,46,83,66,CBS_DROPDOWNLIST | CBS_SORT | 
413
                    WS_VSCROLL | WS_TABSTOP
414
    COMBOBOX        IDC_CATTYPE4,7,66,83,65,CBS_DROPDOWNLIST | CBS_SORT | 
415
                    WS_VSCROLL | WS_TABSTOP
416
    COMBOBOX        IDC_CATVALUE4,94,66,83,66,CBS_DROPDOWNLIST | CBS_SORT | 
417
                    WS_VSCROLL | WS_TABSTOP
418
    CONTROL         "AND",IDC_AND2,"Button",BS_AUTORADIOBUTTON | WS_GROUP,
419
                    183,28,31,10
391
    COMBOBOX        IDC_CATTYPE1,7,7,83,65,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
392
    COMBOBOX        IDC_CATVALUE1,94,7,83,66,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
393
    COMBOBOX        IDC_CATTYPE2,7,26,83,65,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
394
    COMBOBOX        IDC_CATVALUE2,94,26,83,66,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
395
    COMBOBOX        IDC_CATTYPE3,7,46,83,65,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
396
    COMBOBOX        IDC_CATVALUE3,94,46,83,66,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
397
    COMBOBOX        IDC_CATTYPE4,7,66,83,65,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
398
    COMBOBOX        IDC_CATVALUE4,94,66,83,66,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
399
    CONTROL         "AND",IDC_AND2,"Button",BS_AUTORADIOBUTTON | WS_GROUP,183,28,31,10
420 400
    CONTROL         "OR",IDC_OR2,"Button",BS_AUTORADIOBUTTON,213,28,29,10
421
    CONTROL         "AND",IDC_AND3,"Button",BS_AUTORADIOBUTTON | WS_GROUP,
422
                    183,47,31,10
401
    CONTROL         "AND",IDC_AND3,"Button",BS_AUTORADIOBUTTON | WS_GROUP,183,47,31,10
423 402
    CONTROL         "OR",IDC_OR3,"Button",BS_AUTORADIOBUTTON,213,47,29,10
424
    CONTROL         "AND",IDC_AND4,"Button",BS_AUTORADIOBUTTON | WS_GROUP,
425
                    183,66,31,10
403
    CONTROL         "AND",IDC_AND4,"Button",BS_AUTORADIOBUTTON | WS_GROUP,183,66,31,10
426 404
    CONTROL         "OR",IDC_OR4,"Button",BS_AUTORADIOBUTTON,213,66,29,10
427 405
    GROUPBOX        "",IDC_STATIC,180,22,59,18,WS_GROUP
428 406
    GROUPBOX        "",IDC_STATIC,180,41,59,18,WS_GROUP
429 407
    GROUPBOX        "",IDC_STATIC,180,60,59,18,WS_GROUP
430
    CONTROL         "0?",IDC_ROT0,"Button",BS_AUTORADIOBUTTON | WS_GROUP,7,
431
                    83,23,10
408
    CONTROL         "0?",IDC_ROT0,"Button",BS_AUTORADIOBUTTON | WS_GROUP,7,83,23,10
432 409
    CONTROL         "90?",IDC_ROT90,"Button",BS_AUTORADIOBUTTON,31,83,27,10
433
    CONTROL         "180?",IDC_ROT180,"Button",BS_AUTORADIOBUTTON,59,83,31,
434
                    10
435
    CONTROL         "270?",IDC_ROT270,"Button",BS_AUTORADIOBUTTON,91,83,31,
436
                    10
437
    CONTROL         "Ran",IDC_ROTRANDOM,"Button",BS_AUTORADIOBUTTON,123,83,
438
                    29,10
439
    CONTROL         "Full Cycle",IDC_ROTCYCLE,"Button",BS_AUTORADIOBUTTON,
440
                    152,83,46,10
441
    CONTROL         "NoFlip",IDC_FLIPNO,"Button",BS_AUTORADIOBUTTON | 
442
                    WS_GROUP,7,94,36,10
443
    CONTROL         "Flip",IDC_FLIPYES,"Button",BS_AUTORADIOBUTTON,45,94,27,
444
                    10
445
    CONTROL         "Ran",IDC_FLIPRANDOM,"Button",BS_AUTORADIOBUTTON,74,94,
446
                    29,10
447
    CONTROL         "Full Cycle",IDC_FLIPCYCLE,"Button",BS_AUTORADIOBUTTON,
448
                    103,94,46,10
449
    CONTROL         "Random",IDC_RANDOM,"Button",BS_AUTOCHECKBOX | 
450
                    WS_TABSTOP,189,7,43,10
451
    CONTROL         "Not Propagate",IDC_NOT_PROPAGATE,"Button",
452
                    BS_AUTOCHECKBOX | WS_TABSTOP,177,95,62,10
453
    CONTROL         "Full Cycle",IDC_FULL_CYCLE,"Button",BS_AUTOCHECKBOX | 
454
                    WS_TABSTOP,189,16,46,10
455
    CONTROL         "Force",IDC_FORCE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
456
                    205,84,34,10
410
    CONTROL         "180?",IDC_ROT180,"Button",BS_AUTORADIOBUTTON,59,83,31,10
411
    CONTROL         "270?",IDC_ROT270,"Button",BS_AUTORADIOBUTTON,91,83,31,10
412
    CONTROL         "Ran",IDC_ROTRANDOM,"Button",BS_AUTORADIOBUTTON,123,83,29,10
413
    CONTROL         "Full Cycle",IDC_ROTCYCLE,"Button",BS_AUTORADIOBUTTON,152,83,46,10
414
    CONTROL         "NoFlip",IDC_FLIPNO,"Button",BS_AUTORADIOBUTTON | WS_GROUP,7,94,36,10
415
    CONTROL         "Flip",IDC_FLIPYES,"Button",BS_AUTORADIOBUTTON,45,94,27,10
416
    CONTROL         "Ran",IDC_FLIPRANDOM,"Button",BS_AUTORADIOBUTTON,74,94,29,10
417
    CONTROL         "Full Cycle",IDC_FLIPCYCLE,"Button",BS_AUTORADIOBUTTON,103,94,46,10
418
    CONTROL         "Random",IDC_RANDOM,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,189,7,43,10
419
    CONTROL         "Not Propagate",IDC_NOT_PROPAGATE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,177,95,62,10
420
    CONTROL         "Full Cycle",IDC_FULL_CYCLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,189,16,46,10
421
    CONTROL         "Force",IDC_FORCE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,205,84,34,10
457 422
END
458 423

  
459
IDD_SELECTZONE DIALOG DISCARDABLE  0, 0, 186, 95
460
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
424
IDD_SELECTZONE DIALOG  0, 0, 186, 95
425
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
461 426
CAPTION "Select Zone"
462 427
FONT 8, "MS Sans Serif"
463 428
BEGIN
464 429
    DEFPUSHBUTTON   "OK",IDOK,129,7,50,14
465 430
    PUSHBUTTON      "Cancel",IDCANCEL,129,74,50,14
466
    LISTBOX         IDC_LISTZONE,7,7,118,81,LBS_SORT | LBS_NOINTEGRALHEIGHT | 
467
                    WS_VSCROLL | WS_TABSTOP
431
    LISTBOX         IDC_LISTZONE,7,7,118,81,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
468 432
END
469 433

  
470
IDD_GENERATE DIALOG DISCARDABLE  0, 0, 186, 95
471
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
434
IDD_GENERATE DIALOG  0, 0, 186, 95
435
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
472 436
CAPTION "Generate"
473 437
FONT 8, "MS Sans Serif"
474 438
BEGIN
......
482 446
    EDITTEXT        IDC_EDITMAXX,33,49,40,14,ES_AUTOHSCROLL
483 447
    LTEXT           "MaxY",IDC_STATIC,7,71,19,8
484 448
    EDITTEXT        IDC_EDITMAXY,33,67,40,14,ES_AUTOHSCROLL
485
    COMBOBOX        IDC_COMBOMATERIAL,87,7,92,58,CBS_DROPDOWN | CBS_SORT | 
486
                    WS_VSCROLL | WS_TABSTOP
449
    COMBOBOX        IDC_COMBOMATERIAL,87,7,92,58,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
487 450
    LTEXT           "Zone Base X",IDC_STATIC,94,33,42,8
488 451
    EDITTEXT        IDC_EDITZONEBASEX,139,31,40,14,ES_AUTOHSCROLL
489 452
    LTEXT           "Zone Base Y",IDC_STATIC,93,52,42,8
490 453
    EDITTEXT        IDC_EDITZONEBASEY,139,50,40,14,ES_AUTOHSCROLL
491 454
END
492 455

  
493
IDD_MOVE DIALOG DISCARDABLE  0, 0, 186, 46
494
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
456
IDD_MOVE DIALOG  0, 0, 186, 46
457
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
495 458
CAPTION "Move In Cell"
496 459
FONT 8, "MS Sans Serif"
497 460
BEGIN
......
503 466
    EDITTEXT        IDC_EDITYOFFSET,49,23,40,14,ES_AUTOHSCROLL
504 467
END
505 468

  
506
IDD_EXPORT DIALOG DISCARDABLE  0, 0, 375, 316
507
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
469
IDD_EXPORT DIALOG  0, 0, 375, 316
470
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
508 471
CAPTION "Export To Client"
509 472
FONT 8, "MS Sans Serif"
510 473
BEGIN
......
514 477
    LTEXT           "Reference Zones Directory",IDC_STATIC,7,7,86,8
515 478
    PUSHBUTTON      "...",IDC_BUTTON_REFZONEDIR,166,16,13,14
516 479
    GROUPBOX        "Lighting",IDC_STATIC,195,280,118,30
517
    CONTROL         "Noise",IDC_RADIOLIGHTNOISE,"Button",BS_AUTORADIOBUTTON | 
518
                    WS_GROUP,203,292,34,10
519
    CONTROL         "Patch",IDC_RADIOLIGHTPATCH,"Button",BS_AUTORADIOBUTTON,
520
                    241,292,35,10
521
    CONTROL         "No",IDC_RADIOLIGHTNO,"Button",BS_AUTORADIOBUTTON,279,
522
                    292,25,10
480
    CONTROL         "Noise",IDC_RADIOLIGHTNOISE,"Button",BS_AUTORADIOBUTTON | WS_GROUP,203,292,34,10
481
    CONTROL         "Patch",IDC_RADIOLIGHTPATCH,"Button",BS_AUTORADIOBUTTON,241,292,35,10
482
    CONTROL         "No",IDC_RADIOLIGHTNO,"Button",BS_AUTORADIOBUTTON,279,292,25,10
523 483
    LTEXT           "Output Zones Directory",IDC_STATIC,7,33,74,8
524 484
    EDITTEXT        IDC_EDIT_OUTZONEDIR,7,42,153,14,ES_AUTOHSCROLL
525 485
    PUSHBUTTON      "...",IDC_BUTTON_OUTZONEDIR,166,42,13,14
......
542 502
    EDITTEXT        IDC_EDIT_ZONEMAX,321,255,40,14,ES_AUTOHSCROLL
543 503
    GROUPBOX        "Export Limiter",IDC_STATIC,195,245,172,27
544 504
    EDITTEXT        IDC_EDIT_REFIGDIR,7,80,153,14,ES_AUTOHSCROLL
545
    LTEXT           "Reference Instance Group Directory",IDC_STATIC,7,70,115,
546
                    8
505
    LTEXT           "Reference Instance Group Directory",IDC_STATIC,7,70,115,8
547 506
    PUSHBUTTON      "...",IDC_BUTTON_REFIGDIR,166,80,13,14
548 507
    LTEXT           "Output Instance Group Directory",IDC_STATIC,7,97,103,8
549 508
    EDITTEXT        IDC_EDIT_OUTIGDIR,7,105,153,14,ES_AUTOHSCROLL
......
557 516
    EDITTEXT        IDC_EDIT_OUTCMBDIR,197,42,153,14,ES_AUTOHSCROLL
558 517
    PUSHBUTTON      "...",IDC_BUTTON_OUTCMBDIR,355,42,13,14
559 518
    GROUPBOX        "",IDC_STATIC,191,1,182,61
560
    EDITTEXT        IDC_EDIT_REFADDITIONNALIGDIR,198,80,153,14,
561
                    ES_AUTOHSCROLL
562
    LTEXT           "Reference Instance Group Directory",IDC_STATIC,198,70,
563
                    115,8
519
    EDITTEXT        IDC_EDIT_REFADDITIONNALIGDIR,198,80,153,14,ES_AUTOHSCROLL
520
    LTEXT           "Reference Instance Group Directory",IDC_STATIC,198,70,115,8
564 521
    PUSHBUTTON      "...",IDC_BUTTON_REFADDITIONNALIGDIR,356,80,13,14
565
    LTEXT           "Output Instance Group Directory",IDC_STATIC,198,97,103,
566
                    8
567
    EDITTEXT        IDC_EDIT_OUTADDITIONNALIGDIR,198,105,153,14,
568
                    ES_AUTOHSCROLL
522
    LTEXT           "Output Instance Group Directory",IDC_STATIC,198,97,103,8
523
    EDITTEXT        IDC_EDIT_OUTADDITIONNALIGDIR,198,105,153,14,ES_AUTOHSCROLL
569 524
    PUSHBUTTON      "...",IDC_BUTTON_OUTADDITIONNALIGDIR,356,105,13,14
570 525
    GROUPBOX        "",IDC_STATIC,192,62,181,61
571
    CONTROL         "Export collisions",IDC_EXPORT_COLLISIONS,"Button",
572
                    BS_AUTOCHECKBOX | WS_TABSTOP,201,215,81,11
526
    CONTROL         "Export collisions",IDC_EXPORT_COLLISIONS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,201,215,81,11
573 527
    EDITTEXT        IDC_EDIT_DFNDIR,197,138,153,14,ES_AUTOHSCROLL
574 528
    LTEXT           "Dfn base directory",IDC_STATIC,197,128,58,8
575 529
    PUSHBUTTON      "...",IDC_BUTTON_DFNDIR,355,138,13,14
......
586 540
    PUSHBUTTON      "...",IDC_BUTTON_COLORMAPFILE,164,255,13,14
587 541
END
588 542

  
589
IDD_TYPEMANAGER DIALOG DISCARDABLE  0, 0, 186, 156
590
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
543
IDD_TYPEMANAGER DIALOG  0, 0, 186, 156
544
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
591 545
CAPTION "Type Manager"
592 546
FONT 8, "MS Sans Serif"
593 547
BEGIN
594 548
    DEFPUSHBUTTON   "OK",IDOK,7,135,50,14
595 549
    PUSHBUTTON      "Cancel",IDCANCEL,129,135,50,14
596
    LISTBOX         IDC_LISTTYPE,7,26,172,102,LBS_SORT | 
597
                    LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
550
    LISTBOX         IDC_LISTTYPE,7,26,172,102,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
598 551
    PUSHBUTTON      "Add Type",IDC_ADDTYPE,7,7,50,14
599 552
    PUSHBUTTON      "Remove Type",IDC_REMOVETYPE,68,7,50,14
600 553
    PUSHBUTTON      "Edit Type",IDC_EDITTYPE,129,7,50,14
601 554
END
602 555

  
603
IDD_TYPE DIALOG DISCARDABLE  0, 0, 186, 46
604
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
556
IDD_TYPE DIALOG  0, 0, 186, 46
557
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
605 558
CAPTION "Type"
606 559
FONT 8, "MS Sans Serif"
607 560
BEGIN
......
610 563
    LTEXT           "Name",IDC_STATIC,7,7,20,8
611 564
    LTEXT           "Color",IDC_STATIC,7,29,17,8
612 565
    EDITTEXT        IDC_EDITNAME,36,7,82,14,ES_AUTOHSCROLL
613
    CONTROL         "Color",IDC_BUTTONCOLOR,"Button",BS_OWNERDRAW | 
614
                    WS_TABSTOP,36,24,50,14
566
    CONTROL         "Color",IDC_BUTTONCOLOR,"Button",BS_OWNERDRAW | WS_TABSTOP,36,24,50,14
615 567
END
616 568

  
617
IDD_TYPESEL DIALOG DISCARDABLE  0, 0, 186, 95
618
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
569
IDD_TYPESEL DIALOG  0, 0, 186, 95
570
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
619 571
CAPTION "Select Type"
620 572
FONT 8, "MS Sans Serif"
621 573
BEGIN
622 574
    DEFPUSHBUTTON   "OK",IDOK,129,7,50,14
623 575
    PUSHBUTTON      "Cancel",IDCANCEL,129,74,50,14
624
    LISTBOX         IDC_LIST,7,7,117,81,LBS_SORT | LBS_NOINTEGRALHEIGHT | 
625
                    WS_VSCROLL | WS_TABSTOP
576
    LISTBOX         IDC_LIST,7,7,117,81,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
626 577
END
627 578

  
628
IDD_EXPORTCB DIALOG DISCARDABLE  0, 0, 310, 138
629
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
579
IDD_EXPORTCB DIALOG  0, 0, 310, 138
580
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
630 581
CAPTION "Export Callback"
631 582
FONT 8, "MS Sans Serif"
632 583
BEGIN
633 584
    PUSHBUTTON      "Cancel",IDCANCEL,7,117,296,14
634 585
    LTEXT           "Export Pass",IDC_PASSTEXT,7,7,296,8
635
    CONTROL         "Progress1",IDC_PROGRESS,"msctls_progress32",WS_BORDER,7,
636
                    18,296,14
637
    EDITTEXT        IDC_EDIT_INFO,7,39,296,73,ES_MULTILINE | ES_AUTOHSCROLL | 
638
                    WS_VSCROLL
586
    CONTROL         "Progress1",IDC_PROGRESS,"msctls_progress32",WS_BORDER,7,18,296,14
587
    EDITTEXT        IDC_EDIT_INFO,7,39,296,73,ES_MULTILINE | ES_AUTOHSCROLL | WS_VSCROLL
639 588
END
640 589

  
641
IDD_TOOLS_LOGIC DIALOG DISCARDABLE  0, 0, 178, 278
642
STYLE WS_CHILD
590
IDD_TOOLS_LOGIC DIALOG  0, 0, 178, 278
591
STYLE DS_SETFONT | WS_CHILD
643 592
FONT 8, "MS Sans Serif"
644 593
BEGIN
645 594
END
646 595

  
647
IDD_EDIT_STRING DIALOG DISCARDABLE  0, 0, 247, 47
648
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
596
IDD_EDIT_STRING DIALOG  0, 0, 247, 47
597
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
649 598
CAPTION "Edit name"
650 599
FONT 8, "MS Sans Serif"
651 600
BEGIN
......
656 605
END
657 606

  
658 607
IDD_LOADING DIALOGEX 0, 0, 281, 47
659
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
608
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
660 609
EXSTYLE WS_EX_TOOLWINDOW
661 610
CAPTION "NeL World Editor"
662 611
FONT 8, "MS Sans Serif", 0, 0, 0x1
663 612
BEGIN
664 613
    CONTROL         "Please Wait While Loading...",IDC_STATIC_TEXT_LOADING,
665 614
                    "Static",SS_LEFTNOWORDWRAP | WS_GROUP,5,5,269,8
666
    ICON            IDR_MAINFRAME,IDC_STATIC,5,20,20,20,SS_CENTERIMAGE | 
667
                    SS_RIGHTJUST | SS_REALSIZEIMAGE
668
    CONTROL         "Progress1",IDC_PROGRESS1,"msctls_progress32",WS_BORDER,
669
                    30,20,245,20
615
    ICON            IDR_MAINFRAME,IDC_STATIC,5,20,20,20,SS_CENTERIMAGE | SS_RIGHTJUST | SS_REALSIZEIMAGE
616
    CONTROL         "Progress1",IDC_PROGRESS1,"msctls_progress32",WS_BORDER,30,20,245,20
670 617
END
671 618

  
672
IDD_CUSTOM_SNAPSHOT DIALOG DISCARDABLE  0, 0, 147, 130
673
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
619
IDD_CUSTOM_SNAPSHOT DIALOG  0, 0, 147, 130
620
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
674 621
CAPTION "Snapshot"
675 622
FONT 8, "MS Sans Serif"
676 623
BEGIN
......
680 627
    EDITTEXT        IDC_HEIGHT,90,45,51,12,ES_AUTOHSCROLL
681 628
    LTEXT           "Width:",IDC_STATIC,15,30,70,13,SS_CENTERIMAGE
682 629
    LTEXT           "Height:",IDC_STATIC,15,45,70,12,SS_CENTERIMAGE
683
    CONTROL         "Keep bitmap ratio",IDC_KEEPRATIO,"Button",
684
                    BS_AUTOCHECKBOX | WS_TABSTOP,15,60,75,10
685
    CONTROL         "RGB",IDC_RGBA,"Button",BS_AUTORADIOBUTTON | WS_GROUP,5,
686
                    80,60,10
687
    CONTROL         "Grayscale",IDC_GRAY_SCALE,"Button",BS_AUTORADIOBUTTON,5,
688
                    90,60,10
689
    CONTROL         "Fixed size",IDC_FIXED_SIZE,"Button",BS_AUTORADIOBUTTON | 
690
                    WS_GROUP,5,5,60,10
691
    CONTROL         "Custom size",IDC_GRAY_SCALE2,"Button",
692
                    BS_AUTORADIOBUTTON,5,15,60,10
630
    CONTROL         "Keep bitmap ratio",IDC_KEEPRATIO,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,60,75,10
631
    CONTROL         "RGB",IDC_RGBA,"Button",BS_AUTORADIOBUTTON | WS_GROUP,5,80,60,10
632
    CONTROL         "Grayscale",IDC_GRAY_SCALE,"Button",BS_AUTORADIOBUTTON,5,90,60,10
633
    CONTROL         "Fixed size",IDC_FIXED_SIZE,"Button",BS_AUTORADIOBUTTON | WS_GROUP,5,5,60,10
634
    CONTROL         "Custom size",IDC_GRAY_SCALE2,"Button",BS_AUTORADIOBUTTON,5,15,60,10
693 635
END
694 636

  
695
IDD_PROJECT_SETTINGS DIALOG DISCARDABLE  0, 0, 254, 153
696
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
637
IDD_PROJECT_SETTINGS DIALOG  0, 0, 254, 153
638
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
697 639
CAPTION "Project Settings"
698 640
FONT 8, "MS Sans Serif"
699 641
BEGIN
......
702 644
    EDITTEXT        IDC_DATA_DIRECTORY,5,15,190,12,ES_AUTOHSCROLL
703 645
    LTEXT           "Data directory:",IDC_STATIC,5,5,50,10
704 646
    PUSHBUTTON      "Browse",IDC_BROWSE,200,15,50,14
705
    COMBOBOX        IDC_CONTEXT,5,45,105,85,CBS_DROPDOWNLIST | WS_VSCROLL | 
706
                    WS_TABSTOP
647
    COMBOBOX        IDC_CONTEXT,5,45,105,85,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
707 648
    LTEXT           "Context:",IDC_STATIC,5,35,50,10
708 649
END
709 650

  
710 651
IDD_PROPERTIES DIALOGEX 0, 0, 298, 121
711
STYLE WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
652
STYLE DS_SETFONT | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
712 653
CAPTION "Properties"
713 654
FONT 8, "MS Sans Serif", 0, 0, 0x1
714 655
BEGIN
......
716 657
    PUSHBUTTON      "&Cancel",IDCANCEL,124,105,50,15
717 658
    PUSHBUTTON      "&Update",IDUPDATE,240,105,50,15
718 659
    SCROLLBAR       IDC_SCROLLBAR_PROP,283,15,12,76,SBS_VERT
719
    CONTROL         "",IDC_PROPERTY_FRAME,"Static",SS_BLACKFRAME,0,0,297,103,
720
                    WS_EX_CLIENTEDGE
721
    CONTROL         "",IDC_FIRST_PROP,"Static",SS_BLACKFRAME | NOT 
722
                    WS_VISIBLE,6,6,273,19
660
    CONTROL         "",IDC_PROPERTY_FRAME,"Static",SS_BLACKFRAME,0,0,297,103,WS_EX_CLIENTEDGE
661
    CONTROL         "",IDC_FIRST_PROP,"Static",SS_BLACKFRAME | NOT WS_VISIBLE,6,6,273,19
723 662
END
724 663

  
725
IDD_SELECT_PRIMITIVE_BY_LOCATION DIALOG DISCARDABLE  0, 0, 172, 85
726
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
664
IDD_SELECT_PRIMITIVE_BY_LOCATION DIALOG  0, 0, 172, 85
665
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
727 666
CAPTION "Select a primitive by its location"
728 667
FONT 8, "MS Sans Serif"
729 668
BEGIN
......
738 677
    LTEXT           "Threshold :",IDC_STATIC,10,45,40,15,SS_CENTERIMAGE
739 678
END
740 679

  
741
IDD_FIND_PRIMITIVE DIALOG DISCARDABLE  0, 0, 349, 145
742
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
680
IDD_FIND_PRIMITIVE DIALOG  0, 0, 349, 145
681
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
743 682
CAPTION "Find a primitive..."
744 683
FONT 8, "MS Sans Serif"
745 684
BEGIN
......
750 689
    LTEXT           "",IDC_PRIMITIVE_NAME,7,104,335,34,SS_SUNKEN
751 690
    DEFPUSHBUTTON   "&Find Next",ID_FIND_NEXT,102,83,50,14
752 691
    PUSHBUTTON      "&Cancel",IDCANCEL,7,83,50,14
753
    CONTROL         "selection only",IDC_SELECTION,"Button",BS_AUTOCHECKBOX | 
754
                    WS_TABSTOP,57,65,59,10
692
    CONTROL         "selection only",IDC_SELECTION,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,57,65,59,10
755 693
    LTEXT           "Replace With :",IDC_STATIC,7,48,48,8
756 694
    EDITTEXT        IDC_REPLACE_TEXT,56,42,286,14,ES_AUTOHSCROLL
757 695
    PUSHBUTTON      "&Replace",ID_REPLACE,197,83,50,14
758 696
    PUSHBUTTON      "&ReplaceAll",ID_REPLACE_ALL,292,83,50,14
759 697
END
760 698

  
761
IDD_GOTO_POS DIALOG DISCARDABLE  0, 0, 142, 58
762
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
699
IDD_GOTO_POS DIALOG  0, 0, 142, 58
700
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
763 701
CAPTION "Goto position"
764 702
FONT 8, "MS Sans Serif"
765 703
BEGIN
......
769 707
    EDITTEXT        IDC_GOTO_POS_X,20,5,50,12,ES_AUTOHSCROLL
770 708
    LTEXT           "Y",IDC_STATIC,5,25,10,8
771 709
    EDITTEXT        IDC_GOTO_POS_Y,20,25,50,12,ES_AUTOHSCROLL
772
    CONTROL         "&zoom at position",IDC_CHECK_POS_ZOMM,"Button",
773
                    BS_AUTOCHECKBOX | WS_TABSTOP,5,45,70,10
710
    CONTROL         "&zoom at position",IDC_CHECK_POS_ZOMM,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,5,45,70,10
774 711
END
775 712

  
776
IDD_NAME DIALOG DISCARDABLE  0, 0, 483, 354
777
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
713
IDD_NAME DIALOG  0, 0, 483, 354
714
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
778 715
CAPTION "Name attribution"
779 716
FONT 8, "MS Sans Serif"
780 717
BEGIN
......
785 722
    EDITTEXT        IDC_NAME_EBOX_IG,162,34,151,12,ES_AUTOHSCROLL
786 723
    DEFPUSHBUTTON   "&Assign",ID_NAME_ASSIGN,217,52,50,14,WS_DISABLED
787 724
    EDITTEXT        IDC_NAME_FILTER,180,92,125,12,ES_AUTOHSCROLL
788
    LISTBOX         IDC_NAME_SEARCH,29,110,426,84,LBS_SORT | LBS_USETABSTOPS | 
789
                    LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
790
    LISTBOX         IDC_NAME_ID,29,220,426,78,LBS_SORT | LBS_USETABSTOPS | 
791
                    LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL | 
792
                    WS_TABSTOP
725
    LISTBOX         IDC_NAME_SEARCH,29,110,426,84,LBS_SORT | LBS_USETABSTOPS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
726
    LISTBOX         IDC_NAME_ID,29,220,426,78,LBS_SORT | LBS_USETABSTOPS | LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL | WS_TABSTOP
793 727
    GROUPBOX        "Assign name",IDC_STATIC,107,7,270,67
794 728
    LTEXT           "Generic name:",IDC_STATIC,111,17,47,8
795 729
    LTEXT           "In game name:",IDC_STATIC,111,36,48,8
......
801 735
END
802 736

  
803 737

  
804
#ifndef _MAC
805 738
/////////////////////////////////////////////////////////////////////////////
806 739
//
807 740
// Version
......
824 757
    BEGIN
825 758
        BLOCK "040904b0"
826 759
        BEGIN
827
            VALUE "Comments", "\0"
828
            VALUE "CompanyName", "Nevrax\0"
829
            VALUE "FileDescription", "NeL World Editor\0"
830
            VALUE "FileVersion", "0, 0, 0, 1\0"
831
            VALUE "InternalName", "world_editor\0"
832
            VALUE "LegalCopyright", "Nevrax Copyright (C) 2002\0"
833
            VALUE "LegalTrademarks", "\0"
834
            VALUE "OriginalFilename", "world_editor.exe\0"
835
            VALUE "PrivateBuild", "\0"
836
            VALUE "ProductName", "NeL World Editor\0"
837
            VALUE "ProductVersion", "0, 0, 0, 1\0"
838
            VALUE "SpecialBuild", "\0"
760
            VALUE "CompanyName", "Nevrax"
761
            VALUE "FileDescription", "NeL World Editor"
762
            VALUE "FileVersion", "0, 0, 0, 1"
763
            VALUE "InternalName", "world_editor"
764
            VALUE "LegalCopyright", "Nevrax Copyright (C) 2002"
765
            VALUE "OriginalFilename", "world_editor.exe"
766
            VALUE "ProductName", "NeL World Editor"
767
            VALUE "ProductVersion", "0, 0, 0, 1"
839 768
        END
840 769
    END
841 770
    BLOCK "VarFileInfo"
......
844 773
    END
845 774
END
846 775

  
847
#endif    // !_MAC
848

  
849 776

  
850 777
/////////////////////////////////////////////////////////////////////////////
851 778
//
......
853 780
//
854 781

  
855 782
#ifdef APSTUDIO_INVOKED
856
GUIDELINES DESIGNINFO DISCARDABLE 
783
GUIDELINES DESIGNINFO 
857 784
BEGIN
858 785
    IDD_ABOUTBOX, DIALOG
859 786
    BEGIN
......
925 852
// Cursor
926 853
//
927 854

  
928
IDC_MOVE                CURSOR  DISCARDABLE     "res\\move.cur"
929
IDC_ROTATE              CURSOR  DISCARDABLE     "res\\rotate.cur"
930
IDC_TURN                CURSOR  DISCARDABLE     "res\\turn.cur"
931
IDC_SCALE               CURSOR  DISCARDABLE     "res\\scale.cur"
932
IDC_ADD_POINT           CURSOR  DISCARDABLE     "res\\add_point.cur"
933
IDC_COPY                CURSOR  DISCARDABLE     "res\\copy.cur"
934
IDC_SELECT              CURSOR  DISCARDABLE     "res\\select.cur"
935
IDC_SELECT_COPY         CURSOR  DISCARDABLE     "res\\select_copy.cur"
936
IDC_INSERT_POINT        CURSOR  DISCARDABLE     "res\\insert_point.cur"
937
IDC_HAND                CURSOR  DISCARDABLE     "res\\hand.cur"
938
IDC_ZOOM                CURSOR  DISCARDABLE     "res\\zoom.cur"
939
IDC_RADIUS              CURSOR  DISCARDABLE     "res\\radius.cur"
855
IDC_MOVE                CURSOR                  "res\\move.cur"
856
IDC_ROTATE              CURSOR                  "res\\rotate.cur"
857
IDC_TURN                CURSOR                  "res\\turn.cur"
858
IDC_SCALE               CURSOR                  "res\\scale.cur"
859
IDC_ADD_POINT           CURSOR                  "res\\add_point.cur"
860
IDC_COPY                CURSOR                  "res\\copy.cur"
861
IDC_SELECT              CURSOR                  "res\\select.cur"
862
IDC_SELECT_COPY         CURSOR                  "res\\select_copy.cur"
863
IDC_INSERT_POINT        CURSOR                  "res\\insert_point.cur"
864
IDC_HAND                CURSOR                  "res\\hand.cur"
865
IDC_ZOOM                CURSOR                  "res\\zoom.cur"
866
IDC_RADIUS              CURSOR                  "res\\radius.cur"
940 867

  
941 868
/////////////////////////////////////////////////////////////////////////////
942 869
//
943 870
// String Table
944 871
//
945 872

  
946
STRINGTABLE PRELOAD DISCARDABLE 
873
STRINGTABLE 
947 874
BEGIN
948 875
    IDR_MAINFRAME           "NeL World Editor\n\nNeLWorldEditor\nNeL World Editor Files (*.worldedit)\n.worldedit\nWorldeditor.Document\nNeL World Editor Document"
949 876
END
950 877

  
951
STRINGTABLE PRELOAD DISCARDABLE 
878
STRINGTABLE 
952 879
BEGIN
953 880
    AFX_IDS_APP_TITLE       "NeL World Editor"
954 881
    AFX_IDS_IDLEMESSAGE     "Ready"
955 882
END
956 883

  
957
STRINGTABLE DISCARDABLE 
884
STRINGTABLE 
958 885
BEGIN
959 886
    ID_INDICATOR_ZONENAMENEL "                                   "
960 887
    ID_INDICATOR_ZONENAMEREF 
......
966 893
    ID_INDICATOR_SELECTION  "9999 selected primitives"
967 894
END
968 895

  
969
STRINGTABLE DISCARDABLE 
896
STRINGTABLE 
970 897
BEGIN
971 898
    ID_FILE_NEW             "Create a new document\nNew"
972 899
    ID_FILE_OPEN            "Open an existing document\nOpen (CTRL+O)"
......
979 906
    ID_FILE_PRINT_PREVIEW   "Display full pages\nPrint Preview"
980 907
END
981 908

  
982
STRINGTABLE DISCARDABLE 
909
STRINGTABLE 
983 910
BEGIN
984 911
    ID_APP_ABOUT            "Display program information, version number and copyright\nAbout"
985 912
    ID_APP_EXIT             "Quit the application; prompts to save documents\nExit"
986 913
    ID_HELP_FINDER          "List Help topics\nHelp Topics (F1)"
987 914
END
988 915

  
989
STRINGTABLE DISCARDABLE 
916
STRINGTABLE 
990 917
BEGIN
991 918
    ID_FILE_MRU_FILE1       "Open this document"
992 919
    ID_FILE_MRU_FILE2       "Open this document"
......
1006 933
    ID_FILE_MRU_FILE16      "Open this document"
1007 934
END
1008 935

  
1009
STRINGTABLE DISCARDABLE 
936
STRINGTABLE 
1010 937
BEGIN
1011 938
    ID_NEXT_PANE            "Switch to the next window pane\nNext Pane"
1012 939
    ID_PREV_PANE            "Switch back to the previous window pane\nPrevious Pane"
1013 940
END
1014 941

  
1015
STRINGTABLE DISCARDABLE 
942
STRINGTABLE 
1016 943
BEGIN
1017 944
    ID_WINDOW_SPLIT         "Split the active window into panes\nSplit"
1018 945
END
1019 946

  
1020
STRINGTABLE DISCARDABLE 
947
STRINGTABLE 
1021 948
BEGIN
1022 949
    ID_EDIT_CLEAR           "Erase the selection\nErase"
1023 950
    ID_EDIT_CLEAR_ALL       "Erase everything\nErase All"
......
1032 959
    ID_EDIT_REDO            "Redo the previously undone action\nRedo (Ctrl+Y)"
1033 960
END
1034 961

  
1035
STRINGTABLE DISCARDABLE 
962
STRINGTABLE 
1036 963
BEGIN
1037 964
    ID_VIEW_TOOLBAR         "Show or hide the toolbar\nToggle ToolBar"
1038 965
    ID_VIEW_STATUS_BAR      "Show or hide the status bar\nToggle StatusBar"
1039 966
END
1040 967

  
1041
STRINGTABLE DISCARDABLE 
968
STRINGTABLE 
1042 969
BEGIN
1043 970
    AFX_IDS_SCSIZE          "Change the window size"
1044 971
    AFX_IDS_SCMOVE          "Change the window position"
......
1049 976
    AFX_IDS_SCCLOSE         "Close the active window and prompts to save the documents"
1050 977
END
1051 978

  
1052
STRINGTABLE DISCARDABLE 
979
STRINGTABLE 
1053 980
BEGIN
1054 981
    AFX_IDS_SCRESTORE       "Restore the window to normal size"
1055 982
    AFX_IDS_SCTASKLIST      "Activate Task List"
1056 983
END
1057 984

  
1058
STRINGTABLE DISCARDABLE 
985
STRINGTABLE 
1059 986
BEGIN
1060 987
    AFX_IDS_PREVIEW_CLOSE   "Close print preview mode\nCancel Preview"
988
END
989

  
990
STRINGTABLE 
991
BEGIN
1061 992
    ID_WINDOWS_PLUGINS      "Menu to select betwen the different plugins \n Plugins"
1062 993
END
1063 994

  
1064
STRINGTABLE DISCARDABLE 
995
STRINGTABLE 
1065 996
BEGIN
1066 997
    ID_VIEW_GRID            "Show / hide grid\nShow / Hide grid (G)"
1067 998
    ID_MODE_LOGIC           "Logic Edition"
1068 999
    ID_MODE_ZONE            "Zone edition"
1069 1000
END
1070 1001

  
1071
STRINGTABLE DISCARDABLE 
1002
STRINGTABLE 
1072 1003
BEGIN
1073 1004
    ID_EDIT_PACS            "Show / hide PACS lines\nPACS (CTRL+P)"
1074 1005
    ID_VIEW_PACS            "Show / hide PACS lines\nPACS (CTRL+P)"
......
1081 1012
    ID_NAME_DLG             "Name generator\nName generator"
1082 1013
END
1083 1014

  
1084
STRINGTABLE DISCARDABLE 
1015
STRINGTABLE 
1085 1016
BEGIN
1086 1017
    ID_EDIT_TURN            "Turn selection\nTurn (F8)"
1087 1018
    ID_EDIT_SCALE           "Scale selection\nScale (F9)"
......
1089 1020
    ID_EDIT_ADD_POINT       "Add points in selection\nAdd points (F11)"
1090 1021
END
1091 1022

  
1092
STRINGTABLE DISCARDABLE 
1023
STRINGTABLE 
1093 1024
BEGIN
1094 1025
    ID_PROJECT_SETTINGS     "Project properties\nProperties (Alt+F7)"
1095 1026
    ID_EDIT_LOCK            "Edit current selection points\nEdit points (Space)"
......
1101 1032
    ID_EDIT_ROTATE          "Rotate selection\nRotate (F7)"
1102 1033
END
1103 1034

  
1104
STRINGTABLE DISCARDABLE 
1035
STRINGTABLE 
1105 1036
BEGIN
1106 1037
    ID_EDIT_DETAILS         "Show / hide details\nDetails (D)"
1107 1038
    ID_VIEW_SHOW            "Show selected primitives\nShow (S)"
......
1111 1042
    ID_EDIT_COLLAPSE        "Collapse selected nodes\nCollapse (R)"
1112 1043
END
1113 1044

  
1114
STRINGTABLE DISCARDABLE 
1045
STRINGTABLE 
1115 1046
BEGIN
1116 1047
    ID_VIEW_LANDSCAPE       "Show / hide landscapes\nShow / Hide landscapes (L)"
1117 1048
END
1118 1049

  
1119
STRINGTABLE DISCARDABLE 
1050
STRINGTABLE 
1120 1051
BEGIN
1121 1052
    ID_VIEW_PRIMITIVES      "Show / hide primitives\nShow / Hide primitives (P)"
1122 1053
    ID_VIEW_LAYERS          "Show / hide layers\nShow / Hide layers (Y)"
1123 1054
    ID_VIEW_GRIS            "Show / hide grid\nShow / Hide gris (G)"
1124 1055
END
1125 1056

  
1126
STRINGTABLE DISCARDABLE 
1057
STRINGTABLE 
1127 1058
BEGIN
1128 1059
    ID_EDIT_SELECT_BY_LOCATION 
1129 1060
                            "Select primitives by location CTRL+L\nSelect primitives by location (CTRL+L)"
......
1157 1088
// Menu
1158 1089
//
1159 1090

  
1160
IDR_MENU1 MENU DISCARDABLE 
1091
IDR_MENU1 MENU 
1161 1092
BEGIN
1162 1093
    POPUP "Primitive Configuration"
1163 1094
    BEGIN
1164 1095
        MENUITEM "&Select",                     ID_PRIMITIVECONFIGURATION_SELECT
1165

  
1166 1096
        MENUITEM "&Show",                       ID_PRIMITIVECONFIGURATION_SHOW
1167

  
1168 1097
        MENUITEM "&Hide",                       ID_PRIMITIVECONFIGURATION_HIDE
1169

  
1170 1098
    END
1171 1099
END
1172 1100

  
......
1177 1105
//
1178 1106

  
1179 1107
IDD_PRIMITIVE_CONFIGURATION DIALOGEX 0, 0, 238, 87
1180
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
1108
STYLE DS_SETFONT | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
1181 1109
EXSTYLE WS_EX_TOOLWINDOW
1182 1110
CAPTION "Primitive configuration"
1183 1111
FONT 8, "MS Sans Serif", 0, 0, 0x1
1184 1112
BEGIN
1185
    CONTROL         "List1",IDC_LIST,"SysListView32",LVS_REPORT | 
1186
                    LVS_SINGLESEL | LVS_NOSORTHEADER | WS_BORDER | 
1187
                    WS_TABSTOP,7,7,224,73
1113
    CONTROL         "List1",IDC_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,7,7,224,73
1188 1114
END
1189 1115

  
1190
IDD_SPLASHSCREEN DIALOG DISCARDABLE  0, 0, 186, 95
1191
STYLE WS_POPUP | WS_CAPTION
1116
IDD_SPLASHSCREEN DIALOG  0, 0, 186, 95
1117
STYLE DS_SETFONT | WS_POPUP | WS_CAPTION
1192 1118
CAPTION "World Edit Load"
1193 1119
FONT 8, "MS Sans Serif"
1194 1120
BEGIN
1195 1121
    LTEXT           "Static",IDC_LOAD_WORLD_EDIT,7,5,172,85,SS_SUNKEN
1196 1122
END
1197 1123

  
1198
IDD_DIRECTORY_SELECTOR DIALOG DISCARDABLE  0, 0, 282, 26
1199
STYLE DS_3DLOOK | DS_CONTROL | WS_CHILD | WS_CLIPSIBLINGS
1124
IDD_DIRECTORY_SELECTOR DIALOG  0, 0, 282, 26
1125
STYLE DS_SETFONT | DS_3DLOOK | DS_CONTROL | WS_CHILD | WS_CLIPSIBLINGS
1200 1126
FONT 8, "MS Sans Serif"
1201 1127
BEGIN
1202
    COMBOBOX        IDC_DIRLIST,54,7,216,234,CBS_DROPDOWNLIST | CBS_SORT | 
1203
                    WS_VSCROLL | WS_TABSTOP
1128
    COMBOBOX        IDC_DIRLIST,54,7,216,234,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
1204 1129
    LTEXT           "Previous dir:",IDC_STATIC,6,7,45,12,SS_CENTERIMAGE
1205 1130
END
1206 1131

  
......
1211 1136
//
1212 1137

  
1213 1138
#ifdef APSTUDIO_INVOKED
1214
GUIDELINES DESIGNINFO DISCARDABLE 
1139
GUIDELINES DESIGNINFO 
1215 1140
BEGIN
1216 1141
    IDD_PRIMITIVE_CONFIGURATION, DIALOG
1217 1142
    BEGIN
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor/world_editor_doc.cpp 2010-05-17 18:52:43.427128700 -0500
2238 2238
						theApp.Plugins.at(i-ID_WINDOWS_PLUGINS-1)->closePlugin();
2239 2239
					else
2240 2240
						theApp.Plugins.at(i-ID_WINDOWS_PLUGINS-1)->activatePlugin();
2241

  
2242 2241
				}
2243 2242
				else if (nCode == CN_UPDATE_COMMAND_UI)
2244 2243
				{
2245 2244
					// Update UI element state
2246 2245
					
2247
					if(theApp.Plugins.at(i-ID_WINDOWS_PLUGINS-1)->isActive())
2246
					if(theApp.Plugins.at(i-ID_WINDOWS_PLUGINS-1)->isActive()) {
2248 2247
						pCmdUI->SetCheck();
2249
					else
2248
					} else {
2250 2249
						pCmdUI->SetCheck(0);
2250
					}
2251 2251
					pCmdUI->Enable();
2252 2252
					
2253 2253
				}
2254 2254
				return TRUE;
2255 2255
			}
2256 2256
		}
2257
		if (nID >= ID_WINDOWS_PLUGIN_ACTIONS && nID < ID_WINDOWS_PLUGIN_ACTIONS + theApp.pluginsActionSize)
2258
		{
2259
			if (nCode == CN_COMMAND)
2260
			{
2261
				for (uint i = 0; i < theApp.Plugins.size(); i++)
2262
				{
2263
					if(theApp.Plugins.at(i)->isActive())
2264
						theApp.Plugins.at(i)->processAction(nID - ID_WINDOWS_PLUGIN_ACTIONS);
2265
				}
2266
			}
2267
		}
2257 2268
	}
2258 2269

  
2259 2270
	// If we didn't process the command, call the base class
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_fauna_graph_plugin/plugin.cpp 2010-05-16 00:40:25.861036300 -0500
96 96
	return false;
97 97
}
98 98

  
99
// ***************************************************************************
100
int CPlugin::actionCount()
101
{
102
	return 0;
103
}
104

  
105
//****************************************************************
106
bool CPlugin::processAction(uint actionID)
107
{
108
	return true;
109
}
110

  
99 111
//****************************************************************
100 112
void CPlugin::init(IPluginAccess *pluginAccess)
101 113
{
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_fauna_graph_plugin/plugin.h 2010-05-16 00:40:07.855006400 -0500
41 41
	virtual bool		isActive();
42 42
	virtual bool		activatePlugin();
43 43
	virtual bool		closePlugin();
44
	virtual int			actionCount();
45
	virtual bool		processAction(uint actionID);
44 46
	// from IPrimitiveDisplayer
45 47
	virtual void		drawPrimitive(const NLLIGO::IPrimitive *primitive, const TRenderContext &renderContext);
46 48
	IPluginAccess       *getPluginAccess() const { return _PluginAccess; }
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_graph_plugin/graph_plugin.cpp 2010-05-16 00:39:14.223938900 -0500
915 915
	return _PluginActive;
916 916
}
917 917

  
918
int CGraphPlugin::actionCount()
919
{
920
	return 0;
921
}
922

  
923
bool CGraphPlugin::processAction(uint actionID)
924
{
925
	return true;
926
}
927

  
918 928
void CGraphPlugin::unsetDlgGraph()
919 929
{
920 930
	_PluginActive=false;
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_graph_plugin/graph_plugin.h 2010-05-16 00:39:44.448667600 -0500
56 56

  
57 57
	virtual bool closePlugin();
58 58

  
59
	virtual int actionCount();
60

  
61
	virtual bool processAction(uint actionID);
62

  
59 63
	void			doSelection(const std::string&);
60 64
	void			refreshPrimitives();
61 65
	void			refreshMachine();
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_primitive_plugin/primitive_plugin.cpp 2010-05-16 00:38:27.151246500 -0500
59 59
	return true;
60 60
}
61 61

  
62
int			CPrimitivePlugin::actionCount()
63
{
64
	return 0;
65
}
66

  
67
bool		CPrimitivePlugin::processAction(uint actionID)
68
{
69
	return true;
70
}
71

  
62 72
std::string& CPrimitivePlugin::getName()
63 73
{
64 74
	static string name("Primitive displayer");
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_primitive_plugin/primitive_plugin.h 2010-05-16 00:38:00.427718000 -0500
47 47

  
48 48
	virtual bool		closePlugin();
49 49

  
50
	virtual int			actionCount();
51

  
52
	virtual bool		processAction(uint actionID);
53

  
50 54
	virtual std::string& getName();
51 55

  
52 56
	CPrimitivePlugin();
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_shard_monitor_plugin/DialogFlags.cpp 2010-05-17 18:48:02.448057600 -0500
357 357
//******************************************************************************************************
358 358
void CDialogFlags::OnClose()
359 359
{
360
	_Plugin->closePlugin();
360
	ShowWindow(FALSE);
361
	//_Plugin->closePlugin();
361 362
//	CDialog::OnClose();
362 363
}
363 364

  
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_shard_monitor_plugin/plugin.cpp 2010-05-17 23:48:50.224331400 -0500
62 62
	nlinfo("Starting shard monitor plugin...");
63 63
	
64 64
	_DialogFlag = new CDialogFlags(NULL);
65
	_DialogCommand = new CDialogCommand(NULL);
65 66
	m_Initialized = false;
66 67
	_Client = NULL;
67 68
	_Root = NULL;
......
658 659
		_DialogFlag->init(this);
659 660
		_DialogFlag->Create(IDD_DIALOG_FLAGS, CWnd::FromHandle(_PluginAccess->getMainWindow()->m_hWnd));		
660 661
		_DialogFlag->ShowWindow(TRUE);
661
		
662

  
663
		// initialize the command window and add all the commands to the dropdown
664
		_DialogCommand->init(this);
665
		_DialogCommand->Create(IDD_DIALOG_EXECUTE_COMMAND);		
666
		CComboBox *command = ((CComboBox*)_DialogCommand->GetDlgItem(IDC_EXECUTE_COMMAND));
667
		for(int i=0;i<sizeof(AdminCommands) / sizeof(AdminCommands[0]);i++)
668
			command->AddString(AdminCommands[i].command);
669
		command->SetCurSel(0);
670
		char *commands = new char[255];
671
		command->GetLBText(0,commands);
672
		const uint nbCommands = sizeof(AdminCommands) / sizeof(AdminCommands[0]);
673
		for(uint i=0;i<nbCommands;i++)
674
			if(strcmp(commands,AdminCommands[i].command) == 0)
675
				((CStatic*)_DialogCommand->GetDlgItem(IDC_EXECUTE_COMMAND_ARGS_LABEL))->SetWindowText(AdminCommands[i].args);
676

  
662 677
		// Read the host where to connect in the client.cfg file		
663 678
		_PluginActive=true;
664 679
		updateConnectionState();		
......
673 688
		{			
674 689
			NLMISC::CSheetId::init(false);
675 690
		}
676
	
691
		addMenus(_PluginAccess);
677 692
	}
678 693
	catch (Exception &e)
679 694
	{
......
681 696
	}
682 697
}
683 698

  
699
void CPlugin::addMenus(IPluginAccess *pluginAccess)
700
{
701
	pluginAccess->getMainWindow()->GetMenu()->AppendMenu (MF_STRING, 59370, "Commands");
702
}
703

  
684 704
// ***************************************************************************
685 705

  
686 706
void CPlugin::connectDisconnect()
......
725 745
			
726 746
			try
727 747
			{
748
				if(!_SHost.find(':') > 0) _SHost += ":48888";
728 749
				CInetAddress addr(_SHost+":48888");
729 750
				_Client->connect(addr);
730 751
			}
......
1275 1296
	s.LoadString(strID);
1276 1297
	return s;
1277 1298
}
1299

  
1300
int CPlugin::actionCount()
1301
{
1302
	return 5;
1303
}
1304

  
1305
bool CPlugin::processAction(uint actionID)
1306
{
1307
	const std::list<NLLIGO::IPrimitive*> &currSel = _PluginAccess->getCurrentSelection();
1308
	if (currSel.size() == 1)
1309
	{
1310
		switch(actionID)
1311
		{
1312
			case 0:
1313
				_DialogCommand->ShowWindow(TRUE);
1314
				break;
1315
			default:
1316
				break;
1317
		}
1318
	}	
1319
	return true;
1320
}
1321

  
1322
bool CPlugin::executeCommand()
1323
{
1324
	CMessage msgout;
1325
	string command;
1326
	string entityID;
1327
	string args;
1328
	const std::list<NLLIGO::IPrimitive*> &currSel = _PluginAccess->getCurrentSelection();
1329
	msgout.setType("EXEC_COMMAND");
1330
	
1331
	currSel.front()->getPropertyByName("entity id",entityID);
1332
	
1333
	char *cargs = new char[255];
1334
	int index = ((CComboBox*)_DialogCommand->GetDlgItem(IDC_EXECUTE_COMMAND))->GetCurSel();
1335
	((CComboBox*)_DialogCommand->GetDlgItem(IDC_EXECUTE_COMMAND))->GetLBText(index,cargs);
1336
	command = cargs;
1337
	((CEdit*)_DialogCommand->GetDlgItem(IDC_EXECUTE_COMMAND_ARGS))->GetLine(0,cargs);
1338
	args = cargs;
1339
	
1340
	msgout.serial(command + " " + entityID + " " + args);
1341
	_Client->send(msgout);
1342

  
1343
	return true;
1344
}
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_shard_monitor_plugin/plugin.h 2010-05-17 22:53:30.725466900 -0500
1 1

  
2 2
#include "DialogFlags.h"
3
#include "DialogCommand.h"
3 4
#include "nel/misc/sheet_id.h"
4 5
#include "nel/misc/rgba.h"
5 6
#include "nel/misc/entity_id.h"
6 7
#include "../world_editor/display.h"
7 8
#include "../../../../common/src/game_share/mode_and_behaviour.h"
8

  
9
#include "nel/misc/bit_mem_stream.h"
10
#include "game_share/generic_xml_msg_mngr.h"
9 11

  
10 12
#define REGKEY_BASE_PATH "Software\\Nevrax\\nel\\world_editor_shard_monitor_plugin"
11 13

  
14
//extern CGenericXmlMsgHeaderManager	 GenericMsgHeaderMngr;
15

  
12 16
// 
13 17
struct CServerParams
14 18
{
......
57 61

  
58 62
	virtual bool		closePlugin();
59 63

  
64
	virtual int			actionCount();
65

  
66
	virtual bool		processAction(uint actionID);
67

  
68
	virtual bool		executeCommand();
69

  
60 70
	virtual std::string& getName();
61 71

  
62 72
	void setEntityDisplayMode(TEntityDisplayMode dm);
......
87 97

  
88 98
	// set current connection related msg
89 99
	void				setConnectionMsg(const CConnectionMsg &cm) { _ConnectionMsg = cm; }
90

  
91 100
private:
92 101

  
93 102
	/// An entity entry
......
135 144
	// \name Overload for IPluginCallback
136 145
	virtual void		init(IPluginAccess *pluginAccess);
137 146

  
147
	// Add dynamic menu system for running commands
148
	void CPlugin::addMenus(IPluginAccess *pluginAccess);
149

  
138 150
	/// The current region has changed.
139 151
	virtual void		primitiveChanged(const NLLIGO::IPrimitive *root);
140 152

  
......
160 172

  
161 173
	/// The plug-in dialog.
162 174
	CDialogFlags	*_DialogFlag;
175
	CDialogCommand	*_DialogCommand;
163 176

  
164 177
	/// The network callback
165 178
	NLNET::CCallbackClient *_Client;
179
	NLNET::CCallbackClient *_suClient;
166 180

  
167 181
	CConnectionMsg			_ConnectionMsg;	
168 182

  
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_shard_monitor_plugin/resource.h 2010-05-17 22:11:10.149154200 -0500
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.
13
//
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/>.
16

  
17 1
//{{NO_DEPENDENCIES}}
18
// Microsoft Developer Studio generated include file.
2
// Microsoft Visual C++ generated include file.
19 3
// Used by world_editor_shard_monitor_plugin.rc
20 4
//
21 5
#define IDS_CONNECT                     1
......
39 23
#define IDD_DIALOG_LOAD                 108
40 24
#define IDR_ENTITY_ICONS_TGA            112
41 25
#define IDD_DIALOG_LOGIN                113
26
#define IDD_DIALOG_EXECUTE_COMMAND      114
42 27
#define IDC_CHECK_FLAG_00               1000
43 28
#define IDC_CHECK_FLAG_01               1001
44 29
#define IDC_CHECK_FLAG_02               1002
......
109 94
#define IDC_PASSWORD_TEXT               1093
110 95
#define IDC_LOGIN                       1095
111 96
#define IDC_PASSWORD                    1096
97
#define IDC_EXECUTE_COMMAND             1097
98
#define IDC_EXECUTE_COMMAND_ARGS        1098
99
#define IDC_SPLIT1                      1099
100
#define IDC_EXECUTE_COMMAND_ARGS_LABEL  1100
112 101
#define ID_BUTTON40001                  40001
113 102
#define ID_BUTTON40002                  40002
114 103
#define ID_BUTTON40003                  40003
104
#define ID_EXECUTE_COMMAND              40004
115 105

  
116 106
// Next default values for new objects
117 107
// 
118 108
#ifdef APSTUDIO_INVOKED
119 109
#ifndef APSTUDIO_READONLY_SYMBOLS
120
#define _APS_NEXT_RESOURCE_VALUE        114
110
#define _APS_NEXT_RESOURCE_VALUE        116
121 111
#define _APS_NEXT_COMMAND_VALUE         40004
122
#define _APS_NEXT_CONTROL_VALUE         1097
112
#define _APS_NEXT_CONTROL_VALUE         1101
123 113
#define _APS_NEXT_SYMED_VALUE           101
124 114
#endif
125 115
#endif
ryzom/code/ryzom/tools/leveldesign/world_editor/world_editor_shard_monitor_plugin/world_editor_shard_monitor_plugin.rc 2010-05-17 23:20:40.681695100 -0500
1
//Microsoft Developer Studio generated resource script.
1
// Microsoft Visual C++ generated resource script.
2 2
//
3 3
#include "resource.h"
4 4

  
......
13 13
#undef APSTUDIO_READONLY_SYMBOLS
14 14

  
15 15
/////////////////////////////////////////////////////////////////////////////
16
// French (France) resources
16
// English (U.S.) resources
17 17

  
18
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
18
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
19 19
#ifdef _WIN32
20
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
20
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
21 21
#pragma code_page(1252)
22 22
#endif //_WIN32
23 23

  
24
#ifdef APSTUDIO_INVOKED
25 24
/////////////////////////////////////////////////////////////////////////////
26 25
//
27
// TEXTINCLUDE
26
// Dialog
28 27
//
29 28

  
30
1 TEXTINCLUDE DISCARDABLE 
31
BEGIN
32
    "resource.h\0"
29
IDD_DIALOG_EXECUTE_COMMAND DIALOGEX 0, 0, 316, 95
30
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
31
CAPTION "Dialog"
32
FONT 8, "MS Shell Dlg", 400, 0, 0x1
33
BEGIN
34
    DEFPUSHBUTTON   "OK",IDOK,205,74,50,14
35
    PUSHBUTTON      "Cancel",IDCANCEL,259,74,50,14
36
    COMBOBOX        IDC_EXECUTE_COMMAND,7,7,158,120,CBS_DROPDOWNLIST | CBS_SORT | CBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
37
    EDITTEXT        IDC_EXECUTE_COMMAND_ARGS,7,28,302,17,ES_AUTOHSCROLL
38
    LTEXT           "",IDC_EXECUTE_COMMAND_ARGS_LABEL,7,50,302,13
33 39
END
34 40

  
35
2 TEXTINCLUDE DISCARDABLE 
36
BEGIN
37
    "#include ""afxres.h""\r\n"
38
    "\0"
39
END
40 41

  
41
3 TEXTINCLUDE DISCARDABLE 
42
/////////////////////////////////////////////////////////////////////////////
43
//
44
// DESIGNINFO
45
//
46

  
47
#ifdef APSTUDIO_INVOKED
48
GUIDELINES DESIGNINFO 
42 49
BEGIN
43
    "\r\n"
44
    "\0"
50
    IDD_DIALOG_EXECUTE_COMMAND, DIALOG
51
    BEGIN
52
        LEFTMARGIN, 7
53
        RIGHTMARGIN, 309
54
        TOPMARGIN, 7
... This diff was truncated because it exceeds the maximum size that can be displayed.