gnomestock.inc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. {$IfDef read_interface}
  2. const
  3. GNOME_STOCK_PIXMAP_NEW = 'New';
  4. GNOME_STOCK_PIXMAP_OPEN = 'Open';
  5. GNOME_STOCK_PIXMAP_CLOSE = 'Close';
  6. GNOME_STOCK_PIXMAP_REVERT = 'Revert';
  7. GNOME_STOCK_PIXMAP_SAVE = 'Save';
  8. GNOME_STOCK_PIXMAP_SAVE_AS = 'Save As';
  9. GNOME_STOCK_PIXMAP_CUT = 'Cut';
  10. GNOME_STOCK_PIXMAP_COPY = 'Copy';
  11. GNOME_STOCK_PIXMAP_PASTE = 'Paste';
  12. GNOME_STOCK_PIXMAP_CLEAR = 'Clear';
  13. GNOME_STOCK_PIXMAP_PROPERTIES = 'Properties';
  14. GNOME_STOCK_PIXMAP_PREFERENCES = 'Preferences';
  15. GNOME_STOCK_PIXMAP_HELP = 'Help';
  16. GNOME_STOCK_PIXMAP_SCORES = 'Scores';
  17. GNOME_STOCK_PIXMAP_PRINT = 'Print';
  18. GNOME_STOCK_PIXMAP_SEARCH = 'Search';
  19. GNOME_STOCK_PIXMAP_SRCHRPL = 'Search/Replace';
  20. GNOME_STOCK_PIXMAP_BACK = 'Back';
  21. GNOME_STOCK_PIXMAP_FORWARD = 'Forward';
  22. GNOME_STOCK_PIXMAP_FIRST = 'First';
  23. GNOME_STOCK_PIXMAP_LAST = 'Last';
  24. GNOME_STOCK_PIXMAP_HOME = 'Home';
  25. GNOME_STOCK_PIXMAP_STOP = 'Stop';
  26. GNOME_STOCK_PIXMAP_REFRESH = 'Refresh';
  27. GNOME_STOCK_PIXMAP_UNDO = 'Undo';
  28. GNOME_STOCK_PIXMAP_REDO = 'Redo';
  29. GNOME_STOCK_PIXMAP_TIMER = 'Timer';
  30. GNOME_STOCK_PIXMAP_TIMER_STOP = 'Timer Stopped';
  31. GNOME_STOCK_PIXMAP_MAIL = 'Mail';
  32. GNOME_STOCK_PIXMAP_MAIL_RCV = 'Receive Mail';
  33. GNOME_STOCK_PIXMAP_MAIL_SND = 'Send Mail';
  34. GNOME_STOCK_PIXMAP_MAIL_RPL = 'Reply to Mail';
  35. GNOME_STOCK_PIXMAP_MAIL_FWD = 'Forward Mail';
  36. GNOME_STOCK_PIXMAP_MAIL_NEW = 'New Mail';
  37. GNOME_STOCK_PIXMAP_TRASH = 'Trash';
  38. GNOME_STOCK_PIXMAP_TRASH_FULL = 'Trash Full';
  39. GNOME_STOCK_PIXMAP_UNDELETE = 'Undelete';
  40. GNOME_STOCK_PIXMAP_SPELLCHECK = 'Spellchecker';
  41. GNOME_STOCK_PIXMAP_MIC = 'Microphone';
  42. GNOME_STOCK_PIXMAP_LINE_IN = 'Line In';
  43. GNOME_STOCK_PIXMAP_CDROM = 'Cdrom';
  44. GNOME_STOCK_PIXMAP_VOLUME = 'Volume';
  45. GNOME_STOCK_PIXMAP_MIDI = 'Midi';
  46. GNOME_STOCK_PIXMAP_BOOK_RED = 'Book Red';
  47. GNOME_STOCK_PIXMAP_BOOK_GREEN = 'Book Green';
  48. GNOME_STOCK_PIXMAP_BOOK_BLUE = 'Book Blue';
  49. GNOME_STOCK_PIXMAP_BOOK_YELLOW = 'Book Yellow';
  50. GNOME_STOCK_PIXMAP_BOOK_OPEN = 'Book Open';
  51. GNOME_STOCK_PIXMAP_ABOUT = 'About';
  52. GNOME_STOCK_PIXMAP_QUIT = 'Quit';
  53. GNOME_STOCK_PIXMAP_MULTIPLE = 'Multiple';
  54. GNOME_STOCK_PIXMAP_NOT = 'Not';
  55. GNOME_STOCK_PIXMAP_CONVERT = 'Convert';
  56. GNOME_STOCK_PIXMAP_JUMP_TO = 'Jump To';
  57. GNOME_STOCK_PIXMAP_UP = 'Up';
  58. GNOME_STOCK_PIXMAP_DOWN = 'Down';
  59. GNOME_STOCK_PIXMAP_TOP = 'Top';
  60. GNOME_STOCK_PIXMAP_BOTTOM = 'Bottom';
  61. GNOME_STOCK_PIXMAP_ATTACH = 'Attach';
  62. GNOME_STOCK_PIXMAP_INDEX = 'Index';
  63. GNOME_STOCK_PIXMAP_FONT = 'Font';
  64. GNOME_STOCK_PIXMAP_EXEC = 'Exec';
  65. GNOME_STOCK_PIXMAP_ALIGN_LEFT = 'Left';
  66. GNOME_STOCK_PIXMAP_ALIGN_RIGHT = 'Right';
  67. GNOME_STOCK_PIXMAP_ALIGN_CENTER = 'Center';
  68. GNOME_STOCK_PIXMAP_ALIGN_JUSTIFY = 'Justify';
  69. GNOME_STOCK_PIXMAP_TEXT_BOLD = 'Bold';
  70. GNOME_STOCK_PIXMAP_TEXT_ITALIC = 'Italic';
  71. GNOME_STOCK_PIXMAP_TEXT_UNDERLINE = 'Underline';
  72. GNOME_STOCK_PIXMAP_TEXT_STRIKEOUT = 'Strikeout';
  73. GNOME_STOCK_PIXMAP_TEXT_INDENT = 'Text Indent';
  74. GNOME_STOCK_PIXMAP_TEXT_UNINDENT = 'Text Unindent';
  75. GNOME_STOCK_PIXMAP_EXIT = GNOME_STOCK_PIXMAP_QUIT;
  76. GNOME_STOCK_PIXMAP_COLORSELECTOR = 'Color Select';
  77. GNOME_STOCK_PIXMAP_ADD = 'Add';
  78. GNOME_STOCK_PIXMAP_REMOVE = 'Remove';
  79. GNOME_STOCK_PIXMAP_TABLE_BORDERS = 'Table Borders';
  80. GNOME_STOCK_PIXMAP_TABLE_FILL = 'Table Fill';
  81. GNOME_STOCK_PIXMAP_TEXT_BULLETED_LIST = 'Text Bulleted List';
  82. GNOME_STOCK_PIXMAP_TEXT_NUMBERED_LIST = 'Text Numbered List';
  83. GNOME_STOCK_PIXMAP_REGULAR = 'regular';
  84. GNOME_STOCK_PIXMAP_DISABLED = 'disabled';
  85. GNOME_STOCK_PIXMAP_FOCUSED = 'focused';
  86. type
  87. TGnomeStockPixmapType = (GNOME_STOCK_PIXMAP_TYPE_NONE,GNOME_STOCK_PIXMAP_TYPE_DATA,
  88. GNOME_STOCK_PIXMAP_TYPE_FILE,GNOME_STOCK_PIXMAP_TYPE_PATH,
  89. GNOME_STOCK_PIXMAP_TYPE_WIDGET,GNOME_STOCK_PIXMAP_TYPE_IMLIB,
  90. GNOME_STOCK_PIXMAP_TYPE_IMLIB_SCALED,
  91. GNOME_STOCK_PIXMAP_TYPE_GPIXMAP);
  92. PGnomeStockPixmapEntryData = ^TGnomeStockPixmapEntryData;
  93. TGnomeStockPixmapEntryData = record
  94. thetype : TGnomeStockPixmapType;
  95. width : longint;
  96. height : longint;
  97. thelabel : Pchar;
  98. xpm_data : PPgchar;
  99. end;
  100. PGnomeStockPixmapEntryImlib = ^TGnomeStockPixmapEntryImlib;
  101. TGnomeStockPixmapEntryImlib = record
  102. thetype : TGnomeStockPixmapType;
  103. width : longint;
  104. height : longint;
  105. thelabel : Pchar;
  106. rgb_data : Pgchar;
  107. shape : TGdkImlibColor;
  108. end;
  109. PGnomeStockPixmapEntryImlibScaled = ^TGnomeStockPixmapEntryImlibScaled;
  110. TGnomeStockPixmapEntryImlibScaled = record
  111. thetype : TGnomeStockPixmapType;
  112. width : longint;
  113. height : longint;
  114. thelabel : Pchar;
  115. rgb_data : Pgchar;
  116. shape : TGdkImlibColor;
  117. scaled_width : longint;
  118. scaled_height : longint;
  119. end;
  120. PGnomeStockPixmapEntryFile = ^TGnomeStockPixmapEntryFile;
  121. TGnomeStockPixmapEntryFile = record
  122. thetype : TGnomeStockPixmapType;
  123. width : longint;
  124. height : longint;
  125. thelabel : Pchar;
  126. filename : Pgchar;
  127. end;
  128. PGnomeStockPixmapEntryPath = ^TGnomeStockPixmapEntryPath;
  129. TGnomeStockPixmapEntryPath = record
  130. thetype : TGnomeStockPixmapType;
  131. width : longint;
  132. height : longint;
  133. thelabel : Pchar;
  134. pathname : Pgchar;
  135. end;
  136. PGnomeStockPixmapEntryWidget = ^TGnomeStockPixmapEntryWidget;
  137. TGnomeStockPixmapEntryWidget = record
  138. thetype : TGnomeStockPixmapType;
  139. width : longint;
  140. height : longint;
  141. thelabel : Pchar;
  142. widget : PGtkWidget;
  143. end;
  144. PGnomeStockPixmapEntryGPixmap = ^TGnomeStockPixmapEntryGPixmap;
  145. TGnomeStockPixmapEntryGPixmap = record
  146. thetype : TGnomeStockPixmapType;
  147. width : longint;
  148. height : longint;
  149. thelabel : Pchar;
  150. pixmap : PGnomePixmap;
  151. end;
  152. PGnomeStockPixmapEntryAny = ^TGnomeStockPixmapEntryAny;
  153. TGnomeStockPixmapEntryAny = record
  154. thetype : TGnomeStockPixmapType;
  155. width : longint;
  156. height : longint;
  157. thelabel : Pchar;
  158. end;
  159. PGnomeStockPixmapEntry = ^TGnomeStockPixmapEntry;
  160. TGnomeStockPixmapEntry = record
  161. case longint of
  162. 0 : ( thetype : TGnomeStockPixmapType );
  163. 1 : ( any : TGnomeStockPixmapEntryAny );
  164. 2 : ( data : TGnomeStockPixmapEntryData );
  165. 3 : ( thefile : TGnomeStockPixmapEntryFile );
  166. 4 : ( path : TGnomeStockPixmapEntryPath );
  167. 5 : ( widget : TGnomeStockPixmapEntryWidget );
  168. 6 : ( imlib : TGnomeStockPixmapEntryImlib );
  169. 7 : ( imlib_s : TGnomeStockPixmapEntryImlibScaled );
  170. 8 : ( gpixmap : TGnomeStockPixmapEntryGPixmap );
  171. end;
  172. PGnomeStock = ^TGnomeStock;
  173. TGnomeStock = record
  174. pixmap : TGnomePixmap;
  175. regular : PGnomePixmap;
  176. disabled : PGnomePixmap;
  177. focused : PGnomePixmap;
  178. current : PGnomePixmap;
  179. icon : Pchar;
  180. c_regular : guint32;
  181. c_disabled : guint32;
  182. c_focused : guint32;
  183. end;
  184. GNOME_STOCK = TGnomeStock;
  185. PGnomeStockClass = ^TGnomeStockClass;
  186. TGnomeStockClass = record
  187. pixmap_class : TGnomePixmapClass;
  188. end;
  189. GNOME_STOCK_CLASS = TGnomeStockClass;
  190. function GNOME_TYPE_STOCK : TGtkType;
  191. function GNOME_IS_STOCK(obj : pointer) : gboolean;
  192. function GNOME_IS_STOCK_CLASS(klass : pointer) : gboolean;
  193. function GNOME_IS_STOCK_PIXMAP_WIDGET(obj : pointer) : gboolean;
  194. function gnome_stock_pixmap_widget_new(window:PGtkWidget; icon:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_pixmap_widget_new';
  195. function gnome_stock_get_type:TGTKType;cdecl;external libgnomeuidll name 'gnome_stock_get_type';
  196. function gnome_stock_new:PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_new';
  197. function gnome_stock_new_with_icon(icon:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_new_with_icon';
  198. function gnome_stock_set_icon(stock:PGnomeStock; icon:Pchar):gboolean;cdecl;external libgnomeuidll name 'gnome_stock_set_icon';
  199. function gnome_stock_pixmap(window:PGtkWidget; icon:Pchar; subtype:Pchar):PGnomePixmap;cdecl;external libgnomeuidll name 'gnome_stock_pixmap';
  200. function gnome_stock_pixmap_widget(window:PGtkWidget; icon:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_pixmap_widget';
  201. function gnome_stock_pixmap_widget_at_size(window:PGtkWidget; icon:Pchar; width:guint; height:guint):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_pixmap_widget_at_size';
  202. procedure gnome_stock_pixmap_widget_set_icon(widget:PGnomeStock; icon:Pchar);cdecl;external libgnomeuidll name 'gnome_stock_pixmap_widget_set_icon';
  203. function gnome_stock_pixmap_register(icon:Pchar; subtype:Pchar; entry:PGnomeStockPixmapEntry):gint;cdecl;external libgnomeuidll name 'gnome_stock_pixmap_register';
  204. function gnome_stock_pixmap_change(icon:Pchar; subtype:Pchar; entry:PGnomeStockPixmapEntry):gint;cdecl;external libgnomeuidll name 'gnome_stock_pixmap_change';
  205. function gnome_stock_pixmap_checkfor(icon:Pchar; subtype:Pchar):PGnomeStockPixmapEntry;cdecl;external libgnomeuidll name 'gnome_stock_pixmap_checkfor';
  206. function gnome_pixmap_button(pixmap:PGtkWidget; thetext:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_pixmap_button';
  207. procedure gnome_button_can_default(button:PGtkButton; can_default:gboolean);cdecl;external libgnomeuidll name 'gnome_button_can_default';
  208. const
  209. GNOME_STOCK_BUTTON_OK = 'Button_Ok';
  210. GNOME_STOCK_BUTTON_CANCEL = 'Button_Cancel';
  211. GNOME_STOCK_BUTTON_YES = 'Button_Yes';
  212. GNOME_STOCK_BUTTON_NO = 'Button_No';
  213. GNOME_STOCK_BUTTON_CLOSE = 'Button_Close';
  214. GNOME_STOCK_BUTTON_APPLY = 'Button_Apply';
  215. GNOME_STOCK_BUTTON_HELP = 'Button_Help';
  216. GNOME_STOCK_BUTTON_NEXT = 'Button_Next';
  217. GNOME_STOCK_BUTTON_PREV = 'Button_Prev';
  218. GNOME_STOCK_BUTTON_UP = 'Button_Up';
  219. GNOME_STOCK_BUTTON_DOWN = 'Button_Down';
  220. GNOME_STOCK_BUTTON_FONT = 'Button_Font';
  221. function gnome_stock_button(thetype:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_button';
  222. function gnome_stock_or_ordinary_button(thetype:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_or_ordinary_button';
  223. const
  224. GNOME_STOCK_MENU_BLANK = 'Menu_';
  225. GNOME_STOCK_MENU_NEW = 'Menu_New';
  226. GNOME_STOCK_MENU_SAVE = 'Menu_Save';
  227. GNOME_STOCK_MENU_SAVE_AS = 'Menu_Save As';
  228. GNOME_STOCK_MENU_REVERT = 'Menu_Revert';
  229. GNOME_STOCK_MENU_OPEN = 'Menu_Open';
  230. GNOME_STOCK_MENU_CLOSE = 'Menu_Close';
  231. GNOME_STOCK_MENU_QUIT = 'Menu_Quit';
  232. GNOME_STOCK_MENU_CUT = 'Menu_Cut';
  233. GNOME_STOCK_MENU_COPY = 'Menu_Copy';
  234. GNOME_STOCK_MENU_PASTE = 'Menu_Paste';
  235. GNOME_STOCK_MENU_PROP = 'Menu_Properties';
  236. GNOME_STOCK_MENU_PREF = 'Menu_Preferences';
  237. GNOME_STOCK_MENU_ABOUT = 'Menu_About';
  238. GNOME_STOCK_MENU_SCORES = 'Menu_Scores';
  239. GNOME_STOCK_MENU_UNDO = 'Menu_Undo';
  240. GNOME_STOCK_MENU_REDO = 'Menu_Redo';
  241. GNOME_STOCK_MENU_PRINT = 'Menu_Print';
  242. GNOME_STOCK_MENU_SEARCH = 'Menu_Search';
  243. GNOME_STOCK_MENU_SRCHRPL = 'Menu_Search/Replace';
  244. GNOME_STOCK_MENU_BACK = 'Menu_Back';
  245. GNOME_STOCK_MENU_FORWARD = 'Menu_Forward';
  246. GNOME_STOCK_MENU_FIRST = 'Menu_First';
  247. GNOME_STOCK_MENU_LAST = 'Menu_Last';
  248. GNOME_STOCK_MENU_HOME = 'Menu_Home';
  249. GNOME_STOCK_MENU_STOP = 'Menu_Stop';
  250. GNOME_STOCK_MENU_REFRESH = 'Menu_Refresh';
  251. GNOME_STOCK_MENU_MAIL = 'Menu_Mail';
  252. GNOME_STOCK_MENU_MAIL_RCV = 'Menu_Receive Mail';
  253. GNOME_STOCK_MENU_MAIL_SND = 'Menu_Send Mail';
  254. GNOME_STOCK_MENU_MAIL_RPL = 'Menu_Reply to Mail';
  255. GNOME_STOCK_MENU_MAIL_FWD = 'Menu_Forward Mail';
  256. GNOME_STOCK_MENU_MAIL_NEW = 'Menu_New Mail';
  257. GNOME_STOCK_MENU_TRASH = 'Menu_Trash';
  258. GNOME_STOCK_MENU_TRASH_FULL = 'Menu_Trash Full';
  259. GNOME_STOCK_MENU_UNDELETE = 'Menu_Undelete';
  260. GNOME_STOCK_MENU_TIMER = 'Menu_Timer';
  261. GNOME_STOCK_MENU_TIMER_STOP = 'Menu_Timer Stopped';
  262. GNOME_STOCK_MENU_SPELLCHECK = 'Menu_Spellchecker';
  263. GNOME_STOCK_MENU_MIC = 'Menu_Microphone';
  264. GNOME_STOCK_MENU_LINE_IN = 'Menu_Line In';
  265. GNOME_STOCK_MENU_CDROM = 'Menu_Cdrom';
  266. GNOME_STOCK_MENU_VOLUME = 'Menu_Volume';
  267. GNOME_STOCK_MENU_MIDI = 'Menu_Midi';
  268. GNOME_STOCK_MENU_BOOK_RED = 'Menu_Book Red';
  269. GNOME_STOCK_MENU_BOOK_GREEN = 'Menu_Book Green';
  270. GNOME_STOCK_MENU_BOOK_BLUE = 'Menu_Book Blue';
  271. GNOME_STOCK_MENU_BOOK_YELLOW = 'Menu_Book Yellow';
  272. GNOME_STOCK_MENU_BOOK_OPEN = 'Menu_Book Open';
  273. GNOME_STOCK_MENU_CONVERT = 'Menu_Convert';
  274. GNOME_STOCK_MENU_JUMP_TO = 'Menu_Jump To';
  275. GNOME_STOCK_MENU_UP = 'Menu_Up';
  276. GNOME_STOCK_MENU_DOWN = 'Menu_Down';
  277. GNOME_STOCK_MENU_TOP = 'Menu_Top';
  278. GNOME_STOCK_MENU_BOTTOM = 'Menu_Bottom';
  279. GNOME_STOCK_MENU_ATTACH = 'Menu_Attach';
  280. GNOME_STOCK_MENU_INDEX = 'Menu_Index';
  281. GNOME_STOCK_MENU_FONT = 'Menu_Font';
  282. GNOME_STOCK_MENU_EXEC = 'Menu_Exec';
  283. GNOME_STOCK_MENU_ALIGN_LEFT = 'Menu_Left';
  284. GNOME_STOCK_MENU_ALIGN_RIGHT = 'Menu_Right';
  285. GNOME_STOCK_MENU_ALIGN_CENTER = 'Menu_Center';
  286. GNOME_STOCK_MENU_ALIGN_JUSTIFY = 'Menu_Justify';
  287. GNOME_STOCK_MENU_TEXT_BOLD = 'Menu_Bold';
  288. GNOME_STOCK_MENU_TEXT_ITALIC = 'Menu_Italic';
  289. GNOME_STOCK_MENU_TEXT_UNDERLINE = 'Menu_Underline';
  290. GNOME_STOCK_MENU_TEXT_STRIKEOUT = 'Menu_Strikeout';
  291. GNOME_STOCK_MENU_EXIT = GNOME_STOCK_MENU_QUIT;
  292. function gnome_stock_menu_item(thetype:Pchar; thetext:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_menu_item';
  293. function gnome_stock_menu_accel(thetype:Pchar; key:Pguchar; mods:Pguint8):gboolean;cdecl;external libgnomeuidll name 'gnome_stock_menu_accel';
  294. procedure gnome_stock_menu_accel_parse(section:Pchar);cdecl;external libgnomeuidll name 'gnome_stock_menu_accel_parse';
  295. function gnome_stock_transparent_window(icon:Pchar; subtype:Pchar):PGtkWidget;cdecl;external libgnomeuidll name 'gnome_stock_transparent_window';
  296. procedure gnome_stock_pixmap_gdk(icon:Pchar; subtype:Pchar; pixmap:PPGdkPixmap; mask:PPGdkPixmap);cdecl;external libgnomeuidll name 'gnome_stock_pixmap_gdk';
  297. {$EndIf read_interface}
  298. {$Ifdef read_implementation}
  299. function GNOME_TYPE_STOCK : TGTKType;
  300. begin
  301. GNOME_TYPE_STOCK:=gnome_stock_get_type;
  302. end;
  303. function GNOME_IS_STOCK(obj : Pointer) : gBoolean;
  304. begin
  305. GNOME_IS_STOCK:=(obj<>nil) and GNOME_IS_STOCK_CLASS(PGtkTypeObject(obj)^.klass);
  306. end;
  307. function GNOME_IS_STOCK_CLASS(klass : Pointer) : gBoolean;
  308. begin
  309. GNOME_IS_STOCK_CLASS:=(klass<>nil) and (PGtkTypeClass(klass)^.thetype=GNOME_TYPE_STOCK);
  310. end;
  311. function GNOME_IS_STOCK_PIXMAP_WIDGET(obj : pointer) : gboolean;
  312. begin
  313. GNOME_IS_STOCK_PIXMAP_WIDGET := GNOME_IS_STOCK(obj);
  314. end;
  315. {$Endif read_implementation}