CatalogueInspectorWidget.h
36 lines
| 849 B
| text/x-c
|
CLexer
r1134 | #ifndef SCIQLOP_CATALOGUEINSPECTORWIDGET_H | |||
#define SCIQLOP_CATALOGUEINSPECTORWIDGET_H | ||||
r1130 | ||||
#include <QWidget> | ||||
r1176 | #include <memory> | |||
r1130 | ||||
namespace Ui { | ||||
class CatalogueInspectorWidget; | ||||
} | ||||
r1162 | class DBCatalogue; | |||
class DBEvent; | ||||
r1130 | class CatalogueInspectorWidget : public QWidget { | |||
Q_OBJECT | ||||
public: | ||||
explicit CatalogueInspectorWidget(QWidget *parent = 0); | ||||
r1134 | virtual ~CatalogueInspectorWidget(); | |||
/// Enum matching the pages inside the stacked widget | ||||
enum class Page { Empty, CatalogueProperties, EventProperties }; | ||||
Page currentPage() const; | ||||
r1176 | void setEvent(const std::shared_ptr<DBEvent> &event); | |||
void setCatalogue(const std::shared_ptr<DBCatalogue> &catalogue); | ||||
r1140 | ||||
r1134 | public slots: | |||
void showPage(Page page); | ||||
r1130 | ||||
private: | ||||
Ui::CatalogueInspectorWidget *ui; | ||||
}; | ||||
r1134 | #endif // SCIQLOP_CATALOGUEINSPECTORWIDGET_H | |||