Changes

From Gramps

Quick Views/he

78 bytes added, 10:51, 10 October 2024
m
ניתוח הקוד: רישום הדוח: translation
כעת ננתח את קטעי הקוד השונים שנכללו בשני הקבצים שנשמרו קודם לכן.
#. קובץ הרישום [[Quick_Views#siblings2.gpr.py|siblings2.gpr.py]] . גרמפס יחפש בקובץ הרישום את הפונקציה '''register''' שמופיעה בתחתית הקובץ.
להלן פירוט והסבר על שאר שורות קוד קובץ הרישום:
* {{man label|name}} = שם ייחודי: שם שבו יזהה גרמפס את המתקע (במקרה זה זהו דוח המצג המהיר), אין להשתמש ברווחים או בסמלים מוזרים. בדוגמה שלעיל נוספה לשם הסיפרה '2' כדי למנוע התנגשויות עם [[Gramps_{{man version}}_Wiki_Manual_-_Reports_-_part_8/he#צאצאים|מצג צאצאים מהיר]].
* [https://github.com/gramps-project/gramps/blob/892fc270592095192947097d22a72834d5c70447/gramps/gen/plug/_pluginreg.py#L159-L171 {{man label|categoryסוג־אב}}] = a special constant indicating where the report will be shownקבוע מיוחד שמציין היכן יוצג הדוח. You can use ניתן להשתמש ב'''CATEGORY_QR_PERSON''' to see the report on person editor and viewכדי לצפות בדוח בעורך מצג אדם, or או '''CATEGORY_QR_FAMILY''' to see the report on family editor or viewכדי לצפות בדוח בעורך מצג משפחה. (CATEGORY_QR_DATE is for reports that can be embedded in other reports since there is no מיועד לדוחות שניתן להטמיע בתוך דוחות אחרים מכיוון שאין סוג־אב "Dateתאריך" category).)
*{{man label|run_func}} = the function you create in this plugin and that Gramps will execute when the user selects your quick report in the menu
* {{man label|translated_name}} = the name of the report as it will appear in the menu
6,817
edits

Navigation menu