15 #ifndef QGSFIELDDOMAINWIDGET_H 
   16 #define QGSFIELDDOMAINWIDGET_H 
   20 #include "ui_qgsfielddomainwidgetbase.h" 
   21 #include "ui_qgsrangedomainwidgetbase.h" 
   22 #include "ui_qgsglobdomainwidgetbase.h" 
   23 #include "ui_qgscodedvaluedomainwidgetbase.h" 
   26 #include <QAbstractTableModel> 
   29 class QDialogButtonBox;
 
   69     virtual QgsFieldDomain *createFieldDomain( 
const QString &name, 
const QString &description, QVariant::Type fieldType ) 
const = 0 
SIP_FACTORY;
 
   74     virtual bool isValid() 
const = 0;
 
  154     int rowCount( 
const QModelIndex &parent = QModelIndex() ) 
const override;
 
  155     int columnCount( 
const QModelIndex &parent = QModelIndex() ) 
const override;
 
  156     QVariant data( 
const QModelIndex &index, 
int role = Qt::DisplayRole ) 
const override;
 
  157     bool setData( 
const QModelIndex &index, 
const QVariant &value, 
int role = Qt::EditRole ) 
override;
 
  158     Qt::ItemFlags flags( 
const QModelIndex &index ) 
const override;
 
  159     QVariant headerData( 
int section, Qt::Orientation orientation, 
int role = Qt::DisplayRole ) 
const override;
 
  160     bool insertRows( 
int row, 
int count, 
const QModelIndex &parent = QModelIndex() ) 
override;
 
  161     bool removeRows( 
int row, 
int count, 
const QModelIndex &parent = QModelIndex() ) 
override;
 
  168     void setValues( 
const QList< QgsCodedValue > &values );
 
  175     QList< QgsCodedValue > 
values()
 const { 
return mValues; }
 
  179     QList<QgsCodedValue> mValues;
 
  252     bool isValid() 
const;
 
  261     void validityChanged( 
bool isValid );
 
  305     void accept() 
override;
 
  309     void validityChanged( 
bool isValid );
 
  313     QDialogButtonBox *mButtonBox = 
nullptr;
 
  317 #endif // QGSFIELDDOMAINWIDGET_H