| 135 | } |
| 136 | |
| 137 | void BaseDlg::addCancelButton() { |
| 138 | float buttonArea = ImGui::CalcTextSize(c_getTranslation(Msg::GENERIC_DLG_CANCEL)).x+ImGui::GetStyle().FramePadding.x*2; |
| 139 | ImGui::SetCursorPos(ImVec2((float)(this->width - buttonArea - getOuterFramePadding()), getButtonRowY())); |
| 140 | |
| 141 | if (ImGui::Button(c_getTranslation(Msg::GENERIC_DLG_CANCEL))) { |
| 142 | this->done(); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | void BaseDlg::onOk(bool buttonClicked) { |
| 147 | if (buttonClicked) { |
no test coverage detected