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