Skip to content
Permalink
Browse files

Address review comments

  • Loading branch information
nyalldawson committed Sep 4, 2018
1 parent 3c2499b commit d563034583129036f5c6fd89b3c738893b65c836
@@ -1,7 +1,7 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/processing/qgsprocessingmodelerwidget.h *
* src/gui/processing/qgsprocessingmodelerparameterwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -32,7 +32,7 @@ QgsGui.processingGuiRegistry()->createModelerParameterWidget().
%End

%TypeHeaderCode
#include "qgsprocessingmodelerwidget.h"
#include "qgsprocessingmodelerparameterwidget.h"
%End
public:

@@ -65,7 +65,7 @@ Populates the widget with available sources for the parameter's value, e.g.
adding the available child algorithm outputs and model input parameter
choices.

In order to determine the available source, the ``compatibleParameterTypes``,
In order to determine the available source, the ``compatibleParameterTypes`` and
``compatibleOutputTypes`` arguments are used. These lists correspond to the
various available values for QgsProcessingParameterDefinition.type() (for
``compatibleParameterTypes``) and the values for :py:func:`QgsProcessingOutputDefinition.type()`
@@ -107,7 +107,7 @@ Returns the current value of the parameter.
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/processing/qgsprocessingmodelerwidget.h *
* src/gui/processing/qgsprocessingmodelerparameterwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -234,7 +234,6 @@ The ``type`` argument indicates the dialog type to create a wrapper for.
.. seealso:: :py:func:`createModelerWidgetWrapper`
%End


virtual QgsProcessingModelerParameterWidget *createModelerWidgetWrapper( QgsProcessingModelAlgorithm *model,
const QString &childId,
const QgsProcessingParameterDefinition *parameter,
@@ -317,7 +317,7 @@
%Include auto_generated/locator/qgslocatorwidget.sip
%Include auto_generated/processing/qgsprocessingalgorithmconfigurationwidget.sip
%Include auto_generated/processing/qgsprocessingalgorithmdialogbase.sip
%Include auto_generated/processing/qgsprocessingmodelerwidget.sip
%Include auto_generated/processing/qgsprocessingmodelerparameterwidget.sip
%Include auto_generated/processing/qgsprocessingrecentalgorithmlog.sip
%Include auto_generated/processing/qgsprocessingtoolboxmodel.sip
%Include auto_generated/processing/qgsprocessingtoolboxtreeview.sip
@@ -198,7 +198,7 @@ Q_DECLARE_METATYPE( QgsProcessingOutputLayerDefinition )
* \since QGIS 3.0
*/

class CORE_EXPORT QgsProcessingParameterDefinition
class CORE_EXPORT QgsProcessingParameterDefinition
{

#ifdef SIP_RUN
@@ -197,7 +197,7 @@ SET(QGIS_GUI_SRCS
processing/qgsprocessingalgorithmdialogbase.cpp
processing/qgsprocessingconfigurationwidgets.cpp
processing/qgsprocessingguiregistry.cpp
processing/qgsprocessingmodelerwidget.cpp
processing/qgsprocessingmodelerparameterwidget.cpp
processing/qgsprocessingrecentalgorithmlog.cpp
processing/qgsprocessingtoolboxmodel.cpp
processing/qgsprocessingtoolboxtreeview.cpp
@@ -726,7 +726,7 @@ SET(QGIS_GUI_MOC_HDRS
processing/qgsprocessingalgorithmconfigurationwidget.h
processing/qgsprocessingalgorithmdialogbase.h
processing/qgsprocessingconfigurationwidgets.h
processing/qgsprocessingmodelerwidget.h
processing/qgsprocessingmodelerparameterwidget.h
processing/qgsprocessingrecentalgorithmlog.h
processing/qgsprocessingtoolboxmodel.h
processing/qgsprocessingtoolboxtreeview.h
@@ -1,6 +1,6 @@
/***************************************************************************
qgsprocessingwidgetwrapper.h
---------------------
qgsprocessinggui.h
------------------
begin : August 2018
copyright : (C) 2018 by Nyall Dawson
email : nyall dot dawson at gmail dot com
@@ -1,6 +1,6 @@
/***************************************************************************
qgsprocessingmodelerwidgetwrapper.cpp
---------------------
qgsprocessingmodelerparameterwidget.cpp
---------------------------------------
begin : August 2018
copyright : (C) 2018 by Nyall Dawson
email : nyall dot dawson at gmail dot com
@@ -16,7 +16,7 @@
***************************************************************************/


#include "qgsprocessingmodelerwidget.h"
#include "qgsprocessingmodelerparameterwidget.h"
#include "qgsprocessingparameters.h"
#include "qgsexpressionlineedit.h"
#include "qgsprocessingguiregistry.h"
@@ -1,6 +1,6 @@
/***************************************************************************
qgsprocessingmodelerwidgetwrapper.h
---------------------
qgsprocessingmodelerparameterwidget.h
-------------------------------------
begin : August 2018
copyright : (C) 2018 by Nyall Dawson
email : nyall dot dawson at gmail dot com
@@ -16,8 +16,8 @@
***************************************************************************/


#ifndef QGSPROCESSINGMODELERWIDGETWRAPPER_H
#define QGSPROCESSINGMODELERWIDGETWRAPPER_H
#ifndef QGSPROCESSINGMODELERPARAMETERWIDGET_H
#define QGSPROCESSINGMODELERPARAMETERWIDGET_H

#include <QWidget>
#include "qgis_gui.h"
@@ -87,7 +87,7 @@ class GUI_EXPORT QgsProcessingModelerParameterWidget : public QWidget
* adding the available child algorithm outputs and model input parameter
* choices.
*
* In order to determine the available source, the \a compatibleParameterTypes,
* In order to determine the available source, the \a compatibleParameterTypes and
* \a compatibleOutputTypes arguments are used. These lists correspond to the
* various available values for QgsProcessingParameterDefinition::type() (for
* \a compatibleParameterTypes) and the values for QgsProcessingOutputDefinition::type()
@@ -161,4 +161,4 @@ class GUI_EXPORT QgsProcessingModelerParameterWidget : public QWidget
};


#endif // QGSPROCESSINGMODELERWIDGETWRAPPER_H
#endif // QGSPROCESSINGMODELERPARAMETERWIDGET_H
@@ -18,7 +18,7 @@

#include "qgsprocessingwidgetwrapper.h"
#include "qgsprocessingparameters.h"
#include "qgsprocessingmodelerwidget.h"
#include "qgsprocessingmodelerparameterwidget.h"
#include "qgspropertyoverridebutton.h"
#include <QLabel>
#include <QHBoxLayout>
@@ -275,12 +275,6 @@ class GUI_EXPORT QgsProcessingParameterWidgetFactoryInterface
virtual QgsAbstractProcessingParameterWidgetWrapper *createWidgetWrapper( const QgsProcessingParameterDefinition *parameter,
QgsProcessingGui::WidgetType type ) = 0 SIP_FACTORY;

/**
* Creates a new widget wrapper for the specified \a parameter definition.
*
* The \a type argument indicates the dialog type to create a wrapper for.
*/

/**
* Creates a new modeler parameter widget for the given \a parameter. This widget allows
* configuration of the parameter's value when used inside a Processing \a model.

This file was deleted.

@@ -30,7 +30,7 @@
#include "qgsprocessingalgorithmconfigurationwidget.h"
#include "qgsprocessingwidgetwrapper.h"
#include "qgsprocessingwidgetwrapperimpl.h"
#include "qgsprocessingmodelerwidget.h"
#include "qgsprocessingmodelerparameterwidget.h"
#include "qgsnativealgorithms.h"
#include "processing/models/qgsprocessingmodelalgorithm.h"
#include "qgsxmlutils.h"

0 comments on commit d563034

Please sign in to comment.
You can’t perform that action at this time.