##// END OF EJS Templates
Remove the catalogue from discard or remove button have now the same gui...
Remove the catalogue from discard or remove button have now the same gui behavior

File last commit:

r1347:12c6415397ca
r1371:232b551e25db
Show More
CatalogueInspectorWidget.h
51 lines | 1.5 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
Link between selection zone item and event
r1347 void refresh();
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