mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Ide: added package count for UppHub dialog (#316)
* Ide: added package count for UppHub packages. * Rename Name to Package in UppHub array view.
This commit is contained in:
parent
de40e056cd
commit
5295b60a93
1 changed files with 7 additions and 4 deletions
|
|
@ -92,6 +92,8 @@ void UppHubSettingsDlg::RefreshCtrls()
|
|||
}
|
||||
|
||||
struct UppHubDlg : WithUppHubLayout<TopWindow> {
|
||||
static constexpr auto LIST_KEY = "PACKAGE";
|
||||
|
||||
SplitterFrame splitter;
|
||||
ArrayCtrl list;
|
||||
RichTextView info;
|
||||
|
|
@ -127,7 +129,7 @@ struct UppHubDlg : WithUppHubLayout<TopWindow> {
|
|||
void Menu(Bar& bar);
|
||||
|
||||
UppHubNest *Get(const String& name) { return upv.FindPtr(name); }
|
||||
UppHubNest *Current() { return list.IsCursor() ? Get(list.Get("NAME")) : NULL; }
|
||||
UppHubNest *Current() { return list.IsCursor() ? Get(list.Get(LIST_KEY)) : nullptr; }
|
||||
|
||||
UppHubDlg();
|
||||
|
||||
|
|
@ -144,8 +146,8 @@ UppHubDlg::UppHubDlg()
|
|||
parent.Add(list.SizePos());
|
||||
parent.AddFrame(splitter.Right(info, 500));
|
||||
|
||||
list.AddKey("NAME");
|
||||
list.AddColumn("Name").Sorting();
|
||||
list.AddKey(LIST_KEY);
|
||||
list.AddColumn("Package").Sorting();
|
||||
list.AddColumn("Category").Sorting();
|
||||
list.AddColumn("Description");
|
||||
|
||||
|
|
@ -499,7 +501,8 @@ void UppHubDlg::SyncList()
|
|||
(broken || n.status != "broken"))
|
||||
list.Add(n.name, AT(n.name), AT(n.category), AT(n.description), n.name);
|
||||
}
|
||||
|
||||
|
||||
list.HeaderTab(0).SetText("Package (" + AsString(list.GetCount()) + ")");
|
||||
list.DoColumnSort();
|
||||
list.ScrollTo(sc);
|
||||
if(!list.FindSetCursor(k))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue