##// END OF EJS Templates
Wait for the end of an acquisition to validate an operation (3)...
Wait for the end of an acquisition to validate an operation (3) If an operation is to validate, waits the end of the acquisition

File last commit:

r1162:73d5f3ef941a
r1215:7541b71e5b78
Show More
CatalogueTreeWidgetItem.h
36 lines | 1.1 KiB | text/x-c | CLexer
/ gui / include / Catalogue / CatalogueTreeWidgetItem.h
#ifndef SCIQLOP_CATALOGUETREEWIDGETITEM_H
#define SCIQLOP_CATALOGUETREEWIDGETITEM_H
#include <Common/spimpl.h>
#include <QTreeWidgetItem>
class DBCatalogue;
class CatalogueTreeWidgetItem : public QTreeWidgetItem {
public:
CatalogueTreeWidgetItem(std::shared_ptr<DBCatalogue> catalogue,
int type = QTreeWidgetItem::Type);
QVariant data(int column, int role) const override;
void setData(int column, int role, const QVariant &value) override;
/// Returns the catalogue represented by the item
std::shared_ptr<DBCatalogue> catalogue() const;
/// Displays or hides the save and cancel buttons indicating that the catalogue has unsaved
/// changes
void setHasChanges(bool value);
/// Returns true if the widget indicating the event has unsaved changes is displayed
bool hasChanges();
/// Refreshes the data displayed by the item from the catalogue
void refresh();
private:
class CatalogueTreeWidgetItemPrivate;
spimpl::unique_impl_ptr<CatalogueTreeWidgetItemPrivate> impl;
};
#endif // SCIQLOP_CATALOGUETREEWIDGETITEM_H