Skip to content

Commit

Permalink
Added columns for signs of the presence of multimedia, notes and sour…
Browse files Browse the repository at this point in the history
…ces to the lists of events/facts
  • Loading branch information
Serg-Norseman committed Jan 15, 2024
1 parent 0541c65 commit 2bc0d3f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/help_enu/gkhHistory.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h1>Change log</h1>

<p>
<b>??.??.2024 [v2.29.0 &amp; v3.5.0]</b><ul>
<li>Added columns for signs of the presence of multimedia, notes and sources to the lists of events/facts.
<li>Added a call to quickly view information in the record selection dialog (list pop-up menu).
<li>Added a simple definition of the list of censuses in which persons from the database can be found (so far only for the Russian Empire 1718-1859).
<li>Fixed stability of setting the storage type when selecting a multimedia file.
Expand Down
1 change: 1 addition & 0 deletions locales/help_rus/gkhHistory.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h1>История версий</h1>

<p>
<b>??.??.2024 [v2.29.0 &amp; v3.5.0]</b><ul>
<li>Добавлены столбцы признаков наличия мультимедиа, заметок и источников в списки событий/фактов.
<li>Добавлен вызов быстрого просмотра информации в диалог выбора записей (всплывающее меню списка).
<li>Добавлено простое определение перечня переписей, в которых могут быть обнаружены персоны из базы (пока только для Российской империи 1718-1859).
<li>Исправлена стабильность установки типа хранилища при выборе мультимедийного файла.
Expand Down
12 changes: 12 additions & 0 deletions projects/GKCore/GKCore/Lists/EventsListModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public EventsListModel(IView owner, IBaseWindow baseWin, ChangeTracker undoman,
fListColumns.AddColumn(LSID.PlaceAndAttribute, 200, false);
}
fListColumns.AddColumn(LSID.Cause, 130, false);
fListColumns.AddColumn(LSID.RPSources, 30, false);
fListColumns.AddColumn(LSID.RPNotes, 30, false);
fListColumns.AddColumn(LSID.RPMultimedia, 30, false);
fListColumns.ResetDefaults();
}

Expand Down Expand Up @@ -81,6 +84,15 @@ protected override object GetColumnValueEx(int colType, int colSubtype, bool isV
case 4:
result = GKUtils.GetEventCause(fFetchedRec);
break;
case 5:
result = fFetchedRec.HasSourceCitations ? " + " : string.Empty;
break;
case 6:
result = fFetchedRec.HasNotes ? " + " : string.Empty;
break;
case 7:
result = fFetchedRec.HasMultimediaLinks ? " + " : string.Empty;
break;
}
return result;
}
Expand Down

0 comments on commit 2bc0d3f

Please sign in to comment.