16 #ifndef QGSRELATIONEDITOR_H
17 #define QGSRELATIONEDITOR_H
20 #include <QToolButton>
21 #include <QButtonGroup>
22 #include <QGridLayout>
37 Q_PROPERTY( QString qgisRelation READ qgisRelation WRITE setQgisRelation )
38 Q_PROPERTY(
QgsDualView::ViewMode viewMode READ viewMode WRITE setViewMode )
60 void setViewMode(
int mode ) {setViewMode( static_cast<QgsDualView::ViewMode>( mode ) );}
61 void referencingLayerEditingToggled();
68 void toggleEditing(
bool state );
69 void onCollapsedStateChanged(
bool collapsed );
80 QToolButton* mToggleEditingButton;
81 QToolButton* mSaveEditsButton;
82 QToolButton* mAddFeatureButton;
83 QToolButton* mDeleteFeatureButton;
84 QToolButton* mLinkFeatureButton;
85 QToolButton* mUnlinkFeatureButton;
86 QToolButton* mFormViewButton;
87 QToolButton* mTableViewButton;
88 QGridLayout* mRelationLayout;
89 QButtonGroup* mViewModeButtonGroup;
94 #endif // QGSRELATIONEDITOR_H