CatalogueExplorer.cpp
22 lines
| 777 B
| text/x-c
|
CppLexer
r1128 | #include "Catalogue/CatalogueExplorer.h" | |||
#include "ui_CatalogueExplorer.h" | ||||
CatalogueExplorer::CatalogueExplorer(QWidget *parent) | ||||
r1135 | : QDialog(parent, Qt::Dialog | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint), | |||
ui(new Ui::CatalogueExplorer) | ||||
r1128 | { | |||
ui->setupUi(this); | ||||
r1138 | ||||
connect(ui->catalogues, &CatalogueSideBarWidget::catalogueSelected, [this](auto name) { | ||||
ui->inspector->showPage(CatalogueInspectorWidget::Page::CatalogueProperties); | ||||
ui->events->populateWithCatalogue(name); | ||||
}); | ||||
connect(ui->events, &CatalogueEventsWidget::eventSelected, | ||||
[this]() { ui->inspector->showPage(CatalogueInspectorWidget::Page::EventProperties); }); | ||||
r1128 | } | |||
CatalogueExplorer::~CatalogueExplorer() | ||||
{ | ||||
delete ui; | ||||
} | ||||