Skip to content

Commit

Permalink
rename relreference...to relationreference
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 15, 2014
1 parent 8a1220c commit 13eb726
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ editorwidgets/qgsrangeconfigdlg.cpp
editorwidgets/qgsrangewidgetwrapper.cpp
editorwidgets/qgsrangewidgetfactory.cpp
editorwidgets/qgsrelationwidgetwrapper.cpp
editorwidgets/qgsrelationreferenceconfigdlg.cpp
editorwidgets/qgsrelationreferencefactory.cpp
editorwidgets/qgsrelationreferencewidget.cpp
editorwidgets/qgsrelationreferencewidgetwrapper.cpp
editorwidgets/qgsrelreferenceconfigdlg.cpp
editorwidgets/qgstexteditconfigdlg.cpp
editorwidgets/qgstexteditwrapper.cpp
editorwidgets/qgstexteditwidgetfactory.cpp
Expand Down Expand Up @@ -300,10 +300,10 @@ editorwidgets/qgsphotoconfigdlg.h
editorwidgets/qgsphotowidgetwrapper.h
editorwidgets/qgsrangeconfigdlg.h
editorwidgets/qgsrangewidgetwrapper.h
editorwidgets/qgsrelationreferenceconfigdlg.h
editorwidgets/qgsrelationreferencewidget.h
editorwidgets/qgsrelationreferencewidgetwrapper.h
editorwidgets/qgsrelationwidgetwrapper.h
editorwidgets/qgsrelreferenceconfigdlg.h
editorwidgets/qgstexteditconfigdlg.h
editorwidgets/qgstexteditwrapper.h
editorwidgets/qgsuniquevaluesconfigdlg.h
Expand Down Expand Up @@ -531,11 +531,11 @@ editorwidgets/qgsphotowidgetfactory.h
editorwidgets/qgsrangeconfigdlg.h
editorwidgets/qgsrangewidgetwrapper.h
editorwidgets/qgsrangewidgetfactory.h
editorwidgets/qgsrelationreferenceconfigdlg.h
editorwidgets/qgsrelationreferencefactory.h
editorwidgets/qgsrelationreferencewidget.h
editorwidgets/qgsrelationreferencewidgetwrapper.h
editorwidgets/qgsrelationwidgetwrapper.h
editorwidgets/qgsrelreferenceconfigdlg.h
editorwidgets/qgstexteditconfigdlg.h
editorwidgets/qgstexteditwrapper.h
editorwidgets/qgstexteditwidgetfactory.h
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
qgsrelreferenceconfigdlg.cpp
qgsrelationreferenceconfigdlg.cpp
--------------------------------------
Date : 21.4.2013
Copyright : (C) 2013 Matthias Kuhn
Expand All @@ -13,7 +13,7 @@
* *
***************************************************************************/

#include "qgsrelreferenceconfigdlg.h"
#include "qgsrelationreferenceconfigdlg.h"

#include "qgseditorwidgetfactory.h"
#include "qgsfield.h"
Expand All @@ -22,7 +22,7 @@
#include "qgsvectorlayer.h"
#include "qgsexpressionbuilderdialog.h"

QgsRelReferenceConfigDlg::QgsRelReferenceConfigDlg( QgsVectorLayer* vl, int fieldIdx, QWidget* parent )
QgsRelationReferenceConfigDlg::QgsRelationReferenceConfigDlg( QgsVectorLayer* vl, int fieldIdx, QWidget* parent )
: QgsEditorConfigWidget( vl, fieldIdx, parent )
{
setupUi( this );
Expand All @@ -38,7 +38,7 @@ QgsRelReferenceConfigDlg::QgsRelReferenceConfigDlg( QgsVectorLayer* vl, int fiel
}
}

void QgsRelReferenceConfigDlg::setConfig( const QMap<QString, QVariant>& config )
void QgsRelationReferenceConfigDlg::setConfig( const QMap<QString, QVariant>& config )
{
if ( config.contains( "AllowNULL" ) )
{
Expand Down Expand Up @@ -66,7 +66,7 @@ void QgsRelReferenceConfigDlg::setConfig( const QMap<QString, QVariant>& config
}
}

void QgsRelReferenceConfigDlg::relationChanged( int idx )
void QgsRelationReferenceConfigDlg::relationChanged( int idx )
{
QString relName = mComboRelation->itemData( idx ).toString();
QgsRelation rel = QgsProject::instance()->relationManager()->relation( relName );
Expand All @@ -80,7 +80,7 @@ void QgsRelReferenceConfigDlg::relationChanged( int idx )
}
}

QgsEditorWidgetConfig QgsRelReferenceConfigDlg::config()
QgsEditorWidgetConfig QgsRelationReferenceConfigDlg::config()
{
QgsEditorWidgetConfig myConfig;
myConfig.insert( "AllowNULL", mCbxAllowNull->isChecked() );
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
qgsrelreferenceconfigdlgbase.h
qgsrelationreferenceconfigdlgbase.h
--------------------------------------
Date : 21.4.2013
Copyright : (C) 2013 Matthias Kuhn
Expand All @@ -13,23 +13,23 @@
* *
***************************************************************************/

#ifndef QGSRELREFERENCECONFIGDLGBASE_H
#define QGSRELREFERENCECONFIGDLGBASE_H
#ifndef QGSRELATIONREFERENCECONFIGDLGBASE_H
#define QGSRELATIONREFERENCECONFIGDLGBASE_H

#include "ui_qgsrelreferenceconfigdlgbase.h"

This comment has been minimized.

Copy link
@arnaud-morvan

arnaud-morvan Sep 16, 2014

Contributor

Should be renamed too, build don't pass

This comment has been minimized.

Copy link
@3nids

3nids Sep 16, 2014

Author Member

I can successfully compile here.
Try a clean build.

This comment has been minimized.

Copy link
@arnaud-morvan

arnaud-morvan via email Sep 16, 2014

Contributor

This comment has been minimized.

Copy link
@3nids

3nids Sep 16, 2014

Author Member

sorry, my fault, this is fixed

This comment has been minimized.

Copy link
@3nids

3nids Sep 16, 2014

Author Member

crossed commits with Jürgen, fixed anyway

#include "qgseditorconfigwidget.h"

class GUI_EXPORT QgsRelReferenceConfigDlg : public QgsEditorConfigWidget, private Ui::QgsRelReferenceConfigDlgBase
class GUI_EXPORT QgsRelationReferenceConfigDlg : public QgsEditorConfigWidget, private Ui::QgsRelReferenceConfigDlgBase
{
Q_OBJECT

public:
explicit QgsRelReferenceConfigDlg( QgsVectorLayer* vl, int fieldIdx, QWidget* parent );
explicit QgsRelationReferenceConfigDlg( QgsVectorLayer* vl, int fieldIdx, QWidget* parent );
virtual QgsEditorWidgetConfig config();
virtual void setConfig( const QgsEditorWidgetConfig& config );

private slots:
void relationChanged( int idx );
};

#endif // QGSRELREFERENCECONFIGDLGBASE_H
#endif // QGSRELATIONREFERENCECONFIGDLGBASE_H
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgsrelationreferencefactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "qgsrelationreferencefactory.h"

#include "qgsrelationreferencewidgetwrapper.h"
#include "qgsrelreferenceconfigdlg.h"
#include "qgsrelationreferenceconfigdlg.h"

QgsRelationReferenceFactory::QgsRelationReferenceFactory( QString name, QgsMapCanvas* canvas, QgsMessageBar* messageBar )
: QgsEditorWidgetFactory( name )
Expand All @@ -32,7 +32,7 @@ QgsEditorWidgetWrapper* QgsRelationReferenceFactory::create( QgsVectorLayer* vl,

QgsEditorConfigWidget* QgsRelationReferenceFactory::configWidget( QgsVectorLayer* vl, int fieldIdx, QWidget* parent ) const
{
return new QgsRelReferenceConfigDlg( vl, fieldIdx, parent );
return new QgsRelationReferenceConfigDlg( vl, fieldIdx, parent );
}

QgsEditorWidgetConfig QgsRelationReferenceFactory::readConfig( const QDomElement& configElement, QgsVectorLayer* layer, int fieldIdx )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "qgsgeometry.h"
#include "qgsmapcanvas.h"
#include "qgsmessagebar.h"
#include "qgsrelreferenceconfigdlg.h"
#include "qgsrelationreferenceconfigdlg.h"
#include "qgsvectorlayer.h"


Expand Down

0 comments on commit 13eb726

Please sign in to comment.