43 Q_PROPERTY( QString title READ title WRITE setTitle NOTIFY titleChanged )
72 void setMode( Mode mode );
115 bool checkMetadata();
125 void acceptMetadata();
130 static QMap<QString, QString> parseLanguages();
135 static QStringList parseLicenses();
141 static QStringList parseLinkTypes();
147 static QStringList parseMimeTypes();
152 static QMap<QString, QString> parseTypes();
167 QString title() const;
179 void setTitle( const QString &title );
191 void titleChanged( const QString &title );
194 void removeSelectedCategories();
196 void fillSourceFromLayer();
197 void fillCrsFromLayer();
198 void fillCrsFromProvider();
199 void addDefaultCategories();
200 void addNewCategory();
201 void addVocabulary();
202 void removeSelectedVocabulary();
204 void removeSelectedLicence();
206 void removeSelectedRight();
207 void addConstraint();
208 void removeSelectedConstraint();
210 void removeSelectedAddress();
212 void removeSelectedLink();
214 void removeSelectedHistory();
219 void setUiFromMetadata();
220 void syncFromCategoriesTabToKeywordsTab();
222 Mode mMode = LayerMetadata;
224 QStringList mDefaultCategories;
228 QStandardItemModel *mConstraintsModel =
nullptr;
229 QStandardItemModel *mLinksModel =
nullptr;
230 QStringListModel *mCategoriesModel =
nullptr;
231 QStringListModel *mDefaultCategoriesModel =
nullptr;
232 QStringListModel *mRightsModel =
nullptr;
233 QStringListModel *mHistoryModel =
nullptr;
262 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;