43 Q_PROPERTY( QString title READ title WRITE setTitle NOTIFY titleChanged )
71 void setMode( Mode mode );
114 bool checkMetadata();
124 void acceptMetadata();
129 static QMap<QString, QString> parseLanguages();
134 static QStringList parseLicenses();
140 static QStringList parseLinkTypes();
146 static QStringList parseMimeTypes();
151 static QMap<QString, QString> parseTypes();
166 QString title() const;
178 void setTitle( const QString &title );
190 void titleChanged( const QString &title );
193 void removeSelectedCategories();
195 void fillSourceFromLayer();
196 void fillCrsFromLayer();
197 void fillCrsFromProvider();
198 void addDefaultCategories();
199 void addNewCategory();
200 void addVocabulary();
201 void removeSelectedVocabulary();
203 void removeSelectedLicence();
205 void removeSelectedRight();
206 void addConstraint();
207 void removeSelectedConstraint();
209 void removeSelectedAddress();
211 void removeSelectedLink();
213 void removeSelectedHistory();
217 void setUiFromMetadata();
218 void syncFromCategoriesTabToKeywordsTab();
220 Mode mMode = LayerMetadata;
222 QStringList mDefaultCategories;
226 QStandardItemModel *mConstraintsModel =
nullptr;
227 QStandardItemModel *mLinksModel =
nullptr;
228 QStringListModel *mCategoriesModel =
nullptr;
229 QStringListModel *mDefaultCategoriesModel =
nullptr;
230 QStringListModel *mRightsModel =
nullptr;
231 QStringListModel *mHistoryModel =
nullptr;
258 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
281 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;