29 #include <QHBoxLayout>
35 , mEditorContext( context )
36 , mRelation( relation )
58 editor->mToggleEditingButton->setEnabled( canChangeAttributes && !lyr->
isReadOnly() );
63 editor->mBrowserWidget->layout()->addWidget( dualView );
74 connect( editor->mViewModeButtonGroup, SIGNAL( buttonClicked(
int ) ), dualView, SLOT( setCurrentIndex(
int ) ) );
75 connect( dualView, SIGNAL( currentChanged(
int ) ), editor, SLOT(
viewModeChanged(
int ) ) );
92 mAddFeatureButton->setEnabled( editable );
93 mLinkFeatureButton->setEnabled( editable );
94 mDeleteFeatureButton->setEnabled( editable );
95 mUnlinkFeatureButton->setEnabled( editable );
96 mToggleEditingButton->setChecked( editable );
101 mViewModeButtonGroup->button( mode )->click();
122 if ( selectionDlg.exec() )
124 QMap<int, QVariant> keys;
129 keys.insert( idx, val );
132 foreach (
QgsFeatureId fid, selectionDlg.selectedFeatures() )
134 QMapIterator<int, QVariant> it( keys );
135 while ( it.hasNext() )
154 QMap<int, QgsField> keyFields;
159 keyFields.insert( idx, fld );
164 QMapIterator<int, QgsField> it( keyFields );
165 while ( it.hasNext() )