Skip to content
Permalink
Browse files
Doxymentation for QgsAttributeForm
  • Loading branch information
m-kuhn committed Jun 24, 2014
1 parent a1202be commit abcca5aa8a7797844e1f5e58e14b3b3d2ecbbe08
Showing with 19 additions and 0 deletions.
  1. +19 −0 src/gui/qgsattributeform.h
@@ -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();

/**
@@ -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();

/**
@@ -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:

0 comments on commit abcca5a

Please sign in to comment.