OLD | NEW |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 if (type) { | 323 if (type) { |
324 switch (RNA_type_to_ID_code(type)) { | 324 switch (RNA_type_to_ID_code(type)) { |
325 case ID_SCE: return N_("Browse Scene to be linked"); | 325 case ID_SCE: return N_("Browse Scene to be linked"); |
326 case ID_OB: return N_("Browse Object to be linked"); | 326 case ID_OB: return N_("Browse Object to be linked"); |
327 case ID_ME: return N_("Browse Mesh Data to be linked"); | 327 case ID_ME: return N_("Browse Mesh Data to be linked"); |
328 case ID_CU: return N_("Browse Curve Data to be linked")
; | 328 case ID_CU: return N_("Browse Curve Data to be linked")
; |
329 case ID_MB: return N_("Browse Metaball Data to be linke
d"); | 329 case ID_MB: return N_("Browse Metaball Data to be linke
d"); |
330 case ID_MA: return N_("Browse Material to be linked"); | 330 case ID_MA: return N_("Browse Material to be linked"); |
331 case ID_TE: return N_("Browse Texture to be linked"); | 331 case ID_TE: return N_("Browse Texture to be linked"); |
332 case ID_IM: return N_("Browse Image to be linked"); | 332 case ID_IM: return N_("Browse Image to be linked"); |
| 333 #ifdef WITH_FREESTYLE |
| 334 case ID_LS: return N_("Browse Line Style Data to be lin
ked"); |
| 335 #endif |
333 case ID_LT: return N_("Browse Lattice Data to be linked
"); | 336 case ID_LT: return N_("Browse Lattice Data to be linked
"); |
334 case ID_LA: return N_("Browse Lamp Data to be linked"); | 337 case ID_LA: return N_("Browse Lamp Data to be linked"); |
335 case ID_CA: return N_("Browse Camera Data to be linked"
); | 338 case ID_CA: return N_("Browse Camera Data to be linked"
); |
336 case ID_WO: return N_("Browse World Settings to be link
ed"); | 339 case ID_WO: return N_("Browse World Settings to be link
ed"); |
337 case ID_SCR: return N_("Choose Screen lay-out"); | 340 case ID_SCR: return N_("Choose Screen lay-out"); |
338 case ID_TXT: return N_("Browse Text to be linked"); | 341 case ID_TXT: return N_("Browse Text to be linked"); |
339 case ID_SPK: return N_("Browse Speaker Data to be linked
"); | 342 case ID_SPK: return N_("Browse Speaker Data to be linked
"); |
340 case ID_SO: return N_("Browse Sound to be linked"); | 343 case ID_SO: return N_("Browse Sound to be linked"); |
341 case ID_AR: return N_("Browse Armature data to be linke
d"); | 344 case ID_AR: return N_("Browse Armature data to be linke
d"); |
342 case ID_AC: return N_("Browse Action to be linked"); | 345 case ID_AC: return N_("Browse Action to be linked"); |
(...skipping 15 matching lines...) Expand all Loading... |
358 if (type) { | 361 if (type) { |
359 switch (RNA_type_to_ID_code(type)) { | 362 switch (RNA_type_to_ID_code(type)) { |
360 case ID_SCE: return BLF_I18NCONTEXT_ID_SCENE; | 363 case ID_SCE: return BLF_I18NCONTEXT_ID_SCENE; |
361 case ID_OB: return BLF_I18NCONTEXT_ID_OBJECT; | 364 case ID_OB: return BLF_I18NCONTEXT_ID_OBJECT; |
362 case ID_ME: return BLF_I18NCONTEXT_ID_MESH; | 365 case ID_ME: return BLF_I18NCONTEXT_ID_MESH; |
363 case ID_CU: return BLF_I18NCONTEXT_ID_CURVE; | 366 case ID_CU: return BLF_I18NCONTEXT_ID_CURVE; |
364 case ID_MB: return BLF_I18NCONTEXT_ID_METABALL; | 367 case ID_MB: return BLF_I18NCONTEXT_ID_METABALL; |
365 case ID_MA: return BLF_I18NCONTEXT_ID_MATERIAL; | 368 case ID_MA: return BLF_I18NCONTEXT_ID_MATERIAL; |
366 case ID_TE: return BLF_I18NCONTEXT_ID_TEXTURE; | 369 case ID_TE: return BLF_I18NCONTEXT_ID_TEXTURE; |
367 case ID_IM: return BLF_I18NCONTEXT_ID_IMAGE; | 370 case ID_IM: return BLF_I18NCONTEXT_ID_IMAGE; |
| 371 #ifdef WITH_FREESTYLE |
| 372 case ID_LS: return BLF_I18NCONTEXT_ID_FREESTYLELINESTYL
E; |
| 373 #endif |
368 case ID_LT: return BLF_I18NCONTEXT_ID_LATTICE; | 374 case ID_LT: return BLF_I18NCONTEXT_ID_LATTICE; |
369 case ID_LA: return BLF_I18NCONTEXT_ID_LAMP; | 375 case ID_LA: return BLF_I18NCONTEXT_ID_LAMP; |
370 case ID_CA: return BLF_I18NCONTEXT_ID_CAMERA; | 376 case ID_CA: return BLF_I18NCONTEXT_ID_CAMERA; |
371 case ID_WO: return BLF_I18NCONTEXT_ID_WORLD; | 377 case ID_WO: return BLF_I18NCONTEXT_ID_WORLD; |
372 case ID_SCR: return BLF_I18NCONTEXT_ID_SCREEN; | 378 case ID_SCR: return BLF_I18NCONTEXT_ID_SCREEN; |
373 case ID_TXT: return BLF_I18NCONTEXT_ID_TEXT; | 379 case ID_TXT: return BLF_I18NCONTEXT_ID_TEXT; |
374 case ID_SPK: return BLF_I18NCONTEXT_ID_SPEAKER; | 380 case ID_SPK: return BLF_I18NCONTEXT_ID_SPEAKER; |
375 case ID_SO: return BLF_I18NCONTEXT_ID_SOUND; | 381 case ID_SO: return BLF_I18NCONTEXT_ID_SOUND; |
376 case ID_AR: return BLF_I18NCONTEXT_ID_ARMATURE; | 382 case ID_AR: return BLF_I18NCONTEXT_ID_ARMATURE; |
377 case ID_AC: return BLF_I18NCONTEXT_ID_ACTION; | 383 case ID_AC: return BLF_I18NCONTEXT_ID_ACTION; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 BLF_I18NCONTEXT_ID_TEXT, | 521 BLF_I18NCONTEXT_ID_TEXT, |
516 ); | 522 ); |
517 BLF_I18N_MSGID_MULTI_CTXT("New", BLF_I18NCONTEXT_ID_SPEAKER, | 523 BLF_I18N_MSGID_MULTI_CTXT("New", BLF_I18NCONTEXT_ID_SPEAKER, |
518 BLF_I18NCONTEXT_ID_SOUND, | 524 BLF_I18NCONTEXT_ID_SOUND, |
519 BLF_I18NCONTEXT_ID_ARMATURE, | 525 BLF_I18NCONTEXT_ID_ARMATURE, |
520 BLF_I18NCONTEXT_ID_ACTION, | 526 BLF_I18NCONTEXT_ID_ACTION, |
521 BLF_I18NCONTEXT_ID_NODETREE, | 527 BLF_I18NCONTEXT_ID_NODETREE, |
522 BLF_I18NCONTEXT_ID_BRUSH, | 528 BLF_I18NCONTEXT_ID_BRUSH, |
523 BLF_I18NCONTEXT_ID_PARTICLESETT
INGS, | 529 BLF_I18NCONTEXT_ID_PARTICLESETT
INGS, |
524 BLF_I18NCONTEXT_ID_GPENCIL, | 530 BLF_I18NCONTEXT_ID_GPENCIL, |
| 531 #ifdef WITH_FREESTYLE |
| 532
BLF_I18NCONTEXT_ID_FREESTYLELINESTYLE |
| 533 #endif |
525 ); | 534 ); |
526 ················ | 535 ················ |
527 if (newop) { | 536 if (newop) { |
528 but = uiDefIconTextButO(block, BUT, newop, WM_OP_INVOKE_
DEFAULT, ICON_ZOOMIN, | 537 but = uiDefIconTextButO(block, BUT, newop, WM_OP_INVOKE_
DEFAULT, ICON_ZOOMIN, |
529 (id) ? "" : CTX_IFACE_(template_
id_context(type), "New"), 0, 0, w, UI_UNIT_Y, NULL); | 538 (id) ? "" : CTX_IFACE_(template_
id_context(type), "New"), 0, 0, w, UI_UNIT_Y, NULL); |
530 uiButSetNFunc(but, template_id_cb, MEM_dupallocN(templat
e), SET_INT_IN_POINTER(UI_ID_ADD_NEW)); | 539 uiButSetNFunc(but, template_id_cb, MEM_dupallocN(templat
e), SET_INT_IN_POINTER(UI_ID_ADD_NEW)); |
531 } | 540 } |
532 else { | 541 else { |
533 but = uiDefIconTextBut(block, BUT, 0, ICON_ZOOMIN, (id)
? "" : CTX_IFACE_(template_id_context(type), "New"), | 542 but = uiDefIconTextBut(block, BUT, 0, ICON_ZOOMIN, (id)
? "" : CTX_IFACE_(template_id_context(type), "New"), |
534 0, 0, w, UI_UNIT_Y, NULL, 0, 0, 0
, 0, NULL); | 543 0, 0, w, UI_UNIT_Y, NULL, 0, 0, 0
, 0, NULL); |
(...skipping 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3042 | 3051 |
3043 col = uiLayoutColumn(layout, FALSE); | 3052 col = uiLayoutColumn(layout, FALSE); |
3044 uiItemR(col, &view_transform_ptr, "exposure", 0, NULL, ICON_NONE); | 3053 uiItemR(col, &view_transform_ptr, "exposure", 0, NULL, ICON_NONE); |
3045 uiItemR(col, &view_transform_ptr, "gamma", 0, NULL, ICON_NONE); | 3054 uiItemR(col, &view_transform_ptr, "gamma", 0, NULL, ICON_NONE); |
3046 | 3055 |
3047 col = uiLayoutColumn(layout, FALSE); | 3056 col = uiLayoutColumn(layout, FALSE); |
3048 uiItemR(col, &view_transform_ptr, "use_curve_mapping", 0, NULL, ICON_NON
E); | 3057 uiItemR(col, &view_transform_ptr, "use_curve_mapping", 0, NULL, ICON_NON
E); |
3049 if (view_settings->flag & COLORMANAGE_VIEW_USE_CURVES) | 3058 if (view_settings->flag & COLORMANAGE_VIEW_USE_CURVES) |
3050 uiTemplateCurveMapping(col, &view_transform_ptr, "curve_mapping"
, 'c', TRUE, 0); | 3059 uiTemplateCurveMapping(col, &view_transform_ptr, "curve_mapping"
, 'c', TRUE, 0); |
3051 } | 3060 } |
OLD | NEW |