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

#include <qgsrelationeditor.h>

Inheritance diagram for QgsRelationEditorWidget:
Inheritance graph
[legend]
Collaboration diagram for QgsRelationEditorWidget:
Collaboration graph
[legend]

Public Member Functions

 QgsRelationEditorWidget (const QgsRelation &relation, const QgsFeature &feature, QgsAttributeEditorContext context, QWidget *parent=NULL)
- Public Member Functions inherited from QgsCollapsibleGroupBox
 QgsCollapsibleGroupBox (QWidget *parent=0, QSettings *settings=0)
 QgsCollapsibleGroupBox (const QString &title, QWidget *parent=0, QSettings *settings=0)
 ~QgsCollapsibleGroupBox ()
void setSettings (QSettings *settings)
void setSaveCollapsedState (bool save)
 set this to false to not save/restore collapsed state
void setSaveCheckedState (bool save)
 set this to true to save/restore checked state
bool saveCollapsedState ()
bool saveCheckedState ()
void setSettingGroup (const QString &group)
 set this to a defined string to share save/restore states across different parent dialogs
QString settingGroup () const
- Public Member Functions inherited from QgsCollapsibleGroupBoxBasic
 QgsCollapsibleGroupBoxBasic (QWidget *parent=0)
 QgsCollapsibleGroupBoxBasic (const QString &title, QWidget *parent=0)
 ~QgsCollapsibleGroupBoxBasic ()
bool isCollapsed () const
void setCollapsed (bool collapse)
QString syncGroup () const
 Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key.
void setSyncGroup (QString grp)
void setScrollOnExpand (bool scroll)
 set this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded

Static Public Member Functions

static QgsRelationEditorWidgetcreateRelationEditor (const QgsRelation &relation, const QgsFeature &feature, QgsAttributeEditorContext context, QWidget *parent=NULL)

Private Slots

void onCollapsedStateChanged (bool state)
void referencingLayerEditingToggled ()
void viewModeChanged (int mode)
void on_mAddFeatureButton_clicked ()
void on_mLinkFeatureButton_clicked ()
void on_mDeleteFeatureButton_clicked ()
void on_mUnlinkFeatureButton_clicked ()
void on_mToggleEditingButton_toggled (bool state)

Private Attributes

QgsDualViewmDualView
QgsGenericFeatureSelectionManagermFeatureSelectionMgr
QgsAttributeEditorContext mEditorContext
QgsRelation mRelation
QgsFeature mFeature

Additional Inherited Members

- Public Slots inherited from QgsCollapsibleGroupBoxBasic
void checkToggled (bool ckd)
void checkClicked (bool ckd)
void toggleCollapsed ()
- Signals inherited from QgsCollapsibleGroupBoxBasic
void collapsedStateChanged (bool collapsed)
 Signal emitted when groupbox collapsed/expanded state is changed, and when first shown.
- Protected Slots inherited from QgsCollapsibleGroupBox
void loadState ()
void saveState ()
- Protected Member Functions inherited from QgsCollapsibleGroupBox
void init ()
void showEvent (QShowEvent *event)
QString saveKey () const
- Protected Attributes inherited from QgsCollapsibleGroupBox
QPointer< QSettings > mSettings
bool mDelSettings
bool mSaveCollapsedState
bool mSaveCheckedState
QString mSettingGroup
- Static Protected Attributes inherited from QgsCollapsibleGroupBoxBasic
static QIcon mCollapseIcon
static QIcon mExpandIcon
- Properties inherited from QgsCollapsibleGroupBox
bool collapsed
bool saveCollapsedState
bool saveCheckedState
QString syncGroup

Detailed Description

Definition at line 31 of file qgsrelationeditor.h.

Constructor & Destructor Documentation

QgsRelationEditorWidget::QgsRelationEditorWidget ( const QgsRelation relation,
const QgsFeature feature,
QgsAttributeEditorContext  context,
QWidget *  parent = NULL 
)

Member Function Documentation

QgsRelationEditorWidget * QgsRelationEditorWidget::createRelationEditor ( const QgsRelation relation,
const QgsFeature feature,
QgsAttributeEditorContext  context,
QWidget *  parent = NULL 
)
static
void QgsRelationEditorWidget::on_mAddFeatureButton_clicked ( )
privateslot
void QgsRelationEditorWidget::on_mDeleteFeatureButton_clicked ( )
privateslot
void QgsRelationEditorWidget::on_mLinkFeatureButton_clicked ( )
privateslot
void QgsRelationEditorWidget::on_mToggleEditingButton_toggled ( bool  state)
privateslot
void QgsRelationEditorWidget::on_mUnlinkFeatureButton_clicked ( )
privateslot
void QgsRelationEditorWidget::onCollapsedStateChanged ( bool  state)
privateslot

Definition at line 80 of file qgsrelationeditor.cpp.

References QgsDualView::masterModel(), and mDualView.

Referenced by QgsRelationEditorWidget().

void QgsRelationEditorWidget::referencingLayerEditingToggled ( )
privateslot
void QgsRelationEditorWidget::viewModeChanged ( int  mode)
privateslot

Definition at line 99 of file qgsrelationeditor.cpp.

Referenced by createRelationEditor().

Member Data Documentation

QgsDualView* QgsRelationEditorWidget::mDualView
private
QgsAttributeEditorContext QgsRelationEditorWidget::mEditorContext
private
QgsFeature QgsRelationEditorWidget::mFeature
private
QgsGenericFeatureSelectionManager* QgsRelationEditorWidget::mFeatureSelectionMgr
private
QgsRelation QgsRelationEditorWidget::mRelation
private

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