##// END OF EJS Templates
Change the event model to a treeview model + update the last version of CatalogueAPI
Change the event model to a treeview model + update the last version of CatalogueAPI

File last commit:

r1147:938a31670f5f
r1149:c352dc0e2afa
Show More
CatalogueTreeWidgetItem.h
33 lines | 1.0 KiB | text/x-c | CLexer
/ gui / include / Catalogue / CatalogueTreeWidgetItem.h
Display catalogues and events with CatalogueAPI
r1129 #ifndef SCIQLOP_CATALOGUETREEWIDGETITEM_H
#define SCIQLOP_CATALOGUETREEWIDGETITEM_H
#include <Common/spimpl.h>
#include <QTreeWidgetItem>
Adaptation to the shared pointers of catalogue controller
r1143 class DBCatalogue;
Display catalogues and events with CatalogueAPI
r1129
class CatalogueTreeWidgetItem : public QTreeWidgetItem {
public:
Adaptation to the shared pointers of catalogue controller
r1143 CatalogueTreeWidgetItem(std::shared_ptr<DBCatalogue> catalogue,
int type = QTreeWidgetItem::Type);
Display catalogues and events with CatalogueAPI
r1129
QVariant data(int column, int role) const override;
Rename a catalogue
r1140 void setData(int column, int role, const QVariant &value) override;
Display of the save & cancel button next to a catalogue
r1142 /// Returns the catalogue represented by the item
Adaptation to the shared pointers of catalogue controller
r1143 std::shared_ptr<DBCatalogue> catalogue() const;
Display catalogues and events with CatalogueAPI
r1129
Edition of catalogues from the inspector
r1147 /// Displays or hides the save and cancel buttons indicating that the catalogue has unsaved
/// changes
Display of the save & cancel button next to a catalogue
r1142 void setHasChanges(bool value);
Edition of catalogues from the inspector
r1147 /// Refreshes the data displayed by the item from the catalogue
void refresh();
Display catalogues and events with CatalogueAPI
r1129 private:
class CatalogueTreeWidgetItemPrivate;
spimpl::unique_impl_ptr<CatalogueTreeWidgetItemPrivate> impl;
};
#endif // SCIQLOP_CATALOGUETREEWIDGETITEM_H