##// END OF EJS Templates
Add catalogue controller to SqpApplication
Add catalogue controller to SqpApplication

File last commit:

r1176:20294bb49a24
r1177:cca0e9bff7aa
Show More
CatalogueInspectorWidget.h
36 lines | 849 B | text/x-c | CLexer
/ gui / include / Catalogue / CatalogueInspectorWidget.h
Inspector
r1134 #ifndef SCIQLOP_CATALOGUEINSPECTORWIDGET_H
#define SCIQLOP_CATALOGUEINSPECTORWIDGET_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;
Sub widget classes
r1130 class CatalogueInspectorWidget : public QWidget {
Q_OBJECT
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);
void setCatalogue(const std::shared_ptr<DBCatalogue> &catalogue);
Skeleton to fill the inspector with the selection
r1140
Inspector
r1134 public slots:
void showPage(Page page);
Sub widget classes
r1130
private:
Ui::CatalogueInspectorWidget *ui;
};
Inspector
r1134 #endif // SCIQLOP_CATALOGUEINSPECTORWIDGET_H