QGIS API Documentation  2.9.0-Master
Public Member Functions | Properties | List of all members
QgsRelationEditorWidget Class Reference

#include <qgsrelationeditorwidget.h>

Inheritance diagram for QgsRelationEditorWidget:
Inheritance graph

Public Member Functions

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


QString qgisRelation
QgsDualView::ViewMode viewMode
- Properties inherited from QgsCollapsibleGroupBox
bool collapsed
bool saveCheckedState
bool saveCollapsedState
bool scrollOnExpand
QString syncGroup
- Properties inherited from QgsCollapsibleGroupBoxBasic
bool collapsed
bool scrollOnExpand
QString syncGroup

Additional Inherited Members

- Public Slots inherited from QgsCollapsibleGroupBoxBasic
void checkClicked (bool ckd)
void checkToggled (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. More...
- Protected Slots inherited from QgsCollapsibleGroupBox
void loadState ()
void saveState ()
- Protected Member Functions inherited from QgsCollapsibleGroupBox
void init ()
QString saveKey () const
void showEvent (QShowEvent *event) override
- Protected Member Functions inherited from QgsCollapsibleGroupBoxBasic
void changeEvent (QEvent *event) override
void clearModifiers ()
void collapseExpandFixes ()
 Visual fixes for when group box is collapsed/expanded. More...
void init ()
void mousePressEvent (QMouseEvent *event) override
void mouseReleaseEvent (QMouseEvent *event) override
void showEvent (QShowEvent *event) override
QRect titleRect () const
void updateStyle ()
- Protected Attributes inherited from QgsCollapsibleGroupBox
bool mDelSettings
bool mSaveCheckedState
bool mSaveCollapsedState
QString mSettingGroup
QPointer< QSettings > mSettings
- Protected Attributes inherited from QgsCollapsibleGroupBoxBasic
bool mAltDown
bool mCollapsed
bool mInitFlat
bool mInitFlatChecked
QScrollArea * mParentScrollArea
bool mScrollOnExpand
bool mShiftDown
bool mShown
QString mSyncGroup
QWidget * mSyncParent
bool mTitleClicked
- Static Protected Attributes inherited from QgsCollapsibleGroupBoxBasic
static QIcon mCollapseIcon
static QIcon mExpandIcon

Detailed Description

Definition at line 34 of file qgsrelationeditorwidget.h.

Constructor & Destructor Documentation

QgsRelationEditorWidget::QgsRelationEditorWidget ( QWidget *  parent = NULL)
parentparent widget

Definition at line 31 of file qgsrelationeditorwidget.cpp.

Member Function Documentation

QString QgsRelationEditorWidget::qgisRelation ( )

Definition at line 53 of file qgsrelationeditorwidget.h.

void QgsRelationEditorWidget::setEditorContext ( const QgsAttributeEditorContext context)

Definition at line 168 of file qgsrelationeditorwidget.cpp.

void QgsRelationEditorWidget::setQgisRelation ( QString  qgisRelationId)

Defines the relation ID (from project relations)

use a widget's property to keep compatibility with using basic widget instead of QgsRelationEditorWidget

Definition at line 52 of file qgsrelationeditorwidget.h.

void QgsRelationEditorWidget::setRelationFeature ( const QgsRelation relation,
const QgsFeature feature 

Definition at line 127 of file qgsrelationeditorwidget.cpp.

void QgsRelationEditorWidget::setViewMode ( QgsDualView::ViewMode  mode)

Define the view mode for the dual view.

Definition at line 173 of file qgsrelationeditorwidget.cpp.

QgsDualView::ViewMode QgsRelationEditorWidget::viewMode ( )

Definition at line 48 of file qgsrelationeditorwidget.h.

Property Documentation

QString QgsRelationEditorWidget::qgisRelation

Definition at line 37 of file qgsrelationeditorwidget.h.

QgsDualView::ViewMode QgsRelationEditorWidget::viewMode

Definition at line 38 of file qgsrelationeditorwidget.h.

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