##// END OF EJS Templates
Rework zone selection with graph & time mode as a poppup menu
Rework zone selection with graph & time mode as a poppup menu

File last commit:

r1316:8af4c223fdc1
r1322:f86313d53b19
Show More
CatalogueEventsWidget.h
72 lines | 2.2 KiB | text/x-c | CLexer
/ gui / include / Catalogue / CatalogueEventsWidget.h
Events
r1101 #ifndef SCIQLOP_CATALOGUEEVENTSWIDGET_H
#define SCIQLOP_CATALOGUEEVENTSWIDGET_H
Sub widget classes
r1095
Events
r1101 #include <Common/spimpl.h>
Time Zone Mode + prepare graph mode
r1138 #include <QLoggingCategory>
Sub widget classes
r1095 #include <QWidget>
Display catalogues and events with CatalogueAPI
r1129 class DBCatalogue;
class DBEvent;
Edition of event products via the inspector
r1150 class DBEventProduct;
Retrieves zone names from the visualization
r1136 class VisualizationWidget;
Link between selection zone item and event
r1293 class VisualizationSelectionZoneItem;
Display catalogues and events with CatalogueAPI
r1129
Sub widget classes
r1095 namespace Ui {
class CatalogueEventsWidget;
}
Time Zone Mode + prepare graph mode
r1138 Q_DECLARE_LOGGING_CATEGORY(LOG_CatalogueEventsWidget)
Sub widget classes
r1095 class CatalogueEventsWidget : public QWidget {
Q_OBJECT
Basic interactions
r1103 signals:
Adaptation to the shared pointers of catalogue controller
r1143 void eventsSelected(const QVector<std::shared_ptr<DBEvent> > &event);
Link between selection zone item and event
r1293 void eventsRemoved(const QVector<std::shared_ptr<DBEvent> > &event);
Edition of event products via the inspector
r1150 void eventProductsSelected(
const QVector<QPair<std::shared_ptr<DBEvent>, std::shared_ptr<DBEventProduct> > >
&eventproducts);
void selectionCleared();
Link between selection zone item and event
r1293 void selectionZoneAdded(const std::shared_ptr<DBEvent> &event, const QString &productId,
VisualizationSelectionZoneItem *selectionZone);
Basic interactions
r1103
Remove Event from catalogue statique only remove the reference.
r1313 void eventCataloguesModified(const QVector<std::shared_ptr<DBCatalogue> > &catalogues);
Sub widget classes
r1095 public:
explicit CatalogueEventsWidget(QWidget *parent = 0);
Events
r1101 virtual ~CatalogueEventsWidget();
Sub widget classes
r1095
Retrieves zone names from the visualization
r1136 void setVisualizationWidget(VisualizationWidget *visualization);
Updates model after an event has been created through the colored zone
r1231 void addEvent(const std::shared_ptr<DBEvent> &event);
Edition of events from the inspector
r1148 void setEventChanges(const std::shared_ptr<DBEvent> &event, bool hasChanges);
Save a statical catalogue now remove events save gui button
r1316 void setEventsChanges(const std::shared_ptr<DBEvent> &event, bool hasChanges);
Edition of events from the inspector
r1148
Updates model after an event has been created through the colored zone
r1231 QVector<std::shared_ptr<DBCatalogue> > displayedCatalogues() const;
bool isAllEventsDisplayed() const;
bool isEventDisplayed(const std::shared_ptr<DBEvent> &event) const;
Link between selection zone item and event
r1293 void refreshEvent(const std::shared_ptr<DBEvent> &event);
Basic interactions
r1103 public slots:
Adaptation to the shared pointers of catalogue controller
r1143 void populateWithCatalogues(const QVector<std::shared_ptr<DBCatalogue> > &catalogues);
Displays all events
r1160 void populateWithAllEvents();
Handle selection of trash and repository items
r1234 void clear();
Updates model after an event has been created through the colored zone
r1231 void refresh();
Basic interactions
r1103
Add supp shortcut for Catalogues
r1314 // QWidget interface
protected:
void keyPressEvent(QKeyEvent *event);
Sub widget classes
r1095 private:
Ui::CatalogueEventsWidget *ui;
Events
r1101
class CatalogueEventsWidgetPrivate;
spimpl::unique_impl_ptr<CatalogueEventsWidgetPrivate> impl;
fix refresh of events after a discard
r1245
private slots:
void emitSelection();
Sub widget classes
r1095 };
Events
r1101 #endif // SCIQLOP_CATALOGUEEVENTSWIDGET_H