Play-/Source/ui_qt/DebugSupport/CommentsView.cpp
Jean-Philip Desjardins 5edde7b3d0 Add comments view.
2023-08-30 10:21:25 -04:00

22 lines
754 B
C++

#include "CommentsView.h"
CCommentsView::CCommentsView(QMdiArea* parent)
: CTagsView(parent)
{
setWindowTitle("Comments");
{
Strings strings;
strings.newTagString = tr("New Comment");
strings.renameTagString = tr("Rename Comment");
strings.tagNameString = tr("New Comment Name:");
strings.tagAddressString = tr("New Comment Address:");
strings.deleteTagConfirmString = tr("Are you sure you want to delete this comment?");
strings.deleteModuleTagsConfirmString = tr("Are you sure you want to delete comments from module '%0'?");
SetStrings(strings);
}
}
void CCommentsView::SetContext(CMIPS* context, CBiosDebugInfoProvider* biosDebugInfoProvider)
{
CTagsView::SetContext(context, &context->m_Comments, biosDebugInfoProvider);
}