home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume1 / touchup2.5 / part05 / command.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-12  |  4.8 KB  |  185 lines

  1.  
  2. /**************************************************************************
  3.    Touchup a bitmap graphics editor for the Sun Workstation running SunView
  4.    Copyright (c) 1988 by Raymond Kreisel
  5.    1/22/88 @ Suny Stony Brook
  6.  
  7.    This program may be redistributed without fee as long as this copyright
  8.    notice is intact.
  9.  
  10. ==> PLEASE send comments and bug reports to one of the following addresses:
  11.  
  12.        Ray Kreisel
  13.        CS Dept., SUNY at Stony Brook, Stony Brook NY 11794
  14.  
  15.        UUCP: {allegra, philabs, pyramid, research}!sbcs!rayk   
  16.        ARPA-Internet: rayk@sbcs.sunysb.edu            
  17.        CSnet: rayk@suny-sb
  18.        (If nobody is home at any of the above addresses try:
  19.         S72QKRE@TOWSONVX.BITNET                    )
  20.  
  21.  "If I get home before daylight, I just might get some sleep tonight...."
  22.  
  23. **************************************************************************/
  24.  
  25. /**************************************************************************
  26.     file: command.c
  27.     purpose: This file contains the icon data for the command icons
  28.         in the command menu of the righthand side of the main window
  29.  
  30.     modifications:
  31.         date:    Tue Mar 22 22:04:58 EST 1988
  32.         author:    rayk
  33.         changes:add comments
  34. **************************************************************************/
  35. #include <pixrect/pixrect_hs.h>
  36.  
  37.  
  38. static short command1_data[] = {
  39. #include "laso.cicon.pat"
  40. };
  41. static mpr_static(command1_pr, 48, 48, 1, command1_data);
  42.  
  43. static short command2_data[] = {
  44. #include "circle_h.cicon.pat"
  45. };
  46. static mpr_static(command2_pr, 48, 48, 1, command2_data);
  47.  
  48. static short command3_data[] = {
  49. #include "draw.cicon.pat"
  50. };
  51. static mpr_static(command3_pr, 48, 48, 1, command3_data);
  52.  
  53. static short command4_data[] = {
  54. #include "line.cicon.pat"
  55. };
  56. static mpr_static(command4_pr, 48, 48, 1, command4_data);
  57.  
  58. static short command5_data[] = {
  59. #include "mag.cicon.pat"
  60. };
  61. static mpr_static(command5_pr, 48, 48, 1, command5_data);
  62.  
  63. static short command6_data[] = {
  64. #include "ffill.cicon.pat"
  65. };
  66. static mpr_static(command6_pr, 48, 48, 1, command6_data);
  67.  
  68. static short command7_data[] = {
  69. #include "oval_h.cicon.pat"
  70. };
  71. static mpr_static(command7_pr, 48, 48, 1, command7_data);
  72.  
  73. static short command8_data[] = {
  74. #include "poly_f.cicon.pat"
  75. };
  76. static mpr_static(command8_pr, 48, 48, 1, command8_data);
  77.  
  78. static short command9_data[] = {
  79. #include "poly_h.cicon.pat"
  80. };
  81. static mpr_static(command9_pr, 48, 48, 1, command9_data);
  82.  
  83. static short command10_data[] = {
  84. #include "rectan_f.cicon.pat"
  85. };
  86. static mpr_static(command10_pr, 48, 48, 1, command10_data);
  87.  
  88. static short command11_data[] = {
  89. #include "rectan_h.cicon.pat"
  90. };
  91. static mpr_static(command11_pr, 48, 48, 1, command11_data);
  92.  
  93. static short command12_data[] = {
  94. #include "text.cicon.pat"
  95. };
  96. static mpr_static(command12_pr, 48, 48, 1, command12_data);
  97.  
  98. static short command13_data[] = {
  99. #include "sel_reg.cicon.pat"
  100. };
  101. static mpr_static(command13_pr, 48, 48, 1, command13_data);
  102.  
  103. static short command14_data[] = {
  104. #include "sel_point.cicon.pat"
  105. };
  106. static mpr_static(command14_pr, 48, 48, 1, command14_data);
  107.  
  108. static short command15_data[] = {
  109. #include "paint.cicon.pat"
  110. };
  111. static mpr_static(command15_pr, 48, 48, 1, command15_data);
  112.  
  113. static short command16_data[] = {
  114. #include "erase.cicon.pat"
  115. };
  116. static mpr_static(command16_pr, 48, 48, 1, command16_data);
  117.  
  118. /*
  119.  * SELECTED REGION COMMANDS
  120.  */
  121.  
  122. static short reg_command1_data[] = {
  123. #include "cut.cicon.pat"
  124. };
  125. static mpr_static(reg_command1_pr, 48, 48, 1, reg_command1_data);
  126.  
  127. static short reg_command2_data[] = {
  128. #include "flip_hor.cicon.pat"
  129. };
  130. static mpr_static(reg_command2_pr, 48, 48, 1, reg_command2_data);
  131.  
  132. static short reg_command3_data[] = {
  133. #include "flip_ver.cicon.pat"
  134. };
  135. static mpr_static(reg_command3_pr, 48, 48, 1, reg_command3_data);
  136.  
  137. static short reg_command4_data[] = {
  138. #include "inverse.cicon.pat"
  139. };
  140. static mpr_static(reg_command4_pr, 48, 48, 1, reg_command4_data);
  141.  
  142. static short reg_command5_data[] = {
  143. #include "copy.cicon.pat"
  144. };
  145. static mpr_static(reg_command5_pr, 48, 48, 1, reg_command5_data);
  146.  
  147. static short reg_command6_data[] = {
  148. #include "paste.cicon.pat"
  149. };
  150. static mpr_static(reg_command6_pr, 48, 48, 1, reg_command6_data);
  151.  
  152. static short reg_command7_data[] = {
  153. #include "rotate.cicon.pat"
  154. };
  155. static mpr_static(reg_command7_pr, 48, 48, 1, reg_command7_data);
  156.  
  157. static short reg_command8_data[] = {
  158. #include "move.cicon.pat"
  159. };
  160. static mpr_static(reg_command8_pr, 48, 48, 1, reg_command8_data);
  161.  
  162. static short reg_command9_data[] = {
  163. #include "scale.cicon.pat"
  164. };
  165. static mpr_static(reg_command9_pr, 48, 48, 1, reg_command9_data);
  166.  
  167. /*
  168.  * TEXT COMMANDS
  169.  */
  170.  
  171. static short text_center_data[] = {
  172. #include "center.cicon.pat"
  173. };
  174. static mpr_static(text_center_pr, 48, 48, 1, text_center_data);
  175.  
  176. static short text_right_data[] = {
  177. #include "right.cicon.pat"
  178. };
  179. static mpr_static(text_right_pr, 48, 48, 1, text_right_data);
  180.  
  181. static short text_left_data[] = {
  182. #include "left.cicon.pat"
  183. };
  184. static mpr_static(text_left_pr, 48, 48, 1, text_left_data);
  185.