##// END OF EJS Templates
Fix merge problem
Fix merge problem

File last commit:

r1183:ecfb65cac0fa
r1297:3731b9185cc1
Show More
CatalogueInspectorWidget.h
49 lines | 1.4 KiB | text/x-c | CLexer
/ gui / include / Catalogue / CatalogueInspectorWidget.h
Inspector
r1134 #ifndef SCIQLOP_CATALOGUEINSPECTORWIDGET_H
#define SCIQLOP_CATALOGUEINSPECTORWIDGET_H
Sub widget classes
r1130
Edition of catalogues from the inspector
r1180 #include <Common/spimpl.h>
Sub widget classes
r1130 #include <QWidget>
Adaptation to the shared pointers of catalogue controller
r1176 #include <memory>
Sub widget classes
r1130
namespace Ui {
class CatalogueInspectorWidget;
}
Display catalogues and events with CatalogueAPI
r1162 class DBCatalogue;
class DBEvent;
Edition of event products via the inspector
r1183 class DBEventProduct;
Display catalogues and events with CatalogueAPI
r1162
Sub widget classes
r1130 class CatalogueInspectorWidget : public QWidget {
Q_OBJECT
Edition of catalogues from the inspector
r1180 signals:
void catalogueUpdated(const std::shared_ptr<DBCatalogue> &catalogue);
void eventUpdated(const std::shared_ptr<DBEvent> &event);
Edition of event products via the inspector
r1183 void eventProductUpdated(const std::shared_ptr<DBEvent> &event,
const std::shared_ptr<DBEventProduct> &eventProduct);
Edition of catalogues from the inspector
r1180
Sub widget classes
r1130 public:
explicit CatalogueInspectorWidget(QWidget *parent = 0);
Inspector
r1134 virtual ~CatalogueInspectorWidget();
/// Enum matching the pages inside the stacked widget
enum class Page { Empty, CatalogueProperties, EventProperties };
Page currentPage() const;
Adaptation to the shared pointers of catalogue controller
r1176 void setEvent(const std::shared_ptr<DBEvent> &event);
Edition of event products via the inspector
r1183 void setEventProduct(const std::shared_ptr<DBEvent> &event,
const std::shared_ptr<DBEventProduct> &eventProduct);
Adaptation to the shared pointers of catalogue controller
r1176 void setCatalogue(const std::shared_ptr<DBCatalogue> &catalogue);
Skeleton to fill the inspector with the selection
r1140
Inspector
r1134 public slots:
void showPage(Page page);
Sub widget classes
r1130
private:
Ui::CatalogueInspectorWidget *ui;
Edition of catalogues from the inspector
r1180
class CatalogueInspectorWidgetPrivate;
spimpl::unique_impl_ptr<CatalogueInspectorWidgetPrivate> impl;
Sub widget classes
r1130 };
Inspector
r1134 #endif // SCIQLOP_CATALOGUEINSPECTORWIDGET_H