Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
223 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsattributeformwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsAttributeFormWidget : QWidget /Abstract/ | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsattributeformwidget.h" | ||
%End | ||
public: | ||
|
||
enum Mode | ||
{ | ||
DefaultMode, | ||
MultiEditMode, | ||
SearchMode, | ||
}; | ||
|
||
explicit QgsAttributeFormWidget( QgsWidgetWrapper *widget, QgsAttributeForm *form ); | ||
|
||
virtual void createSearchWidgetWrappers() = 0; | ||
%Docstring | ||
Creates the search widget wrappers for the widget used when the form is in | ||
search mode. | ||
|
||
\param context editor context (not available in Python bindings) | ||
%End | ||
|
||
virtual QString currentFilterExpression() const = 0; | ||
%Docstring | ||
Creates an expression matching the current search filter value and | ||
search properties represented in the widget. | ||
.. versionadded:: 2.16 | ||
:rtype: str | ||
%End | ||
|
||
|
||
void setMode( Mode mode ); | ||
%Docstring | ||
Sets the current mode for the widget. The widget will adapt its state and visible widgets to | ||
reflect the updated mode. For example, showing multi edit tool buttons if the mode is set to MultiEditMode. | ||
\param mode widget mode | ||
.. seealso:: mode() | ||
%End | ||
|
||
Mode mode() const; | ||
%Docstring | ||
Returns the current mode for the widget. | ||
.. seealso:: setMode() | ||
:rtype: Mode | ||
%End | ||
|
||
QgsVectorLayer *layer(); | ||
%Docstring | ||
:rtype: QgsVectorLayer | ||
%End | ||
|
||
QgsAttributeForm *form() const; | ||
%Docstring | ||
:rtype: QgsAttributeForm | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsattributeformwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.