MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / notify

Method notify

pluginManager/src/PluginListView.cpp:54–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54LRESULT PluginListView::notify(WPARAM /*wParam*/, LPARAM lParam)
55{
56 switch (((LPNMHDR)lParam)->code)
57 {
58
59 case LVN_GETDISPINFO:
60 {
61 if (_listMode == LISTMODE_LIST)
62 {
63 NMLVDISPINFO* plvdi = (NMLVDISPINFO*)lParam;
64
65 Plugin* plugin = reinterpret_cast<Plugin*>(plvdi->item.lParam);
66
67 switch (plvdi->item.iSubItem)
68 {
69 case 0:
70 {
71
72
73 plvdi->item.pszText = const_cast<TCHAR*>(plugin->getName().c_str());
74 break;
75 }
76 case 1:
77 {
78 plvdi->item.pszText = const_cast<TCHAR*>(plugin->getCategory().c_str());
79 break;
80 }
81
82 default:
83 if (plvdi->item.iSubItem == _nVersionColumns + 2)
84 {
85 plvdi->item.pszText = const_cast<TCHAR*>(plugin->getStability().c_str());
86 }
87 else
88 {
89 switch(_columns[plvdi->item.iSubItem - 2])
90 {
91 case VERSION_INSTALLED:
92 plvdi->item.pszText = plugin->getInstalledVersion().getDisplayString();
93 plvdi->item.cchTextMax = (int)_tcslen(plvdi->item.pszText);
94 break;
95
96 case VERSION_AVAILABLE:
97 plvdi->item.pszText = plugin->getVersion().getDisplayString();
98 plvdi->item.cchTextMax = (int)_tcslen(plvdi->item.pszText);
99 break;
100 }
101 }
102 break;
103 }
104 return TRUE;
105 }
106 break;
107 }
108
109 case LVN_COLUMNCLICK:
110 {
111 NMLISTVIEW *colInfo = reinterpret_cast<NMLISTVIEW*>(lParam);

Callers 4

availableTabDlgProcMethod · 0.80
updatesTabDlgProcMethod · 0.80
installedTabDlgProcMethod · 0.80
run_dlgProcMethod · 0.80

Calls 2

c_strMethod · 0.80
getDisplayStringMethod · 0.80

Tested by

no test coverage detected