QGIS/python/gui/qgsattributedialog.sip.in

98 lines
3.0 KiB
Plaintext
Raw Normal View History

2017-05-23 14:36:52 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsattributedialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsAttributeDialog : QDialog
2013-04-24 09:40:53 +10:00
{
2017-05-23 14:36:52 +02:00
2013-04-24 09:40:53 +10:00
%TypeHeaderCode
2017-05-23 14:36:52 +02:00
#include "qgsattributedialog.h"
2013-04-24 09:40:53 +10:00
%End
2014-01-27 09:22:24 +01:00
public:
QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeature, bool featureOwner, QWidget *parent /TransferThis/ = 0, bool showDialogButtons = true, const QgsAttributeEditorContext &context = QgsAttributeEditorContext() );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Create an attribute dialog for a given layer and feature
:param vl: The layer for which the dialog will be generated
:param thepFeature: A feature for which the dialog will be generated
:param featureOwner: Set to true, if the dialog should take ownership of the feature
:param parent: A parent widget for the dialog
:param showDialogButtons: True: Show the dialog buttons accept/cancel
:param context: The context in which this dialog is created
2017-05-23 14:36:52 +02:00
%End
~QgsAttributeDialog();
2014-01-27 09:22:24 +01:00
void setHighlight( QgsHighlight *h );
2017-05-23 14:36:52 +02:00
%Docstring
setHighlight
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param h: The highlight. Ownership is taken.
2017-05-23 14:36:52 +02:00
%End
2014-01-27 09:22:24 +01:00
QgsAttributeForm *attributeForm();
2014-01-27 09:22:24 +01:00
2016-02-14 03:50:23 +01:00
const QgsFeature *feature();
2014-01-27 09:22:24 +01:00
bool editable();
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is this dialog editable?
:return: returns true, if this dialog was created in an editable manner.
2017-05-23 14:36:52 +02:00
%End
2014-01-27 09:22:24 +01:00
void setMode( QgsAttributeForm::Mode mode );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Toggles the form mode.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param mode: form mode. For example, if set to QgsAttributeForm.AddFeatureMode, the dialog will be editable even with an invalid feature and
will add a new feature when the form is accepted.
2017-05-23 14:36:52 +02:00
%End
2014-05-27 23:22:50 +02:00
void setEditCommandMessage( const QString &message );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Sets the edit command message (Undo) that will be used when the dialog is accepted
2017-05-23 14:36:52 +02:00
2017-12-15 10:36:55 -04:00
:param message: The message
2017-05-23 14:36:52 +02:00
%End
2014-05-27 23:22:50 +02:00
2016-02-14 03:50:23 +01:00
virtual bool event( QEvent *e );
2017-05-23 14:36:52 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Intercept window activate/deactive events to show/hide the highlighted feature.
:param e: The event
2017-05-23 14:36:52 +02:00
2017-12-15 10:36:55 -04:00
:return: The same as the parent QDialog
2017-05-23 14:36:52 +02:00
%End
2016-02-14 03:50:23 +01:00
2014-01-27 09:22:24 +01:00
public slots:
2017-05-23 14:36:52 +02:00
virtual void accept();
2014-01-27 09:22:24 +01:00
2017-05-23 14:36:52 +02:00
virtual void reject();
2014-01-27 09:22:24 +01:00
2016-02-14 03:50:23 +01:00
2017-05-23 14:36:52 +02:00
void show();
%Docstring
Show the dialog non-blocking. Reparents this dialog to be a child of the dialog form
%End
2013-04-24 09:40:53 +10:00
};
2017-05-23 14:36:52 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsattributedialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/