##// END OF EJS Templates
More GUI tests refactoring, this will allow more complex tests and ease sync graph tests...
More GUI tests refactoring, this will allow more complex tests and ease sync graph tests Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1293:12c6415397ca
r1370:c3077e0c31af
Show More
CatalogueInspectorWidget.h
51 lines | 1.5 KiB | text/x-c | CLexer
/ gui / include / Catalogue / CatalogueInspectorWidget.h
Inspector
r1099 #ifndef SCIQLOP_CATALOGUEINSPECTORWIDGET_H
#define SCIQLOP_CATALOGUEINSPECTORWIDGET_H
Sub widget classes
r1095
Edition of catalogues from the inspector
r1147 #include <Common/spimpl.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;
Edition of event products via the inspector
r1150 class DBEventProduct;
Display catalogues and events with CatalogueAPI
r1129
Sub widget classes
r1095 class CatalogueInspectorWidget : public QWidget {
Q_OBJECT
Edition of catalogues from the inspector
r1147 signals:
void catalogueUpdated(const std::shared_ptr<DBCatalogue> &catalogue);
void eventUpdated(const std::shared_ptr<DBEvent> &event);
Edition of event products via the inspector
r1150 void eventProductUpdated(const std::shared_ptr<DBEvent> &event,
const std::shared_ptr<DBEventProduct> &eventProduct);
Edition of catalogues from the inspector
r1147
Sub widget classes
r1095 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);
Edition of event products via the inspector
r1150 void setEventProduct(const std::shared_ptr<DBEvent> &event,
const std::shared_ptr<DBEventProduct> &eventProduct);
Adaptation to the shared pointers of catalogue controller
r1143 void setCatalogue(const std::shared_ptr<DBCatalogue> &catalogue);
Skeleton to fill the inspector with the selection
r1105
Link between selection zone item and event
r1293 void refresh();
Inspector
r1099 public slots:
void showPage(Page page);
Sub widget classes
r1095
private:
Ui::CatalogueInspectorWidget *ui;
Edition of catalogues from the inspector
r1147
class CatalogueInspectorWidgetPrivate;
spimpl::unique_impl_ptr<CatalogueInspectorWidgetPrivate> impl;
Sub widget classes
r1095 };
Inspector
r1099 #endif // SCIQLOP_CATALOGUEINSPECTORWIDGET_H