##// 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
Inspector
r1099 #ifndef SCIQLOP_CATALOGUEINSPECTORWIDGET_H
#define SCIQLOP_CATALOGUEINSPECTORWIDGET_H
Sub widget classes
r1095
#include <QWidget>
Adaptation to the shared pointers of catalogue controller
r1143 #include <memory>
Sub widget classes
r1095
namespace Ui {
class CatalogueInspectorWidget;
}
Display catalogues and events with CatalogueAPI
r1129 class DBCatalogue;
class DBEvent;
Sub widget classes
r1095 class CatalogueInspectorWidget : public QWidget {
Q_OBJECT
public:
explicit CatalogueInspectorWidget(QWidget *parent = 0);
Inspector
r1099 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
r1143 void setEvent(const std::shared_ptr<DBEvent> &event);
void setCatalogue(const std::shared_ptr<DBCatalogue> &catalogue);
Skeleton to fill the inspector with the selection
r1105
Inspector
r1099 public slots:
void showPage(Page page);
Sub widget classes
r1095
private:
Ui::CatalogueInspectorWidget *ui;
};
Inspector
r1099 #endif // SCIQLOP_CATALOGUEINSPECTORWIDGET_H