gimptoolenums.c 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /* Generated data (by gimp-mkenums) */
  2. #include "config.h"
  3. #include <glib-object.h>
  4. #include "libgimpproxy/gimpproxytypes.h"
  5. #include "gimptoolenums.h"
  6. #include "libgimp/gimpintl.h"
  7. /* enumerations from "./gimptoolenums.h" */
  8. static const GEnumValue gimp_crop_type_enum_values[] =
  9. {
  10. { GIMP_CROP, N_("Crop"), "crop" },
  11. { GIMP_RESIZE, N_("Resize"), "resize" },
  12. { 0, NULL, NULL }
  13. };
  14. GType
  15. gimp_crop_type_get_type (void)
  16. {
  17. static GType enum_type = 0;
  18. if (!enum_type)
  19. enum_type = g_enum_register_static ("GimpCropType", gimp_crop_type_enum_values);
  20. return enum_type;
  21. }
  22. static const GEnumValue select_ops_enum_values[] =
  23. {
  24. { SELECTION_ADD, "SELECTION_ADD", "add" },
  25. { SELECTION_SUBTRACT, "SELECTION_SUBTRACT", "subtract" },
  26. { SELECTION_REPLACE, "SELECTION_REPLACE", "replace" },
  27. { SELECTION_INTERSECT, "SELECTION_INTERSECT", "intersect" },
  28. { SELECTION_MOVE_MASK, "SELECTION_MOVE_MASK", "move-mask" },
  29. { SELECTION_MOVE, "SELECTION_MOVE", "move" },
  30. { SELECTION_ANCHOR, "SELECTION_ANCHOR", "anchor" },
  31. { 0, NULL, NULL }
  32. };
  33. GType
  34. select_ops_get_type (void)
  35. {
  36. static GType enum_type = 0;
  37. if (!enum_type)
  38. enum_type = g_enum_register_static ("SelectOps", select_ops_enum_values);
  39. return enum_type;
  40. }
  41. static const GEnumValue gimp_tool_state_enum_values[] =
  42. {
  43. { INACTIVE, "INACTIVE", "inactive" },
  44. { ACTIVE, "ACTIVE", "active" },
  45. { 0, NULL, NULL }
  46. };
  47. GType
  48. gimp_tool_state_get_type (void)
  49. {
  50. static GType enum_type = 0;
  51. if (!enum_type)
  52. enum_type = g_enum_register_static ("GimpToolState", gimp_tool_state_enum_values);
  53. return enum_type;
  54. }
  55. static const GEnumValue gimp_tool_action_enum_values[] =
  56. {
  57. { PAUSE, "PAUSE", "pause" },
  58. { RESUME, "RESUME", "resume" },
  59. { HALT, "HALT", "halt" },
  60. { 0, NULL, NULL }
  61. };
  62. GType
  63. gimp_tool_action_get_type (void)
  64. {
  65. static GType enum_type = 0;
  66. if (!enum_type)
  67. enum_type = g_enum_register_static ("GimpToolAction", gimp_tool_action_enum_values);
  68. return enum_type;
  69. }
  70. static const GEnumValue gimp_motion_mode_enum_values[] =
  71. {
  72. { GIMP_MOTION_MODE_EXACT, "GIMP_MOTION_MODE_EXACT", "exact" },
  73. { GIMP_MOTION_MODE_HINT, "GIMP_MOTION_MODE_HINT", "hint" },
  74. { GIMP_MOTION_MODE_COMPRESS, "GIMP_MOTION_MODE_COMPRESS", "compress" },
  75. { 0, NULL, NULL }
  76. };
  77. GType
  78. gimp_motion_mode_get_type (void)
  79. {
  80. static GType enum_type = 0;
  81. if (!enum_type)
  82. enum_type = g_enum_register_static ("GimpMotionMode", gimp_motion_mode_enum_values);
  83. return enum_type;
  84. }
  85. static const GEnumValue gimp_rect_select_mode_enum_values[] =
  86. {
  87. { GIMP_RECT_SELECT_MODE_FREE, N_("Free Select"), "free" },
  88. { GIMP_RECT_SELECT_MODE_FIXED_SIZE, N_("Fixed Size"), "fixed-size" },
  89. { GIMP_RECT_SELECT_MODE_FIXED_RATIO, N_("Fixed Aspect Ratio"), "fixed-ratio" },
  90. { 0, NULL, NULL }
  91. };
  92. GType
  93. gimp_rect_select_mode_get_type (void)
  94. {
  95. static GType enum_type = 0;
  96. if (!enum_type)
  97. enum_type = g_enum_register_static ("GimpRectSelectMode", gimp_rect_select_mode_enum_values);
  98. return enum_type;
  99. }
  100. static const GEnumValue gimp_transform_grid_type_enum_values[] =
  101. {
  102. { GIMP_TRANSFORM_GRID_TYPE_NONE, N_("Don't Show Grid"), "none" },
  103. { GIMP_TRANSFORM_GRID_TYPE_N_LINES, N_("Number of Grid Lines"), "n-lines" },
  104. { GIMP_TRANSFORM_GRID_TYPE_SPACING, N_("Grid Line Spacing"), "spacing" },
  105. { 0, NULL, NULL }
  106. };
  107. GType
  108. gimp_transform_grid_type_get_type (void)
  109. {
  110. static GType enum_type = 0;
  111. if (!enum_type)
  112. enum_type = g_enum_register_static ("GimpTransformGridType", gimp_transform_grid_type_enum_values);
  113. return enum_type;
  114. }
  115. static const GEnumValue transform_action_enum_values[] =
  116. {
  117. { TRANSFORM_CREATING, "TRANSFORM_CREATING", "creating" },
  118. { TRANSFORM_HANDLE_1, "TRANSFORM_HANDLE_1", "handle-1" },
  119. { TRANSFORM_HANDLE_2, "TRANSFORM_HANDLE_2", "handle-2" },
  120. { TRANSFORM_HANDLE_3, "TRANSFORM_HANDLE_3", "handle-3" },
  121. { TRANSFORM_HANDLE_4, "TRANSFORM_HANDLE_4", "handle-4" },
  122. { TRANSFORM_HANDLE_CENTER, "TRANSFORM_HANDLE_CENTER", "handle-center" },
  123. { 0, NULL, NULL }
  124. };
  125. GType
  126. transform_action_get_type (void)
  127. {
  128. static GType enum_type = 0;
  129. if (!enum_type)
  130. enum_type = g_enum_register_static ("TransformAction", transform_action_enum_values);
  131. return enum_type;
  132. }
  133. /* Generated data ends here */