Skip to content

Commit

Permalink
Fixed bit edit/delete
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Feb 16, 2024
1 parent ce19ffb commit 5e3dc0c
Show file tree
Hide file tree
Showing 2 changed files with 377 additions and 112 deletions.
12 changes: 11 additions & 1 deletion src/cdlgmdfbitlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ CDlgMdfBitList::initDialogData(CMDF_Object* pobj, mdf_record_type type)

// Disable items that are not used
if (mdf_type_register == type) {
setWindowTitle("Register bit definitionsöööö");
setWindowTitle("Register bit definitions");
}
else if (mdf_type_remotevar == type) {
setWindowTitle("Remote variable bit definitions");
Expand All @@ -115,6 +115,9 @@ CDlgMdfBitList::initDialogData(CMDF_Object* pobj, mdf_record_type type)
else if (mdf_type_action_param == type) {
setWindowTitle("Action parameter bit definitions");
}
else if (mdf_type_event_data_item == type) {
setWindowTitle("Event data bit definitions");
}

// m_pmdf->getRegisterMap(m_page, pages);
renderBitItems();
Expand Down Expand Up @@ -167,6 +170,10 @@ CDlgMdfBitList::renderBitItems(void)
else if (mdf_type_action_param == m_type) {
pbits = ((CMDF_ActionParameter*)m_pobj)->getListBits();
}
else if (mdf_type_event_data_item == m_type) {
pbits = ((CMDF_EventData*)m_pobj)->getListBits();
}

else {
return;
}
Expand Down Expand Up @@ -234,6 +241,9 @@ CDlgMdfBitList::addRegisterBit(void)
else if (mdf_type_action_param == m_type) {
pbits = ((CMDF_ActionParameter*)m_pobj)->getListBits();
}
else if (mdf_type_event_data_item == m_type) {
pbits = ((CMDF_EventData*)m_pobj)->getListBits();
}
else {
return;
}
Expand Down
Loading

0 comments on commit 5e3dc0c

Please sign in to comment.