17 #ifndef QGSMETADATAWIDGET_H 18 #define QGSMETADATAWIDGET_H 20 #include "QStandardItemModel" 21 #include "QStyledItemDelegate" 28 #include "ui_qgsmetadatawidget.h" 92 void acceptMetadata();
97 static QMap<QString, QString> parseLanguages();
102 static QStringList parseLicenses();
108 static QStringList parseLinkTypes();
114 static QStringList parseMimeTypes();
119 static QMap<QString, QString> parseTypes();
127 void removeSelectedCategories();
129 void fillSourceFromLayer();
130 void fillCrsFromLayer();
131 void fillCrsFromProvider();
132 void addDefaultCategories();
133 void addNewCategory();
134 void addVocabulary();
135 void removeSelectedVocabulary();
137 void removeSelectedLicence();
139 void removeSelectedRight();
140 void addConstraint();
141 void removeSelectedConstraint();
143 void removeSelectedAddress();
145 void removeSelectedLink();
147 void removeSelectedHistory();
152 void setPropertiesFromLayer();
153 void syncFromCategoriesTabToKeywordsTab();
154 QStringList mDefaultCategories;
158 QStandardItemModel *mConstraintsModel =
nullptr;
159 QStandardItemModel *mLinksModel =
nullptr;
160 QStringListModel *mCategoriesModel =
nullptr;
161 QStringListModel *mDefaultCategoriesModel =
nullptr;
162 QStringListModel *mRightsModel =
nullptr;
163 QStringListModel *mHistoryModel =
nullptr;
193 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
219 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
Base class for all map layer types.
Map canvas is a class for displaying all GIS data types on a canvas.
This class represents a coordinate reference system (CRS).
Special delegate for the constraint view in the metadata wizard.