17 #ifndef QgsAbstractMetadataBaseWIDGET_H 18 #define QgsAbstractMetadataBaseWIDGET_H 20 #include "QStandardItemModel" 21 #include "QStyledItemDelegate" 28 #include "ui_qgsmetadatawidget.h" 41 Q_PROPERTY( QString title READ title WRITE setTitle NOTIFY titleChanged )
70 void setMode(
Mode mode );
113 bool checkMetadata();
123 void acceptMetadata();
128 static QMap<QString, QString> parseLanguages();
133 static QStringList parseLicenses();
139 static QStringList parseLinkTypes();
145 static QStringList parseMimeTypes();
150 static QMap<QString, QString> parseTypes();
165 QString title()
const;
177 void setTitle(
const QString &title );
189 void titleChanged(
const QString &title );
192 void removeSelectedCategories();
194 void fillSourceFromLayer();
195 void fillCrsFromLayer();
196 void fillCrsFromProvider();
197 void addDefaultCategories();
198 void addNewCategory();
199 void addVocabulary();
200 void removeSelectedVocabulary();
202 void removeSelectedLicence();
204 void removeSelectedRight();
205 void addConstraint();
206 void removeSelectedConstraint();
208 void removeSelectedAddress();
210 void removeSelectedLink();
212 void removeSelectedHistory();
217 void setUiFromMetadata();
218 void syncFromCategoriesTabToKeywordsTab();
220 Mode mMode = LayerMetadata;
222 QStringList mDefaultCategories;
225 std::unique_ptr< QgsAbstractMetadataBase > mMetadata;
226 QStandardItemModel *mConstraintsModel =
nullptr;
227 QStandardItemModel *mLinksModel =
nullptr;
228 QStringListModel *mCategoriesModel =
nullptr;
229 QStringListModel *mDefaultCategoriesModel =
nullptr;
230 QStringListModel *mRightsModel =
nullptr;
231 QStringListModel *mHistoryModel =
nullptr;
261 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
287 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.