Skip to content

Commit

Permalink
Doxymentation for QgsAttributeForm
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 24, 2014
1 parent a1202be commit abcca5a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/gui/qgsattributeform.h
Expand Up @@ -36,8 +36,14 @@ class GUI_EXPORT QgsAttributeForm : public QWidget

const QgsFeature& feature() { return mFeature; }

/**
* Hides the button box (Ok/Cancel) and enables auto-commit
*/
void hideButtonBox();

/**
* Shows the button box (Ok/Cancel) and disables auto-commit
*/
void showButtonBox();

/**
Expand All @@ -46,8 +52,18 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
*/
void addInterface( QgsAttributeFormInterface* iface );

/**
* Returns the layer for which this form is shown
*
* @return Layer
*/
QgsVectorLayer* layer() { return mLayer; }

/**
* Returns if the form is currently in editable mode.
*
* @return Editable mode of this form
*/
bool editable();

/**
Expand Down Expand Up @@ -118,6 +134,9 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
*/
Q_DECL_DEPRECATED void reject() { resetValues(); }

/**
* Sets all values to the values of the current feature
*/
void resetValues();

private slots:
Expand Down

0 comments on commit abcca5a

Please sign in to comment.