From 496b8638e0515907168544d6909e13a72398fe3a Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 30 Oct 1995 07:58:27 +0000 Subject: [PATCH] Initial revision --- v7/src/microcode/os2pm.scm | 1023 ++++++++++++++++++++++++++++++++++ v7/src/microcode/os2pmcon.h | 52 ++ v7/src/microcode/os2pmcon.rc | 67 +++ 3 files changed, 1142 insertions(+) create mode 100644 v7/src/microcode/os2pm.scm create mode 100644 v7/src/microcode/os2pmcon.h create mode 100644 v7/src/microcode/os2pmcon.rc diff --git a/v7/src/microcode/os2pm.scm b/v7/src/microcode/os2pm.scm new file mode 100644 index 000000000..f980191b4 --- /dev/null +++ b/v7/src/microcode/os2pm.scm @@ -0,0 +1,1023 @@ +#| -*-Scheme-*- + +$Id: os2pm.scm,v 1.1 1995/10/30 07:57:55 cph Exp $ + +Copyright (c) 1995 Massachusetts Institute of Technology + +This material was developed by the Scheme project at the Massachusetts +Institute of Technology, Department of Electrical Engineering and +Computer Science. Permission to copy this software, to redistribute +it, and to use it for any purpose is granted, subject to the following +restrictions and understandings. + +1. Any copy made of this software must include this copyright notice +in full. + +2. Users of this software agree to make their best efforts (a) to +return to the MIT Scheme project any improvements or extensions that +they make, so that these may be included in future releases; and (b) +to inform MIT of noteworthy uses of this software. + +3. All materials developed as a consequence of the use of this +software shall duly acknowledge such use, in accordance with the usual +standards of acknowledging credit in academic research. + +4. MIT has made no warrantee or representation that the operation of +this software will be error-free, and MIT is under no obligation to +provide any services, by way of maintenance, update, or otherwise. + +5. In conjunction with products arising from the use of this material, +there shall be no use of the name of the Massachusetts Institute of +Technology nor of any adaptation thereof in any advertising, +promotional, or sales literature without prior written consent from +MIT in each case. |# + +;;;; Program to generate OS/2 PM interface code. + +;;; The Scheme OS/2 Presentation Manager interface is implemented in +;;; its own thread, which means that all operations involving the +;;; interface must by encoded into messages and communicated to the PM +;;; thread through its message queue. This is reasonably +;;; straightforward, but the overhead for implementing a single +;;; operation is daunting: in addition to the procedure that performs +;;; the operation, the implementer must also write two additional +;;; procedures, three function prototypes, one or two message-type +;;; declarations, one or two message-structure declarations, and one +;;; or two case statements in the message dispatch. The purpose of +;;; this file is to generate all of the overhead code automatically +;;; from a simple interface definition; the implementer supplies the +;;; definition and the operation's procedure, and this program takes +;;; care of the rest of the details. + +;;; The bulk of this file is the program to parse the interface +;;; specifications and to generate the appropriate code. The +;;; specifications themselves appear on the last page of the file. + +;;; To generate the output files, just load this file. The output +;;; files will be written into the working directory. + +(declare (usual-integrations)) + +(load-option 'HASH-TABLE) +(load-option 'FORMAT) + +;;;; Syntax + +(define-macro (define-pm-procedure name . clauses) + (let ((external-name (if (pair? name) (car name) name)) + (internal-name (if (pair? name) (cadr name) name))) + `(BEGIN + (HASH-TABLE/PUT! PM-PROCEDURES ',external-name + (MAKE-PMP (TRANSLATE-NAME ',external-name) + (TRANSLATE-NAME ',internal-name) + ,(let ((clause (assq 'VALUE clauses))) + (if clause + (let ((val (cadr clause))) + (if (symbol? val) + (if (eq? val 'SYNC) + `',val + `(TRANSLATE-TYPE/NAME ',`((ID ,val) ,val))) + `(TRANSLATE-TYPE/NAME ',val))) + '#F)) + ,(let ((args + (let ((clause (assq 'ARGUMENTS clauses))) + (if (not clause) + (error "ARGUMENTS clause is required:" name)) + (cdr clause)))) + `(CONS (TRANSLATE-TYPE/NAME + ',(if (symbol? (car args)) + `((ID ,(car args)) ,(car args)) + (car args))) + (LIST ,@(map (lambda (arg) + `(TRANSLATE-TYPE/NAME ',arg)) + (cdr args))))))) + ',external-name))) + +(define (translate-type/name tn) + (cond ((and (pair? tn) + (pair? (cdr tn)) + (null? (cddr tn))) + (list (translate-type (car tn)) + (translate-name (cadr tn)))) + ((and (pair? tn) + (pair? (cdr tn)) + (pair? (cddr tn)) + (null? (cdddr tn))) + (list (translate-type (car tn)) + (translate-name (cadr tn)) + (translate-name (caddr tn)))) + (else + (error "Ill-formed type/name pair:" tn)))) + +(define (translate-type type) + (cond ((string? type) + type) + ((symbol? type) + (let ((abbrev (hash-table/get type-abbreviations type #f))) + (if abbrev + (translate-type abbrev) + (symbol->string type)))) + ((and (pair? type) + (or (string? (car type)) + (symbol? (car type))) + (pair? (cdr type)) + (null? (cddr type))) + (if (eq? (car type) 'ID) + type + (list (if (or (string? (car type)) + (memq (car type) '(POINTER ARRAY))) + (car type) + (symbol->string (car type))) + (translate-type (cadr type))))) + ((and (pair? type) + (eq? (car type) 'ARRAY) + (pair? (cdr type)) + (pair? (cddr type)) + (and (exact-integer? (caddr type)) + (positive? (caddr type))) + (null? (cdddr type))) + (list (car type) + (translate-type (cadr type)) + (number->string (caddr type)))) + (else + (error "Ill-formed type:" type)))) + +(define (translate-name name) + (cond ((string? name) + name) + ((symbol? name) + (symbol->string name)) + (else + (error "Ill-formed name:" name)))) + +(define (define-type-abbreviation name type) + (hash-table/put! type-abbreviations name type)) + +(define type-abbreviations + (make-eq-hash-table)) + +(define-type-abbreviation 'boolean 'int) +(define-type-abbreviation 'uchar '(unsigned char)) +(define-type-abbreviation 'ushort '(unsigned short)) +(define-type-abbreviation 'uint '(unsigned int)) +(define-type-abbreviation 'ulong '(unsigned long)) + +(define (id-type? type) (and (pair? type) (eq? (car type) 'ID))) +(define-integrable id-type-name cadr) + +(define (pointer-type? type) (and (pair? type) (eq? (car type) 'POINTER))) +(define (array-type? type) (and (pair? type) (eq? (car type) 'ARRAY))) +(define-integrable subtype cadr) + +(define (array-dimension type) + (and (pair? (cddr type)) + (caddr type))) + +(define (variable-length-array? arg) + (let ((type (pmp-arg-type arg))) + (and (array-type? type) + (not (array-dimension type))))) + +;;;; ID Types + +(define (define-id internal-root external-root) + (hash-table/put! id-external-roots + internal-root + (symbol->string external-root))) + +(define (id-internal-root type) + (symbol->string (id-type-name type))) + +(define (id-external-root type) + (hash-table/get id-external-roots (id-type-name type) #f)) + +(define id-external-roots + (make-eq-hash-table)) + +(define (id-external-type type) + (list (id-external-root type) "_t")) + +(define (id-internal-type type) + (if (eq? (id-type-name type) 'QID) + (id-external-type type) + (list (id-internal-root type) "_t *"))) + +(define-integrable (id-internal-name arg) + (pmp-arg-name arg)) + +(define (id-external-name arg) + (if (eq? (id-type-name (pmp-arg-type arg)) 'QID) + (pmp-arg-name arg) + (list (pmp-arg-name arg) "_id"))) + +(define (id-internal-expression arg) + (let ((type (pmp-arg-type arg))) + (if (eq? (id-type-name type) 'QID) + (id-external-name arg) + (list "(" + (id-external-root type) + "_to_" + (id-internal-root type) + " (" + (id-external-name arg) + "))")))) + +(define (id-external-expression arg) + (let ((type (pmp-arg-type arg))) + (if (eq? (id-type-name type) 'QID) + (id-internal-name arg) + (list "(" + (string-upcase (id-internal-root type)) + "_ID (" + (id-internal-name arg) + "))")))) + +(define (id-qid-expression arg) + (let ((type (pmp-arg-type arg))) + (if (eq? (id-type-name type) 'QID) + (id-internal-name arg) + (list "(" + (string-upcase (id-internal-root type)) + "_QID (" + (id-internal-name arg) + "))")))) + +(define-id 'QID 'QID) +(define-id 'WINDOW 'WID) +(define-id 'PS 'PSID) +(define-id 'BITMAP 'BID) + +;;;; PM Procedures + +(define pm-procedures + (make-eq-hash-table)) + +(define-structure pmp + (root-name #f read-only #t) + (internal-name #f read-only #t) + (value #f read-only #t) + (arguments #f read-only #t)) + +(define-integrable pmp-arg-type car) +(define-integrable pmp-arg-name cadr) +(define-integrable (pmp-value? pmp) (pair? (pmp-value pmp))) +(define-integrable (pmp-sync? pmp) (eq? (pmp-value pmp) 'SYNC)) + +(define (pmp-arg-size-name arg) + (and (not (null? (cddr arg))) + (caddr arg))) + +(define (pmp-request-struct-name pmp) + (list "sm_" (pmp-root-name pmp) "_request_t")) + +(define (pmp-reply-struct-name pmp) + (list "sm_" (pmp-root-name pmp) "_reply_t")) + +(define (pmp-request-message-name pmp) + (list "mt_" (pmp-root-name pmp) "_request")) + +(define (pmp-reply-message-name pmp) + (list "mt_" (pmp-root-name pmp) "_reply")) + +(define (pmp-external-name pmp) + (list "OS2_" (pmp-root-name pmp))) + +(define (pmp-request-handler-name pmp) + (list "handle_" (pmp-root-name pmp) "_request")) + +(define (for-each-pmp procedure) + (for-each procedure + (sort (hash-table/datum-list pm-procedures) + (lambda (x y) + (string " (arg-name arg #f) ")")) + +(define (val-type pmp external?) + (if (pmp-value? pmp) + (arg-type (pmp-value pmp) external?) + "void")) + +(define (arg-declarator arg external?) + (list (arg-type arg external?) + " " + (arg-name arg external?))) + +(define (arg-declarators args external? names?) + (if (null? args) + "(void)" + (let ((do-arg + (lambda (arg) + (if names? + (arg-declarator arg external?) + (arg-type arg external?))))) + (cons* "(" + (do-arg (car args)) + (let loop ((args (cdr args))) + (if (null? args) + (list ")") + (cons* ", " + (do-arg (car args)) + (loop (cdr args))))))))) + +(define (arg-type arg external?) + (let ((type (pmp-arg-type arg))) + (if (id-type? type) + (if external? + (id-external-type type) + (id-internal-type type)) + (arg-type-1 type)))) + +(define (arg-type-1 type) + (if (pair? type) + (case (car type) + ((POINTER ARRAY) + (list (arg-type-1 (subtype type)) " *")) + (else + (list (car type) " " (arg-type-1 (subtype type))))) + type)) + +(define (arg-name arg external?) + (let ((name (pmp-arg-name arg))) + (if (id-type? (pmp-arg-type arg)) + (if external? + (id-external-name arg) + (id-internal-name arg)) + (pmp-arg-name arg)))) + +;;;; Top-Level Output + +(define (generate-file filename per-pmp) + (call-with-output-file filename + (lambda (port) + (let ((time (get-decoded-time))) + (format port + file-header-format-string + (decoded-time/date-string time) + (decoded-time/time-string time) + (current-user-name) + (decoded-time/year time))) + (for-each-pmp (lambda (pmp) (print (per-pmp pmp) port)))))) + +(define file-header-format-string + "/* -*-C-*- + +**** Do not edit this file. It was generated by a program, +**** on ~A at ~A by ~a. + +Copyright (c) ~A Massachusetts Institute of Technology + +This material was developed by the Scheme project at the Massachusetts +Institute of Technology, Department of Electrical Engineering and +Computer Science. Permission to copy this software, to redistribute +it, and to use it for any purpose is granted, subject to the following +restrictions and understandings. + +1. Any copy made of this software must include this copyright notice +in full. + +2. Users of this software agree to make their best efforts (a) to +return to the MIT Scheme project any improvements or extensions that +they make, so that these may be included in future releases; and (b) +to inform MIT of noteworthy uses of this software. + +3. All materials developed as a consequence of the use of this +software shall duly acknowledge such use, in accordance with the usual +standards of acknowledging credit in academic research. + +4. MIT has made no warrantee or representation that the operation of +this software will be error-free, and MIT is under no obligation to +provide any services, by way of maintenance, update, or otherwise. + +5. In conjunction with products arising from the use of this material, +there shall be no use of the name of the Massachusetts Institute of +Technology nor of any adaptation thereof in any advertising, +promotional, or sales literature without prior written consent from +MIT in each case. */ +") + +(define (write-message-types-file) + (generate-file "os2pm-mt.h" generate-message-types)) + +(define (write-external-declarations-file) + (generate-file "os2pm-ed.h" + (lambda (pmp) + (list #\newline + (generate-prototype pmp #t))))) + +(define (write-internal-declarations-file) + (generate-file "os2pm-id.h" + (lambda (pmp) + (list #\newline + (generate-struct-definitions pmp) + #\newline + (generate-handler-prototype pmp) + #\newline + (generate-prototype pmp #f))))) + +(define (write-message-initializers-file) + (generate-file "os2pm-mi.h" generate-message-initializers)) + +(define (write-dispatch-cases-file) + (generate-file "os2pm-dc.h" generate-dispatch-case)) + +(define (write-request-procedures-file) + (generate-file "os2pm-rp.h" + (lambda (pmp) + (list #\newline + (generate-request-procedure pmp) + #\newline + (generate-request-handler pmp))))) + +(define (write-all-files) + (write-message-types-file) + (write-external-declarations-file) + (write-internal-declarations-file) + (write-message-initializers-file) + (write-dispatch-cases-file) + (write-request-procedures-file)) + +;;;; Interface Definitions + +(define-pm-procedure pm_synchronize + (value sync) + (arguments qid)) + +(define-pm-procedure (window_open open_window) + (value ("wid_t" wid)) + (arguments qid + (qid_t event_qid) + (ulong flags) + ("HMODULE" module) + (ulong id) + (ulong style) + ((array (const char)) title))) + +(define-pm-procedure (window_close close_window) + (arguments window)) + +(define-pm-procedure (window_show show_window) + (arguments window (boolean showp))) + +(define-pm-procedure (window_move_cursor move_cursor) + (arguments window (short x) (short y))) + +(define-pm-procedure (window_shape_cursor shape_cursor) + (arguments window (ushort width) (ushort height) (ushort style))) + +(define-pm-procedure (window_show_cursor enable_cursor) + (arguments window (boolean showp))) + +(define-pm-procedure window_scroll + (arguments window + (short xl) + (short xh) + (short yl) + (short yh) + (short x_delta) + (short y_delta))) + +(define-pm-procedure window_invalidate + (arguments window (short xl) (short xh) (short yl) (short yh))) + +(define-pm-procedure window_set_grid + (arguments window (ushort x) (ushort y))) + +(define-pm-procedure window_activate + (arguments window)) + +;;; window_pos + +(define-pm-procedure (window_set_pos set_window_pos) + (arguments window (short x) (short y))) + +;;; window_size +;;; window_frame_size + +(define-pm-procedure (window_set_size set_window_size) + (arguments window (ushort x) (ushort y))) + +(define-pm-procedure window_focusp + (value (boolean focusp)) + (arguments window)) + +(define-pm-procedure (window_set_state set_window_state) + (arguments window (window_state_t state))) + +(define-pm-procedure (window_set_title set_window_title) + (arguments window ((array (const char)) title))) + +(define-pm-procedure (window_update_frame update_frame_window) + (arguments window (ushort flags))) + +(define-pm-procedure create_memory_ps + (value ps) + (arguments qid)) + +(define-pm-procedure destroy_memory_ps + (arguments ps)) + +(define-pm-procedure create_bitmap + (value bitmap) + (arguments ps (ushort width) (ushort height))) + +(define-pm-procedure destroy_bitmap + (arguments bitmap)) + +;;; ps_set_bitmap + +(define-pm-procedure ps_bitblt + (arguments ((id ps) target) + ((id ps) source) + (long npoints) + ((array "POINTL" 4) points npoints) + (long rop) + (ulong options))) + +(define-pm-procedure ps_draw_text + (arguments ps + (short x) + (short y) + ((array (const char)) data size) + (ushort size))) + +(define-pm-procedure ps_text_width + (value (ushort width)) + (arguments ps + ((array (const char)) data size) + (ushort size))) + +(define-pm-procedure ps_get_font_metrics + (value ((pointer font_metrics_t) metrics)) + (arguments ps)) + +(define-pm-procedure ps_clear + (arguments ps (short xl) (short xh) (short yl) (short yh))) + +(define-pm-procedure ps_set_font_internal + (value ((pointer font_metrics_t) metrics)) + (arguments ps + (ushort id) + ((array (const char)) name))) + +(define-pm-procedure ps_set_colors + (arguments ps ("COLOR" foreground) ("COLOR" background))) + +(define-pm-procedure ps_move_gcursor + (arguments ps (short x) (short y))) + +(define-pm-procedure ps_draw_line + (arguments ps (short x) (short y))) + +(define-pm-procedure ps_draw_point + (arguments ps (short x) (short y))) + +(define-pm-procedure ps_poly_line + (value sync) + (arguments ps + (ulong npoints) + ((pointer "POINTL") points))) + +(define-pm-procedure ps_poly_line_disjoint + (value sync) + (arguments ps + (ulong npoints) + ((pointer "POINTL") points))) + +(define-pm-procedure ps_set_line_type + (arguments ps (long type))) + +(define-pm-procedure ps_set_mix + (arguments ps (long mix))) + +(define-pm-procedure ps_query_caps + (value sync) + (arguments ps (long start) (long count) ((pointer long) values))) + +(define-pm-procedure ps_set_clip_rectangle + (arguments ps (short xl) (short xh) (short yl) (short yh))) + +(define-pm-procedure ps_reset_clip_rectangle + (arguments ps)) + +(define-pm-procedure get_bitmap_parameters + (value sync) + (arguments bitmap ((pointer "BITMAPINFOHEADER") params))) + +(define-pm-procedure ps_get_bitmap_bits + (value (ulong length)) + (arguments ps + (ulong start) + (ulong length) + ((pointer "BYTE") data) + ((pointer "BITMAPINFO2") info))) + +(define-pm-procedure ps_set_bitmap_bits + (value (ulong length)) + (arguments ps + (ulong start) + (ulong length) + ((pointer "BYTE") data) + ((pointer "BITMAPINFO2") info))) + +(define-pm-procedure clipboard_write_text + (value sync) + (arguments qid ((pointer (const char)) text))) + +(define-pm-procedure clipboard_read_text + (value ((pointer (const char)) text)) + (arguments qid)) + +(define-pm-procedure menu_create + (value ("HWND" menu)) + (arguments qid ("HWND" owner) (ushort style) (ushort id))) + +(define-pm-procedure menu_destroy + (arguments qid ("HWND" menu))) + +(define-pm-procedure menu_insert_item + (value (ushort position)) + (arguments qid + ("HWND" menu) + (ushort position) + (ushort style) + (ushort attributes) + (ushort id) + ("HWND" submenu) + ((pointer char) text))) + +(define-pm-procedure menu_remove_item + (value (ushort length)) + (arguments qid + ("HWND" menu) + (ushort id) + (ushort submenup) + (ushort deletep))) + +(define-pm-procedure menu_get_item + (value ((pointer "MENUITEM") item)) + (arguments qid + ("HWND" menu) + (ushort id) + (ushort submenup))) + +(define-pm-procedure menu_n_items + (value (ushort length)) + (arguments qid ("HWND" menu))) + +(define-pm-procedure menu_nth_item_id + (value (ushort id)) + (arguments qid ("HWND" menu) (ushort position))) + +(define-pm-procedure menu_get_item_attributes + (value (ushort attributes)) + (arguments qid + ("HWND" menu) + (ushort id) + (ushort submenup) + (ushort mask))) + +(define-pm-procedure menu_set_item_attributes + (arguments qid + ("HWND" menu) + (ushort id) + (ushort submenup) + (ushort mask) + (ushort attributes))) + +(define-pm-procedure window_handle_from_id + (value ("HWND" child)) + (arguments qid ("HWND" parent) (ulong id))) + +(define-pm-procedure window_load_menu + (value ("HWND" menu)) + (arguments window ("HMODULE" module) (ulong id))) + +(define-pm-procedure window_font_dialog + (value ((pointer (const char)) spec)) + (arguments window ((pointer (const char)) title))) + +(write-all-files) \ No newline at end of file diff --git a/v7/src/microcode/os2pmcon.h b/v7/src/microcode/os2pmcon.h new file mode 100644 index 000000000..c60539cbc --- /dev/null +++ b/v7/src/microcode/os2pmcon.h @@ -0,0 +1,52 @@ +/* -*-C-*- + +$Id: os2pmcon.h,v 1.1 1995/10/30 07:58:12 cph Exp $ + +Copyright (c) 1995 Massachusetts Institute of Technology + +This material was developed by the Scheme project at the Massachusetts +Institute of Technology, Department of Electrical Engineering and +Computer Science. Permission to copy this software, to redistribute +it, and to use it for any purpose is granted, subject to the following +restrictions and understandings. + +1. Any copy made of this software must include this copyright notice +in full. + +2. Users of this software agree to make their best efforts (a) to +return to the MIT Scheme project any improvements or extensions that +they make, so that these may be included in future releases; and (b) +to inform MIT of noteworthy uses of this software. + +3. All materials developed as a consequence of the use of this +software shall duly acknowledge such use, in accordance with the usual +standards of acknowledging credit in academic research. + +4. MIT has made no warrantee or representation that the operation of +this software will be error-free, and MIT is under no obligation to +provide any services, by way of maintenance, update, or otherwise. + +5. In conjunction with products arising from the use of this material, +there shall be no use of the name of the Massachusetts Institute of +Technology nor of any adaptation thereof in any advertising, +promotional, or sales literature without prior written consent from +MIT in each case. */ + +/* Resource IDs for OS/2 PM Console Window */ + +#define ID_PMCON_RESOURCES 2 + +#define IDM_FILE 1 +#define IDM_EDIT 2 +#define IDM_OPTIONS 3 +#define IDM_HELP 4 + +#define IDM_EXIT 10 + +#define IDM_CUT 20 +#define IDM_COPY 21 +#define IDM_PASTE 22 + +#define IDM_FONT 30 + +#define IDM_ABOUT 40 diff --git a/v7/src/microcode/os2pmcon.rc b/v7/src/microcode/os2pmcon.rc new file mode 100644 index 000000000..53978d80c --- /dev/null +++ b/v7/src/microcode/os2pmcon.rc @@ -0,0 +1,67 @@ +/* -*-C-*- + +$Id: os2pmcon.rc,v 1.1 1995/10/30 07:58:27 cph Exp $ + +Copyright (c) 1995 Massachusetts Institute of Technology + +This material was developed by the Scheme project at the Massachusetts +Institute of Technology, Department of Electrical Engineering and +Computer Science. Permission to copy this software, to redistribute +it, and to use it for any purpose is granted, subject to the following +restrictions and understandings. + +1. Any copy made of this software must include this copyright notice +in full. + +2. Users of this software agree to make their best efforts (a) to +return to the MIT Scheme project any improvements or extensions that +they make, so that these may be included in future releases; and (b) +to inform MIT of noteworthy uses of this software. + +3. All materials developed as a consequence of the use of this +software shall duly acknowledge such use, in accordance with the usual +standards of acknowledging credit in academic research. + +4. MIT has made no warrantee or representation that the operation of +this software will be error-free, and MIT is under no obligation to +provide any services, by way of maintenance, update, or otherwise. + +5. In conjunction with products arising from the use of this material, +there shall be no use of the name of the Massachusetts Institute of +Technology nor of any adaptation thereof in any advertising, +promotional, or sales literature without prior written consent from +MIT in each case. */ + +/* Resource IDs for OS/2 PM Console Window */ + +#include +#include "os2pmcon.h" + +MENU ID_PMCON_RESOURCES +{ + SUBMENU "~File", IDM_FILE + { + MENUITEM "~Exit", IDM_EXIT + } + SUBMENU "~Edit", IDM_EDIT + { + MENUITEM "Cu~t\tShift+Delete", IDM_CUT, 0, MIA_DISABLED + MENUITEM "~Copy\tCtrl+Insert", IDM_COPY, 0, MIA_DISABLED + MENUITEM "~Paste\tShift+Insert", IDM_PASTE + } + SUBMENU "~Options", IDM_OPTIONS + { + MENUITEM "Set ~font...", IDM_FONT + } + SUBMENU "~Help", IDM_HELP + { + MENUITEM "~Product information...", IDM_ABOUT + } +} + +ACCELTABLE ID_PMCON_RESOURCES +{ + VK_DELETE, IDM_CUT, AF_VIRTUALKEY | AF_SHIFT + VK_INSERT, IDM_COPY, AF_VIRTUALKEY | AF_CONTROL + VK_INSERT, IDM_PASTE, AF_VIRTUALKEY | AF_SHIFT +} -- 2.25.1