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

#include <qgsrelationeditorwidget.h>

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

Public Member Functions

 QgsRelationEditorWidget (QWidget *parent=NULL)
 
void setViewMode (QgsDualView::ViewMode mode)
 Define the view mode for the dual view. More...
 
QgsDualView::ViewMode viewMode ()
 
void setQgisRelation (QString qgisRelationId)
 Defines the relation ID (from project relations) More...
 
QString qgisRelation ()
 
void setRelationFeature (const QgsRelation &relation, const QgsFeature &feature, const QgsAttributeEditorContext &context)
 
- 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 More...
 
void setSaveCheckedState (bool save)
 set this to true to save/restore checked state More...
 
bool saveCollapsedState ()
 
bool saveCheckedState ()
 
void setSettingGroup (const QString &group)
 set this to a defined string to share save/restore states across different parent dialogs More...
 
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. More...
 
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 More...
 
bool scrollOnExpand ()
 

Properties

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

Private Slots

void setViewMode (int mode)
 
void onCollapsedStateChanged (bool state)
 
void referencingLayerEditingToggled ()
 
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
 
QgsDualView::ViewMode mViewMode
 
QgsGenericFeatureSelectionManagermFeatureSelectionMgr
 
QgsAttributeEditorContext mEditorContext
 
QgsRelation mRelation
 
QString mRelationId
 
QgsFeature mFeature
 
QToolButton * mToggleEditingButton
 
QToolButton * mAddFeatureButton
 
QToolButton * mDeleteFeatureButton
 
QToolButton * mLinkFeatureButton
 
QToolButton * mUnlinkFeatureButton
 
QToolButton * mFormViewButton
 
QToolButton * mTableViewButton
 
QGridLayout * mRelationLayout
 
QButtonGroup * mViewModeButtonGroup
 

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

Member Function Documentation

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 157 of file qgsrelationeditorwidget.cpp.

References QgsDualView::masterModel(), and mDualView.

Referenced by QgsRelationEditorWidget().

QString QgsRelationEditorWidget::qgisRelation ( )
inline

Definition at line 53 of file qgsrelationeditorwidget.h.

void QgsRelationEditorWidget::referencingLayerEditingToggled ( )
privateslot
void QgsRelationEditorWidget::setQgisRelation ( QString  qgisRelationId)
inline

Defines the relation ID (from project relations)

Note
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,
const QgsAttributeEditorContext context 
)
void QgsRelationEditorWidget::setViewMode ( QgsDualView::ViewMode  mode)
void QgsRelationEditorWidget::setViewMode ( int  mode)
inlineprivateslot

Definition at line 58 of file qgsrelationeditorwidget.h.

References setViewMode().

Referenced by setViewMode().

QgsDualView::ViewMode QgsRelationEditorWidget::viewMode ( )
inline

Definition at line 48 of file qgsrelationeditorwidget.h.

Member Data Documentation

QToolButton* QgsRelationEditorWidget::mAddFeatureButton
private
QToolButton* QgsRelationEditorWidget::mDeleteFeatureButton
private
QgsDualView* QgsRelationEditorWidget::mDualView
private
QgsAttributeEditorContext QgsRelationEditorWidget::mEditorContext
private
QgsFeature QgsRelationEditorWidget::mFeature
private
QgsGenericFeatureSelectionManager* QgsRelationEditorWidget::mFeatureSelectionMgr
private
QToolButton* QgsRelationEditorWidget::mFormViewButton
private

Definition at line 82 of file qgsrelationeditorwidget.h.

Referenced by QgsRelationEditorWidget(), and setViewMode().

QToolButton* QgsRelationEditorWidget::mLinkFeatureButton
private
QgsRelation QgsRelationEditorWidget::mRelation
private
QString QgsRelationEditorWidget::mRelationId
private

Definition at line 74 of file qgsrelationeditorwidget.h.

QGridLayout* QgsRelationEditorWidget::mRelationLayout
private

Definition at line 84 of file qgsrelationeditorwidget.h.

Referenced by QgsRelationEditorWidget().

QToolButton* QgsRelationEditorWidget::mTableViewButton
private

Definition at line 83 of file qgsrelationeditorwidget.h.

Referenced by QgsRelationEditorWidget(), and setViewMode().

QToolButton* QgsRelationEditorWidget::mToggleEditingButton
private
QToolButton* QgsRelationEditorWidget::mUnlinkFeatureButton
private
QgsDualView::ViewMode QgsRelationEditorWidget::mViewMode
private

Definition at line 70 of file qgsrelationeditorwidget.h.

Referenced by QgsRelationEditorWidget(), and setViewMode().

QButtonGroup* QgsRelationEditorWidget::mViewModeButtonGroup
private

Definition at line 85 of file qgsrelationeditorwidget.h.

Referenced by QgsRelationEditorWidget().

Property Documentation

QString QgsRelationEditorWidget::qgisRelation
readwriteprivate

Definition at line 37 of file qgsrelationeditorwidget.h.

QgsDualView::ViewMode QgsRelationEditorWidget::viewMode
readwriteprivate

Definition at line 38 of file qgsrelationeditorwidget.h.


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