##// END OF EJS Templates
Adds read compatibility for local AMDA server...
Adds read compatibility for local AMDA server The local AMDA server uses another regex than the default server to read the units in x. We manage the compatibility by adding in the parser the possibility of testing several regexes to read a property

File last commit:

r1105:342312d662e7
r1121:98220c931c83
Show More
CatalogueInspectorWidget.cpp
36 lines | 981 B | text/x-c | CppLexer
/ gui / src / Catalogue / CatalogueInspectorWidget.cpp
Sub widget classes
r1095 #include "Catalogue/CatalogueInspectorWidget.h"
#include "ui_CatalogueInspectorWidget.h"
CatalogueInspectorWidget::CatalogueInspectorWidget(QWidget *parent)
: QWidget(parent), ui(new Ui::CatalogueInspectorWidget)
{
ui->setupUi(this);
Inspector
r1099 showPage(Page::Empty);
Sub widget classes
r1095 }
CatalogueInspectorWidget::~CatalogueInspectorWidget()
{
delete ui;
}
Inspector
r1099
void CatalogueInspectorWidget::showPage(CatalogueInspectorWidget::Page page)
{
ui->stackedWidget->setCurrentIndex(static_cast<int>(page));
}
CatalogueInspectorWidget::Page CatalogueInspectorWidget::currentPage() const
{
return static_cast<Page>(ui->stackedWidget->currentIndex());
}
Skeleton to fill the inspector with the selection
r1105
void CatalogueInspectorWidget::setEvent(const QString &event)
{
showPage(Page::EventProperties);
ui->leEventName->setText(event);
}
void CatalogueInspectorWidget::setCatalogue(const QString &catalogue)
{
showPage(Page::CatalogueProperties);
ui->leCatalogueName->setText(catalogue);
}