| 38 | |
| 39 | |
| 40 | DSCTriageView::DSCTriageView(QWidget* parent, BinaryViewRef data) : QWidget(parent), m_data(std::move(data)) |
| 41 | { |
| 42 | setBinaryDataNavigable(false); |
| 43 | setupView(this); |
| 44 | |
| 45 | UIContext::registerNotification(this); |
| 46 | |
| 47 | m_triageCollection = new DockableTabCollection(); |
| 48 | m_triageTabs = new SplitTabWidget(m_triageCollection); |
| 49 | |
| 50 | auto triageTabStyle = new GlobalAreaTabStyle(); |
| 51 | m_triageTabs->setTabStyle(triageTabStyle); |
| 52 | |
| 53 | QWidget* defaultWidget = initImageTable(); |
| 54 | initSymbolTable(); |
| 55 | initCacheInfoTables(); |
| 56 | |
| 57 | m_layout = new QVBoxLayout(this); |
| 58 | m_layout->addWidget(m_triageTabs); |
| 59 | setLayout(m_layout); |
| 60 | |
| 61 | // In case we have already initialized the controller (user has opened this view type again) |
| 62 | // we will call refresh data. If this is the first triage view constructed (i.e. before view init) then this |
| 63 | // will do nothing. |
| 64 | RefreshData(); |
| 65 | |
| 66 | m_triageTabs->selectWidget(defaultWidget); |
| 67 | } |
| 68 | |
| 69 | |
| 70 | DSCTriageView::~DSCTriageView() |
nothing calls this directly
no test coverage detected