CatalogueEventsWidget.h
54 lines
| 1.5 KiB
| text/x-c
|
CLexer
r1136 | #ifndef SCIQLOP_CATALOGUEEVENTSWIDGET_H | |||
#define SCIQLOP_CATALOGUEEVENTSWIDGET_H | ||||
r1130 | ||||
r1136 | #include <Common/spimpl.h> | |||
r1171 | #include <QLoggingCategory> | |||
r1130 | #include <QWidget> | |||
r1162 | class DBCatalogue; | |||
class DBEvent; | ||||
r1183 | class DBEventProduct; | |||
r1169 | class VisualizationWidget; | |||
r1162 | ||||
r1130 | namespace Ui { | |||
class CatalogueEventsWidget; | ||||
} | ||||
r1171 | Q_DECLARE_LOGGING_CATEGORY(LOG_CatalogueEventsWidget) | |||
r1130 | class CatalogueEventsWidget : public QWidget { | |||
Q_OBJECT | ||||
r1138 | signals: | |||
r1176 | void eventsSelected(const QVector<std::shared_ptr<DBEvent> > &event); | |||
r1183 | void eventProductsSelected( | |||
const QVector<QPair<std::shared_ptr<DBEvent>, std::shared_ptr<DBEventProduct> > > | ||||
&eventproducts); | ||||
void selectionCleared(); | ||||
r1138 | ||||
r1130 | public: | |||
explicit CatalogueEventsWidget(QWidget *parent = 0); | ||||
r1136 | virtual ~CatalogueEventsWidget(); | |||
r1130 | ||||
r1169 | void setVisualizationWidget(VisualizationWidget *visualization); | |||
r1286 | void addEvent(const std::shared_ptr<DBEvent> &event); | |||
r1181 | void setEventChanges(const std::shared_ptr<DBEvent> &event, bool hasChanges); | |||
r1286 | QVector<std::shared_ptr<DBCatalogue> > displayedCatalogues() const; | |||
bool isAllEventsDisplayed() const; | ||||
bool isEventDisplayed(const std::shared_ptr<DBEvent> &event) const; | ||||
r1138 | public slots: | |||
r1176 | void populateWithCatalogues(const QVector<std::shared_ptr<DBCatalogue> > &catalogues); | |||
r1192 | void populateWithAllEvents(); | |||
r1286 | void refresh(); | |||
r1138 | ||||
r1130 | private: | |||
Ui::CatalogueEventsWidget *ui; | ||||
r1136 | ||||
class CatalogueEventsWidgetPrivate; | ||||
spimpl::unique_impl_ptr<CatalogueEventsWidgetPrivate> impl; | ||||
r1130 | }; | |||
r1136 | #endif // SCIQLOP_CATALOGUEEVENTSWIDGET_H | |||