##// END OF EJS Templates
Skeleton to fill the inspector with the selection
Skeleton to fill the inspector with the selection

File last commit:

r1105:342312d662e7
r1105:342312d662e7
Show More
CatalogueExplorer.cpp
22 lines | 700 B | text/x-c | CppLexer
/ gui / src / Catalogue / CatalogueExplorer.cpp
Adds the new CatalogueExplorer dialog
r1093 #include "Catalogue/CatalogueExplorer.h"
#include "ui_CatalogueExplorer.h"
CatalogueExplorer::CatalogueExplorer(QWidget *parent)
Fix window flags of the catalogue gui
r1100 : QDialog(parent, Qt::Dialog | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint),
ui(new Ui::CatalogueExplorer)
Adds the new CatalogueExplorer dialog
r1093 {
ui->setupUi(this);
Basic interactions
r1103
connect(ui->catalogues, &CatalogueSideBarWidget::catalogueSelected, [this](auto name) {
Skeleton to fill the inspector with the selection
r1105 ui->inspector->setEvent(name);
Basic interactions
r1103 ui->events->populateWithCatalogue(name);
});
connect(ui->events, &CatalogueEventsWidget::eventSelected,
Skeleton to fill the inspector with the selection
r1105 [this](auto name) { ui->inspector->setCatalogue(name); });
Adds the new CatalogueExplorer dialog
r1093 }
CatalogueExplorer::~CatalogueExplorer()
{
delete ui;
}