##// END OF EJS Templates
Some refactoring on PB11 wrappers...
Some refactoring on PB11 wrappers Most sciqlop core wrappers are moved into a dedicated python module. We needs to get rid off sqpapp! All current sciqlop modules should either be stateless or act as real singletons they must not need any app to be used. This will ease testing, wrapping and usage. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1293:12c6415397ca
r1341:f18e017310bc
Show More
CatalogueInspectorWidget.h
51 lines | 1.5 KiB | text/x-c | CLexer
/ gui / include / Catalogue / CatalogueInspectorWidget.h
#ifndef SCIQLOP_CATALOGUEINSPECTORWIDGET_H
#define SCIQLOP_CATALOGUEINSPECTORWIDGET_H
#include <Common/spimpl.h>
#include <QWidget>
#include <memory>
namespace Ui {
class CatalogueInspectorWidget;
}
class DBCatalogue;
class DBEvent;
class DBEventProduct;
class CatalogueInspectorWidget : public QWidget {
Q_OBJECT
signals:
void catalogueUpdated(const std::shared_ptr<DBCatalogue> &catalogue);
void eventUpdated(const std::shared_ptr<DBEvent> &event);
void eventProductUpdated(const std::shared_ptr<DBEvent> &event,
const std::shared_ptr<DBEventProduct> &eventProduct);
public:
explicit CatalogueInspectorWidget(QWidget *parent = 0);
virtual ~CatalogueInspectorWidget();
/// Enum matching the pages inside the stacked widget
enum class Page { Empty, CatalogueProperties, EventProperties };
Page currentPage() const;
void setEvent(const std::shared_ptr<DBEvent> &event);
void setEventProduct(const std::shared_ptr<DBEvent> &event,
const std::shared_ptr<DBEventProduct> &eventProduct);
void setCatalogue(const std::shared_ptr<DBCatalogue> &catalogue);
void refresh();
public slots:
void showPage(Page page);
private:
Ui::CatalogueInspectorWidget *ui;
class CatalogueInspectorWidgetPrivate;
spimpl::unique_impl_ptr<CatalogueInspectorWidgetPrivate> impl;
};
#endif // SCIQLOP_CATALOGUEINSPECTORWIDGET_H