MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SelectNode

Method SelectNode

editor/TableManage.cpp:352–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352void GenericPageList::SelectNode(uint32_t list_index) {
353 uint32_t j;
354 GenericPageNode *node;
355
356 if (list_index < 0 || list_index > (m_size - 1))
357 return;
358
359 node = m_head;
360 for (j = 0; j < list_index; j++)
361 if (node != NULL)
362 node = node->next;
363
364 m_SelectedNode = node;
365 m_SelectedIndex = list_index;
366}
367
368void GenericPageList::DisplaySelected(CComboBox *list, CEdit *description) {
369 char *text;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected