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();
67 void toggleEditing(
bool state );
68 void onCollapsedStateChanged(
bool collapsed );
79 QToolButton* mToggleEditingButton;
80 QToolButton* mAddFeatureButton;
81 QToolButton* mDeleteFeatureButton;
82 QToolButton* mLinkFeatureButton;
83 QToolButton* mUnlinkFeatureButton;
84 QToolButton* mFormViewButton;
85 QToolButton* mTableViewButton;
86 QGridLayout* mRelationLayout;
87 QButtonGroup* mViewModeButtonGroup;
92 #endif // QGSRELATIONEDITOR_H