QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
QgsAttributeDialog Class Reference

#include <qgsattributedialog.h>

Collaboration diagram for QgsAttributeDialog:
Collaboration graph
[legend]

Public Slots

void accept ()
int exec ()
void show ()
void dialogDestroyed ()

Public Member Functions

 QgsAttributeDialog (QgsVectorLayer *vl, QgsFeature *thepFeature, bool featureOwner, QgsDistanceArea myDa, QWidget *parent=0, bool showDialogButtons=true)
 ~QgsAttributeDialog ()
void saveGeometry ()
 Saves the size and position for the next time this dialog box was used.
void restoreGeometry ()
 Restores the size and position from the last time this dialog box was used.
void setHighlight (QgsHighlight *h)
QDialog * dialog ()
QgsFeaturefeature ()

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)

Private Attributes

QDialog * mDialog
QString mSettingsPath
QMap< int, QWidget * > mProxyWidgets
QgsVectorLayermLayer
QgsFeaturemFeature
bool mFeatureOwner
QgsHighlightmHighlight
int mFormNr
bool mShowDialogButtons
QString mReturnvarname

Static Private Attributes

static int smFormCounter = 0

Detailed Description

Definition at line 30 of file qgsattributedialog.h.

Constructor & Destructor Documentation

QgsAttributeDialog::QgsAttributeDialog ( QgsVectorLayer vl,
QgsFeature thepFeature,
bool  featureOwner,
QgsDistanceArea  myDa,
QWidget *  parent = 0,
bool  showDialogButtons = true 
)

Definition at line 47 of file qgsattributedialog.cpp.

References accept(), QgsAttributeEditorElement::AeTypeContainer, QgsVectorLayer::attributeAlias(), QgsVectorLayer::attributeDisplayName(), QgsVectorLayer::attributeEditorElements(), QgsFeature::attributes(), QgsFields::count(), QgsAttributeEditor::createAttributeEditor(), QgsAttributeEditor::createWidgetFromDef(), QgsMapLayer::crs(), QgsVectorLayer::dataProvider(), QgsVectorLayer::dateFormat(), dialogDestroyed(), QgsVectorLayer::editForm(), QgsVectorLayer::editFormInit(), QgsVectorLayer::editorLayout(), QgsVectorLayer::editType(), QgsExpression::evalErrorString(), QgsExpression::evaluate(), feature(), QgsVectorLayer::fieldEditable(), file, GEO_NONE, QgsFeature::geometry(), QgsVectorLayer::getFeatures(), QgsExpression::hasEvalError(), QgsExpression::hasParserError(), QgsMapLayer::id(), QgsFeature::id(), QgsVectorLayer::Immutable, QgsProject::instance(), QgsVectorLayer::isEditable(), QgsFields::isEmpty(), QgsVectorLayer::labelOnTop(), mDialog, mFeature, mFormNr, mProxyWidgets, mReturnvarname, mShowDialogButtons, QgsAttributeEditorElement::name(), QgsMapLayer::name(), QgsExpression::needsGeometry(), QgsFeatureIterator::nextFeature(), QgsVectorLayer::pendingFields(), QgsVectorLayer::Photo, QgsDebugMsg, restoreGeometry(), QgsPythonRunner::run(), QgsDistanceArea::setEllipsoid(), QgsDistanceArea::setEllipsoidalMode(), QgsExpression::setGeomCalculator(), QgsFeature::setGeometry(), QgsDistanceArea::setSourceCrs(), smFormCounter, QgsCoordinateReferenceSystem::srsid(), QgsVectorLayer::TabLayout, tr, QgsField::type(), QgsAttributeEditorElement::type(), QgsVectorLayer::UiFileLayout, and QgsVectorLayer::WebView.

QgsAttributeDialog::~QgsAttributeDialog ( )

Member Function Documentation

void QgsAttributeDialog::accept ( )
slot
QDialog* QgsAttributeDialog::dialog ( )
inline
void QgsAttributeDialog::dialogDestroyed ( )
slot

Definition at line 541 of file qgsattributedialog.cpp.

References mDialog, mFormNr, mLayer, mReturnvarname, and QgsPythonRunner::run().

Referenced by QgsAttributeDialog().

bool QgsAttributeDialog::eventFilter ( QObject *  obj,
QEvent *  event 
)
protected

Definition at line 563 of file qgsattributedialog.cpp.

References mDialog, and mHighlight.

int QgsAttributeDialog::exec ( )
slot

Definition at line 487 of file qgsattributedialog.cpp.

References mDialog, and QgsDebugMsg.

QgsFeature* QgsAttributeDialog::feature ( )
inline
void QgsAttributeDialog::restoreGeometry ( )

Restores the size and position from the last time this dialog box was used.

Definition at line 521 of file qgsattributedialog.cpp.

References mDialog, and mSettingsPath.

Referenced by QgsAttributeDialog().

void QgsAttributeDialog::saveGeometry ( )

Saves the size and position for the next time this dialog box was used.

Definition at line 512 of file qgsattributedialog.cpp.

References mDialog, and mSettingsPath.

Referenced by ~QgsAttributeDialog().

void QgsAttributeDialog::setHighlight ( QgsHighlight h)

Definition at line 530 of file qgsattributedialog.cpp.

References mHighlight.

void QgsAttributeDialog::show ( )
slot

Definition at line 500 of file qgsattributedialog.cpp.

References mDialog.

Member Data Documentation

QDialog* QgsAttributeDialog::mDialog
private
QgsFeature* QgsAttributeDialog::mFeature
private

Definition at line 71 of file qgsattributedialog.h.

Referenced by accept(), QgsAttributeDialog(), and ~QgsAttributeDialog().

bool QgsAttributeDialog::mFeatureOwner
private

Definition at line 72 of file qgsattributedialog.h.

Referenced by ~QgsAttributeDialog().

int QgsAttributeDialog::mFormNr
private

Definition at line 74 of file qgsattributedialog.h.

Referenced by dialogDestroyed(), and QgsAttributeDialog().

QgsHighlight* QgsAttributeDialog::mHighlight
private

Definition at line 73 of file qgsattributedialog.h.

Referenced by eventFilter(), setHighlight(), and ~QgsAttributeDialog().

QgsVectorLayer* QgsAttributeDialog::mLayer
private

Definition at line 70 of file qgsattributedialog.h.

Referenced by accept(), dialogDestroyed(), and ~QgsAttributeDialog().

QMap<int, QWidget*> QgsAttributeDialog::mProxyWidgets
private

Definition at line 69 of file qgsattributedialog.h.

Referenced by accept(), and QgsAttributeDialog().

QString QgsAttributeDialog::mReturnvarname
private

Definition at line 77 of file qgsattributedialog.h.

Referenced by dialogDestroyed(), and QgsAttributeDialog().

QString QgsAttributeDialog::mSettingsPath
private

Definition at line 67 of file qgsattributedialog.h.

Referenced by restoreGeometry(), and saveGeometry().

bool QgsAttributeDialog::mShowDialogButtons
private

Definition at line 76 of file qgsattributedialog.h.

Referenced by QgsAttributeDialog().

int QgsAttributeDialog::smFormCounter = 0
staticprivate

Definition at line 75 of file qgsattributedialog.h.

Referenced by QgsAttributeDialog().


The documentation for this class was generated from the following files: