##// END OF EJS Templates
Merge branch 'feature/CatalogueGui' into develop
Merge branch 'feature/CatalogueGui' into develop

File last commit:

r1143:20294bb49a24
r1145:d65e500c483d merge
Show More
CatalogueInspectorWidget.h
36 lines | 849 B | text/x-c | CLexer
/ gui / include / Catalogue / CatalogueInspectorWidget.h
#ifndef SCIQLOP_CATALOGUEINSPECTORWIDGET_H
#define SCIQLOP_CATALOGUEINSPECTORWIDGET_H
#include <QWidget>
#include <memory>
namespace Ui {
class CatalogueInspectorWidget;
}
class DBCatalogue;
class DBEvent;
class CatalogueInspectorWidget : public QWidget {
Q_OBJECT
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 setCatalogue(const std::shared_ptr<DBCatalogue> &catalogue);
public slots:
void showPage(Page page);
private:
Ui::CatalogueInspectorWidget *ui;
};
#endif // SCIQLOP_CATALOGUEINSPECTORWIDGET_H