The R Project SVN R

Rev

Rev 21104 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21104 Rev 28991
Line 76... Line 76...
76
#include <ctype.h>
76
#include <ctype.h>
77
#include <math.h>
77
#include <math.h>
78
 
78
 
79
 
79
 
80
#include <commdlg.h>
80
#include <commdlg.h>
-
 
81
#include <richedit.h>
81
 
82
 
82
#ifdef __MWERKS__
83
#ifdef __MWERKS__
83
	/* Metrowerks Codewarrior Cross-Platform C/C++ Compiler */
84
	/* Metrowerks Codewarrior Cross-Platform C/C++ Compiler */
84
	#define COMPILER 32
85
	#define COMPILER 32
85
#endif
86
#endif
Line 248... Line 249...
248
	mousefn	mousemove;	/* mouse was moved */
249
	mousefn	mousemove;	/* mouse was moved */
249
	mousefn	mousedrag;	/* mouse dragged (button is down) */
250
	mousefn	mousedrag;	/* mouse dragged (button is down) */
250
	mousefn	mouserepeat;	/* mouse-down timer auto repeat */
251
	mousefn	mouserepeat;	/* mouse-down timer auto repeat */
251
 
252
 
252
	dropfn drop;		/* drag-and-drop function */
253
	dropfn drop;		/* drag-and-drop function */
-
 
254
    
-
 
255
	actionfn focus;
253
  };
256
  };
254
 
257
 
255
 
258
 
256
/*  Useful definitions.  */
259
/*  Useful definitions.  */
257
 
260
 
Line 307... Line 310...
307
  PROTECTED void  finish_contexts(void);
310
  PROTECTED void  finish_contexts(void);
308
 
311
 
309
/* Object management. */
312
/* Object management. */
310
 
313
 
311
  PROTECTED object  new_object(int kind, HANDLE handle, object parent);
314
  PROTECTED object  new_object(int kind, HANDLE handle, object parent);
-
 
315
  PROTECTED object  tree_search(object top, HANDLE handle, int id, int key);
312
  PROTECTED object  find_object(HANDLE handle, int id, int key);
316
  PROTECTED object  find_object(HANDLE handle, int id, int key);
313
  PROTECTED void    move_to_front(object obj);
317
  PROTECTED void    move_to_front(object obj);
314
  PROTECTED void    apply_to_list(object first, actionfn fn);
318
  PROTECTED void    apply_to_list(object first, actionfn fn);
315
 
319
 
316
  #define find_by_handle(h) find_object(h, 0, 0)
320
  #define find_by_handle(h) find_object(h, 0, 0)
317
  #define find_by_id(id)    find_object(0, id, 0)
321
  #define find_by_id(id)    find_object(0, id, 0)
318
  #define find_by_key(key)  find_object(0, 0, key)
322
  #define find_by_key(base, key)  tree_search(base, 0, 0, key)
319
 
323
 
320
/* Object refcounts and deletion. */
324
/* Object refcounts and deletion. */
321
 
325
 
322
  PROTECTED void  decrease_refcount(object obj);
326
  PROTECTED void  decrease_refcount(object obj);
323
  PROTECTED void  increase_refcount(object obj);
327
  PROTECTED void  increase_refcount(object obj);
Line 326... Line 330...
326
 
330
 
327
/* Menu event management. */
331
/* Menu event management. */
328
 
332
 
329
  PROTECTED void  adjust_menu(WPARAM wParam);
333
  PROTECTED void  adjust_menu(WPARAM wParam);
330
  PROTECTED void  handle_menu_id(WPARAM wParam);
334
  PROTECTED void  handle_menu_id(WPARAM wParam);
331
  PROTECTED void  handle_menu_key(WPARAM wParam);
335
  PROTECTED int  handle_menu_key(WPARAM wParam);
332
 
336
 
333
/* Control event management. */
337
/* Control event management. */
334
 
338
 
335
  PROTECTED void   handle_control(HWND hwnd, UINT message);
339
  PROTECTED void   handle_control(HWND hwnd, UINT message);
336
  PROTECTED object find_valid_sibling(object obj);
340
  PROTECTED object find_valid_sibling(object obj);
337
 
341
 
-
 
342
/* Dialog event management */
-
 
343
 
-
 
344
  PROTECTED void handle_findreplace(HWND hwnd, LPFINDREPLACE pfr);
-
 
345
  PROTECTED HWND get_modeless();
-
 
346
 
338
/* Drawing context management. */
347
/* Drawing context management. */
339
 
348
 
340
  PROTECTED void  add_context(object obj, HDC dc, HGDIOBJ old);
349
  PROTECTED void  add_context(object obj, HDC dc, HGDIOBJ old);
341
  PROTECTED HDC   get_context(object obj);
350
  PROTECTED HDC   get_context(object obj);
342
  PROTECTED void  remove_context(object obj);
351
  PROTECTED void  remove_context(object obj);